diff --git a/stage0/src/Init/LeanInit.lean b/stage0/src/Init/LeanInit.lean index 3cc1a1b422..74e1f7adf9 100644 --- a/stage0/src/Init/LeanInit.lean +++ b/stage0/src/Init/LeanInit.lean @@ -248,6 +248,10 @@ match stx with | Syntax.node _ args => args.get! i | _ => Syntax.missing -- panic! "Syntax.getArg: not a node" +-- Add `stx[i]` as sugar for `stx.getArg i` +@[inline] def getOp (self : Syntax) (idx : Nat) : Syntax := +self.getArg idx + def getArgs (stx : Syntax) : Array Syntax := match stx with | Syntax.node _ args => args diff --git a/stage0/src/Lean/Elab/Attributes.lean b/stage0/src/Lean/Elab/Attributes.lean index fe2b6d1060..8bb2288199 100644 --- a/stage0/src/Lean/Elab/Attributes.lean +++ b/stage0/src/Lean/Elab/Attributes.lean @@ -6,9 +6,8 @@ Authors: Leonardo de Moura, Sebastian Ullrich import Lean.Parser.Basic import Lean.Attributes import Lean.MonadEnv - -namespace Lean -namespace Elab +new_frontend +namespace Lean.Elab structure Attribute := (name : Name) (args : Syntax := Syntax.missing) @@ -20,29 +19,27 @@ instance Attribute.inhabited : Inhabited Attribute := ⟨{ name := arbitrary _ } def elabAttr {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [Ref m] [AddErrorMessageContext m] (stx : Syntax) : m Attribute := do -- rawIdent >> many attrArg -let nameStx := stx.getArg 0; -attrName ← match nameStx.isIdOrAtom? with +let nameStx := stx[0] +let attrName ← match nameStx.isIdOrAtom? with | none => withRef nameStx $ throwError "identifier expected" - | some str => pure $ mkNameSimple str; -env ← getEnv; -unless (isAttribute env attrName) $ - throwError ("unknown attribute [" ++ attrName ++ "]"); -let args := stx.getArg 1; + | some str => pure $ mkNameSimple str +unless isAttribute (← getEnv) attrName do + throwError! "unknown attribute [{attrName}]" +let args := stx[1] -- the old frontend passes Syntax.missing for empty args, for reasons -let args := if args.getNumArgs == 0 then Syntax.missing else args; +if args.getNumArgs == 0 then + args := Syntax.missing pure { name := attrName, args := args } -- sepBy1 attrInstance ", " -def elabAttrs {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [Ref m] [AddErrorMessageContext m] (stx : Syntax) : m (Array Attribute) := -stx.foldSepArgsM - (fun stx attrs => do - attr ← elabAttr stx; - pure $ attrs.push attr) - #[] +def elabAttrs {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [Ref m] [AddErrorMessageContext m] (stx : Syntax) : m (Array Attribute) := do +let attrs := #[] +for attr in stx.getSepArgs do + attrs := attrs.push (← elabAttr attr) +return attrs -- parser! "@[" >> sepBy1 attrInstance ", " >> "]" def elabDeclAttrs {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [Ref m] [AddErrorMessageContext m] (stx : Syntax) : m (Array Attribute) := -elabAttrs (stx.getArg 1) +elabAttrs stx[1] -end Elab -end Lean +end Lean.Elab diff --git a/stage0/src/Lean/Elab/DeclUtil.lean b/stage0/src/Lean/Elab/DeclUtil.lean index 3163070b77..04851d8044 100644 --- a/stage0/src/Lean/Elab/DeclUtil.lean +++ b/stage0/src/Lean/Elab/DeclUtil.lean @@ -4,28 +4,27 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ import Lean.Meta.ExprDefEq - -namespace Lean -namespace Meta +new_frontend +namespace Lean.Meta def forallTelescopeCompatibleAux {α} (k : Array Expr → Expr → Expr → MetaM α) : Nat → Expr → Expr → Array Expr → MetaM α | 0, type₁, type₂, xs => k xs type₁ type₂ | i+1, type₁, type₂, xs => do - type₁ ← whnf type₁; - type₂ ← whnf type₂; + let type₁ ← whnf type₁ + let type₂ ← whnf type₂ match type₁, type₂ with - | Expr.forallE n₁ d₁ b₁ c₁, Expr.forallE n₂ d₂ b₂ c₂ => do - unless (n₁ == n₂) $ - throwError ("parameter name mismatch '" ++ n₁ ++ "', expected '" ++ n₂ ++ "'"); - unlessM (isDefEq d₁ d₂) $ - throwError ("type mismatch at parameter '" ++ n₁ ++ "'" ++ indentExpr d₁ ++ Format.line ++ "expected type" ++ indentExpr d₂); - unless (c₁.binderInfo == c₂.binderInfo) $ - throwError ("binder annotation mismatch at parameter '" ++ n₁ ++ "'"); + | Expr.forallE n₁ d₁ b₁ c₁, Expr.forallE n₂ d₂ b₂ c₂ => + unless n₁ == n₂ do + throwError! "parameter name mismatch '{n₁}', expected '{n₂}'" + unless (← isDefEq d₁ d₂) do + throwError! "type mismatch at parameter '{n₁}'{indentExpr d₁}\nexpected type{indentExpr d₂}" + unless c₁.binderInfo == c₂.binderInfo do + throwError! "binder annotation mismatch at parameter '{n₁}'" withLocalDecl n₁ c₁.binderInfo d₁ fun x => - let type₁ := b₁.instantiate1 x; - let type₂ := b₂.instantiate1 x; - forallTelescopeCompatibleAux i type₁ type₂ (xs.push x) - | _, _ => throwError ("unexpected number of parameters") + let type₁ := b₁.instantiate1 x + let type₂ := b₂.instantiate1 x + forallTelescopeCompatibleAux k i type₁ type₂ (xs.push x) + | _, _ => throwError "unexpected number of parameters" /-- Given two forall-expressions `type₁` and `type₂`, ensure the first `numParams` parameters are compatible, and then execute `k` with the parameters and remaining types. -/ @@ -38,19 +37,19 @@ namespace Elab def expandOptDeclSig (stx : Syntax) : Syntax × Option Syntax := -- many Term.bracketedBinder >> Term.optType -let binders := stx.getArg 0; -let optType := stx.getArg 1; -- optional (parser! " : " >> termParser) +let binders := stx[0] +let optType := stx[1] -- optional (parser! " : " >> termParser) if optType.isNone then (binders, none) else - let typeSpec := optType.getArg 0; - (binders, some $ typeSpec.getArg 1) + let typeSpec := optType[0] + (binders, some typeSpec[1]) def expandDeclSig (stx : Syntax) : Syntax × Syntax := -- many Term.bracketedBinder >> Term.typeSpec -let binders := stx.getArg 0; -let typeSpec := stx.getArg 1; -(binders, typeSpec.getArg 1) +let binders := stx[0] +let typeSpec := stx[1] +(binders, typeSpec[1]) def mkFreshInstanceName (env : Environment) (nextIdx : Nat) : Name := (env.mainModule ++ `_instance).appendIndexAfter nextIdx @@ -73,11 +72,11 @@ match name with Remark: `explicitParams` are in reverse declaration order. That is, the head is the last declared parameter. -/ def sortDeclLevelParams (scopeParams : List Name) (allUserParams : List Name) (usedParams : Array Name) : Except String (List Name) := match allUserParams.find? $ fun u => !usedParams.contains u && !scopeParams.elem u with -| some u => throw ("unused universe parameter '" ++ toString u ++ "'") +| some u => throw s!"unused universe parameter '{u}'" | none => - let result := allUserParams.foldl (fun result levelName => if usedParams.elem levelName then levelName :: result else result) []; - let remaining := usedParams.filter (fun levelParam => !allUserParams.elem levelParam); - let remaining := remaining.qsort Name.lt; + let result := allUserParams.foldl (fun result levelName => if usedParams.elem levelName then levelName :: result else result) [] + let remaining := usedParams.filter (fun levelParam => !allUserParams.elem levelParam) + let remaining := remaining.qsort Name.lt pure $ result ++ remaining.toList end Elab diff --git a/stage0/src/Lean/Elab/Declaration.lean b/stage0/src/Lean/Elab/Declaration.lean index 9de9f9bd52..1101017977 100644 --- a/stage0/src/Lean/Elab/Declaration.lean +++ b/stage0/src/Lean/Elab/Declaration.lean @@ -9,21 +9,19 @@ import Lean.Elab.DefView import Lean.Elab.Inductive import Lean.Elab.Structure import Lean.Elab.MutualDef - -namespace Lean -namespace Elab -namespace Command +new_frontend +namespace Lean.Elab.Command open Meta /- Auxiliary function for `expandDeclNamespace?` -/ def expandDeclIdNamespace? (declId : Syntax) : Option (Name × Syntax) := -let (id, optUnivDeclStx) := expandDeclIdCore declId; -let scpView := extractMacroScopes id; +let (id, optUnivDeclStx) := expandDeclIdCore declId +let scpView := extractMacroScopes id match scpView.name with | Name.str Name.anonymous s _ => none | Name.str pre s _ => - let nameNew := { scpView with name := mkNameSimple s }.review; + let nameNew := { scpView with name := mkNameSimple s }.review if declId.isIdent then some (pre, mkIdentFrom declId nameNew) else @@ -34,8 +32,8 @@ match scpView.name with def expandDeclNamespace? (stx : Syntax) : Option (Name × Syntax) := if !stx.isOfKind `Lean.Parser.Command.declaration then none else - let decl := stx.getArg 1; - let k := decl.getKind; + let decl := stx[1] + let k := decl.getKind if k == `Lean.Parser.Command.abbrev || k == `Lean.Parser.Command.def || k == `Lean.Parser.Command.theorem || @@ -43,17 +41,17 @@ else k == `Lean.Parser.Command.axiom || k == `Lean.Parser.Command.inductive || k == `Lean.Parser.Command.structure then - match expandDeclIdNamespace? (decl.getArg 1) with + match expandDeclIdNamespace? decl[1] with | some (ns, declId) => some (ns, stx.setArg 1 (decl.setArg 1 declId)) | none => none else if k == `Lean.Parser.Command.instance then - let optDeclId := decl.getArg 1; + let optDeclId := decl[1] if optDeclId.isNone then none - else match expandDeclIdNamespace? (optDeclId.getArg 0) with + else match expandDeclIdNamespace? optDeclId[0] with | some (ns, declId) => some (ns, stx.setArg 1 (decl.setArg 1 (optDeclId.setArg 0 declId))) | none => none else if k == `Lean.Parser.Command.classInductive then - match expandDeclIdNamespace? (decl.getArg 2) with + match expandDeclIdNamespace? decl[2] with | some (ns, declId) => some (ns, stx.setArg 1 (decl.setArg 2 declId)) | none => none else @@ -61,31 +59,31 @@ else def elabAxiom (modifiers : Modifiers) (stx : Syntax) : CommandElabM Unit := do -- parser! "axiom " >> declId >> declSig -let declId := stx.getArg 1; -let (binders, typeStx) := expandDeclSig (stx.getArg 2); -scopeLevelNames ← getLevelNames; -⟨name, declName, allUserLevelNames⟩ ← expandDeclId declId modifiers; -runTermElabM declName $ fun vars => Term.withLevelNames allUserLevelNames $ Term.elabBinders binders.getArgs fun xs => do - Term.applyAttributesAt declName modifiers.attrs AttributeApplicationTime.beforeElaboration; - type ← Term.elabType typeStx; - Term.synthesizeSyntheticMVarsNoPostponing; - type ← instantiateMVars type; - type ← mkForallFVars xs type; - (type, _) ← mkForallUsedOnly vars type; - (type, _) ← Term.levelMVarToParam type; - let usedParams := (collectLevelParams {} type).params; +let declId := stx[1] +let (binders, typeStx) := expandDeclSig stx[2] +let scopeLevelNames ← getLevelNames +let ⟨name, declName, allUserLevelNames⟩ ← expandDeclId declId modifiers +runTermElabM declName fun vars => Term.withLevelNames allUserLevelNames $ Term.elabBinders binders.getArgs fun xs => do + Term.applyAttributesAt declName modifiers.attrs AttributeApplicationTime.beforeElaboration + let type ← Term.elabType typeStx + Term.synthesizeSyntheticMVarsNoPostponing + let type ← instantiateMVars type + let type ← mkForallFVars xs type + let (type, _) ← mkForallUsedOnly vars type + let (type, _) ← Term.levelMVarToParam type + let usedParams := collectLevelParams {} type $.params match sortDeclLevelParams scopeLevelNames allUserLevelNames usedParams with | Except.error msg => throwErrorAt stx msg - | Except.ok levelParams => do + | Except.ok levelParams => let decl := Declaration.axiomDecl { name := declName, lparams := levelParams, type := type, isUnsafe := modifiers.isUnsafe - }; - Term.ensureNoUnassignedMVars decl; - addDecl decl; - Term.applyAttributesAt declName modifiers.attrs AttributeApplicationTime.afterTypeChecking; + } + Term.ensureNoUnassignedMVars decl + addDecl decl + Term.applyAttributesAt declName modifiers.attrs AttributeApplicationTime.afterTypeChecking Term.applyAttributesAt declName modifiers.attrs AttributeApplicationTime.afterCompilation /- @@ -95,25 +93,24 @@ parser! try ("class " >> "inductive ") >> declId >> optDeclSig >> many ctor Remark: numTokens == 1 for regular `inductive` and 2 for `class inductive`. -/ private def inductiveSyntaxToView (modifiers : Modifiers) (decl : Syntax) (numTokens := 1) : CommandElabM InductiveView := do -checkValidInductiveModifier modifiers; -let (binders, type?) := expandOptDeclSig (decl.getArg (numTokens + 1)); -let declId := decl.getArg numTokens; -⟨name, declName, levelNames⟩ ← expandDeclId declId modifiers; -ctors ← (decl.getArg (numTokens + 2)).getArgs.mapM fun ctor => withRef ctor do { +checkValidInductiveModifier modifiers +let (binders, type?) := expandOptDeclSig decl[numTokens + 1] +let declId := decl[numTokens] +let ⟨name, declName, levelNames⟩ ← expandDeclId declId modifiers +let ctors ← decl[numTokens + 2].getArgs.mapM fun ctor => withRef ctor do -- def ctor := parser! " | " >> declModifiers >> ident >> optional inferMod >> optDeclSig - ctorModifiers ← elabModifiers (ctor.getArg 1); - when (ctorModifiers.isPrivate && modifiers.isPrivate) $ - throwError "invalid 'private' constructor in a 'private' inductive datatype"; - when (ctorModifiers.isProtected && modifiers.isPrivate) $ - throwError "invalid 'protected' constructor in a 'private' inductive datatype"; - checkValidCtorModifier ctorModifiers; - let ctorName := ctor.getIdAt 2; - let ctorName := declName ++ ctorName; - ctorName ← withRef (ctor.getArg 2) $ applyVisibility ctorModifiers.visibility ctorName; - let inferMod := !(ctor.getArg 3).isNone; - let (binders, type?) := expandOptDeclSig (ctor.getArg 4); + let ctorModifiers ← elabModifiers ctor[1] + if ctorModifiers.isPrivate && modifiers.isPrivate then + throwError "invalid 'private' constructor in a 'private' inductive datatype" + if ctorModifiers.isProtected && modifiers.isPrivate then + throwError "invalid 'protected' constructor in a 'private' inductive datatype" + checkValidCtorModifier ctorModifiers + let ctorName := ctor.getIdAt 2 + let ctorName := declName ++ ctorName + let ctorName ← withRef ctor[2] $ applyVisibility ctorModifiers.visibility ctorName + let inferMod := !ctor[3].isNone + let (binders, type?) := expandOptDeclSig ctor[4] pure { ref := ctor, modifiers := ctorModifiers, declName := ctorName, inferMod := inferMod, binders := binders, type? := type? : CtorView } -}; pure { ref := decl, modifiers := modifiers, @@ -129,60 +126,59 @@ private def classInductiveSyntaxToView (modifiers : Modifiers) (decl : Syntax) : inductiveSyntaxToView modifiers decl 2 def elabInductive (modifiers : Modifiers) (stx : Syntax) : CommandElabM Unit := do -v ← inductiveSyntaxToView modifiers stx; +let v ← inductiveSyntaxToView modifiers stx elabInductiveViews #[v] def elabClassInductive (modifiers : Modifiers) (stx : Syntax) : CommandElabM Unit := do -let modifiers := modifiers.addAttribute { name := `class }; -v ← classInductiveSyntaxToView modifiers stx; +let modifiers := modifiers.addAttribute { name := `class } +let v ← classInductiveSyntaxToView modifiers stx elabInductiveViews #[v] @[builtinCommandElab declaration] def elabDeclaration : CommandElab := fun stx => match expandDeclNamespace? stx with | some (ns, newStx) => do - let ns := mkIdentFrom stx ns; - newStx ← `(namespace $ns:ident $newStx end $ns:ident); + let ns := mkIdentFrom stx ns + let newStx ← `(namespace $ns:ident $newStx end $ns:ident) withMacroExpansion stx newStx $ elabCommand newStx | none => do - modifiers ← elabModifiers (stx.getArg 0); - let decl := stx.getArg 1; - let declKind := decl.getKind; - if declKind == `Lean.Parser.Command.axiom then + let modifiers ← elabModifiers stx[0] + let decl := stx[1] + let declKind := decl.getKind + if declKind == `Lean.Parser.Command.«axiom» then elabAxiom modifiers decl - else if declKind == `Lean.Parser.Command.inductive then + else if declKind == `Lean.Parser.Command.«inductive» then elabInductive modifiers decl else if declKind == `Lean.Parser.Command.classInductive then elabClassInductive modifiers decl - else if declKind == `Lean.Parser.Command.structure then + else if declKind == `Lean.Parser.Command.«structure» then elabStructure modifiers decl - else if isDefLike decl then do + else if isDefLike decl then elabMutualDef #[stx] else throwError "unexpected declaration" /- Return true if all elements of the mutual-block are inductive declarations. -/ private def isMutualInductive (stx : Syntax) : Bool := -(stx.getArg 1).getArgs.all $ fun elem => - let decl := elem.getArg 1; - let declKind := decl.getKind; +stx[1].getArgs.all fun elem => + let decl := elem[1] + let declKind := decl.getKind declKind == `Lean.Parser.Command.inductive private def elabMutualInductive (elems : Array Syntax) : CommandElabM Unit := do -views ← elems.mapM $ fun stx => do { - modifiers ← elabModifiers (stx.getArg 0); - inductiveSyntaxToView modifiers (stx.getArg 1) -}; +let views ← elems.mapM fun stx => do + let modifiers ← elabModifiers stx[0] + inductiveSyntaxToView modifiers stx[1] elabInductiveViews views /- Return true if all elements of the mutual-block are definitions/theorems/abbrevs. -/ private def isMutualDef (stx : Syntax) : Bool := -(stx.getArg 1).getArgs.all $ fun elem => - let decl := elem.getArg 1; +stx[1].getArgs.all fun elem => + let decl := elem[1] isDefLike decl private def isMutualPreambleCommand (stx : Syntax) : Bool := -let k := stx.getKind; +let k := stx.getKind k == `Lean.Parser.Command.variable || k == `Lean.Parser.Command.variables || k == `Lean.Parser.Command.universe || @@ -191,53 +187,48 @@ k == `Lean.Parser.Command.check || k == `Lean.Parser.Command.set_option || k == `Lean.Parser.Command.open -private partial def splitMutualPreamble (elems : Array Syntax) : Nat → Option (Array Syntax × Array Syntax) -| i => +private partial def splitMutualPreamble (elems : Array Syntax) : Option (Array Syntax × Array Syntax) := +let rec loop (i : Nat) : Option (Array Syntax × Array Syntax) := if h : i < elems.size then - let elem := elems.get ⟨i, h⟩; + let elem := elems.get ⟨i, h⟩ if isMutualPreambleCommand elem then - splitMutualPreamble (i+1) + loop (i+1) else if i == 0 then none -- `mutual` block does not contain any preamble commands else - some (elems.extract 0 i, elems.extract i elems.size) + some (elems[0:i], elems[i:elems.size]) else none -- a `mutual` block containing only preamble commands is not a valid `mutual` block +loop 0 @[builtinMacro Lean.Parser.Command.mutual] def expandMutualNamespace : Macro := fun stx => do - let elems := (stx.getArg 1).getArgs; - (ns?, elems) ← elems.foldlM - (fun (acc : Option Name × Array Syntax) (elem : Syntax) => - let (ns?, elems) := acc; - match ns?, expandDeclNamespace? elem with - | _, none => pure (ns?, elems.push elem) - | none, some (ns, elem) => pure (some ns, elems.push elem) - | some nsCurr, some (nsNew, elem) => - if nsCurr == nsNew then - pure (ns?, elems.push elem) - else - Macro.throwError elem - ("conflicting namespaces in mutual declaration, using namespace '" ++ toString nsNew ++ "', but used '" ++ toString nsCurr ++ "' in previous declaration")) - (none, #[]); + let ns? := none + let elemsNew := #[] + for elem in stx[1].getArgs do + match ns?, expandDeclNamespace? elem with + | _, none => elemsNew := elemsNew.push elem + | none, some (ns, elem) => ns? := some ns; elemsNew := elemsNew.push elem + | some nsCurr, some (nsNew, elem) => + if nsCurr == nsNew then + elemsNew := elemsNew.push elem + else + Macro.throwError elem s!"conflicting namespaces in mutual declaration, using namespace '{nsNew}', but used '{nsCurr}' in previous declaration" match ns? with | some ns => - let ns := mkIdentFrom stx ns; - let stxNew := stx.setArg 1 (mkNullNode elems); + let ns := mkIdentFrom stx ns + let stxNew := stx.setArg 1 (mkNullNode elemsNew) `(namespace $ns:ident $stxNew end $ns:ident) | none => Macro.throwUnsupported @[builtinMacro Lean.Parser.Command.mutual] def expandMutualElement : Macro := fun stx => do - let elems := (stx.getArg 1).getArgs; - (elemsNew, modified) ← elems.foldlM - (fun (acc : Array Syntax × Bool) elem => do - let (elemsNew, modified) := acc; - elem? ← expandMacro? elem; - match elem? with - | some elemNew => pure (elemsNew.push elemNew, true) - | none => pure (elemsNew.push elem, modified)) - (#[], false); + let elemsNew := #[] + let modified := false + for elem in stx[1].getArgs do + match (← expandMacro? elem) with + | some elemNew => elemsNew := elemsNew.push elemNew; modified := true + | none => elemsNew := elemsNew.push elem if modified then pure $ stx.setArg 1 (mkNullNode elemsNew) else @@ -245,45 +236,44 @@ fun stx => do @[builtinMacro Lean.Parser.Command.mutual] def expandMutualPreamble : Macro := fun stx => - match splitMutualPreamble (stx.getArg 1).getArgs 0 with + match splitMutualPreamble stx[1].getArgs with | none => Macro.throwUnsupported | some (preamble, rest) => do - secCmd ← `(section); - let newMutual := stx.setArg 1 (mkNullNode rest); - endCmd ← `(end); + let secCmd ← `(section) + let newMutual := stx.setArg 1 (mkNullNode rest) + let endCmd ← `(end) pure $ mkNullNode (#[secCmd] ++ preamble ++ #[newMutual] ++ #[endCmd]) @[builtinCommandElab «mutual»] def elabMutual : CommandElab := fun stx => do if isMutualInductive stx then - elabMutualInductive (stx.getArg 1).getArgs + elabMutualInductive stx[1].getArgs else if isMutualDef stx then - elabMutualDef (stx.getArg 1).getArgs + elabMutualDef stx[1].getArgs else throwError "invalid mutual block" /- parser! optional "local " >> "attribute " >> "[" >> sepBy1 Term.attrInstance ", " >> "]" >> many1 ident -/ @[builtinCommandElab «attribute»] def elabAttr : CommandElab := fun stx => do - let persistent := (stx.getArg 0).isNone; - attrs ← elabAttrs (stx.getArg 3); - let idents := (stx.getArg 5).getArgs; - idents.forM fun ident => withRef ident $ liftTermElabM none do - declName ← resolveGlobalConstNoOverload ident.getId; + let persistent := stx[0].isNone + let attrs ← elabAttrs stx[3] + let idents := stx[5].getArgs + for ident in idents do withRef ident $ liftTermElabM none do + let declName ← resolveGlobalConstNoOverload ident.getId Term.applyAttributes declName attrs persistent @[builtinMacro Lean.Parser.Command.«initialize»] def expandInitialize : Macro := fun stx => - let optHeader := stx.getArg 1; - let doSeq := stx.getArg 2; + let optHeader := stx[1] + let doSeq := stx[2] if optHeader.isNone then `(@[init]def initFn : IO Unit := do $doSeq) else - let id := optHeader.getArg 0; - let type := (optHeader.getArg 1).getArg 1; - `(def initFn : IO $type := do $doSeq @[init initFn]constant $id : $type) + let id := optHeader[0] + let type := optHeader[1][1] + `(def initFn : IO $type := do $doSeq + @[init initFn]constant $id : $type) -end Command -end Elab -end Lean +end Lean.Elab.Command diff --git a/stage0/src/Lean/Elab/Import.lean b/stage0/src/Lean/Elab/Import.lean index f30c0fc972..d3fe944fbd 100644 --- a/stage0/src/Lean/Elab/Import.lean +++ b/stage0/src/Lean/Elab/Import.lean @@ -4,47 +4,44 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ import Lean.Parser.Module - -namespace Lean -namespace Elab +new_frontend +namespace Lean.Elab def headerToImports (header : Syntax) : List Import := -let header := header.asNode; -let imports := if (header.getArg 0).isNone then [{ module := `Init : Import }] else []; -imports ++ (header.getArg 1).getArgs.toList.map (fun stx => +let imports := if header[0].isNone then [{ module := `Init : Import }] else [] +imports ++ header[1].getArgs.toList.map fun stx => -- `stx` is of the form `(Module.import "import" "runtime"? id) - let runtime := !(stx.getArg 1).isNone; - let id := stx.getIdAt 2; - { module := id, runtimeOnly := runtime }) + let runtime := !stx[1].isNone + let id := stx[2].getId + { module := id, runtimeOnly := runtime } -def processHeader (header : Syntax) (messages : MessageLog) (inputCtx : Parser.InputContext) (trustLevel : UInt32 := 0) : IO (Environment × MessageLog) := -catch - (do env ← importModules (headerToImports header) trustLevel; - pure (env, messages)) - (fun e => do - env ← mkEmptyEnvironment; - let spos := header.getPos.getD 0; - let pos := inputCtx.fileMap.toPosition spos; - pure (env, messages.add { fileName := inputCtx.fileName, data := toString e, pos := pos })) +def processHeader (header : Syntax) (messages : MessageLog) (inputCtx : Parser.InputContext) (trustLevel : UInt32 := 0) : IO (Environment × MessageLog) := do +try + let env ← importModules (headerToImports header) trustLevel + pure (env, messages) +catch e => + let env ← mkEmptyEnvironment + let spos := header.getPos.getD 0 + let pos := inputCtx.fileMap.toPosition spos + pure (env, messages.add { fileName := inputCtx.fileName, data := toString e, pos := pos }) def parseImports (input : String) (fileName : Option String := none) : IO (List Import × Position × MessageLog) := do -env ← mkEmptyEnvironment; -let fileName := fileName.getD ""; -let inputCtx := Parser.mkInputContext input fileName; +let env ← mkEmptyEnvironment +let fileName := fileName.getD "" +let inputCtx := Parser.mkInputContext input fileName match Parser.parseHeader env inputCtx with -| (header, parserState, messages) => do +| (header, parserState, messages) => pure (headerToImports header, inputCtx.fileMap.toPosition parserState.pos, messages) @[export lean_parse_imports] def parseImportsExport (input : String) (fileName : Option String) : IO (List Import × Position × List Message) := do -(imports, pos, log) ← parseImports input fileName; +let (imports, pos, log) ← parseImports input fileName pure (imports, pos, log.toList) @[export lean_print_deps] -def printDeps (deps : List Import) : IO Unit := -deps.forM $ fun dep => do - fname ← findOLean dep.module; +def printDeps (deps : List Import) : IO Unit := do +for dep in deps do + let fname ← findOLean dep.module; IO.println fname -end Elab -end Lean +end Lean.Elab diff --git a/stage0/src/Lean/Elab/LetRec.lean b/stage0/src/Lean/Elab/LetRec.lean index 14b4dd4cad..405cf6c9c7 100644 --- a/stage0/src/Lean/Elab/LetRec.lean +++ b/stage0/src/Lean/Elab/LetRec.lean @@ -7,11 +7,8 @@ import Lean.Elab.Attributes import Lean.Elab.Binders import Lean.Elab.DeclModifiers import Lean.Elab.SyntheticMVars - -namespace Lean -namespace Elab -namespace Term - +new_frontend +namespace Lean.Elab.Term open Meta structure LetRecDeclView := @@ -30,32 +27,31 @@ structure LetRecView := /- group ("let " >> nonReservedSymbol "rec ") >> sepBy1 (group (optional «attributes» >> letDecl)) ", " >> "; " >> termParser -/ private def mkLetRecDeclView (letRec : Syntax) : TermElabM LetRecView := do -decls ← (letRec.getArg 1).getSepArgs.mapM fun attrDeclStx => do { - let attrOptStx := attrDeclStx.getArg 0; - attrs ← if attrOptStx.isNone then pure #[] else elabDeclAttrs (attrOptStx.getArg 0); - let decl := (attrDeclStx.getArg 1).getArg 0; +let decls ← letRec[1].getSepArgs.mapM fun (attrDeclStx : Syntax) => do + let attrOptStx := attrDeclStx[0] + let attrs ← if attrOptStx.isNone then pure #[] else elabDeclAttrs attrOptStx[0] + let decl := attrDeclStx[1][0] if decl.isOfKind `Lean.Parser.Term.letPatDecl then throwErrorAt decl "patterns are not allowed in 'let rec' expressions" - else if decl.isOfKind `Lean.Parser.Term.letIdDecl || decl.isOfKind `Lean.Parser.Term.letEqnsDecl then do - let shortDeclName := decl.getIdAt 0; - currDeclName? ← getDeclName?; - let declName := currDeclName?.getD Name.anonymous ++ shortDeclName; - checkNotAlreadyDeclared declName; - applyAttributesAt declName attrs AttributeApplicationTime.beforeElaboration; - let binders := (decl.getArg 1).getArgs; - let typeStx := expandOptType decl (decl.getArg 2); - (type, numParams) ← elabBinders binders fun xs => do { - type ← elabType typeStx; - registerCustomErrorIfMVar type typeStx "failed to infer 'let rec' declaration type"; - type ← mkForallFVars xs type; + else if decl.isOfKind `Lean.Parser.Term.letIdDecl || decl.isOfKind `Lean.Parser.Term.letEqnsDecl then + let shortDeclName := decl[0].getId + let currDeclName? ← getDeclName? + let declName := currDeclName?.getD Name.anonymous ++ shortDeclName + checkNotAlreadyDeclared declName + applyAttributesAt declName attrs AttributeApplicationTime.beforeElaboration + let binders := decl[1].getArgs + let typeStx := expandOptType decl decl[2] + let (type, numParams) ← elabBinders binders fun xs => do + let type ← elabType typeStx + registerCustomErrorIfMVar type typeStx "failed to infer 'let rec' declaration type" + let type ← mkForallFVars xs type pure (type, xs.size) - }; - mvar ← mkFreshExprMVar type MetavarKind.syntheticOpaque; - valStx ← + let mvar ← mkFreshExprMVar type MetavarKind.syntheticOpaque + let valStx ← if decl.isOfKind `Lean.Parser.Term.letIdDecl then - pure $ decl.getArg 4 + pure decl[4] else - liftMacroM $ expandMatchAltsIntoMatch decl (decl.getArg 3); + liftMacroM $ expandMatchAltsIntoMatch decl decl[3] pure { ref := decl, attrs := attrs, @@ -68,58 +64,55 @@ decls ← (letRec.getArg 1).getSepArgs.mapM fun attrDeclStx => do { : LetRecDeclView } else throwUnsupportedSyntax -}; pure { decls := decls, - body := letRec.getArg 3 + body := letRec[3] } -private partial def withAuxLocalDeclsAux {α} (views : Array LetRecDeclView) (k : Array Expr → TermElabM α) : Nat → Array Expr → TermElabM α -| i, fvars => +private partial def withAuxLocalDecls {α} (views : Array LetRecDeclView) (k : Array Expr → TermElabM α) : TermElabM α := +let rec loop (i : Nat) (fvars : Array Expr) : TermElabM α := if h : i < views.size then - let view := views.get ⟨i, h⟩; - withLetDecl view.shortDeclName view.type view.mvar fun fvar => withAuxLocalDeclsAux (i+1) (fvars.push fvar) + let view := views.get ⟨i, h⟩ + withLetDecl view.shortDeclName view.type view.mvar fun fvar => loop (i+1) (fvars.push fvar) else k fvars - -private def withAuxLocalDecls {α} (views : Array LetRecDeclView) (k : Array Expr → TermElabM α) : TermElabM α := -withAuxLocalDeclsAux views k 0 #[] +loop 0 #[] private def elabLetRecDeclValues (view : LetRecView) : TermElabM (Array Expr) := view.decls.mapM fun view => do forallBoundedTelescope view.type view.numParams fun xs type => withDeclName view.declName do - value ← elabTermEnsuringType view.valStx type; + let value ← elabTermEnsuringType view.valStx type mkLambdaFVars xs value private def abortIfContainsSyntheticSorry (e : Expr) : TermElabM Unit := do -e ← instantiateMVars e; -when e.hasSyntheticSorry $ throwAbort +let e ← instantiateMVars e +if e.hasSyntheticSorry then throwAbort private def registerLetRecsToLift (views : Array LetRecDeclView) (fvars : Array Expr) (values : Array Expr) : TermElabM Unit := do -lctx ← getLCtx; -localInsts ← getLocalInstances; +let lctx ← getLCtx +let localInsts ← getLocalInstances let toLift := views.mapIdx fun i view => { ref := view.ref, - fvarId := (fvars.get! i).fvarId!, + fvarId := fvars[i].fvarId!, attrs := view.attrs, shortDeclName := view.shortDeclName, declName := view.declName, lctx := lctx, localInstances := localInsts, type := view.type, - val := values.get! i, + val := values[i], mvarId := view.mvar.mvarId! - : LetRecToLift }; + : LetRecToLift } modify fun s => { s with letRecsToLift := toLift.toList ++ s.letRecsToLift } @[builtinTermElab «letrec»] def elabLetRec : TermElab := fun stx expectedType? => do - view ← mkLetRecDeclView stx; + let view ← mkLetRecDeclView stx withAuxLocalDecls view.decls fun fvars => do - values ← elabLetRecDeclValues view; - body ← elabTermEnsuringType view.body expectedType?; - registerLetRecsToLift view.decls fvars values; + let values ← elabLetRecDeclValues view + let body ← elabTermEnsuringType view.body expectedType? + registerLetRecsToLift view.decls fvars values mkLetFVars fvars body end Term diff --git a/stage0/src/Lean/Elab/Print.lean b/stage0/src/Lean/Elab/Print.lean index 85b1155979..36c98f7d81 100644 --- a/stage0/src/Lean/Elab/Print.lean +++ b/stage0/src/Lean/Elab/Print.lean @@ -73,7 +73,7 @@ cs.forM printIdCore fun stx => let numArgs := stx.getNumArgs if numArgs == 2 then - let arg := stx.getArg 1 + let arg := stx[1] if arg.isIdent then printId arg.getId else match arg.isStrLit? with @@ -120,7 +120,7 @@ else @[builtinCommandElab «printAxioms»] def elabPrintAxioms : CommandElab := fun stx => do - let id := (stx.getArg 2).getId + let id := stx[2].getId let cs ← resolveGlobalConst id cs.forM printAxiomsOf diff --git a/stage0/src/Lean/Elab/Syntax.lean b/stage0/src/Lean/Elab/Syntax.lean index 611ba89386..38d520807c 100644 --- a/stage0/src/Lean/Elab/Syntax.lean +++ b/stage0/src/Lean/Elab/Syntax.lean @@ -5,13 +5,8 @@ Authors: Leonardo de Moura -/ import Lean.Elab.Command import Lean.Elab.Quotation - -namespace Lean -namespace Elab -open MonadResolveName (getCurrNamespace getOpenDecls) -- HACK for old frontend - -namespace Term - +new_frontend +namespace Lean.Elab.Term /- Expand `optional «precedence»` where «precedence» := parser! " : " >> precedenceLit @@ -19,17 +14,20 @@ Expand `optional «precedence»` where maxSymbol := parser! nonReservedSymbol "max" -/ def expandOptPrecedence (stx : Syntax) : Option Nat := if stx.isNone then none -else match ((stx.getArg 0).getArg 1).isNatLit? with +else match stx[0][1].isNatLit? with | some v => some v | _ => some Parser.maxPrec -private def mkParserSeq (ds : Array Syntax) : TermElabM Syntax := +private def mkParserSeq (ds : Array Syntax) : TermElabM Syntax := do if ds.size == 0 then throwUnsupportedSyntax else if ds.size == 1 then - pure $ ds.get! 0 + pure ds[0] else - ds.foldlFromM (fun r d => `(ParserDescr.andthen $r $d)) (ds.get! 0) 1 + let r := ds[0] + for d in ds[1:ds.size] do + r ← `(ParserDescr.andthen $r $d) + return r structure ToParserDescrContext := (catName : Name) @@ -50,15 +48,15 @@ withReader (fun ctx => { ctx with first := false }) x withReader (fun ctx => { ctx with leftRec := false }) x def checkLeftRec (stx : Syntax) : ToParserDescrM Bool := do -ctx ← read; -if ctx.first && stx.getKind == `Lean.Parser.Syntax.cat then do - let cat := (stx.getIdAt 0).eraseMacroScopes; - if cat == ctx.catName then do - let prec? : Option Nat := expandOptPrecedence (stx.getArg 1); - unless prec?.isNone $ throwErrorAt (stx.getArg 1) ("invalid occurrence of ':' modifier in head"); - unless ctx.leftRec $ - throwErrorAt (stx.getArg 3) ("invalid occurrence of '" ++ cat ++ "', parser algorithm does not allow this form of left recursion"); - markAsTrailingParser; -- mark as trailing par +let ctx ← read +if ctx.first && stx.getKind == `Lean.Parser.Syntax.cat then + let cat := stx[0].getId.eraseMacroScopes + if cat == ctx.catName then + let prec? : Option Nat := expandOptPrecedence stx[1] + unless prec?.isNone do throwErrorAt stx[1] ("invalid occurrence of ':' modifier in head") + unless ctx.leftRec do + throwErrorAt! stx[3] "invalid occurrence of '{cat}', parser algorithm does not allow this form of left recursion" + markAsTrailingParser -- mark as trailing par pure true else pure false @@ -66,37 +64,36 @@ else pure false partial def toParserDescrAux : Syntax → ToParserDescrM Syntax -| stx => - let kind := stx.getKind; - if kind == nullKind then do - let args := stx.getArgs; - condM (checkLeftRec (stx.getArg 0)) - (do - when (args.size == 1) $ throwErrorAt stx "invalid atomic left recursive syntax"; - let args := args.eraseIdx 0; - args ← args.mapIdxM $ fun i arg => withNotFirst $ toParserDescrAux arg; - liftM $ mkParserSeq args) - (do - args ← args.mapIdxM $ fun i arg => withNotFirst $ toParserDescrAux arg; - liftM $ mkParserSeq args) - else if kind == choiceKind then do - toParserDescrAux (stx.getArg 0) +| stx => do + let kind := stx.getKind + if kind == nullKind then + let args := stx.getArgs + if (← checkLeftRec stx[0]) then + if args.size == 1 then throwErrorAt stx "invalid atomic left recursive syntax" + let args := args.eraseIdx 0 + let args ← args.mapIdxM fun i arg => withNotFirst $ toParserDescrAux arg + mkParserSeq args + else + let args ← args.mapIdxM fun i arg => withNotFirst $ toParserDescrAux arg + mkParserSeq args + else if kind == choiceKind then + toParserDescrAux stx[0] else if kind == `Lean.Parser.Syntax.paren then - toParserDescrAux (stx.getArg 1) - else if kind == `Lean.Parser.Syntax.cat then do - let cat := (stx.getIdAt 0).eraseMacroScopes; - ctx ← read; + toParserDescrAux stx[1] + else if kind == `Lean.Parser.Syntax.cat then + let cat := stx[0].getId.eraseMacroScopes + let ctx ← read if ctx.first && cat == ctx.catName then throwErrorAt stx "invalid atomic left recursive syntax" - else do - let prec? : Option Nat := expandOptPrecedence (stx.getArg 1); - env ← getEnv; + else + let prec? : Option Nat := expandOptPrecedence stx[1] + let env ← getEnv if Parser.isParserCategory env cat then - let prec := prec?.getD 0; + let prec := prec?.getD 0 `(ParserDescr.cat $(quote cat) $(quote prec)) - else do + else -- `cat` is not a valid category name. Thus, we test whether it is a valid constant - candidates ← resolveGlobalConst cat; + let candidates ← resolveGlobalConst cat let candidates := candidates.filter fun c => match env.find? c with | none => false @@ -106,18 +103,17 @@ partial def toParserDescrAux : Syntax → ToParserDescrM Syntax | Expr.const `Lean.Parser.Parser _ _ => true | Expr.const `Lean.ParserDescr _ _ => true | Expr.const `Lean.TrailingParserDescr _ _ => true - | _ => false; + | _ => false match candidates with - | [] => throwErrorAt (stx.getArg 3) ("unknown category '" ++ cat ++ "' or parser declaration") - | [c] => do - unless prec?.isNone $ throwErrorAt (stx.getArg 3) "unexpected precedence"; + | [] => throwErrorAt! stx[3] "unknown category '{cat}' or parser declaration" + | [c] => + unless prec?.isNone do throwErrorAt stx[3] "unexpected precedence" `(ParserDescr.parser $(quote c)) - | cs => throwErrorAt (stx.getArg 3) ("ambiguous parser declaration " ++ toString cs) - else if kind == `Lean.Parser.Syntax.atom then do - match (stx.getArg 0).isStrLit? with - | some atom => do - ctx ← read; - if ctx.leadingIdentAsSymbol then + | cs => throwErrorAt! stx[3] "ambiguous parser declaration {cs}" + else if kind == `Lean.Parser.Syntax.atom then + match stx[0].isStrLit? with + | some atom => + if (← read).leadingIdentAsSymbol then `(ParserDescr.nonReservedSymbol $(quote atom) false) else `(ParserDescr.symbol $(quote atom)) @@ -132,52 +128,52 @@ partial def toParserDescrAux : Syntax → ToParserDescrM Syntax `(ParserDescr.ident) else if kind == `Lean.Parser.Syntax.noWs then `(ParserDescr.noWs) - else if kind == `Lean.Parser.Syntax.try then do - d ← withoutLeftRec $ toParserDescrAux (stx.getArg 1); + else if kind == `Lean.Parser.Syntax.try then + let d ← withoutLeftRec $ toParserDescrAux stx[1] `(ParserDescr.try $d) - else if kind == `Lean.Parser.Syntax.notFollowedBy then do - d ← withoutLeftRec $ toParserDescrAux (stx.getArg 1); + else if kind == `Lean.Parser.Syntax.notFollowedBy then + let d ← withoutLeftRec $ toParserDescrAux stx[1] `(ParserDescr.notFollowedBy $d) - else if kind == `Lean.Parser.Syntax.lookahead then do - d ← withoutLeftRec $ toParserDescrAux (stx.getArg 1); + else if kind == `Lean.Parser.Syntax.lookahead then + let d ← withoutLeftRec $ toParserDescrAux stx[1] `(ParserDescr.lookahead $d) - else if kind == `Lean.Parser.Syntax.interpolatedStr then do - d ← withoutLeftRec $ toParserDescrAux (stx.getArg 1); + else if kind == `Lean.Parser.Syntax.interpolatedStr then + let d ← withoutLeftRec $ toParserDescrAux stx[1] `(ParserDescr.interpolatedStr $d) - else if kind == `Lean.Parser.Syntax.sepBy then do - d₁ ← withoutLeftRec $ toParserDescrAux (stx.getArg 1); - d₂ ← withoutLeftRec $ toParserDescrAux (stx.getArg 2); + else if kind == `Lean.Parser.Syntax.sepBy then + let d₁ ← withoutLeftRec $ toParserDescrAux stx[1] + let d₂ ← withoutLeftRec $ toParserDescrAux stx[2] `(ParserDescr.sepBy $d₁ $d₂) - else if kind == `Lean.Parser.Syntax.sepBy1 then do - d₁ ← withoutLeftRec $ toParserDescrAux (stx.getArg 1); - d₂ ← withoutLeftRec $ toParserDescrAux (stx.getArg 2); + else if kind == `Lean.Parser.Syntax.sepBy1 then + let d₁ ← withoutLeftRec $ toParserDescrAux stx[1] + let d₂ ← withoutLeftRec $ toParserDescrAux stx[2] `(ParserDescr.sepBy1 $d₁ $d₂) - else if kind == `Lean.Parser.Syntax.many then do - d ← withoutLeftRec $ toParserDescrAux (stx.getArg 0); + else if kind == `Lean.Parser.Syntax.many then + let d ← withoutLeftRec $ toParserDescrAux stx[0] `(ParserDescr.many $d) - else if kind == `Lean.Parser.Syntax.many1 then do - d ← withoutLeftRec $ toParserDescrAux (stx.getArg 0); + else if kind == `Lean.Parser.Syntax.many1 then + let d ← withoutLeftRec $ toParserDescrAux stx[0] `(ParserDescr.many1 $d) - else if kind == `Lean.Parser.Syntax.optional then do - d ← withoutLeftRec $ toParserDescrAux (stx.getArg 0); + else if kind == `Lean.Parser.Syntax.optional then + let d ← withoutLeftRec $ toParserDescrAux stx[0] `(ParserDescr.optional $d) - else if kind == `Lean.Parser.Syntax.orelse then do - d₁ ← withoutLeftRec $ toParserDescrAux (stx.getArg 0); - d₂ ← withoutLeftRec $ toParserDescrAux (stx.getArg 2); + else if kind == `Lean.Parser.Syntax.orelse then + let d₁ ← withoutLeftRec $ toParserDescrAux stx[0] + let d₂ ← withoutLeftRec $ toParserDescrAux stx[2] `(ParserDescr.orelse $d₁ $d₂) - else do - stxNew? ← liftM (liftMacroM (expandMacro? stx) : TermElabM _); + else + let stxNew? ← liftM (liftMacroM (expandMacro? stx) : TermElabM _) match stxNew? with | some stxNew => toParserDescrAux stxNew - | none => throwErrorAt stx $ "unexpected syntax kind of category `syntax`: " ++ kind + | none => throwErrorAt! stx "unexpected syntax kind of category `syntax`: {kind}" /-- Given a `stx` of category `syntax`, return a pair `(newStx, trailingParser)`, where `newStx` is of category `term`. After elaboration, `newStx` should have type `TrailingParserDescr` if `trailingParser == true`, and `ParserDescr` otherwise. -/ def toParserDescr (stx : Syntax) (catName : Name) : TermElabM (Syntax × Bool) := do -env ← getEnv; -let leadingIdentAsSymbol := Parser.leadingIdentAsSymbol env catName; +let env ← getEnv +let leadingIdentAsSymbol := Parser.leadingIdentAsSymbol env catName (toParserDescrAux stx { catName := catName, first := true, leftRec := true, leadingIdentAsSymbol := leadingIdentAsSymbol }).run false end Term @@ -190,55 +186,59 @@ match catName with | _ => unreachable! private def declareSyntaxCatQuotParser (catName : Name) : CommandElabM Unit := do -let quotSymbol := "`(" ++ getCatSuffix catName ++ "|"; -let kind := catName ++ `quot; -cmd ← `(@[termParser] def $(mkIdent kind) : Lean.ParserDescr := Lean.ParserDescr.node $(quote kind) $(quote Lean.Parser.maxPrec) (Lean.ParserDescr.andthen (Lean.ParserDescr.symbol $(quote quotSymbol)) (Lean.ParserDescr.andthen (Lean.ParserDescr.cat $(quote catName) 0) (Lean.ParserDescr.symbol ")")))); +let quotSymbol := "`(" ++ getCatSuffix catName ++ "|" +let kind := catName ++ `quot +let cmd ← `( + @[termParser] def $(mkIdent kind) : Lean.ParserDescr := + Lean.ParserDescr.node $(quote kind) $(quote Lean.Parser.maxPrec) + (Lean.ParserDescr.andthen (Lean.ParserDescr.symbol $(quote quotSymbol)) + (Lean.ParserDescr.andthen (Lean.ParserDescr.cat $(quote catName) 0) (Lean.ParserDescr.symbol ")")))) elabCommand cmd @[builtinCommandElab syntaxCat] def elabDeclareSyntaxCat : CommandElab := fun stx => do - let catName := stx.getIdAt 1; - let attrName := catName.appendAfter "Parser"; - env ← getEnv; - env ← liftIO $ Parser.registerParserCategory env attrName catName; - setEnv env; + let catName := stx[1].getId + let attrName := catName.appendAfter "Parser" + let env ← getEnv + let env ← liftIO $ Parser.registerParserCategory env attrName catName + setEnv env declareSyntaxCatQuotParser catName def mkKindName (catName : Name) : Name := `_kind ++ catName def mkFreshKind (catName : Name) : CommandElabM Name := do -scp ← getCurrMacroScope; -mainModule ← getMainModule; +let scp ← getCurrMacroScope +let mainModule ← getMainModule pure $ Lean.addMacroScope mainModule (mkKindName catName) scp def Macro.mkFreshKind (catName : Name) : MacroM Name := Macro.addMacroScope (mkKindName catName) def mkKind (stx : Syntax) : CommandElabM Name := do -let kind := stx.getId; +let kind := stx.getId if kind.hasMacroScopes then pure kind -else do - currNamespace ← getCurrNamespace; +else + let currNamespace ← getCurrNamespace pure (currNamespace ++ kind) private def elabKindPrio (stx : Syntax) (catName : Name) : CommandElabM (Name × Nat) := do -if stx.isNone then do - k ← mkFreshKind catName; +if stx.isNone then + let k ← mkFreshKind catName pure (k, 0) else - let arg := stx.getArg 1; - if arg.getKind == `Lean.Parser.Command.parserKind then do - k ← mkKind (arg.getArg 0); + let arg := stx[1] + if arg.getKind == `Lean.Parser.Command.parserKind then + let k ← mkKind arg[0] pure (k, 0) - else if arg.getKind == `Lean.Parser.Command.parserPrio then do - k ← mkFreshKind catName; - let prio := (arg.getArg 0).isNatLit?.getD 0; + else if arg.getKind == `Lean.Parser.Command.parserPrio then + let k ← mkFreshKind catName + let prio := arg[0].isNatLit?.getD 0 pure (k, prio) - else if arg.getKind == `Lean.Parser.Command.parserKindPrio then do - k ← mkKind (arg.getArg 0); - let prio := (arg.getArg 2).isNatLit?.getD 0; + else if arg.getKind == `Lean.Parser.Command.parserKindPrio then + let k ← mkKind arg[0] + let prio := arg[2].isNatLit?.getD 0 pure (k, prio) else throwError "unexpected syntax kind/priority" @@ -253,13 +253,13 @@ else -/ private partial def isAtomLikeSyntax : Syntax → Bool | stx => - let kind := stx.getKind; + let kind := stx.getKind if kind == nullKind then - isAtomLikeSyntax (stx.getArg 0) && isAtomLikeSyntax (stx.getArg (stx.getNumArgs - 1)) + isAtomLikeSyntax stx[0] && isAtomLikeSyntax stx[stx.getNumArgs - 1] else if kind == choiceKind then - isAtomLikeSyntax (stx.getArg 0) -- see toParserDescrAux + isAtomLikeSyntax stx[0] -- see toParserDescrAux else if kind == `Lean.Parser.Syntax.paren then - isAtomLikeSyntax (stx.getArg 1) + isAtomLikeSyntax stx[1] else kind == `Lean.Parser.Syntax.atom @@ -268,22 +268,24 @@ def «syntax» := parser! "syntax " >> optPrecedence >> optKindPrio >> many -/ @[builtinCommandElab «syntax»] def elabSyntax : CommandElab := fun stx => do - env ← getEnv; - let cat := (stx.getIdAt 5).eraseMacroScopes; - unless (Parser.isParserCategory env cat) $ throwErrorAt (stx.getArg 5) ("unknown category '" ++ cat ++ "'"); - let syntaxParser := stx.getArg 3; + let env ← getEnv + let cat := stx[5].getId.eraseMacroScopes + unless (Parser.isParserCategory env cat) do throwErrorAt stx[5] ("unknown category '" ++ cat ++ "'") + let syntaxParser := stx[3] -- If the user did not provide an explicit precedence, we assign `maxPrec` to atom-like syntax and `leadPrec` otherwise. - let precDefault := if isAtomLikeSyntax syntaxParser then Parser.maxPrec else Parser.leadPrec; - let prec := (Term.expandOptPrecedence (stx.getArg 1)).getD precDefault; - (kind, prio) ← elabKindPrio (stx.getArg 2) cat; - let catParserId := mkIdentFrom stx (cat.appendAfter "Parser"); - (val, trailingParser) ← runTermElabM none $ fun _ => Term.toParserDescr syntaxParser cat; - d ← + let precDefault := if isAtomLikeSyntax syntaxParser then Parser.maxPrec else Parser.leadPrec + let prec := (Term.expandOptPrecedence stx[1]).getD precDefault + let (kind, prio) ← elabKindPrio stx[2] cat + let catParserId := mkIdentFrom stx (cat.appendAfter "Parser") + let (val, trailingParser) ← runTermElabM none fun _ => Term.toParserDescr syntaxParser cat + let d ← if trailingParser then - `(@[$catParserId:ident $(quote prio):numLit] def $(mkIdentFrom stx kind) : Lean.TrailingParserDescr := ParserDescr.trailingNode $(quote kind) $(quote prec) $val) + `(@[$catParserId:ident $(quote prio):numLit] def $(mkIdentFrom stx kind) : Lean.TrailingParserDescr := + ParserDescr.trailingNode $(quote kind) $(quote prec) $val) else - `(@[$catParserId:ident $(quote prio):numLit] def $(mkIdentFrom stx kind) : Lean.ParserDescr := ParserDescr.node $(quote kind) $(quote prec) $val); - trace `Elab fun _ => d; + `(@[$catParserId:ident $(quote prio):numLit] def $(mkIdentFrom stx kind) : Lean.ParserDescr := + ParserDescr.node $(quote kind) $(quote prec) $val) + trace `Elab fun _ => d withMacroExpansion stx d $ elabCommand d /- @@ -291,50 +293,50 @@ def syntaxAbbrev := parser! "syntax " >> ident >> " := " >> many1 syntaxParser -/ @[builtinCommandElab «syntaxAbbrev»] def elabSyntaxAbbrev : CommandElab := fun stx => do - let declName := stx.getArg 1; - (val, _) ← runTermElabM none $ fun _ => Term.toParserDescr (stx.getArg 3) Name.anonymous; - stx' ← `(def $declName : Lean.ParserDescr := $val); + let declName := stx[1] + let (val, _) ← runTermElabM none $ fun _ => Term.toParserDescr stx[3] Name.anonymous + let stx' ← `(def $declName : Lean.ParserDescr := $val) withMacroExpansion stx stx' $ elabCommand stx' def elabMacroRulesAux (k : SyntaxNodeKind) (alts : Array Syntax) : CommandElabM Syntax := do -alts ← alts.mapSepElemsM $ fun alt => do { - let lhs := alt.getArg 0; - let pat := lhs.getArg 0; - when (!pat.isQuot) $ - throwUnsupportedSyntax; - let quot := pat.getArg 1; - let k' := quot.getKind; +alts ← alts.mapSepElemsM fun alt => do + let lhs := alt[0] + let pat := lhs[0] + if !pat.isQuot then + throwUnsupportedSyntax + let quot := pat[1] + let k' := quot.getKind if k' == k then pure alt - else if k' == choiceKind then do - match quot.getArgs.find? $ fun quotAlt => quotAlt.getKind == k with - | none => throwErrorAt alt ("invalid macro_rules alternative, expected syntax node kind '" ++ k ++ "'") - | some quot => do - let pat := pat.setArg 1 quot; - let lhs := lhs.setArg 0 pat; + else if k' == choiceKind then + match quot.getArgs.find? fun quotAlt => quotAlt.getKind == k with + | none => throwErrorAt! alt "invalid macro_rules alternative, expected syntax node kind '{k}'" + | some quot => + let pat := pat.setArg 1 quot + let lhs := lhs.setArg 0 pat pure $ alt.setArg 0 lhs else - throwErrorAt alt ("invalid macro_rules alternative, unexpected syntax node kind '" ++ k' ++ "'") -}; -`(@[macro $(Lean.mkIdent k)] def myMacro : Macro := fun stx => match_syntax stx with $alts:matchAlt* | _ => throw Lean.Macro.Exception.unsupportedSyntax) + throwErrorAt! alt "invalid macro_rules alternative, unexpected syntax node kind '{k'}'" +`(@[macro $(Lean.mkIdent k)] def myMacro : Macro := + fun stx => match_syntax stx with $alts:matchAlt* | _ => throw Lean.Macro.Exception.unsupportedSyntax) def inferMacroRulesAltKind (alt : Syntax) : CommandElabM SyntaxNodeKind := do -let lhs := alt.getArg 0; -let pat := lhs.getArg 0; -when (!pat.isQuot) $ - throwUnsupportedSyntax; -let quot := pat.getArg 1; +let lhs := alt[0] +let pat := lhs[0] +if !pat.isQuot then + throwUnsupportedSyntax +let quot := pat[1] pure quot.getKind def elabNoKindMacroRulesAux (alts : Array Syntax) : CommandElabM Syntax := do -k ← inferMacroRulesAltKind (alts.get! 0); +let k ← inferMacroRulesAltKind (alts.get! 0) if k == choiceKind then - throwErrorAt (alts.get! 0) + throwErrorAt! alts[0] "invalid macro_rules alternative, multiple interpretations for pattern (solution: specify node kind using `macro_rules [] ...`)" -else do - altsK ← alts.filterSepElemsM (fun alt => do k' ← inferMacroRulesAltKind alt; pure $ k == k'); - altsNotK ← alts.filterSepElemsM (fun alt => do k' ← inferMacroRulesAltKind alt; pure $ k != k'); - defCmd ← elabMacroRulesAux k altsK; +else + let altsK ← alts.filterSepElemsM fun alt => do pure $ k == (← inferMacroRulesAltKind alt) + let altsNotK ← alts.filterSepElemsM fun alt => do pure $ k != (← inferMacroRulesAltKind alt) + let defCmd ← elabMacroRulesAux k altsK if altsNotK.isEmpty then pure defCmd else @@ -344,8 +346,8 @@ else do adaptExpander $ fun stx => match_syntax stx with | `(macro_rules $alts:matchAlt*) => elabNoKindMacroRulesAux alts | `(macro_rules | $alts:matchAlt*) => elabNoKindMacroRulesAux alts -| `(macro_rules [$kind] $alts:matchAlt*) => do k ← mkKind kind; elabMacroRulesAux k alts -| `(macro_rules [$kind] | $alts:matchAlt*) => do k ← mkKind kind; elabMacroRulesAux k alts +| `(macro_rules [$kind] $alts:matchAlt*) => do elabMacroRulesAux (← mkKind kind) alts +| `(macro_rules [$kind] | $alts:matchAlt*) => do elabMacroRulesAux (← mkKind kind) alts | _ => throwUnsupportedSyntax @[builtinMacro Lean.Parser.Command.mixfix] def expandMixfix : Macro := @@ -366,16 +368,16 @@ private partial def antiquote (vars : Array Syntax) : Syntax → Syntax else stx | _ => match stx with - | Syntax.node k args => Syntax.node k (args.map antiquote) + | Syntax.node k args => Syntax.node k (args.map (antiquote vars)) | stx => stx /- Convert `notation` command lhs item into a `syntax` command item -/ def expandNotationItemIntoSyntaxItem (stx : Syntax) : MacroM Syntax := -let k := stx.getKind; +let k := stx.getKind if k == `Lean.Parser.Command.identPrec then - pure $ Syntax.node `Lean.Parser.Syntax.cat #[mkIdentFrom stx `term, stx.getArg 1] + pure $ Syntax.node `Lean.Parser.Syntax.cat #[mkIdentFrom stx `term, stx[1]] else if k == quotedSymbolKind then - match stx.getArg 1 with + match stx[1] with | Syntax.atom info val => pure $ Syntax.node `Lean.Parser.Syntax.atom #[mkStxStrLit val info] | _ => Macro.throwUnsupported else if k == strLitKind then @@ -390,28 +392,28 @@ match stx.isStrLit? with /- Convert `notation` command lhs item a pattern element -/ def expandNotationItemIntoPattern (stx : Syntax) : MacroM Syntax := -let k := stx.getKind; +let k := stx.getKind if k == `Lean.Parser.Command.identPrec then - let item := stx.getArg 0; + let item := stx[0] pure $ mkNode `antiquot #[mkAtom "$", mkNullNode, item, mkNullNode, mkNullNode] else if k == quotedSymbolKind then - pure $ stx.getArg 1 + pure stx[1] else if k == strLitKind then strLitToPattern stx else Macro.throwUnsupported private def expandNotationAux (ref : Syntax) (prec? : Option Syntax) (items : Array Syntax) (rhs : Syntax) : MacroM Syntax := do -kind ← Macro.mkFreshKind `term; +let kind ← Macro.mkFreshKind `term -- build parser -syntaxParts ← items.mapM expandNotationItemIntoSyntaxItem; -let cat := mkIdentFrom ref `term; +let syntaxParts ← items.mapM expandNotationItemIntoSyntaxItem +let cat := mkIdentFrom ref `term -- build macro rules -let vars := items.filter $ fun item => item.getKind == `Lean.Parser.Command.identPrec; -let vars := vars.map $ fun var => var.getArg 0; -let rhs := antiquote vars rhs; -patArgs ← items.mapM expandNotationItemIntoPattern; -let pat := Syntax.node kind patArgs; +let vars := items.filter fun item => item.getKind == `Lean.Parser.Command.identPrec +let vars := vars.map fun var => var[0] +let rhs := antiquote vars rhs +let patArgs ← items.mapM expandNotationItemIntoPattern +let pat := Syntax.node kind patArgs match prec? with | none => `(syntax [$(mkIdentFrom ref kind):ident] $syntaxParts* : $cat macro_rules | `($pat) => `($rhs)) | some prec => `(syntax:$prec [$(mkIdentFrom ref kind):ident] $syntaxParts* : $cat macro_rules | `($pat) => `($rhs)) @@ -425,9 +427,9 @@ match_syntax stx with /- Convert `macro` argument into a `syntax` command item -/ def expandMacroArgIntoSyntaxItem (stx : Syntax) : MacroM Syntax := -let k := stx.getKind; +let k := stx.getKind if k == `Lean.Parser.Command.macroArgSimple then - pure $ stx.getArg 2 + pure stx[2] else if k == strLitKind then pure $ Syntax.node `Lean.Parser.Syntax.atom #[stx] else @@ -436,17 +438,17 @@ else /- Convert `macro` head into a `syntax` command item -/ def expandMacroHeadIntoSyntaxItem (stx : Syntax) : MacroM Syntax := if stx.isIdent then - let info := stx.getHeadInfo.getD {}; - let id := stx.getId; + let info := stx.getHeadInfo.getD {} + let id := stx.getId pure $ Syntax.node `Lean.Parser.Syntax.atom #[mkStxStrLit (toString id) info] else expandMacroArgIntoSyntaxItem stx /- Convert `macro` arg into a pattern element -/ def expandMacroArgIntoPattern (stx : Syntax) : MacroM Syntax := -let k := stx.getKind; +let k := stx.getKind if k == `Lean.Parser.Command.macroArgSimple then - let item := stx.getArg 0; + let item := stx[0] pure $ mkNode `antiquot #[mkAtom "$", mkNullNode, item, mkNullNode, mkNullNode] else if k == strLitKind then strLitToPattern stx @@ -462,36 +464,38 @@ else @[builtinMacro Lean.Parser.Command.macro] def expandMacro : Macro := fun stx => do - let prec := (stx.getArg 1).getArgs; - let head := stx.getArg 2; - let args := (stx.getArg 3).getArgs; - let cat := stx.getArg 5; - kind ← Macro.mkFreshKind (cat.getId).eraseMacroScopes; + let prec := stx[1].getArgs + let head := stx[2] + let args := stx[3].getArgs + let cat := stx[5] + let kind ← Macro.mkFreshKind (cat.getId).eraseMacroScopes -- build parser - stxPart ← expandMacroHeadIntoSyntaxItem head; - stxParts ← args.mapM expandMacroArgIntoSyntaxItem; - let stxParts := #[stxPart] ++ stxParts; + let stxPart ← expandMacroHeadIntoSyntaxItem head + let stxParts ← args.mapM expandMacroArgIntoSyntaxItem + let stxParts := #[stxPart] ++ stxParts -- build macro rules - patHead ← expandMacroHeadIntoPattern head; - patArgs ← args.mapM expandMacroArgIntoPattern; - let pat := Syntax.node kind (#[patHead] ++ patArgs); + let patHead ← expandMacroHeadIntoPattern head + let patArgs ← args.mapM expandMacroArgIntoPattern + let pat := Syntax.node kind (#[patHead] ++ patArgs) if stx.getArgs.size == 8 then -- `stx` is of the form `macro $head $args* : $cat => term` - let rhs := stx.getArg 7; - `(syntax $prec* [$(mkIdentFrom stx kind):ident] $stxParts* : $cat macro_rules | `($pat) => $rhs) + let rhs := stx[7] + `(syntax $prec* [$(mkIdentFrom stx kind):ident] $stxParts* : $cat + macro_rules | `($pat) => $rhs) else -- `stx` is of the form `macro $head $args* : $cat => `( $body )` - let rhsBody := stx.getArg 8; - `(syntax $prec* [$(mkIdentFrom stx kind):ident] $stxParts* : $cat macro_rules | `($pat) => `($rhsBody)) + let rhsBody := stx[8] + `(syntax $prec* [$(mkIdentFrom stx kind):ident] $stxParts* : $cat + macro_rules | `($pat) => `($rhsBody)) @[init] private def regTraceClasses : IO Unit := do -registerTraceClass `Elab.syntax; +registerTraceClass `Elab.syntax pure () @[inline] def withExpectedType (expectedType? : Option Expr) (x : Expr → TermElabM Expr) : TermElabM Expr := do -Term.tryPostponeIfNoneOrMVar expectedType?; -some expectedType ← pure expectedType? - | throwError "expected type must be known"; +Term.tryPostponeIfNoneOrMVar expectedType? +let some expectedType ← pure expectedType? + | throwError "expected type must be known" x expectedType /- @@ -500,41 +504,55 @@ parser! "elab " >> optPrecedence >> elabHead >> many elabArg >> elabTail -/ @[builtinMacro Lean.Parser.Command.elab] def expandElab : Macro := fun stx => do - let ref := stx; - let prec := (stx.getArg 1).getArgs; - let head := stx.getArg 2; - let args := (stx.getArg 3).getArgs; - let cat := stx.getArg 5; - let expectedTypeSpec := stx.getArg 6; - let rhs := stx.getArg 8; - let catName := cat.getId; - kind ← Macro.mkFreshKind catName.eraseMacroScopes; + let ref := stx + let prec := stx[1].getArgs + let head := stx[2] + let args := stx[3].getArgs + let cat := stx[5] + let expectedTypeSpec := stx[6] + let rhs := stx[8] + let catName := cat.getId + let kind ← Macro.mkFreshKind catName.eraseMacroScopes -- build parser - stxPart ← expandMacroHeadIntoSyntaxItem head; - stxParts ← args.mapM expandMacroArgIntoSyntaxItem; - let stxParts := #[stxPart] ++ stxParts; + let stxPart ← expandMacroHeadIntoSyntaxItem head + let stxParts ← args.mapM expandMacroArgIntoSyntaxItem + let stxParts := #[stxPart] ++ stxParts -- build pattern for `martch_syntax - patHead ← expandMacroHeadIntoPattern head; - patArgs ← args.mapM expandMacroArgIntoPattern; - let pat := Syntax.node kind (#[patHead] ++ patArgs); - let kindId := mkIdentFrom ref kind; + let patHead ← expandMacroHeadIntoPattern head + let patArgs ← args.mapM expandMacroArgIntoPattern + let pat := Syntax.node kind (#[patHead] ++ patArgs) + let kindId := mkIdentFrom ref kind if expectedTypeSpec.hasArgs then if catName == `term then - let expId := expectedTypeSpec.getArg 1; - `(syntax $prec* [$kindId:ident] $stxParts* : $cat @[termElab $kindId:ident] def elabFn : Lean.Elab.Term.TermElab := fun stx expectedType? => match_syntax stx with | `($pat) => Lean.Elab.Command.withExpectedType expectedType? fun $expId => $rhs | _ => throwUnsupportedSyntax) + let expId := expectedTypeSpec[1] + `(syntax $prec* [$kindId:ident] $stxParts* : $cat + @[termElab $kindId:ident] def elabFn : Lean.Elab.Term.TermElab := + fun stx expectedType? => match_syntax stx with + | `($pat) => Lean.Elab.Command.withExpectedType expectedType? fun $expId => $rhs + | _ => throwUnsupportedSyntax) else - Macro.throwError expectedTypeSpec ("syntax category '" ++ toString catName ++ "' does not support expected type specification") + Macro.throwError expectedTypeSpec s!"syntax category '{catName}' does not support expected type specification" else if catName == `term then - `(syntax $prec* [$kindId:ident] $stxParts* : $cat @[termElab $kindId:ident] def elabFn : Lean.Elab.Term.TermElab := fun stx _ => match_syntax stx with | `($pat) => $rhs | _ => throwUnsupportedSyntax) + `(syntax $prec* [$kindId:ident] $stxParts* : $cat + @[termElab $kindId:ident] def elabFn : Lean.Elab.Term.TermElab := + fun stx _ => match_syntax stx with + | `($pat) => $rhs + | _ => throwUnsupportedSyntax) else if catName == `command then - `(syntax $prec* [$kindId:ident] $stxParts* : $cat @[commandElab $kindId:ident] def elabFn : Lean.Elab.Command.CommandElab := fun stx => match_syntax stx with | `($pat) => $rhs | _ => throwUnsupportedSyntax) + `(syntax $prec* [$kindId:ident] $stxParts* : $cat + @[commandElab $kindId:ident] def elabFn : Lean.Elab.Command.CommandElab := + fun stx => match_syntax stx with + | `($pat) => $rhs + | _ => throwUnsupportedSyntax) else if catName == `tactic then - `(syntax $prec* [$kindId:ident] $stxParts* : $cat @[tactic $kindId:ident] def elabFn : Lean.Elab.Tactic.Tactic := fun stx => match_syntax stx with | `(tactic|$pat) => $rhs | _ => throwUnsupportedSyntax) + `(syntax $prec* [$kindId:ident] $stxParts* : $cat + @[tactic $kindId:ident] def elabFn : Lean.Elab.Tactic.Tactic := + fun stx => match_syntax stx with + | `(tactic|$pat) => $rhs + | _ => throwUnsupportedSyntax) else -- We considered making the command extensible and support new user-defined categories. We think it is unnecessary. -- If users want this feature, they add their own `elab` macro that uses this one as a fallback. - Macro.throwError ref ("unsupported syntax category '" ++ toString catName ++ "'") + Macro.throwError ref s!"unsupported syntax category '{catName}'" -end Command -end Elab -end Lean +end Lean.Elab.Command diff --git a/stage0/src/Lean/Elab/SyntheticMVars.lean b/stage0/src/Lean/Elab/SyntheticMVars.lean index bc109764ff..3c4b59328d 100644 --- a/stage0/src/Lean/Elab/SyntheticMVars.lean +++ b/stage0/src/Lean/Elab/SyntheticMVars.lean @@ -30,7 +30,7 @@ if val.hasExprMVar then throwError! "tactic failed, result still contain metavar def runTactic (mvarId : MVarId) (tacticCode : Syntax) : TermElabM Unit := do /- Recall, `tacticCode` is the whole `by ...` expression. We store the `by` because in the future we want to save the initial state information at the `by` position. -/ -let code := tacticCode.getArg 1 +let code := tacticCode[1] modifyThe Meta.State fun s => { s with mctx := s.mctx.instantiateMVarDeclMVars mvarId } let remainingGoals ← liftTacticElabM mvarId do evalTactic code; getUnsolvedGoals unless remainingGoals.isEmpty do reportUnsolvedGoals remainingGoals diff --git a/stage0/src/Lean/Elab/Tactic/Basic.lean b/stage0/src/Lean/Elab/Tactic/Basic.lean index f7381ca0ed..a8e7afe846 100644 --- a/stage0/src/Lean/Elab/Tactic/Basic.lean +++ b/stage0/src/Lean/Elab/Tactic/Basic.lean @@ -249,22 +249,22 @@ modifyMCtx fun mctx => do pure mctx @[builtinTactic seq1] def evalSeq1 : Tactic := -fun stx => (stx.getArg 0).forSepArgsM evalTactic +fun stx => stx[0].forSepArgsM evalTactic @[builtinTactic paren] def evalParen : Tactic := -fun stx => evalSeq1 (stx.getArg 1) +fun stx => evalSeq1 stx[1] @[builtinTactic tacticSeq1Indented] def evalTacticSeq1Indented : Tactic := -fun stx => stx.getArg 0 $.forArgsM fun seqElem => evalTactic (seqElem.getArg 0) +fun stx => stx[0].forArgsM fun seqElem => evalTactic seqElem[0] @[builtinTactic tacticSeqBracketed] def evalTacticSeqBracketed : Tactic := -fun stx => withRef (stx.getArg 2) $ focus $ stx.getArg 1 $.forArgsM fun seqElem => evalTactic (seqElem.getArg 0) +fun stx => withRef stx[2] $ focus $ stx[1].forArgsM fun seqElem => evalTactic seqElem[0] @[builtinTactic Parser.Tactic.focus] def evalFocus : Tactic := -fun stx => focus $ evalTactic (stx.getArg 1) +fun stx => focus $ evalTactic stx[1] @[builtinTactic tacticSeq] def evalTacticSeq : Tactic := -fun stx => evalTactic (stx.getArg 0) +fun stx => evalTactic stx[0] partial def evalChoiceAux (tactics : Array Syntax) : Nat → TacticM Unit | i => @@ -284,7 +284,7 @@ fun stx => pure () @[builtinTactic failIfSuccess] def evalFailIfSuccess : Tactic := fun stx => do - let tactic := stx.getArg 1 + let tactic := stx[1] if (← do try evalTactic tactic; pure true catch _ => pure false) then throwError "tactic succeeded" @@ -318,7 +318,7 @@ fun stx => match_syntax stx with @[builtinTactic Lean.Parser.Tactic.introMatch] def evalIntroMatch : Tactic := fun stx => do - let matchAlts := stx.getArg 1 + let matchAlts := stx[1] let stxNew ← liftMacroM $ Term.expandMatchAltsIntoMatchTactic stx matchAlts withMacroExpansion stx stxNew $ evalTactic stxNew diff --git a/stage0/src/Lean/Elab/Tactic/Binders.lean b/stage0/src/Lean/Elab/Tactic/Binders.lean index bdad0da0d1..10a779b6a5 100644 --- a/stage0/src/Lean/Elab/Tactic/Binders.lean +++ b/stage0/src/Lean/Elab/Tactic/Binders.lean @@ -24,7 +24,7 @@ fun stx => do @[builtinMacro Lean.Parser.Tactic.show] def expandShowTactic : Macro := fun stx => - let type := stx.getArg 1 + let type := stx[1] `(tactic| refine (show $type from ?_)) end Lean.Elab.Tactic diff --git a/stage0/src/Lean/Elab/Tactic/Generalize.lean b/stage0/src/Lean/Elab/Tactic/Generalize.lean index 8745396da1..de79bb1ad2 100644 --- a/stage0/src/Lean/Elab/Tactic/Generalize.lean +++ b/stage0/src/Lean/Elab/Tactic/Generalize.lean @@ -13,11 +13,11 @@ namespace Lean.Elab.Tactic open Meta private def getAuxHypothesisName (stx : Syntax) : Option Name := -if (stx.getArg 1).isNone then none -else some ((stx.getArg 1).getIdAt 0) +if stx[1].isNone then none +else some stx[1][0].getId private def getVarName (stx : Syntax) : Name := -stx.getIdAt 4 +stx[4].getId private def evalGeneralizeFinalize (mvarId : MVarId) (e : Expr) (target : Expr) : MetaM (List MVarId) := do let tag ← Meta.getMVarTag mvarId @@ -68,7 +68,7 @@ match h? with fun stx => do let h? := getAuxHypothesisName stx let x := getVarName stx - let e ← elabTerm (stx.getArg 2) none + let e ← elabTerm stx[2] none evalGeneralizeAux h? e x end Lean.Elab.Tactic diff --git a/stage0/src/Lean/Elab/Tactic/Induction.lean b/stage0/src/Lean/Elab/Tactic/Induction.lean index 98a7249bc8..05bc249cf3 100644 --- a/stage0/src/Lean/Elab/Tactic/Induction.lean +++ b/stage0/src/Lean/Elab/Tactic/Induction.lean @@ -17,13 +17,13 @@ open Meta -- Recall that -- majorPremise := parser! optional (try (ident >> " : ")) >> termParser private def getAuxHypothesisName (stx : Syntax) : Option Name := -if stx.getArg 1 $.getArg 0 $.isNone then +if stx[1][0].isNone then none else - some $ stx.getArg 1 $.getArg 0 $.getIdAt 0 + some stx[1][0][0].getId private def getMajor (stx : Syntax) : Syntax := -stx.getArg 1 $.getArg 1 +stx[1][1] private def elabMajor (h? : Option Name) (major : Syntax) : TacticM Expr := do match h? with @@ -57,12 +57,12 @@ match major with `stx` is syntax for `induction`. -/ private def getGeneralizingFVarIds (stx : Syntax) : TacticM (Array FVarId) := withRef stx $ -let generalizingStx := stx.getArg 3 +let generalizingStx := stx[3] if generalizingStx.isNone then pure #[] else withMainMVarContext do trace `Elab.induction fun _ => generalizingStx - let vars := (generalizingStx.getArg 1).getArgs + let vars := generalizingStx[1].getArgs getFVarIds vars -- process `generalizingVars` subterm of induction Syntax `stx`. @@ -75,16 +75,16 @@ liftMetaTacticAux fun mvarId => do pure (fvarIds.size, [mvarId']) private def getAlts (withAlts : Syntax) : Array Syntax := -withAlts.getArg 2 $.getSepArgs +withAlts[2].getSepArgs /- Given an `inductionAlt` of the form ``` nodeWithAntiquot "inductionAlt" `Lean.Parser.Tactic.inductionAlt $ ident' >> many ident' >> darrow >> termParser ``` -/ -private def getAltName (alt : Syntax) : Name := (alt.getArg 0).getId.eraseMacroScopes -private def getAltVarNames (alt : Syntax) : Array Name := (alt.getArg 1).getArgs.map Syntax.getId -private def getAltRHS (alt : Syntax) : Syntax := alt.getArg 3 +private def getAltName (alt : Syntax) : Name := alt[0].getId.eraseMacroScopes +private def getAltVarNames (alt : Syntax) : Array Name := alt[1].getArgs.map Syntax.getId +private def getAltRHS (alt : Syntax) : Syntax := alt[3] /- Given alts of the form @@ -98,7 +98,7 @@ for alt in alts do let n := getAltName alt withRef alt $ trace[Elab.checkAlt]! "{n} , {alt}" unless n == `_ || ctorNames.any (fun ctorName => n.isSuffixOf ctorName) do - throwErrorAt! (alt.getArg 0) "invalid constructor name '{n}'" + throwErrorAt! alt[0] "invalid constructor name '{n}'" structure RecInfo := (recName : Name) @@ -199,8 +199,8 @@ else ``` -/ private def getRecInfo (stx : Syntax) (major : Expr) : TacticM RecInfo := withRef stx do -let usingRecStx := stx.getArg 2 -let withAlts := stx.getArg 4 +let usingRecStx := stx[2] +let withAlts := stx[4] if usingRecStx.isNone then let (rinfo, _) ← getRecInfoDefault major withAlts false pure rinfo @@ -317,7 +317,7 @@ fun stx => focusAux do let major ← elabMajor h? (getMajor stx) let major ← generalizeMajor major let (mvarId, _) ← getMainGoal - let withAlts := stx.getArg 2 + let withAlts := stx[2] let (recInfo, ctorNames) ← getRecInfoDefault major withAlts true let result ← Meta.cases mvarId major.fvarId! recInfo.altVars checkCasesResult result ctorNames recInfo.altRHSs diff --git a/stage0/src/Lean/Elab/Tactic/Injection.lean b/stage0/src/Lean/Elab/Tactic/Injection.lean index f901be49a4..cbf17344a9 100644 --- a/stage0/src/Lean/Elab/Tactic/Injection.lean +++ b/stage0/src/Lean/Elab/Tactic/Injection.lean @@ -11,7 +11,7 @@ namespace Lean.Elab.Tactic -- optional (" with " >> many1 ident') private def getInjectionNewIds (stx : Syntax) : List Name := if stx.isNone then [] -else stx.getArg 1 $.getArgs.toList.map Syntax.getId +else stx[1].getArgs.toList.map Syntax.getId private def checkUnusedIds (mvarId : MVarId) (unusedIds : List Name) : MetaM Unit := do unless unusedIds.isEmpty do @@ -20,8 +20,8 @@ unless unusedIds.isEmpty do @[builtinTactic «injection»] def evalInjection : Tactic := fun stx => do -- parser! nonReservedSymbol "injection " >> termParser >> withIds - let fvarId ← elabAsFVar (stx.getArg 1) - let ids := getInjectionNewIds (stx.getArg 2) + let fvarId ← elabAsFVar stx[1] + let ids := getInjectionNewIds stx[2] liftMetaTactic fun mvarId => do match ← Meta.injection mvarId fvarId ids (!ids.isEmpty) with | Meta.InjectionResult.solved => checkUnusedIds mvarId ids; pure [] diff --git a/stage0/src/Lean/Elab/Tactic/Location.lean b/stage0/src/Lean/Elab/Tactic/Location.lean index 693d297e62..f25437d59e 100644 --- a/stage0/src/Lean/Elab/Tactic/Location.lean +++ b/stage0/src/Lean/Elab/Tactic/Location.lean @@ -21,13 +21,13 @@ def location := parser! "at " >> (locationWildcard <|> locationTarget <| ``` -/ def expandLocation (stx : Syntax) : Location := -let arg := stx.getArg 1 +let arg := stx[1] if arg.getKind == `Lean.Parser.Tactic.locationWildcard then Location.wildcard else if arg.getKind == `Lean.Parser.Tactic.locationTarget then Location.target -else Location.localDecls $ arg.getArg 0 $.getArgs.map fun stx => stx.getId +else Location.localDecls $ arg[0].getArgs.map fun stx => stx.getId def expandOptLocation (stx : Syntax) : Location := if stx.isNone then Location.target -else expandLocation $ stx.getArg 0 +else expandLocation stx[0] end Lean.Elab.Tactic diff --git a/stage0/src/Lean/Elab/Tactic/Match.lean b/stage0/src/Lean/Elab/Tactic/Match.lean index 03adc4ff4a..ea0d5b695c 100644 --- a/stage0/src/Lean/Elab/Tactic/Match.lean +++ b/stage0/src/Lean/Elab/Tactic/Match.lean @@ -15,11 +15,11 @@ structure AuxMatchTermState := (cases : Array Syntax := #[]) private def mkAuxiliaryMatchTermAux (parentTag : Name) (matchTac : Syntax) : StateT AuxMatchTermState MacroM Syntax := do -let matchAlts := matchTac.getArg 4 -let alts := matchAlts.getArg 1 $.getArgs +let matchAlts := matchTac[4] +let alts := matchAlts[1].getArgs let newAlts ← alts.mapSepElemsM fun alt => do let alt := alt.updateKind `Lean.Parser.Term.matchAlt - let holeOrTacticSeq := alt.getArg 2 + let holeOrTacticSeq := alt[2] if holeOrTacticSeq.isOfKind `Lean.Parser.Term.syntheticHole then pure alt else if holeOrTacticSeq.isOfKind `Lean.Parser.Term.hole then @@ -30,7 +30,7 @@ let newAlts ← alts.mapSepElemsM fun alt => do pure $ alt.setArg 2 newHole else withFreshMacroScope do let newHole ← `(?rhs) - let newHoleId := newHole.getArg 1 + let newHoleId := newHole[1] let newCase ← `(tactic| case $newHoleId => $holeOrTacticSeq:tacticSeq ) modify fun s => { s with cases := s.cases.push newCase } pure $ alt.setArg 2 newHole diff --git a/stage0/src/Lean/Elab/Tactic/Rewrite.lean b/stage0/src/Lean/Elab/Tactic/Rewrite.lean index e36db19082..a7b6db7a95 100644 --- a/stage0/src/Lean/Elab/Tactic/Rewrite.lean +++ b/stage0/src/Lean/Elab/Tactic/Rewrite.lean @@ -14,8 +14,8 @@ open Meta @[builtinMacro Lean.Parser.Tactic.rewriteSeq] def expandRewriteTactic : Macro := fun stx => - let seq := ((stx.getArg 1).getArg 1).getSepArgs - let loc := stx.getArg 2 + let seq := stx[1][1].getSepArgs + let loc := stx[2] pure $ mkNullNode $ seq.map fun rwRule => Syntax.node `Lean.Parser.Tactic.rewrite #[mkAtomFrom rwRule "rewrite ", rwRule, loc] def rewriteTarget (stx : Syntax) (symm : Bool) : TacticM Unit := do @@ -59,10 +59,10 @@ def «rewrite» := parser! "rewrite" >> rwRule >> optional location -/ @[builtinTactic Lean.Parser.Tactic.rewrite] def evalRewrite : Tactic := fun stx => do - let rule := stx.getArg 1 - let symm := !(rule.getArg 0).isNone - let term := rule.getArg 1 - let loc := expandOptLocation $ stx.getArg 2 + let rule := stx[1] + let symm := !rule[0].isNone + let term := rule[1] + let loc := expandOptLocation stx[2] match loc with | Location.target => rewriteTarget term symm | Location.localDecls userNames => userNames.forM (rewriteLocalDecl term symm) diff --git a/stage0/stdlib/Init/LeanInit.c b/stage0/stdlib/Init/LeanInit.c index 03d74a4a3e..0ce5d1e321 100644 --- a/stage0/stdlib/Init/LeanInit.c +++ b/stage0/stdlib/Init/LeanInit.c @@ -421,6 +421,7 @@ lean_object* l_Lean_mkStxLit(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_toNat(lean_object*); lean_object* l_Lean_mkOptionalNode___closed__2; +lean_object* l_Lean_Syntax_getOp___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f___boxed(lean_object*); lean_object* l_Lean_mkCIdentFrom___closed__2; lean_object* lean_nat_mod(lean_object*, lean_object*); @@ -464,6 +465,7 @@ lean_object* l___private_Init_LeanInit_3__assembleParts___main(lean_object*, lea lean_object* l_Lean_defaultMaxRecDepth; lean_object* l_Lean_Syntax_decodeStrLitAux(lean_object*, lean_object*, lean_object*); uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getOp(lean_object*, lean_object*); lean_object* lean_uint32_to_nat(uint32_t); lean_object* l___private_Init_LeanInit_9__decodeHexDigit___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeStrLitAux___main(lean_object*, lean_object*, lean_object*); @@ -2157,6 +2159,24 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Lean_Syntax_getOp(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Syntax_getArg(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Syntax_getOp___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Syntax_getOp(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Lean_Syntax_getArgs(lean_object* x_1) { _start: { diff --git a/stage0/stdlib/Lean/Elab/Attributes.c b/stage0/stdlib/Lean/Elab/Attributes.c index 8088f616a8..35921bc5c4 100644 --- a/stage0/stdlib/Lean/Elab/Attributes.c +++ b/stage0/stdlib/Lean/Elab/Attributes.c @@ -13,61 +13,90 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Array_mapM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_add(size_t, size_t); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l_Lean_Elab_Attribute_inhabited; +lean_object* l_Lean_Elab_Attribute_args___default; lean_object* l_Lean_withRef___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; -extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +extern lean_object* l_List_repr___rarg___closed__3; +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1(lean_object*); lean_object* l_Lean_Elab_elabAttrs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Attribute_hasFormat___closed__1; extern lean_object* l_Lean_Format_join___closed__1; +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttrs(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Attribute_hasFormat(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Attribute_hasFormat___closed__2; +size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_elabAttr___rarg___closed__2; lean_object* l_Lean_Elab_Attribute_hasFormat___closed__4; lean_object* l_Lean_Elab_elabAttr___rarg___closed__1; lean_object* l_Lean_Elab_elabDeclAttrs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr_match__1(lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isMissing(lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; lean_object* l_Lean_Elab_elabDeclAttrs(lean_object*); +lean_object* l_Lean_Syntax_getSepArgs(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getNumArgs(lean_object*); lean_object* l_Lean_Elab_elabAttr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttrs___rarg___lambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Format_sbracket___closed__4; -lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Elab_Attribute_inhabited___closed__1; -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___closed__1; -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___closed__2; +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Attribute_hasFormat___closed__3; extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +lean_object* l_Lean_Elab_elabAttr_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; lean_object* lean_nat_to_int(lean_object*); -uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__1; lean_object* l_Lean_Elab_elabDeclAttrs___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* _init_l_Lean_Elab_Attribute_args___default() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} static lean_object* _init_l_Lean_Elab_Attribute_hasFormat___closed__1() { _start: { @@ -198,51 +227,143 @@ x_1 = l_Lean_Elab_Attribute_inhabited___closed__1; return x_1; } } +lean_object* l_Lean_Elab_elabAttr_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_elabAttr_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = l_Lean_Syntax_getNumArgs(x_6); -x_8 = lean_unsigned_to_nat(0u); -x_9 = lean_nat_dec_eq(x_7, x_8); -lean_dec(x_7); -if (x_9 == 0) +lean_object* x_5; lean_object* x_6; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +x_6 = lean_apply_2(x_3, lean_box(0), x_5); +return x_6; +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -lean_dec(x_2); -x_11 = lean_ctor_get(x_10, 1); +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_box(0); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_4); +x_6 = lean_apply_2(x_2, lean_box(0), x_5); +return x_6; +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_unsigned_to_nat(1u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_Syntax_getNumArgs(x_7); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_8, x_9); +lean_dec(x_8); +if (x_10 == 0) +{ +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_2, 0); lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_3); -lean_ctor_set(x_12, 1, x_6); -x_13 = lean_apply_2(x_11, lean_box(0), x_12); +lean_dec(x_2); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_box(0); +lean_inc(x_12); +x_14 = lean_apply_2(x_12, lean_box(0), x_13); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_15, 0, x_3); +lean_closure_set(x_15, 1, x_7); +lean_closure_set(x_15, 2, x_12); +x_16 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_14, x_15); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_7); +x_17 = lean_ctor_get(x_2, 0); +lean_inc(x_17); +lean_dec(x_2); +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); +lean_dec(x_17); +x_19 = lean_box(0); +lean_inc(x_18); +x_20 = lean_apply_2(x_18, lean_box(0), x_19); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__2___boxed), 3, 2); +lean_closure_set(x_21, 0, x_3); +lean_closure_set(x_21, 1, x_18); +x_22 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_20, x_21); +return x_22; +} +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_unsigned_to_nat(1u); +x_8 = l_Lean_Syntax_getArg(x_1, x_7); +x_9 = l_Lean_Syntax_getNumArgs(x_8); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_8); +lean_closure_set(x_12, 2, x_3); +x_13 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_12); return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_6); -x_14 = lean_ctor_get(x_2, 0); -lean_inc(x_14); -lean_dec(x_2); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_box(0); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_3); -lean_ctor_set(x_17, 1, x_16); -x_18 = lean_apply_2(x_15, lean_box(0), x_17); -return x_18; +lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__2___boxed), 3, 2); +lean_closure_set(x_14, 0, x_2); +lean_closure_set(x_14, 1, x_3); +x_15 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_14); +return x_15; } } } -static lean_object* _init_l_Lean_Elab_elabAttr___rarg___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Elab_elabAttr___rarg___lambda__5___closed__1() { _start: { lean_object* x_1; @@ -250,75 +371,83 @@ x_1 = lean_mk_string("unknown attribute ["); return x_1; } } -static lean_object* _init_l_Lean_Elab_elabAttr___rarg___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3() { +static lean_object* _init_l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_List_repr___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -uint8_t x_9; lean_object* x_10; +uint8_t x_9; x_9 = l_Lean_isAttribute(x_8, x_1); -lean_inc(x_1); -lean_inc(x_3); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 4, 3); -lean_closure_set(x_10, 0, x_2); -lean_closure_set(x_10, 1, x_3); -lean_closure_set(x_10, 2, x_1); if (x_9 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_1); -x_12 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; -x_13 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; -x_15 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_throwError___rarg(x_3, x_4, x_5, x_6, lean_box(0), x_15); -x_17 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_16, x_10); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_inc(x_1); +x_10 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_10, 0, x_1); +x_11 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +x_12 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +x_14 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +lean_inc(x_2); +x_15 = l_Lean_throwError___rarg(x_2, x_3, x_4, x_5, lean_box(0), x_14); +lean_inc(x_7); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__3___boxed), 5, 4); +lean_closure_set(x_16, 0, x_6); +lean_closure_set(x_16, 1, x_2); +lean_closure_set(x_16, 2, x_1); +lean_closure_set(x_16, 3, x_7); +x_17 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_15, x_16); return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -lean_dec(x_6); +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_dec(x_5); lean_dec(x_4); -lean_dec(x_1); -x_18 = lean_ctor_get(x_3, 0); -lean_inc(x_18); lean_dec(x_3); +x_18 = lean_ctor_get(x_2, 0); +lean_inc(x_18); +lean_dec(x_2); x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); lean_dec(x_18); x_20 = lean_box(0); +lean_inc(x_19); x_21 = lean_apply_2(x_19, lean_box(0), x_20); -x_22 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_21, x_10); -return x_22; +lean_inc(x_21); +lean_inc(x_7); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__4___boxed), 6, 5); +lean_closure_set(x_22, 0, x_6); +lean_closure_set(x_22, 1, x_1); +lean_closure_set(x_22, 2, x_19); +lean_closure_set(x_22, 3, x_7); +lean_closure_set(x_22, 4, x_21); +x_23 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_21, x_22); +return x_23; } } } -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -326,7 +455,7 @@ x_9 = lean_ctor_get(x_1, 0); lean_inc(x_9); lean_dec(x_1); lean_inc(x_7); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__2___boxed), 8, 7); +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__5___boxed), 8, 7); lean_closure_set(x_10, 0, x_8); lean_closure_set(x_10, 1, x_2); lean_closure_set(x_10, 2, x_3); @@ -338,6 +467,117 @@ x_11 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_9, x_10); return x_11; } } +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_unsigned_to_nat(1u); +x_7 = l_Lean_Syntax_getArg(x_1, x_6); +x_8 = l_Lean_Syntax_getNumArgs(x_7); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_8, x_9); +lean_dec(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_box(0); +lean_inc(x_2); +x_12 = lean_apply_2(x_2, lean_box(0), x_11); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_13, 0, x_3); +lean_closure_set(x_13, 1, x_7); +lean_closure_set(x_13, 2, x_2); +x_14 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_12, x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); +x_15 = lean_box(0); +lean_inc(x_2); +x_16 = lean_apply_2(x_2, lean_box(0), x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__2___boxed), 3, 2); +lean_closure_set(x_17, 0, x_3); +lean_closure_set(x_17, 1, x_2); +x_18 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_16, x_17); +return x_18; +} +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = l_Lean_isAttribute(x_9, x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_inc(x_1); +x_11 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +x_13 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_throwError___rarg(x_2, x_3, x_4, x_5, lean_box(0), x_15); +lean_inc(x_8); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__7___boxed), 5, 4); +lean_closure_set(x_17, 0, x_6); +lean_closure_set(x_17, 1, x_7); +lean_closure_set(x_17, 2, x_1); +lean_closure_set(x_17, 3, x_8); +x_18 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_16, x_17); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_19 = lean_box(0); +lean_inc(x_7); +x_20 = lean_apply_2(x_7, lean_box(0), x_19); +lean_inc(x_20); +lean_inc(x_8); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__4___boxed), 6, 5); +lean_closure_set(x_21, 0, x_6); +lean_closure_set(x_21, 1, x_1); +lean_closure_set(x_21, 2, x_7); +lean_closure_set(x_21, 3, x_8); +lean_closure_set(x_21, 4, x_20); +x_22 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_20, x_21); +return x_22; +} +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_10); +lean_dec(x_1); +lean_inc(x_8); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__8___boxed), 9, 8); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_2); +lean_closure_set(x_11, 2, x_3); +lean_closure_set(x_11, 3, x_4); +lean_closure_set(x_11, 4, x_5); +lean_closure_set(x_11, 5, x_6); +lean_closure_set(x_11, 6, x_7); +lean_closure_set(x_11, 7, x_8); +x_12 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} static lean_object* _init_l_Lean_Elab_elabAttr___rarg___closed__1() { _start: { @@ -369,63 +609,72 @@ return x_2; lean_object* l_Lean_Elab_elabAttr___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Lean_Syntax_getArg(x_6, x_7); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); -x_10 = l_Lean_Syntax_isIdOrAtom_x3f(x_8); -lean_inc(x_9); +x_9 = l_Lean_Syntax_isIdOrAtom_x3f(x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = l_Lean_Elab_elabAttr___rarg___closed__3; lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__3), 8, 7); -lean_closure_set(x_11, 0, x_2); -lean_closure_set(x_11, 1, x_6); -lean_closure_set(x_11, 2, x_1); -lean_closure_set(x_11, 3, x_3); -lean_closure_set(x_11, 4, x_4); -lean_closure_set(x_11, 5, x_5); -lean_closure_set(x_11, 6, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_12 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_12 = l_Lean_throwError___rarg(x_1, x_3, x_4, x_5, lean_box(0), x_11); +x_13 = lean_ctor_get(x_4, 0); +lean_inc(x_13); lean_inc(x_4); -x_13 = l_Lean_throwError___rarg(x_1, x_3, x_4, x_5, lean_box(0), x_12); -x_14 = lean_ctor_get(x_4, 0); -lean_inc(x_14); -x_15 = lean_alloc_closure((void*)(l_Lean_withRef___rarg___lambda__1___boxed), 4, 3); -lean_closure_set(x_15, 0, x_8); -lean_closure_set(x_15, 1, x_4); -lean_closure_set(x_15, 2, x_13); -lean_inc(x_9); -x_16 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_14, x_15); -x_17 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_16, x_11); +x_14 = lean_alloc_closure((void*)(l_Lean_withRef___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_14, 0, x_8); +lean_closure_set(x_14, 1, x_4); +lean_closure_set(x_14, 2, x_12); +lean_inc(x_10); +x_15 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_14); +lean_inc(x_10); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__6), 8, 7); +lean_closure_set(x_16, 0, x_2); +lean_closure_set(x_16, 1, x_1); +lean_closure_set(x_16, 2, x_3); +lean_closure_set(x_16, 3, x_4); +lean_closure_set(x_16, 4, x_5); +lean_closure_set(x_16, 5, x_6); +lean_closure_set(x_16, 6, x_10); +x_17 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_15, x_16); return x_17; } else { -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_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_18 = lean_ctor_get(x_10, 0); +x_18 = lean_ctor_get(x_9, 0); lean_inc(x_18); -lean_dec(x_10); -x_19 = lean_ctor_get(x_1, 0); +lean_dec(x_9); +x_19 = lean_ctor_get(x_1, 1); lean_inc(x_19); -lean_dec(x_1); -x_20 = lean_ctor_get(x_19, 1); +x_20 = lean_ctor_get(x_1, 0); lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_box(0); -x_22 = lean_name_mk_string(x_21, x_18); -x_23 = lean_apply_2(x_20, lean_box(0), x_22); -x_24 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_23, x_11); -return x_24; +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_box(0); +x_23 = lean_name_mk_string(x_22, x_18); +lean_inc(x_21); +x_24 = lean_apply_2(x_21, lean_box(0), x_23); +lean_inc(x_19); +x_25 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__9), 9, 8); +lean_closure_set(x_25, 0, x_2); +lean_closure_set(x_25, 1, x_1); +lean_closure_set(x_25, 2, x_3); +lean_closure_set(x_25, 3, x_4); +lean_closure_set(x_25, 4, x_5); +lean_closure_set(x_25, 5, x_6); +lean_closure_set(x_25, 6, x_21); +lean_closure_set(x_25, 7, x_19); +x_26 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_24, x_25); +return x_26; } } } @@ -443,39 +692,142 @@ _start: lean_object* x_5; x_5 = l_Lean_Elab_elabAttr___rarg___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_4); -lean_dec(x_1); return x_5; } } -lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_elabAttr___rarg___lambda__2(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Elab_elabAttr___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_elabAttr___rarg___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_elabAttr___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_elabAttr___rarg___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_8); return x_9; } } -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__7___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_10; lean_object* x_11; -x_10 = lean_nat_add(x_1, x_2); -x_11 = l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg(x_3, x_4, x_5, x_6, x_7, x_2, x_8, x_10, x_9); +lean_object* x_6; +x_6 = l_Lean_Elab_elabAttr___rarg___lambda__7(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_elabAttr___rarg___lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_elabAttr___rarg___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_9); +return x_10; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_1); +x_5 = lean_apply_2(x_2, lean_box(0), x_4); +return x_5; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = lean_array_push(x_1, x_4); +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +lean_dec(x_2); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_box(0); +lean_inc(x_7); +x_9 = lean_apply_2(x_7, lean_box(0), x_8); +x_10 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_10, 0, x_5); +lean_closure_set(x_10, 1, x_7); +x_11 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_9, x_10); return x_11; } } -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__3(lean_object* x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, size_t x_9, lean_object* x_10) { _start: { -lean_object* x_10; uint8_t x_11; -x_10 = lean_array_get_size(x_7); -x_11 = lean_nat_dec_lt(x_8, x_10); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_apply_2(x_13, lean_box(0), x_11); +return x_14; +} +else +{ +lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = 1; +x_17 = x_2 + x_16; +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_17, x_15); +return x_18; +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, size_t x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = x_9 < x_8; if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -488,13 +840,13 @@ lean_dec(x_1); x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = lean_apply_2(x_13, lean_box(0), x_9); +x_14 = lean_apply_2(x_13, lean_box(0), x_10); return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_15 = lean_array_fget(x_7, x_8); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_15 = lean_array_uget(x_7, x_9); x_16 = lean_ctor_get(x_1, 1); lean_inc(x_16); lean_inc(x_5); @@ -503,44 +855,72 @@ lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); x_17 = l_Lean_Elab_elabAttr___rarg(x_1, x_2, x_3, x_4, x_5, x_15); +lean_inc(x_6); lean_inc(x_1); -x_18 = lean_alloc_closure((void*)(l_Array_iterateMAux___main___at_Array_mapM___spec__1___rarg___lambda__1), 3, 2); -lean_closure_set(x_18, 0, x_1); -lean_closure_set(x_18, 1, x_9); -lean_inc(x_16); -x_19 = lean_apply_4(x_16, lean_box(0), lean_box(0), x_17, x_18); -x_20 = lean_alloc_closure((void*)(l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1___boxed), 9, 8); -lean_closure_set(x_20, 0, x_8); -lean_closure_set(x_20, 1, x_6); -lean_closure_set(x_20, 2, x_1); -lean_closure_set(x_20, 3, x_2); -lean_closure_set(x_20, 4, x_3); -lean_closure_set(x_20, 5, x_4); -lean_closure_set(x_20, 6, x_5); -lean_closure_set(x_20, 7, x_7); -x_21 = lean_apply_4(x_16, lean_box(0), lean_box(0), x_19, x_20); -return x_21; +x_18 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__2), 4, 3); +lean_closure_set(x_18, 0, x_10); +lean_closure_set(x_18, 1, x_1); +lean_closure_set(x_18, 2, x_6); +lean_inc(x_6); +x_19 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_17, x_18); +x_20 = lean_box_usize(x_9); +x_21 = lean_box_usize(x_8); +x_22 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__3___boxed), 10, 9); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_20); +lean_closure_set(x_22, 2, x_2); +lean_closure_set(x_22, 3, x_3); +lean_closure_set(x_22, 4, x_4); +lean_closure_set(x_22, 5, x_5); +lean_closure_set(x_22, 6, x_6); +lean_closure_set(x_22, 7, x_7); +lean_closure_set(x_22, 8, x_21); +x_23 = lean_apply_4(x_16, lean_box(0), lean_box(0), x_19, x_22); +return x_23; } } } -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1(lean_object* x_1) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___boxed), 10, 0); return x_2; } } +lean_object* l_Lean_Elab_elabAttrs___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +lean_dec(x_3); +x_5 = lean_apply_2(x_4, lean_box(0), x_2); +return x_5; +} +} lean_object* l_Lean_Elab_elabAttrs___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = l_Lean_Syntax_getArgs(x_6); -x_8 = lean_unsigned_to_nat(2u); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Array_empty___closed__1; -x_11 = l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_8, x_7, x_9, x_10); -return x_11; +lean_object* x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +x_8 = l_Lean_Syntax_getSepArgs(x_6); +x_9 = lean_array_get_size(x_8); +x_10 = lean_usize_of_nat(x_9); +lean_dec(x_9); +x_11 = 0; +x_12 = l_Array_empty___closed__1; +lean_inc(x_7); +lean_inc(x_1); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_7, x_8, x_10, x_11, x_12); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttrs___rarg___lambda__1), 2, 1); +lean_closure_set(x_14, 0, x_1); +x_15 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_13, x_14); +return x_15; } } lean_object* l_Lean_Elab_elabAttrs(lean_object* x_1) { @@ -551,13 +931,37 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttrs___rarg___boxed), 6, 0); return x_2; } } -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_10; -x_10 = l_Array_foldlStepMAux___main___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_1); -return x_10; +lean_object* x_4; +x_4 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_12 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__3(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12, x_10); +return x_13; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___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, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_12 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11, x_12, x_10); +return x_13; } } lean_object* l_Lean_Elab_elabAttrs___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) { @@ -618,6 +1022,8 @@ lean_dec_ref(res); res = initialize_Lean_MonadEnv(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Attribute_args___default = _init_l_Lean_Elab_Attribute_args___default(); +lean_mark_persistent(l_Lean_Elab_Attribute_args___default); l_Lean_Elab_Attribute_hasFormat___closed__1 = _init_l_Lean_Elab_Attribute_hasFormat___closed__1(); lean_mark_persistent(l_Lean_Elab_Attribute_hasFormat___closed__1); l_Lean_Elab_Attribute_hasFormat___closed__2 = _init_l_Lean_Elab_Attribute_hasFormat___closed__2(); @@ -630,12 +1036,12 @@ l_Lean_Elab_Attribute_inhabited___closed__1 = _init_l_Lean_Elab_Attribute_inhabi lean_mark_persistent(l_Lean_Elab_Attribute_inhabited___closed__1); l_Lean_Elab_Attribute_inhabited = _init_l_Lean_Elab_Attribute_inhabited(); lean_mark_persistent(l_Lean_Elab_Attribute_inhabited); -l_Lean_Elab_elabAttr___rarg___lambda__2___closed__1 = _init_l_Lean_Elab_elabAttr___rarg___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__2___closed__1); -l_Lean_Elab_elabAttr___rarg___lambda__2___closed__2 = _init_l_Lean_Elab_elabAttr___rarg___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__2___closed__2); -l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3 = _init_l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3(); -lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3); +l_Lean_Elab_elabAttr___rarg___lambda__5___closed__1 = _init_l_Lean_Elab_elabAttr___rarg___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__5___closed__1); +l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2 = _init_l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2); +l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3 = _init_l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3(); +lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3); l_Lean_Elab_elabAttr___rarg___closed__1 = _init_l_Lean_Elab_elabAttr___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___closed__1); l_Lean_Elab_elabAttr___rarg___closed__2 = _init_l_Lean_Elab_elabAttr___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/DeclUtil.c b/stage0/stdlib/Lean/Elab/DeclUtil.c index 2df74635eb..551debde7a 100644 --- a/stage0/stdlib/Lean/Elab/DeclUtil.c +++ b/stage0/stdlib/Lean/Elab/DeclUtil.c @@ -13,113 +13,1383 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___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_forallTelescopeCompatibleAux___rarg___closed__11; lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__13; +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsortAux___main___at_Lean_Elab_sortDeclLevelParams___spec__3(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_MessageData_ofList___closed__3; +extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +lean_object* l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__1; +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__1(lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_lt___main(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__2; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); uint8_t l_List_elem___main___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__8; extern lean_object* l_Array_empty___closed__1; -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__17; +lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__6; +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__6; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_inhabited; -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__2; -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__1; +extern lean_object* l_String_splitAux___main___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsortAux___main___at_Lean_Elab_sortDeclLevelParams___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_isFreshInstanceName_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkFreshInstanceName(lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__5; lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_isExprDefEq___rarg___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_sortDeclLevelParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatible___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__7; lean_object* l_Lean_Meta_forallTelescopeCompatibleAux(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__7; lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__16; extern lean_object* l_Char_HasRepr___closed__1; +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__2(lean_object*); +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__14; uint8_t l_Array_contains___at_Lean_registerInternalExceptionId___spec__1(lean_object*, lean_object*); -extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main(lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__15; -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18; +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4(lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__14; +lean_object* l_Lean_Elab_sortDeclLevelParams_match__1(lean_object*); lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__5; -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__3; +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__3; lean_object* l_Lean_Meta_forallTelescopeCompatible___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at_Lean_Elab_sortDeclLevelParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__10; lean_object* l_Lean_Elab_expandOptDeclSig___boxed(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_sortDeclLevelParams___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__15; +lean_object* l___private_Lean_Meta_LevelDefEq_15__runDefEqM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__12; +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_forallTelescopeCompatibleAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); uint8_t l_String_isPrefixOf(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__12; lean_object* l_Lean_Elab_sortDeclLevelParams___closed__1; lean_object* l_Lean_Elab_isFreshInstanceName___boxed(lean_object*); +extern lean_object* l_Lean_Meta_whnfRef; +lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig___boxed(lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__10; +lean_object* l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatible___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Elab_sortDeclLevelParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_sortDeclLevelParams_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeCompatible___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at_Lean_Elab_sortDeclLevelParams___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_mkFreshInstanceName___closed__1; +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__9; lean_object* l_Lean_Elab_mkFreshInstanceName___closed__2; extern lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__4; lean_object* l_Lean_Meta_forallTelescopeCompatible(lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); uint8_t l_Lean_Elab_isFreshInstanceName(lean_object*); +lean_object* l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__9; +lean_object* l_Lean_Elab_isFreshInstanceName_match__1(lean_object*); lean_object* l___private_Init_Data_Array_QSort_1__qpartitionAux___main___at_Lean_Elab_sortDeclLevelParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__11; +lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2(lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__4; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 7) +{ +if (lean_obj_tag(x_2) == 7) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +x_8 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +lean_dec(x_1); +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_2, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 2); +lean_inc(x_11); +x_12 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_dec(x_2); +x_13 = lean_box_uint64(x_8); +x_14 = lean_box_uint64(x_12); +x_15 = lean_apply_8(x_3, x_5, x_6, x_7, x_13, x_9, x_10, x_11, x_14); +return x_15; +} +else +{ +lean_object* x_16; +lean_dec(x_3); +x_16 = lean_apply_2(x_4, x_1, x_2); +return x_16; +} +} +else +{ +lean_object* x_17; +lean_dec(x_3); +x_17 = lean_apply_2(x_4, x_1, x_2); +return x_17; +} +} +} +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeCompatibleAux_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_nat_dec_eq(x_1, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_1, x_9); +x_11 = lean_apply_4(x_6, x_10, x_2, x_3, x_4); +return x_11; +} +else +{ +lean_object* x_12; +lean_dec(x_6); +x_12 = lean_apply_3(x_5, x_2, x_3, x_4); +return x_12; +} +} +} +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeCompatibleAux_match__2___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux_match__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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_forallTelescopeCompatibleAux_match__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_4, 1); +lean_inc(x_8); +x_9 = lean_ctor_get(x_4, 2); +lean_inc(x_9); +x_10 = lean_ctor_get(x_4, 3); +lean_inc(x_10); +x_11 = lean_nat_dec_eq(x_8, x_9); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_13 = lean_ctor_get(x_4, 3); +lean_dec(x_13); +x_14 = lean_ctor_get(x_4, 2); +lean_dec(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_dec(x_15); +x_16 = lean_ctor_get(x_4, 0); +lean_dec(x_16); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_8, x_17); +lean_dec(x_8); +lean_ctor_set(x_4, 1, x_18); +x_19 = l_Lean_Meta_whnfRef; +x_20 = lean_st_ref_get(x_19, x_6); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_4); +x_24 = lean_unsigned_to_nat(1u); +x_25 = lean_nat_add(x_8, x_24); +lean_dec(x_8); +x_26 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_26, 0, x_7); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_9); +lean_ctor_set(x_26, 3, x_10); +x_27 = l_Lean_Meta_whnfRef; +x_28 = lean_st_ref_get(x_27, x_6); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); +return x_31; +} +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; +x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 3); +x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_isExprDefEq___at_Lean_Meta_forallTelescopeCompatibleAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +lean_inc(x_2); +lean_inc(x_1); +x_8 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAux), 8, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_2); +x_236 = lean_st_ref_get(x_6, x_7); +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_237, 3); +lean_inc(x_238); +lean_dec(x_237); +x_239 = lean_ctor_get_uint8(x_238, sizeof(void*)*1); +lean_dec(x_238); +if (x_239 == 0) +{ +lean_object* x_240; uint8_t x_241; +x_240 = lean_ctor_get(x_236, 1); +lean_inc(x_240); +lean_dec(x_236); +x_241 = 0; +x_9 = x_241; +x_10 = x_240; +goto block_235; +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; uint8_t x_247; +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +lean_dec(x_236); +x_243 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_244 = l___private_Lean_Util_Trace_3__checkTraceOptionM___at_Lean_Meta_isLevelDefEq___spec__1(x_243, x_3, x_4, x_5, x_6, x_242); +x_245 = lean_ctor_get(x_244, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_244, 1); +lean_inc(x_246); +lean_dec(x_244); +x_247 = lean_unbox(x_245); +lean_dec(x_245); +x_9 = x_247; +x_10 = x_246; +goto block_235; +} +block_235: +{ +if (x_9 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_11 = lean_st_ref_get(x_6, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_ctor_get_uint8(x_13, sizeof(void*)*1); +lean_dec(x_13); +x_16 = lean_st_ref_take(x_6, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_17, 3); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_17, 3); +lean_dec(x_21); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_60; +x_23 = 0; +lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_23); +x_24 = lean_st_ref_set(x_6, x_17, x_19); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_60 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_25); +if (lean_obj_tag(x_60) == 0) +{ +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; uint8_t x_73; +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_61); +x_63 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_63, 0, x_1); +lean_closure_set(x_63, 1, x_2); +lean_closure_set(x_63, 2, x_61); +x_64 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_65 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_64, x_63, x_3, x_4, x_5, x_6, x_62); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_st_ref_get(x_6, x_66); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = lean_st_ref_take(x_6, x_68); +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_70, 3); +lean_inc(x_71); +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = !lean_is_exclusive(x_70); +if (x_73 == 0) +{ +lean_object* x_74; uint8_t x_75; +x_74 = lean_ctor_get(x_70, 3); +lean_dec(x_74); +x_75 = !lean_is_exclusive(x_71); +if (x_75 == 0) +{ +lean_object* x_76; uint8_t x_77; +lean_ctor_set_uint8(x_71, sizeof(void*)*1, x_15); +x_76 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +lean_ctor_set(x_76, 0, x_61); +return x_76; +} +else +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_76, 1); +lean_inc(x_79); +lean_dec(x_76); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_61); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_81 = lean_ctor_get(x_71, 0); +lean_inc(x_81); +lean_dec(x_71); +x_82 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_15); +lean_ctor_set(x_70, 3, x_82); +x_83 = lean_st_ref_set(x_6, x_70, x_72); +lean_dec(x_6); +x_84 = lean_ctor_get(x_83, 1); +lean_inc(x_84); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_85 = x_83; +} else { + lean_dec_ref(x_83); + x_85 = lean_box(0); +} +if (lean_is_scalar(x_85)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_85; +} +lean_ctor_set(x_86, 0, x_61); +lean_ctor_set(x_86, 1, x_84); +return x_86; +} +} +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; lean_object* x_97; +x_87 = lean_ctor_get(x_70, 0); +x_88 = lean_ctor_get(x_70, 1); +x_89 = lean_ctor_get(x_70, 2); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_70); +x_90 = lean_ctor_get(x_71, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + x_91 = x_71; +} else { + lean_dec_ref(x_71); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 1, 1); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*1, x_15); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_87); +lean_ctor_set(x_93, 1, x_88); +lean_ctor_set(x_93, 2, x_89); +lean_ctor_set(x_93, 3, x_92); +x_94 = lean_st_ref_set(x_6, x_93, x_72); +lean_dec(x_6); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_96 = x_94; +} else { + lean_dec_ref(x_94); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(0, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_61); +lean_ctor_set(x_97, 1, x_95); +return x_97; +} +} +else +{ +lean_object* x_98; lean_object* x_99; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_98 = lean_ctor_get(x_60, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_60, 1); +lean_inc(x_99); +lean_dec(x_60); +x_26 = x_98; +x_27 = x_99; +goto block_59; +} +block_59: +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_28 = lean_st_ref_get(x_6, x_27); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_st_ref_take(x_6, x_29); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 3); +lean_inc(x_32); +x_33 = lean_ctor_get(x_30, 1); +lean_inc(x_33); +lean_dec(x_30); +x_34 = !lean_is_exclusive(x_31); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_31, 3); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_32); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +lean_ctor_set_uint8(x_32, sizeof(void*)*1, x_15); +x_37 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 0, x_26); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_26); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_32, 0); +lean_inc(x_42); +lean_dec(x_32); +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_15); +lean_ctor_set(x_31, 3, x_43); +x_44 = lean_st_ref_set(x_6, x_31, x_33); +lean_dec(x_6); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_46 = x_44; +} else { + lean_dec_ref(x_44); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; + lean_ctor_set_tag(x_47, 1); +} +lean_ctor_set(x_47, 0, x_26); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_48 = lean_ctor_get(x_31, 0); +x_49 = lean_ctor_get(x_31, 1); +x_50 = lean_ctor_get(x_31, 2); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_31); +x_51 = lean_ctor_get(x_32, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + x_52 = x_32; +} else { + lean_dec_ref(x_32); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 1, 1); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_15); +x_54 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_54, 0, x_48); +lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 2, x_50); +lean_ctor_set(x_54, 3, x_53); +x_55 = lean_st_ref_set(x_6, x_54, x_33); +lean_dec(x_6); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; +} else { + lean_dec_ref(x_55); + x_57 = lean_box(0); +} +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(1, 2, 0); +} else { + x_58 = x_57; + lean_ctor_set_tag(x_58, 1); +} +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +else +{ +lean_object* x_100; uint8_t 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_126; +x_100 = lean_ctor_get(x_18, 0); +lean_inc(x_100); +lean_dec(x_18); +x_101 = 0; +x_102 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set_uint8(x_102, sizeof(void*)*1, x_101); +lean_ctor_set(x_17, 3, x_102); +x_103 = lean_st_ref_set(x_6, x_17, x_19); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_126 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_104); +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_127 = lean_ctor_get(x_126, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +lean_inc(x_127); +x_129 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_129, 0, x_1); +lean_closure_set(x_129, 1, x_2); +lean_closure_set(x_129, 2, x_127); +x_130 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_131 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_130, x_129, x_3, x_4, x_5, x_6, x_128); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_132 = lean_ctor_get(x_131, 1); +lean_inc(x_132); +lean_dec(x_131); +x_133 = lean_st_ref_get(x_6, x_132); +x_134 = lean_ctor_get(x_133, 1); +lean_inc(x_134); +lean_dec(x_133); +x_135 = lean_st_ref_take(x_6, x_134); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_136, 3); +lean_inc(x_137); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_136, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_136, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_136, 2); +lean_inc(x_141); +if (lean_is_exclusive(x_136)) { + lean_ctor_release(x_136, 0); + lean_ctor_release(x_136, 1); + lean_ctor_release(x_136, 2); + lean_ctor_release(x_136, 3); + x_142 = x_136; +} else { + lean_dec_ref(x_136); + x_142 = lean_box(0); +} +x_143 = lean_ctor_get(x_137, 0); +lean_inc(x_143); +if (lean_is_exclusive(x_137)) { + lean_ctor_release(x_137, 0); + x_144 = x_137; +} else { + lean_dec_ref(x_137); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 1, 1); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_143); +lean_ctor_set_uint8(x_145, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_142)) { + x_146 = lean_alloc_ctor(0, 4, 0); +} else { + x_146 = x_142; +} +lean_ctor_set(x_146, 0, x_139); +lean_ctor_set(x_146, 1, x_140); +lean_ctor_set(x_146, 2, x_141); +lean_ctor_set(x_146, 3, x_145); +x_147 = lean_st_ref_set(x_6, x_146, x_138); +lean_dec(x_6); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_149 = x_147; +} else { + lean_dec_ref(x_147); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_127); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_151 = lean_ctor_get(x_126, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_126, 1); +lean_inc(x_152); +lean_dec(x_126); +x_105 = x_151; +x_106 = x_152; +goto block_125; +} +block_125: +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_107 = lean_st_ref_get(x_6, x_106); +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_109 = lean_st_ref_take(x_6, x_108); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_110, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +lean_dec(x_109); +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 2); +lean_inc(x_115); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + lean_ctor_release(x_110, 2); + lean_ctor_release(x_110, 3); + x_116 = x_110; +} else { + lean_dec_ref(x_110); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_111, 0); +lean_inc(x_117); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + x_118 = x_111; +} else { + lean_dec_ref(x_111); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 1, 1); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set_uint8(x_119, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_116)) { + x_120 = lean_alloc_ctor(0, 4, 0); +} else { + x_120 = x_116; +} +lean_ctor_set(x_120, 0, x_113); +lean_ctor_set(x_120, 1, x_114); +lean_ctor_set(x_120, 2, x_115); +lean_ctor_set(x_120, 3, x_119); +x_121 = lean_st_ref_set(x_6, x_120, x_112); +lean_dec(x_6); +x_122 = lean_ctor_get(x_121, 1); +lean_inc(x_122); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_123 = x_121; +} else { + lean_dec_ref(x_121); + x_123 = lean_box(0); +} +if (lean_is_scalar(x_123)) { + x_124 = lean_alloc_ctor(1, 2, 0); +} else { + x_124 = x_123; + lean_ctor_set_tag(x_124, 1); +} +lean_ctor_set(x_124, 0, x_105); +lean_ctor_set(x_124, 1, x_122); +return x_124; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_184; +x_153 = lean_ctor_get(x_17, 0); +x_154 = lean_ctor_get(x_17, 1); +x_155 = lean_ctor_get(x_17, 2); +lean_inc(x_155); +lean_inc(x_154); +lean_inc(x_153); +lean_dec(x_17); +x_156 = lean_ctor_get(x_18, 0); +lean_inc(x_156); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + x_157 = x_18; +} else { + lean_dec_ref(x_18); + x_157 = lean_box(0); +} +x_158 = 0; +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 1, 1); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); +x_160 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_160, 0, x_153); +lean_ctor_set(x_160, 1, x_154); +lean_ctor_set(x_160, 2, x_155); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_st_ref_set(x_6, x_160, x_19); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_184 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_162); +if (lean_obj_tag(x_184) == 0) +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_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; +x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_184, 1); +lean_inc(x_186); +lean_dec(x_184); +lean_inc(x_185); +x_187 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_187, 0, x_1); +lean_closure_set(x_187, 1, x_2); +lean_closure_set(x_187, 2, x_185); +x_188 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_189 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_188, x_187, x_3, x_4, x_5, x_6, x_186); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_st_ref_get(x_6, x_190); +x_192 = lean_ctor_get(x_191, 1); +lean_inc(x_192); +lean_dec(x_191); +x_193 = lean_st_ref_take(x_6, x_192); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_194, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_193, 1); +lean_inc(x_196); +lean_dec(x_193); +x_197 = lean_ctor_get(x_194, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_194, 1); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 2); +lean_inc(x_199); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + lean_ctor_release(x_194, 2); + lean_ctor_release(x_194, 3); + x_200 = x_194; +} else { + lean_dec_ref(x_194); + x_200 = lean_box(0); +} +x_201 = lean_ctor_get(x_195, 0); +lean_inc(x_201); +if (lean_is_exclusive(x_195)) { + lean_ctor_release(x_195, 0); + x_202 = x_195; +} else { + lean_dec_ref(x_195); + x_202 = lean_box(0); +} +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 1, 1); +} else { + x_203 = x_202; +} +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set_uint8(x_203, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_200)) { + x_204 = lean_alloc_ctor(0, 4, 0); +} else { + x_204 = x_200; +} +lean_ctor_set(x_204, 0, x_197); +lean_ctor_set(x_204, 1, x_198); +lean_ctor_set(x_204, 2, x_199); +lean_ctor_set(x_204, 3, x_203); +x_205 = lean_st_ref_set(x_6, x_204, x_196); +lean_dec(x_6); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_209 = lean_ctor_get(x_184, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_184, 1); +lean_inc(x_210); +lean_dec(x_184); +x_163 = x_209; +x_164 = x_210; +goto block_183; +} +block_183: +{ +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; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_165 = lean_st_ref_get(x_6, x_164); +x_166 = lean_ctor_get(x_165, 1); +lean_inc(x_166); +lean_dec(x_165); +x_167 = lean_st_ref_take(x_6, x_166); +x_168 = lean_ctor_get(x_167, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_168, 3); +lean_inc(x_169); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_dec(x_167); +x_171 = lean_ctor_get(x_168, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_168, 1); +lean_inc(x_172); +x_173 = lean_ctor_get(x_168, 2); +lean_inc(x_173); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + x_174 = x_168; +} else { + lean_dec_ref(x_168); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_169, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + x_176 = x_169; +} else { + lean_dec_ref(x_169); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(0, 1, 1); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_15); +if (lean_is_scalar(x_174)) { + x_178 = lean_alloc_ctor(0, 4, 0); +} else { + x_178 = x_174; +} +lean_ctor_set(x_178, 0, x_171); +lean_ctor_set(x_178, 1, x_172); +lean_ctor_set(x_178, 2, x_173); +lean_ctor_set(x_178, 3, x_177); +x_179 = lean_st_ref_set(x_6, x_178, x_170); +lean_dec(x_6); +x_180 = lean_ctor_get(x_179, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_181 = x_179; +} else { + lean_dec_ref(x_179); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; + lean_ctor_set_tag(x_182, 1); +} +lean_ctor_set(x_182, 0, x_163); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_5, 3); +lean_inc(x_211); +x_212 = l___private_Lean_Util_Trace_5__getResetTraces___at_Lean_Meta_isLevelDefEq___spec__4___rarg(x_6, x_10); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_215 = l___private_Lean_Meta_LevelDefEq_15__runDefEqM(x_8, x_3, x_4, x_5, x_6, x_214); +if (lean_obj_tag(x_215) == 0) +{ +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; uint8_t x_223; +x_216 = lean_ctor_get(x_215, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_215, 1); +lean_inc(x_217); +lean_dec(x_215); +lean_inc(x_216); +x_218 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEq___rarg___lambda__1___boxed), 4, 3); +lean_closure_set(x_218, 0, x_1); +lean_closure_set(x_218, 1, x_2); +lean_closure_set(x_218, 2, x_216); +x_219 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_220 = l_Lean_MonadTracer_trace___at_Lean_Meta_isLevelDefEq___spec__2(x_219, x_218, x_3, x_4, x_5, x_6, x_217); +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_222 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_219, x_211, x_3, x_4, x_5, x_6, x_221); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_223 = !lean_is_exclusive(x_222); +if (x_223 == 0) +{ +lean_object* x_224; +x_224 = lean_ctor_get(x_222, 0); +lean_dec(x_224); +lean_ctor_set(x_222, 0, x_216); +return x_222; +} +else +{ +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +lean_dec(x_222); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_216); +lean_ctor_set(x_226, 1, x_225); +return x_226; +} +} +else +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; +lean_dec(x_2); +lean_dec(x_1); +x_227 = lean_ctor_get(x_215, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_215, 1); +lean_inc(x_228); +lean_dec(x_215); +x_229 = l_Lean_Meta_isExprDefEq___rarg___closed__2; +x_230 = l___private_Lean_Util_Trace_4__addNode___at_Lean_Meta_isLevelDefEq___spec__5(x_213, x_229, x_211, x_3, x_4, x_5, x_6, x_228); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_231 = !lean_is_exclusive(x_230); +if (x_231 == 0) +{ +lean_object* x_232; +x_232 = lean_ctor_get(x_230, 0); +lean_dec(x_232); +lean_ctor_set_tag(x_230, 1); +lean_ctor_set(x_230, 0, x_227); +return x_230; +} +else +{ +lean_object* x_233; lean_object* x_234; +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec(x_230); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_227); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +} +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg___boxed), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_12 = lean_expr_instantiate1(x_1, x_6); x_13 = lean_expr_instantiate1(x_2, x_6); x_14 = lean_array_push(x_3, x_6); -x_15 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(x_4, x_5, x_12, x_13, x_14, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg(x_4, x_5, x_12, x_13, x_14, x_7, x_8, x_9, x_10, x_11); return x_15; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__1() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__1() { _start: { lean_object* x_1; @@ -127,27 +1397,27 @@ x_1 = lean_mk_string("unexpected number of parameters"); return x_1; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__2() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__1; +x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__3() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__2; +x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__4() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__4() { _start: { lean_object* x_1; @@ -155,27 +1425,16 @@ x_1 = lean_mk_string("parameter name mismatch '"); return x_1; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__5() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__4; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__7() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__6() { _start: { lean_object* x_1; @@ -183,55 +1442,25 @@ x_1 = lean_mk_string("', expected '"); return x_1; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__8() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__9() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("binder annotation mismatch at parameter '"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__11; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__13() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__9() { _start: { lean_object* x_1; @@ -239,55 +1468,59 @@ x_1 = lean_mk_string("type mismatch at parameter '"); return x_1; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__14() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__13; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__9; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__14; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__16() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__11() { _start: { lean_object* x_1; -x_1 = lean_mk_string("expected type"); +x_1 = lean_mk_string("\nexpected type"); return x_1; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__17() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__16; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__11; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18() { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__17; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_String_splitAux___main___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__14() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("binder annotation mismatch at parameter '"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__14; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -302,7 +1535,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_15 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_3, x_6, x_7, x_8, x_9, x_10); +x_15 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_3, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -315,7 +1548,7 @@ lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_18 = l_Lean_Meta_whnf___at___private_Lean_Meta_Basic_16__isClassExpensive_x3f___main___spec__2(x_4, x_6, x_7, x_8, x_9, x_17); +x_18 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_4, x_6, x_7, x_8, x_9, x_17); if (lean_obj_tag(x_18) == 0) { if (lean_obj_tag(x_16) == 7) @@ -358,11 +1591,11 @@ lean_dec(x_5); lean_dec(x_1); x_30 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_30, 0, x_21); -x_31 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__6; +x_31 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__5; x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__9; +x_33 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__7; x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); @@ -371,11 +1604,11 @@ lean_ctor_set(x_35, 0, x_25); x_36 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_35); -x_37 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_37 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; x_38 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_38, 0, x_36); lean_ctor_set(x_38, 1, x_37); -x_39 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_38, x_6, x_7, x_8, x_9, x_20); +x_39 = l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(x_38, x_6, x_7, x_8, x_9, x_20); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -401,7 +1634,7 @@ return x_43; } else { -lean_object* x_44; lean_object* x_61; +lean_object* x_44; lean_dec(x_25); lean_inc(x_9); lean_inc(x_8); @@ -409,89 +1642,145 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_26); lean_inc(x_22); -x_61 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_isExprDefEqGuarded___spec__1(x_22, x_26, x_6, x_7, x_8, x_9, x_20); -if (lean_obj_tag(x_61) == 0) +x_44 = l_Lean_Meta_isExprDefEq___at_Lean_Meta_forallTelescopeCompatibleAux___spec__3(x_22, x_26, x_6, x_7, x_8, x_9, x_20); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_62; uint8_t x_63; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_unbox(x_62); -lean_dec(x_62); -if (x_63 == 0) +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_dec(x_27); lean_dec(x_23); lean_dec(x_14); lean_dec(x_5); lean_dec(x_1); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_dec(x_61); -x_65 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_65, 0, x_21); -x_66 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__15; -x_67 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_69 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_indentExpr(x_22); -x_71 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_MessageData_ofList___closed__3; -x_73 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18; -x_75 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -x_76 = l_Lean_indentExpr(x_26); -x_77 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_77, x_6, x_7, x_8, x_9, x_64); +x_47 = lean_ctor_get(x_44, 1); +lean_inc(x_47); +lean_dec(x_44); +x_48 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_48, 0, x_21); +x_49 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__10; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_indentExpr(x_22); +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__12; +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Lean_indentExpr(x_26); +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; +x_60 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(x_60, x_6, x_7, x_8, x_9, x_47); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) { -return x_78; +return x_61; } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_78, 0); -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_78); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} -else -{ -lean_object* x_83; -lean_dec(x_26); -x_83 = lean_ctor_get(x_61, 1); -lean_inc(x_83); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_inc(x_63); lean_dec(x_61); -x_44 = x_83; -goto block_60; +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } else { -uint8_t x_84; +lean_object* x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; +lean_dec(x_26); +x_66 = lean_ctor_get(x_44, 1); +lean_inc(x_66); +lean_dec(x_44); +x_67 = (uint8_t)((x_24 << 24) >> 61); +x_68 = (uint8_t)((x_28 << 24) >> 61); +x_69 = l_Lean_BinderInfo_beq(x_67, x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_1); +x_70 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_70, 0, x_21); +x_71 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__15; +x_72 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; +x_74 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +x_75 = l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(x_74, x_6, x_7, x_8, x_9, x_66); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) +{ +return x_75; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_75, 0); +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_75); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +else +{ +lean_object* x_80; lean_object* x_81; +x_80 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__1___boxed), 11, 5); +lean_closure_set(x_80, 0, x_23); +lean_closure_set(x_80, 1, x_27); +lean_closure_set(x_80, 2, x_5); +lean_closure_set(x_80, 3, x_1); +lean_closure_set(x_80, 4, x_14); +x_81 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(x_21, x_67, x_22, x_80, x_6, x_7, x_8, x_9, x_66); +return x_81; +} +} +} +else +{ +uint8_t x_82; lean_dec(x_27); lean_dec(x_26); lean_dec(x_23); @@ -504,131 +1793,69 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_84 = !lean_is_exclusive(x_61); -if (x_84 == 0) +x_82 = !lean_is_exclusive(x_44); +if (x_82 == 0) { -return x_61; +return x_44; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_61, 0); -x_86 = lean_ctor_get(x_61, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_61); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -return x_87; -} -} -block_60: -{ -uint8_t x_45; uint8_t x_46; uint8_t x_47; -x_45 = (uint8_t)((x_24 << 24) >> 61); -x_46 = (uint8_t)((x_28 << 24) >> 61); -x_47 = l_Lean_BinderInfo_beq(x_45, x_46); -if (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; uint8_t x_54; -lean_dec(x_27); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_1); -x_48 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_48, 0, x_21); -x_49 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__12; -x_50 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_52 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -x_53 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_52, x_6, x_7, x_8, x_9, x_44); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) -{ -return x_53; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_53, 0); -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_53); -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; -x_58 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___lambda__1___boxed), 11, 5); -lean_closure_set(x_58, 0, x_23); -lean_closure_set(x_58, 1, x_27); -lean_closure_set(x_58, 2, x_5); -lean_closure_set(x_58, 3, x_1); -lean_closure_set(x_58, 4, x_14); -x_59 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main___spec__1___rarg(x_21, x_45, x_22, x_58, x_6, x_7, x_8, x_9, x_44); -return x_59; +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_44, 0); +x_84 = lean_ctor_get(x_44, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_44); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; } } } } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_dec(x_19); lean_dec(x_16); lean_dec(x_14); lean_dec(x_5); lean_dec(x_1); -x_88 = lean_ctor_get(x_18, 1); -lean_inc(x_88); +x_86 = lean_ctor_get(x_18, 1); +lean_inc(x_86); lean_dec(x_18); -x_89 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__3; -x_90 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_89, x_6, x_7, x_8, x_9, x_88); +x_87 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__3; +x_88 = l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(x_87, x_6, x_7, x_8, x_9, x_86); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_90; +return x_88; } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_dec(x_16); lean_dec(x_14); lean_dec(x_5); lean_dec(x_1); -x_91 = lean_ctor_get(x_18, 1); -lean_inc(x_91); +x_89 = lean_ctor_get(x_18, 1); +lean_inc(x_89); lean_dec(x_18); -x_92 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__3; -x_93 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_92, x_6, x_7, x_8, x_9, x_91); +x_90 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__3; +x_91 = l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(x_90, x_6, x_7, x_8, x_9, x_89); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_93; +return x_91; } } else { -uint8_t x_94; +uint8_t x_92; lean_dec(x_16); lean_dec(x_14); lean_dec(x_9); @@ -637,29 +1864,29 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_1); -x_94 = !lean_is_exclusive(x_18); -if (x_94 == 0) +x_92 = !lean_is_exclusive(x_18); +if (x_92 == 0) { return x_18; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_18, 0); -x_96 = lean_ctor_get(x_18, 1); -lean_inc(x_96); -lean_inc(x_95); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_18, 0); +x_94 = lean_ctor_get(x_18, 1); +lean_inc(x_94); +lean_inc(x_93); lean_dec(x_18); -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_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } else { -uint8_t x_98; +uint8_t x_96; lean_dec(x_14); lean_dec(x_9); lean_dec(x_8); @@ -668,70 +1895,34 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_98 = !lean_is_exclusive(x_15); -if (x_98 == 0) +x_96 = !lean_is_exclusive(x_15); +if (x_96 == 0) { return x_15; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_15, 0); -x_100 = lean_ctor_get(x_15, 1); -lean_inc(x_100); -lean_inc(x_99); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_15, 0); +x_98 = lean_ctor_get(x_15, 1); +lean_inc(x_98); +lean_inc(x_97); lean_dec(x_15); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; } } } else { -lean_object* x_102; -x_102 = lean_apply_8(x_1, x_5, x_3, x_4, x_6, x_7, x_8, x_9, x_10); -return x_102; +lean_object* x_100; +x_100 = lean_apply_8(x_1, x_5, x_3, x_4, x_6, x_7, x_8, x_9, x_10); +return x_100; } } } -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___boxed), 10, 0); -return x_2; -} -} -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_5); -lean_dec(x_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); -return x_11; -} -} -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(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_Lean_Meta_forallTelescopeCompatibleAux(lean_object* x_1) { _start: { @@ -740,6 +1931,39 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeCompatibleAux___rarg return x_2; } } +lean_object* l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at_Lean_Meta_forallTelescopeCompatibleAux___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_2); +lean_dec(x_2); +x_11 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -766,7 +1990,7 @@ x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeCompatible___rarg__ lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_5); x_12 = l_Array_empty___closed__1; -x_13 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(x_11, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg(x_11, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10); return x_13; } } @@ -909,6 +2133,40 @@ x_6 = l_Lean_Name_appendIndexAfter(x_5, x_2); return x_6; } } +lean_object* l_Lean_Elab_isFreshInstanceName_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; size_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_7 = lean_box_usize(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l_Lean_Elab_isFreshInstanceName_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_isFreshInstanceName_match__1___rarg), 3, 0); +return x_2; +} +} uint8_t l_Lean_Elab_isFreshInstanceName(lean_object* x_1) { _start: { @@ -938,6 +2196,37 @@ x_3 = lean_box(x_2); return x_3; } } +lean_object* l_Lean_Elab_sortDeclLevelParams_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_sortDeclLevelParams_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_sortDeclLevelParams_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_List_foldl___main___at_Lean_Elab_sortDeclLevelParams___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1401,42 +2690,36 @@ lean_dec_ref(res); res = initialize_Lean_Meta_ExprDefEq(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__1 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__1(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__1); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__2 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__2(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__2); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__3 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__3(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__3); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__4 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__4(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__4); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__5 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__5(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__5); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__6 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__6(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__6); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__7 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__7(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__7); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__8 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__8(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__8); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__9 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__9(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__9); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__10 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__10(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__10); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__11 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__11(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__11); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__12 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__12(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__12); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__13 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__13(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__13); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__14 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__14(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__14); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__15 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__15(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__15); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__16 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__16(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__16); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__17 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__17(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__17); -l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18(); -lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__1 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__1); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__2 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__2(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__2); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__3 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__3(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__3); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__4 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__4(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__4); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__5 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__5(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__5); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__6 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__6(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__6); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__7 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__7(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__7); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__9 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__9(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__9); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__10 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__10(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__10); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__11 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__11(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__11); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__12 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__12(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__12); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__14 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__14(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__14); +l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__15 = _init_l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__15(); +lean_mark_persistent(l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__15); l_Lean_Elab_mkFreshInstanceName___closed__1 = _init_l_Lean_Elab_mkFreshInstanceName___closed__1(); lean_mark_persistent(l_Lean_Elab_mkFreshInstanceName___closed__1); l_Lean_Elab_mkFreshInstanceName___closed__2 = _init_l_Lean_Elab_mkFreshInstanceName___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Declaration.c b/stage0/stdlib/Lean/Elab/Declaration.c index d3143107de..041ac4f7c0 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -15,241 +15,346 @@ extern "C" { #endif lean_object* l_Lean_Elab_Command_elabDeclaration(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualElement_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_elabStructure___closed__11; lean_object* l_Lean_Elab_Command_expandInitialize___closed__29; -lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3(lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Command_elabAxiom___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); extern lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__3; lean_object* l_Lean_Elab_Command_expandInitialize___closed__22; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__3; +lean_object* l_Lean_Elab_Command_expandMutualElement_match__2(lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble___closed__1; +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4(lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5(uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; -uint8_t l___private_Lean_Elab_Declaration_5__isMutualDef(lean_object*); lean_object* l_Lean_Elab_Command_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverload___spec__2(lean_object*); +lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__37; extern lean_object* l___private_Lean_Elab_Command_11__addNamespace___closed__1; +lean_object* lean_array_uget(lean_object*, size_t); extern lean_object* l_Lean_Elab_Command_elabSection___closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___closed__7; uint8_t l_Lean_Elab_Modifiers_isProtected(lean_object*); +lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__16; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3(lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__4; lean_object* l_Lean_Elab_Command_expandInitialize___closed__3; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualElement___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize___closed__2; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__10; lean_object* l_Lean_Elab_Command_expandInitialize___closed__24; +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2(lean_object*); lean_object* l_List_map___main___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1___rarg(lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; +extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__3; +lean_object* l_Lean_Elab_Command_elabAxiom_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__5; +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabAxiom_match__3(lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4(lean_object*); +lean_object* l_Lean_Elab_Command_elabDeclaration_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__13; lean_object* l_Lean_Elab_Command_expandInitialize___closed__41; lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; -lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble(lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__1; +lean_object* lean_private_to_user_name(lean_object*); lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__30; +lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandInitialize(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration(lean_object*); extern lean_object* l_Lean_mkSimpleThunkType___closed__1; +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabAxiom_match__5___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__18; lean_object* l_Lean_Elab_Command_expandInitialize___closed__15; -lean_object* l___private_Lean_Elab_Declaration_2__classInductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__16; +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__34; lean_object* lean_string_append(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__14; lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_5__isMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualElement_match__1(lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual(lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualElement_match__3___rarg(lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__7; -lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__20; +uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__33; extern lean_object* l_Lean_Elab_Command_expandInCmd___closed__7; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__28; extern lean_object* l_Lean_mkAppStx___closed__8; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__1; -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_3__isMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabAxiom_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__8; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1; +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_classInductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__4; +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1(lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__8; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2___rarg(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Declaration_5__isMutualDef___boxed(lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__23; +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__13; lean_object* l_Lean_Elab_Command_expandInitialize___closed__6; +lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__2(lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__25; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__4; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__23; lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; lean_object* l_Lean_Elab_Command_elabAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Declaration_7__splitMutualPreamble(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualElement___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__1; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__2; lean_object* l_Lean_Elab_Command_expandMutualNamespace___closed__1; lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__22; +extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__3; lean_object* l_Lean_Elab_Command_expandInitialize___closed__39; extern lean_object* l_Lean_Elab_Attribute_hasFormat___closed__1; -lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductiveViews(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__3; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__7; +lean_object* l_Lean_Elab_Command_elabAxiom_match__3___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__14; lean_object* l_Lean_Elab_Command_expandInitialize___closed__2; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__8; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__4; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__5; lean_object* l_Lean_Elab_Command_expandInitialize___closed__21; lean_object* l_Lean_Elab_Command_expandInitialize___closed__38; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualPreamble(lean_object*); +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__18; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__15; lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Command_elabAttr___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_getLevelParamsPreDecls___closed__1; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabVariables___closed__2; -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7(lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1(lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabAttr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Command_elabClassInductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; lean_object* l_Lean_Elab_Command_expandInitialize___closed__17; lean_object* l_Lean_Elab_Command_expandInitialize___closed__1; extern lean_object* l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +extern lean_object* l_Lean_protectedExt; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__9; extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__6; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__3; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; lean_object* l_Lean_Elab_Command_expandInitialize___closed__9; extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* lean_expr_dbg_to_string(lean_object*); -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandArrayLit___closed__9; lean_object* l_Lean_Elab_Command_expandInitialize___closed__40; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__1; lean_object* l_Lean_Elab_Command_expandMutualPreamble___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCommand___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_4__elabMutualInductive___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__31; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; uint8_t l_Lean_Elab_Command_isDefLike(lean_object*); +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__3; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f(lean_object*); -lean_object* l___private_Lean_Elab_Declaration_3__isMutualInductive___boxed(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__2; -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__27; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_sortDeclLevelParams(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___boxed(lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__9; +lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___closed__4; +lean_object* l_Lean_Elab_Command_elabAxiom_match__2___rarg(lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverses___closed__2; lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Command_elabAxiom___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__4; lean_object* l_Lean_Elab_Command_expandInitialize___closed__35; +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr___closed__2; +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3(lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabAxiom_match__2(lean_object*); lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*); +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAttr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2; +uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef(lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4___rarg(lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__19; +uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___rarg___closed__3; lean_object* l_Lean_Elab_Command_expandMutualPreamble(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Command_expandInitialize___closed__19; lean_object* l_Lean_Elab_Command_expandMutualElement(lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_Declaration_3__isMutualInductive(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualElement(lean_object*); extern lean_object* l___private_Lean_Meta_Match_Match_40__process___main___closed__1; lean_object* l_Lean_Elab_Command_expandInitialize___closed__36; extern lean_object* l___private_Lean_Compiler_InitAttr_1__getIOTypeArg___closed__1; -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_5__isMutualDef___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__2; -lean_object* l___private_Lean_Elab_Declaration_7__splitMutualPreamble___main(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; extern lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__1; -uint8_t l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand(lean_object*); lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1; -lean_object* l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getSepArgs(lean_object*); +uint8_t l_Lean_isAttribute(lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getNumArgs(lean_object*); extern lean_object* l_Lean_resolveGlobalConstNoOverload___rarg___lambda__1___closed__2; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__6; extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__2; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMutual(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualElement_match__3(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__8; extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__4; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__21; extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; +lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3(lean_object*); +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_3__isMutualInductive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_applyAttributes(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__17; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4; -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__8; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__5; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__7; lean_object* l_Lean_Elab_Command_expandInitialize___closed__26; +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_isDefLike___closed__6; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9; lean_object* l_Lean_Elab_Command_expandInitialize___closed__11; lean_object* l_Lean_Elab_Command_elabMutual___closed__3; -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; +lean_object* l_Array_ofSubarray___rarg(lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkSimpleThunkType___closed__2; extern lean_object* l_Lean_Elab_Tactic_evalIntro___closed__5; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3; +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble_loop(lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___boxed(lean_object*); lean_object* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__10; @@ -257,195 +362,496 @@ lean_object* l_Lean_Elab_Command_expandInitialize___closed__32; lean_object* l_Lean_Elab_Modifiers_addAttribute(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__12; lean_object* l_Lean_Macro_expandMacro_x3fImp(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMutualNamespace(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; +lean_object* l_Lean_Elab_Command_elabAxiom_match__4(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__5; lean_object* l_Lean_Elab_Command_expandMutualPreamble___closed__6; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__3; +lean_object* l_Lean_addDecl___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1; +lean_object* l_Lean_Elab_Command_elabAxiom_match__5(lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__3; -lean_object* l___private_Lean_Elab_Declaration_4__elabMutualInductive(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Modifiers_isPrivate(lean_object*); +lean_object* l_Lean_Elab_Command_elabDeclaration_match__1(lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__2; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_ensureAssignmentHasNoMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__5; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__3; +extern lean_object* l_Lean_Elab_PreDefinition_inhabited___closed__1; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidCtorModifier(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__5; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__6; lean_object* l_Lean_Elab_Command_elabAttr(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__20; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__11; lean_object* l_Lean_Elab_Command_elabDeclaration___closed__1; +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2(lean_object*); extern lean_object* l_Lean_mkInitAttr___closed__2; lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabAttr___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__3; -lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__5; +lean_object* l_Lean_Elab_Command_expandMutualElement_match__2___rarg(lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive(lean_object*); lean_object* l_Lean_Elab_Command_expandInitialize___closed__42; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkInitAttr___closed__1; +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_expandInCmd___closed__2; +extern lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__12; extern lean_object* l_Lean_Elab_Command_mkDefViewOfInstance___closed__3; extern lean_object* l_Lean_Elab_Command_isDefLike___closed__7; lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_elabNamespace___closed__1; -lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMutual___closed__1; +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +lean_object* l_Lean_Elab_Command_elabAxiom_match__1(lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; -lean_object* l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___closed__1; +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; -lean_object* l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___boxed(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabAttr(lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* l_Lean_Elab_Command_elabMutual___closed__1; lean_object* l___regBuiltin_Lean_Elab_Command_expandMutualElement___closed__1; +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_5; +lean_dec(x_4); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_8 = lean_box_usize(x_7); +x_9 = lean_apply_2(x_2, x_6, x_8); +return x_9; +} +else +{ +lean_object* x_10; size_t x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_2); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_12 = lean_box_usize(x_11); +x_13 = lean_apply_3(x_3, x_5, x_10, x_12); +return x_13; +} +} +else +{ +lean_object* x_14; +lean_dec(x_3); +lean_dec(x_2); +x_14 = lean_apply_1(x_4, x_1); +return x_14; +} +} +} +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__1___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandDeclIdNamespace_x3f_match__2___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Command_expandDeclIdNamespace_x3f(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_object* x_2; uint8_t x_3; x_2 = l_Lean_Elab_expandDeclIdCore(x_1); -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - x_4 = x_2; -} else { - lean_dec_ref(x_2); - x_4 = lean_box(0); -} -x_5 = l_Lean_extractMacroScopes(x_3); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 1) +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 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; lean_object* x_13; -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -x_8 = lean_ctor_get(x_5, 2); -lean_inc(x_8); -x_9 = lean_ctor_get(x_5, 3); -lean_inc(x_9); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - lean_ctor_release(x_5, 1); - lean_ctor_release(x_5, 2); - lean_ctor_release(x_5, 3); - x_10 = x_5; -} else { - lean_dec_ref(x_5); - x_10 = lean_box(0); -} -x_11 = lean_ctor_get(x_6, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_6, 1); -lean_inc(x_12); -lean_dec(x_6); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_28; -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_4); -lean_dec(x_1); -x_28 = lean_box(0); -return x_28; -} -else -{ -lean_object* x_29; -x_29 = lean_box(0); -x_13 = x_29; -goto block_27; -} -block_27: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -lean_dec(x_13); -x_14 = lean_box(0); -x_15 = lean_name_mk_string(x_14, x_12); -if (lean_is_scalar(x_10)) { - x_16 = lean_alloc_ctor(0, 4, 0); -} else { - x_16 = x_10; -} -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_7); -lean_ctor_set(x_16, 2, x_8); -lean_ctor_set(x_16, 3, x_9); -x_17 = l_Lean_MacroScopesView_review(x_16); -x_18 = l_Lean_Syntax_isIdent(x_1); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_19 = l_Lean_mkIdentFrom(x_1, x_17); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Lean_Syntax_setArg(x_1, x_20, x_19); -if (lean_is_scalar(x_4)) { - x_22 = lean_alloc_ctor(0, 2, 0); -} else { - x_22 = x_4; -} -lean_ctor_set(x_22, 0, x_11); -lean_ctor_set(x_22, 1, x_21); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = l_Lean_mkIdentFrom(x_1, x_17); -lean_dec(x_1); -if (lean_is_scalar(x_4)) { - x_25 = lean_alloc_ctor(0, 2, 0); -} else { - x_25 = x_4; -} -lean_ctor_set(x_25, 0, x_11); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_26, 0, x_25); -return x_26; -} -} -} -else -{ -lean_object* x_30; -lean_dec(x_6); +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); lean_dec(x_5); -lean_dec(x_4); +x_6 = l_Lean_extractMacroScopes(x_4); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 1) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +lean_dec(x_7); +lean_dec(x_6); +lean_free_object(x_2); lean_dec(x_1); -x_30 = lean_box(0); -return x_30; +x_9 = lean_box(0); +return x_9; } +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_6); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = lean_ctor_get(x_6, 0); +lean_dec(x_11); +x_12 = lean_ctor_get(x_7, 1); +lean_inc(x_12); +lean_dec(x_7); +x_13 = lean_box(0); +x_14 = lean_name_mk_string(x_13, x_12); +lean_ctor_set(x_6, 0, x_14); +x_15 = l_Lean_MacroScopesView_review(x_6); +x_16 = l_Lean_Syntax_isIdent(x_1); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = l_Lean_mkIdentFrom(x_1, x_15); +x_18 = lean_unsigned_to_nat(0u); +x_19 = l_Lean_Syntax_setArg(x_1, x_18, x_17); +lean_ctor_set(x_2, 1, x_19); +lean_ctor_set(x_2, 0, x_8); +x_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_2); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = l_Lean_mkIdentFrom(x_1, x_15); +lean_dec(x_1); +lean_ctor_set(x_2, 1, x_21); +lean_ctor_set(x_2, 0, x_8); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_2); +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; uint8_t x_31; +x_23 = lean_ctor_get(x_6, 1); +x_24 = lean_ctor_get(x_6, 2); +x_25 = lean_ctor_get(x_6, 3); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_6); +x_26 = lean_ctor_get(x_7, 1); +lean_inc(x_26); +lean_dec(x_7); +x_27 = lean_box(0); +x_28 = lean_name_mk_string(x_27, x_26); +x_29 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_23); +lean_ctor_set(x_29, 2, x_24); +lean_ctor_set(x_29, 3, x_25); +x_30 = l_Lean_MacroScopesView_review(x_29); +x_31 = l_Lean_Syntax_isIdent(x_1); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = l_Lean_mkIdentFrom(x_1, x_30); +x_33 = lean_unsigned_to_nat(0u); +x_34 = l_Lean_Syntax_setArg(x_1, x_33, x_32); +lean_ctor_set(x_2, 1, x_34); +lean_ctor_set(x_2, 0, x_8); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_2); +return x_35; +} +else +{ +lean_object* x_36; lean_object* x_37; +x_36 = l_Lean_mkIdentFrom(x_1, x_30); +lean_dec(x_1); +lean_ctor_set(x_2, 1, x_36); +lean_ctor_set(x_2, 0, x_8); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_2); +return x_37; +} +} +} +} +else +{ +lean_object* x_38; +lean_dec(x_7); +lean_dec(x_6); +lean_free_object(x_2); +lean_dec(x_1); +x_38 = lean_box(0); +return x_38; +} +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_2, 0); +lean_inc(x_39); +lean_dec(x_2); +x_40 = l_Lean_extractMacroScopes(x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 1) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_1); +x_43 = lean_box(0); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +x_45 = lean_ctor_get(x_40, 2); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 3); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + lean_ctor_release(x_40, 3); + x_47 = x_40; +} else { + lean_dec_ref(x_40); + x_47 = lean_box(0); +} +x_48 = lean_ctor_get(x_41, 1); +lean_inc(x_48); +lean_dec(x_41); +x_49 = lean_box(0); +x_50 = lean_name_mk_string(x_49, x_48); +if (lean_is_scalar(x_47)) { + x_51 = lean_alloc_ctor(0, 4, 0); +} else { + x_51 = x_47; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_44); +lean_ctor_set(x_51, 2, x_45); +lean_ctor_set(x_51, 3, x_46); +x_52 = l_Lean_MacroScopesView_review(x_51); +x_53 = l_Lean_Syntax_isIdent(x_1); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_54 = l_Lean_mkIdentFrom(x_1, x_52); +x_55 = lean_unsigned_to_nat(0u); +x_56 = l_Lean_Syntax_setArg(x_1, x_55, x_54); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_42); +lean_ctor_set(x_57, 1, x_56); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +return x_58; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = l_Lean_mkIdentFrom(x_1, x_52); +lean_dec(x_1); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_42); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_61, 0, x_60); +return x_61; +} +} +} +else +{ +lean_object* x_62; +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_1); +x_62 = lean_box(0); +return x_62; +} +} +} +} +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandDeclNamespace_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandDeclNamespace_x3f_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandDeclNamespace_x3f_match__3___rarg), 3, 0); +return x_2; } } static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("declaration"); +x_1 = lean_mk_string("classInductive"); return x_1; } } @@ -517,7 +923,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__ _start: { lean_object* x_1; -x_1 = lean_mk_string("classInductive"); +x_1 = lean_mk_string("declaration"); return x_1; } } @@ -534,827 +940,746 @@ return x_3; lean_object* l_Lean_Elab_Command_expandDeclNamespace_x3f(lean_object* x_1) { _start: { -lean_object* x_2; uint8_t x_3; -x_2 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; +uint8_t x_2; lean_object* x_109; uint8_t x_110; +x_109 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; lean_inc(x_1); -x_3 = l_Lean_Syntax_isOfKind(x_1, x_2); -if (x_3 == 0) +x_110 = l_Lean_Syntax_isOfKind(x_1, x_109); +if (x_110 == 0) { -lean_object* x_4; -lean_dec(x_1); -x_4 = lean_box(0); -return x_4; +uint8_t x_111; +x_111 = 1; +x_2 = x_111; +goto block_108; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); +uint8_t x_112; +x_112 = 0; +x_2 = x_112; +goto block_108; +} +block_108: +{ +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_87; uint8_t x_88; +x_3 = lean_unsigned_to_nat(1u); +x_4 = l_Lean_Syntax_getArg(x_1, x_3); +lean_inc(x_4); +x_5 = l_Lean_Syntax_getKind(x_4); +x_87 = l_Lean_Elab_Command_isDefLike___closed__2; +x_88 = lean_name_eq(x_5, x_87); +if (x_88 == 0) +{ +lean_object* x_89; uint8_t x_90; +x_89 = l_Lean_Elab_Command_isDefLike___closed__4; +x_90 = lean_name_eq(x_5, x_89); +if (x_90 == 0) +{ +lean_object* x_91; uint8_t x_92; +x_91 = l_Lean_Elab_Command_isDefLike___closed__6; +x_92 = lean_name_eq(x_5, x_91); +if (x_92 == 0) +{ +lean_object* x_93; uint8_t x_94; +x_93 = l_Lean_Elab_Command_isDefLike___closed__8; +x_94 = lean_name_eq(x_5, x_93); +if (x_94 == 0) +{ +lean_object* x_95; uint8_t x_96; +x_95 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4; +x_96 = lean_name_eq(x_5, x_95); +if (x_96 == 0) +{ +lean_object* x_97; uint8_t x_98; +x_97 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; +x_98 = lean_name_eq(x_5, x_97); +if (x_98 == 0) +{ +lean_object* x_99; uint8_t x_100; +x_99 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__8; +x_100 = lean_name_eq(x_5, x_99); +x_6 = x_100; +goto block_86; +} +else +{ +uint8_t x_101; +x_101 = 1; +x_6 = x_101; +goto block_86; +} +} +else +{ +uint8_t x_102; +x_102 = 1; +x_6 = x_102; +goto block_86; +} +} +else +{ +uint8_t x_103; +x_103 = 1; +x_6 = x_103; +goto block_86; +} +} +else +{ +uint8_t x_104; +x_104 = 1; +x_6 = x_104; +goto block_86; +} +} +else +{ +uint8_t x_105; +x_105 = 1; +x_6 = x_105; +goto block_86; +} +} +else +{ +uint8_t x_106; +x_106 = 1; +x_6 = x_106; +goto block_86; +} +block_86: +{ +if (x_6 == 0) +{ +lean_object* x_7; uint8_t x_8; +x_7 = l_Lean_Elab_Command_isDefLike___closed__9; +x_8 = lean_name_eq(x_5, x_7); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; +x_10 = lean_name_eq(x_5, x_9); +lean_dec(x_5); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_4); +lean_dec(x_1); +x_11 = lean_box(0); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_unsigned_to_nat(2u); +x_13 = l_Lean_Syntax_getArg(x_4, x_12); +x_14 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +lean_dec(x_4); +lean_dec(x_1); +x_15 = lean_box(0); +return x_15; +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_14, 0); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_17, 1); +x_20 = l_Lean_Syntax_setArg(x_4, x_12, x_19); +x_21 = l_Lean_Syntax_setArg(x_1, x_3, x_20); +lean_ctor_set(x_17, 1, x_21); +return x_14; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_17); +x_24 = l_Lean_Syntax_setArg(x_4, x_12, x_23); +x_25 = l_Lean_Syntax_setArg(x_1, x_3, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_22); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_14, 0, x_26); +return x_14; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_27 = lean_ctor_get(x_14, 0); +lean_inc(x_27); +lean_dec(x_14); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_30 = x_27; +} else { + lean_dec_ref(x_27); + x_30 = lean_box(0); +} +x_31 = l_Lean_Syntax_setArg(x_4, x_12, x_29); +x_32 = l_Lean_Syntax_setArg(x_1, x_3, x_31); +if (lean_is_scalar(x_30)) { + x_33 = lean_alloc_ctor(0, 2, 0); +} else { + x_33 = x_30; +} +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +return x_34; +} +} +} +} +else +{ +lean_object* x_35; uint8_t x_36; +lean_dec(x_5); +x_35 = l_Lean_Syntax_getArg(x_4, x_3); +x_36 = l_Lean_Syntax_isNone(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_unsigned_to_nat(0u); +x_38 = l_Lean_Syntax_getArg(x_35, x_37); +x_39 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_38); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; +lean_dec(x_35); +lean_dec(x_4); +lean_dec(x_1); +x_40 = lean_box(0); +return x_40; +} +else +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_39); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_43; +x_42 = lean_ctor_get(x_39, 0); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_42, 1); +x_45 = l_Lean_Syntax_setArg(x_35, x_37, x_44); +x_46 = l_Lean_Syntax_setArg(x_4, x_3, x_45); +x_47 = l_Lean_Syntax_setArg(x_1, x_3, x_46); +lean_ctor_set(x_42, 1, x_47); +return x_39; +} +else +{ +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_42, 0); +x_49 = lean_ctor_get(x_42, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_42); +x_50 = l_Lean_Syntax_setArg(x_35, x_37, x_49); +x_51 = l_Lean_Syntax_setArg(x_4, x_3, x_50); +x_52 = l_Lean_Syntax_setArg(x_1, x_3, x_51); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_48); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set(x_39, 0, x_53); +return x_39; +} +} +else +{ +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_54 = lean_ctor_get(x_39, 0); +lean_inc(x_54); +lean_dec(x_39); +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_57 = x_54; +} else { + lean_dec_ref(x_54); + x_57 = lean_box(0); +} +x_58 = l_Lean_Syntax_setArg(x_35, x_37, x_56); +x_59 = l_Lean_Syntax_setArg(x_4, x_3, x_58); +x_60 = l_Lean_Syntax_setArg(x_1, x_3, x_59); +if (lean_is_scalar(x_57)) { + x_61 = lean_alloc_ctor(0, 2, 0); +} else { + x_61 = x_57; +} +lean_ctor_set(x_61, 0, x_55); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_61); +return x_62; +} +} +} +else +{ +lean_object* x_63; +lean_dec(x_35); +lean_dec(x_4); +lean_dec(x_1); +x_63 = lean_box(0); +return x_63; +} +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_5); +x_64 = l_Lean_Syntax_getArg(x_4, x_3); +x_65 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_64); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; +lean_dec(x_4); +lean_dec(x_1); +x_66 = lean_box(0); +return x_66; +} +else +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_65); +if (x_67 == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_65, 0); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_68, 1); +x_71 = l_Lean_Syntax_setArg(x_4, x_3, x_70); +x_72 = l_Lean_Syntax_setArg(x_1, x_3, x_71); +lean_ctor_set(x_68, 1, x_72); +return x_65; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_73 = lean_ctor_get(x_68, 0); +x_74 = lean_ctor_get(x_68, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_68); +x_75 = l_Lean_Syntax_setArg(x_4, x_3, x_74); +x_76 = l_Lean_Syntax_setArg(x_1, x_3, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_73); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_65, 0, x_77); +return x_65; +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_78 = lean_ctor_get(x_65, 0); +lean_inc(x_78); +lean_dec(x_65); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; +} else { + lean_dec_ref(x_78); + x_81 = lean_box(0); +} +x_82 = l_Lean_Syntax_setArg(x_4, x_3, x_80); +x_83 = l_Lean_Syntax_setArg(x_1, x_3, x_82); +if (lean_is_scalar(x_81)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_81; +} +lean_ctor_set(x_84, 0, x_79); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_85, 0, x_84); +return x_85; +} +} +} +} +} +else +{ +lean_object* x_107; +lean_dec(x_1); +x_107 = lean_box(0); +return x_107; +} +} +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); lean_inc(x_6); -x_7 = l_Lean_Syntax_getKind(x_6); -x_8 = l_Lean_Elab_Command_isDefLike___closed__2; -x_9 = lean_name_eq(x_7, x_8); -if (x_9 == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Elab_Command_isDefLike___closed__4; -x_11 = lean_name_eq(x_7, x_10); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = l_Lean_Elab_Command_isDefLike___closed__6; -x_13 = lean_name_eq(x_7, x_12); -if (x_13 == 0) -{ -lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_Elab_Command_isDefLike___closed__8; -x_15 = lean_name_eq(x_7, x_14); -if (x_15 == 0) -{ -lean_object* x_16; uint8_t x_17; -x_16 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__4; -x_17 = lean_name_eq(x_7, x_16); -if (x_17 == 0) -{ -lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__6; -x_19 = lean_name_eq(x_7, x_18); -if (x_19 == 0) -{ -lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__8; -x_21 = lean_name_eq(x_7, x_20); -if (x_21 == 0) -{ -lean_object* x_22; uint8_t x_23; -x_22 = l_Lean_Elab_Command_isDefLike___closed__9; -x_23 = lean_name_eq(x_7, x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; -x_25 = lean_name_eq(x_7, x_24); -lean_dec(x_7); -if (x_25 == 0) -{ -lean_object* x_26; -lean_dec(x_6); lean_dec(x_1); -x_26 = lean_box(0); -return x_26; +x_7 = lean_apply_1(x_3, x_6); +return x_7; } -else +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__1(lean_object* x_1) { +_start: { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_unsigned_to_nat(2u); -x_28 = l_Lean_Syntax_getArg(x_6, x_27); -x_29 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_28); -if (lean_obj_tag(x_29) == 0) +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: { -lean_dec(x_6); +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); lean_dec(x_1); -return x_29; +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_3(x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom_match__4___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__5___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabAxiom_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom_match__5___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Command_elabAxiom___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = l_Array_isEmpty___rarg(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_11 = lean_st_ref_get(x_6, x_9); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_get(x_8, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 2); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_5, 1); +lean_inc(x_19); +x_20 = l_Std_HashMap_inhabited___closed__1; +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_18); +lean_ctor_set(x_21, 2, x_20); +x_22 = 0; +x_23 = l_Lean_MetavarContext_MkBinding_mkBinding(x_22, x_19, x_1, x_2, x_22, x_22, x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +x_28 = lean_st_ref_take(x_8, x_17); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_32 = lean_ctor_get(x_29, 2); +lean_dec(x_32); +lean_ctor_set(x_29, 2, x_27); +x_33 = lean_st_ref_set(x_8, x_29, x_30); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_ctor_get(x_25, 0); +lean_inc(x_35); +lean_dec(x_25); +x_36 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_35, x_5, x_6, x_7, x_8, x_34); +lean_dec(x_5); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_26); +return x_36; } else { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; uint8_t x_32; -x_31 = lean_ctor_get(x_29, 0); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_31, 1); -x_34 = l_Lean_Syntax_setArg(x_6, x_27, x_33); -x_35 = l_Lean_Syntax_setArg(x_1, x_5, x_34); -lean_ctor_set(x_31, 1, x_35); -return x_29; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_31, 0); -x_37 = lean_ctor_get(x_31, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_31); -x_38 = l_Lean_Syntax_setArg(x_6, x_27, x_37); -x_39 = l_Lean_Syntax_setArg(x_1, x_5, x_38); +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_36); +lean_ctor_set(x_40, 0, x_26); lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_29, 0, x_40); -return x_29; +return x_40; } } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; x_41 = lean_ctor_get(x_29, 0); +x_42 = lean_ctor_get(x_29, 1); +x_43 = lean_ctor_get(x_29, 3); +lean_inc(x_43); +lean_inc(x_42); lean_inc(x_41); lean_dec(x_29); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_44 = x_41; +x_44 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +lean_ctor_set(x_44, 2, x_27); +lean_ctor_set(x_44, 3, x_43); +x_45 = lean_st_ref_set(x_8, x_44, x_30); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_ctor_get(x_25, 0); +lean_inc(x_47); +lean_dec(x_25); +x_48 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_47, x_5, x_6, x_7, x_8, x_46); +lean_dec(x_5); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_50 = x_48; } else { - lean_dec_ref(x_41); - x_44 = lean_box(0); + lean_dec_ref(x_48); + x_50 = lean_box(0); } -x_45 = l_Lean_Syntax_setArg(x_6, x_27, x_43); -x_46 = l_Lean_Syntax_setArg(x_1, x_5, x_45); -if (lean_is_scalar(x_44)) { - x_47 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(0, 2, 0); } else { - x_47 = x_44; -} -lean_ctor_set(x_47, 0, x_42); -lean_ctor_set(x_47, 1, x_46); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_47); -return x_48; -} + x_51 = x_50; } +lean_ctor_set(x_51, 0, x_26); +lean_ctor_set(x_51, 1, x_49); +return x_51; } } else { -lean_object* x_49; uint8_t x_50; -lean_dec(x_7); -x_49 = l_Lean_Syntax_getArg(x_6, x_5); -x_50 = l_Lean_Syntax_isNone(x_49); -if (x_50 == 0) +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_52 = lean_ctor_get(x_23, 1); +lean_inc(x_52); +lean_dec(x_23); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_53, x_5, x_6, x_7, x_8, x_17); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_ctor_get(x_52, 1); +lean_inc(x_56); +lean_dec(x_52); +x_57 = lean_st_ref_take(x_8, x_55); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = !lean_is_exclusive(x_58); +if (x_60 == 0) { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_unsigned_to_nat(0u); -x_52 = l_Lean_Syntax_getArg(x_49, x_51); -x_53 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_52); -if (lean_obj_tag(x_53) == 0) -{ -lean_dec(x_49); -lean_dec(x_6); -lean_dec(x_1); -return x_53; +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_58, 2); +lean_dec(x_61); +lean_ctor_set(x_58, 2, x_56); +x_62 = lean_st_ref_set(x_8, x_58, x_59); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_65 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_64, x_5, x_6, x_7, x_8, x_63); +lean_dec(x_5); +return x_65; } else { -uint8_t x_54; -x_54 = !lean_is_exclusive(x_53); -if (x_54 == 0) -{ -lean_object* x_55; uint8_t x_56; -x_55 = lean_ctor_get(x_53, 0); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_55, 1); -x_58 = l_Lean_Syntax_setArg(x_49, x_51, x_57); -x_59 = l_Lean_Syntax_setArg(x_6, x_5, x_58); -x_60 = l_Lean_Syntax_setArg(x_1, x_5, x_59); -lean_ctor_set(x_55, 1, x_60); -return x_53; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_61 = lean_ctor_get(x_55, 0); -x_62 = lean_ctor_get(x_55, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_55); -x_63 = l_Lean_Syntax_setArg(x_49, x_51, x_62); -x_64 = l_Lean_Syntax_setArg(x_6, x_5, x_63); -x_65 = l_Lean_Syntax_setArg(x_1, x_5, x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_61); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_53, 0, x_66); -return x_53; -} -} -else -{ -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_67 = lean_ctor_get(x_53, 0); -lean_inc(x_67); -lean_dec(x_53); -x_68 = lean_ctor_get(x_67, 0); +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; +x_66 = lean_ctor_get(x_58, 0); +x_67 = lean_ctor_get(x_58, 1); +x_68 = lean_ctor_get(x_58, 3); lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_70 = x_67; -} else { - lean_dec_ref(x_67); - x_70 = lean_box(0); -} -x_71 = l_Lean_Syntax_setArg(x_49, x_51, x_69); -x_72 = l_Lean_Syntax_setArg(x_6, x_5, x_71); -x_73 = l_Lean_Syntax_setArg(x_1, x_5, x_72); -if (lean_is_scalar(x_70)) { - x_74 = lean_alloc_ctor(0, 2, 0); -} else { - x_74 = x_70; -} -lean_ctor_set(x_74, 0, x_68); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_75, 0, x_74); -return x_75; +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_58); +x_69 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_69, 0, x_66); +lean_ctor_set(x_69, 1, x_67); +lean_ctor_set(x_69, 2, x_56); +lean_ctor_set(x_69, 3, x_68); +x_70 = lean_st_ref_set(x_8, x_69, x_59); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_72 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_73 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_72, x_5, x_6, x_7, x_8, x_71); +lean_dec(x_5); +return x_73; } } } else { -lean_object* x_76; -lean_dec(x_49); -lean_dec(x_6); +lean_object* x_74; +lean_dec(x_5); lean_dec(x_1); -x_76 = lean_box(0); -return x_76; +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_2); +lean_ctor_set(x_74, 1, x_9); +return x_74; } } } -else -{ -lean_object* x_77; lean_object* x_78; -lean_dec(x_7); -x_77 = l_Lean_Syntax_getArg(x_6, x_5); -x_78 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_77); -if (lean_obj_tag(x_78) == 0) -{ -lean_dec(x_6); -lean_dec(x_1); -return x_78; -} -else -{ -uint8_t x_79; -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) -{ -lean_object* x_80; uint8_t x_81; -x_80 = lean_ctor_get(x_78, 0); -x_81 = !lean_is_exclusive(x_80); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_80, 1); -x_83 = l_Lean_Syntax_setArg(x_6, x_5, x_82); -x_84 = l_Lean_Syntax_setArg(x_1, x_5, x_83); -lean_ctor_set(x_80, 1, x_84); -return x_78; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_85 = lean_ctor_get(x_80, 0); -x_86 = lean_ctor_get(x_80, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_80); -x_87 = l_Lean_Syntax_setArg(x_6, x_5, x_86); -x_88 = l_Lean_Syntax_setArg(x_1, x_5, x_87); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_85); -lean_ctor_set(x_89, 1, x_88); -lean_ctor_set(x_78, 0, x_89); -return x_78; -} -} -else -{ -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_ctor_get(x_78, 0); -lean_inc(x_90); -lean_dec(x_78); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_93 = x_90; -} else { - lean_dec_ref(x_90); - x_93 = lean_box(0); -} -x_94 = l_Lean_Syntax_setArg(x_6, x_5, x_92); -x_95 = l_Lean_Syntax_setArg(x_1, x_5, x_94); -if (lean_is_scalar(x_93)) { - x_96 = lean_alloc_ctor(0, 2, 0); -} else { - x_96 = x_93; -} -lean_ctor_set(x_96, 0, x_91); -lean_ctor_set(x_96, 1, x_95); -x_97 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_97, 0, x_96); -return x_97; -} -} -} -} -else -{ -lean_object* x_98; lean_object* x_99; -lean_dec(x_7); -x_98 = l_Lean_Syntax_getArg(x_6, x_5); -x_99 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_98); -if (lean_obj_tag(x_99) == 0) -{ -lean_dec(x_6); -lean_dec(x_1); -return x_99; -} -else -{ -uint8_t x_100; -x_100 = !lean_is_exclusive(x_99); -if (x_100 == 0) -{ -lean_object* x_101; uint8_t x_102; -x_101 = lean_ctor_get(x_99, 0); -x_102 = !lean_is_exclusive(x_101); -if (x_102 == 0) -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_101, 1); -x_104 = l_Lean_Syntax_setArg(x_6, x_5, x_103); -x_105 = l_Lean_Syntax_setArg(x_1, x_5, x_104); -lean_ctor_set(x_101, 1, x_105); -return x_99; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_106 = lean_ctor_get(x_101, 0); -x_107 = lean_ctor_get(x_101, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_101); -x_108 = l_Lean_Syntax_setArg(x_6, x_5, x_107); -x_109 = l_Lean_Syntax_setArg(x_1, x_5, x_108); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_106); -lean_ctor_set(x_110, 1, x_109); -lean_ctor_set(x_99, 0, x_110); -return x_99; -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_111 = lean_ctor_get(x_99, 0); -lean_inc(x_111); -lean_dec(x_99); -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_111, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_114 = x_111; -} else { - lean_dec_ref(x_111); - x_114 = lean_box(0); -} -x_115 = l_Lean_Syntax_setArg(x_6, x_5, x_113); -x_116 = l_Lean_Syntax_setArg(x_1, x_5, x_115); -if (lean_is_scalar(x_114)) { - x_117 = lean_alloc_ctor(0, 2, 0); -} else { - x_117 = x_114; -} -lean_ctor_set(x_117, 0, x_112); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_118, 0, x_117); -return x_118; -} -} -} -} -else -{ -lean_object* x_119; lean_object* x_120; -lean_dec(x_7); -x_119 = l_Lean_Syntax_getArg(x_6, x_5); -x_120 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_119); -if (lean_obj_tag(x_120) == 0) -{ -lean_dec(x_6); -lean_dec(x_1); -return x_120; -} -else -{ -uint8_t x_121; -x_121 = !lean_is_exclusive(x_120); -if (x_121 == 0) -{ -lean_object* x_122; uint8_t x_123; -x_122 = lean_ctor_get(x_120, 0); -x_123 = !lean_is_exclusive(x_122); -if (x_123 == 0) -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_122, 1); -x_125 = l_Lean_Syntax_setArg(x_6, x_5, x_124); -x_126 = l_Lean_Syntax_setArg(x_1, x_5, x_125); -lean_ctor_set(x_122, 1, x_126); -return x_120; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_127 = lean_ctor_get(x_122, 0); -x_128 = lean_ctor_get(x_122, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_122); -x_129 = l_Lean_Syntax_setArg(x_6, x_5, x_128); -x_130 = l_Lean_Syntax_setArg(x_1, x_5, x_129); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_127); -lean_ctor_set(x_131, 1, x_130); -lean_ctor_set(x_120, 0, x_131); -return x_120; -} -} -else -{ -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; -x_132 = lean_ctor_get(x_120, 0); -lean_inc(x_132); -lean_dec(x_120); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_135 = x_132; -} else { - lean_dec_ref(x_132); - x_135 = lean_box(0); -} -x_136 = l_Lean_Syntax_setArg(x_6, x_5, x_134); -x_137 = l_Lean_Syntax_setArg(x_1, x_5, x_136); -if (lean_is_scalar(x_135)) { - x_138 = lean_alloc_ctor(0, 2, 0); -} else { - x_138 = x_135; -} -lean_ctor_set(x_138, 0, x_133); -lean_ctor_set(x_138, 1, x_137); -x_139 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_139, 0, x_138); -return x_139; -} -} -} -} -else -{ -lean_object* x_140; lean_object* x_141; -lean_dec(x_7); -x_140 = l_Lean_Syntax_getArg(x_6, x_5); -x_141 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_140); -if (lean_obj_tag(x_141) == 0) -{ -lean_dec(x_6); -lean_dec(x_1); -return x_141; -} -else -{ -uint8_t x_142; -x_142 = !lean_is_exclusive(x_141); -if (x_142 == 0) -{ -lean_object* x_143; uint8_t x_144; -x_143 = lean_ctor_get(x_141, 0); -x_144 = !lean_is_exclusive(x_143); -if (x_144 == 0) -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_143, 1); -x_146 = l_Lean_Syntax_setArg(x_6, x_5, x_145); -x_147 = l_Lean_Syntax_setArg(x_1, x_5, x_146); -lean_ctor_set(x_143, 1, x_147); -return x_141; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_148 = lean_ctor_get(x_143, 0); -x_149 = lean_ctor_get(x_143, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_143); -x_150 = l_Lean_Syntax_setArg(x_6, x_5, x_149); -x_151 = l_Lean_Syntax_setArg(x_1, x_5, x_150); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_148); -lean_ctor_set(x_152, 1, x_151); -lean_ctor_set(x_141, 0, x_152); -return x_141; -} -} -else -{ -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; -x_153 = lean_ctor_get(x_141, 0); -lean_inc(x_153); -lean_dec(x_141); -x_154 = lean_ctor_get(x_153, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_156 = x_153; -} else { - lean_dec_ref(x_153); - x_156 = lean_box(0); -} -x_157 = l_Lean_Syntax_setArg(x_6, x_5, x_155); -x_158 = l_Lean_Syntax_setArg(x_1, x_5, x_157); -if (lean_is_scalar(x_156)) { - x_159 = lean_alloc_ctor(0, 2, 0); -} else { - x_159 = x_156; -} -lean_ctor_set(x_159, 0, x_154); -lean_ctor_set(x_159, 1, x_158); -x_160 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_160, 0, x_159); -return x_160; -} -} -} -} -else -{ -lean_object* x_161; lean_object* x_162; -lean_dec(x_7); -x_161 = l_Lean_Syntax_getArg(x_6, x_5); -x_162 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_161); -if (lean_obj_tag(x_162) == 0) -{ -lean_dec(x_6); -lean_dec(x_1); -return x_162; -} -else -{ -uint8_t x_163; -x_163 = !lean_is_exclusive(x_162); -if (x_163 == 0) -{ -lean_object* x_164; uint8_t x_165; -x_164 = lean_ctor_get(x_162, 0); -x_165 = !lean_is_exclusive(x_164); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_164, 1); -x_167 = l_Lean_Syntax_setArg(x_6, x_5, x_166); -x_168 = l_Lean_Syntax_setArg(x_1, x_5, x_167); -lean_ctor_set(x_164, 1, x_168); -return x_162; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_169 = lean_ctor_get(x_164, 0); -x_170 = lean_ctor_get(x_164, 1); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_164); -x_171 = l_Lean_Syntax_setArg(x_6, x_5, x_170); -x_172 = l_Lean_Syntax_setArg(x_1, x_5, x_171); -x_173 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_173, 0, x_169); -lean_ctor_set(x_173, 1, x_172); -lean_ctor_set(x_162, 0, x_173); -return x_162; -} -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_174 = lean_ctor_get(x_162, 0); -lean_inc(x_174); -lean_dec(x_162); -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_177 = x_174; -} else { - lean_dec_ref(x_174); - x_177 = lean_box(0); -} -x_178 = l_Lean_Syntax_setArg(x_6, x_5, x_176); -x_179 = l_Lean_Syntax_setArg(x_1, x_5, x_178); -if (lean_is_scalar(x_177)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_177; -} -lean_ctor_set(x_180, 0, x_175); -lean_ctor_set(x_180, 1, x_179); -x_181 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_181, 0, x_180); -return x_181; -} -} -} -} -else -{ -lean_object* x_182; lean_object* x_183; -lean_dec(x_7); -x_182 = l_Lean_Syntax_getArg(x_6, x_5); -x_183 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_182); -if (lean_obj_tag(x_183) == 0) -{ -lean_dec(x_6); -lean_dec(x_1); -return x_183; -} -else -{ -uint8_t x_184; -x_184 = !lean_is_exclusive(x_183); -if (x_184 == 0) -{ -lean_object* x_185; uint8_t x_186; -x_185 = lean_ctor_get(x_183, 0); -x_186 = !lean_is_exclusive(x_185); -if (x_186 == 0) -{ -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = lean_ctor_get(x_185, 1); -x_188 = l_Lean_Syntax_setArg(x_6, x_5, x_187); -x_189 = l_Lean_Syntax_setArg(x_1, x_5, x_188); -lean_ctor_set(x_185, 1, x_189); -return x_183; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_190 = lean_ctor_get(x_185, 0); -x_191 = lean_ctor_get(x_185, 1); -lean_inc(x_191); -lean_inc(x_190); -lean_dec(x_185); -x_192 = l_Lean_Syntax_setArg(x_6, x_5, x_191); -x_193 = l_Lean_Syntax_setArg(x_1, x_5, x_192); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_190); -lean_ctor_set(x_194, 1, x_193); -lean_ctor_set(x_183, 0, x_194); -return x_183; -} -} -else -{ -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; -x_195 = lean_ctor_get(x_183, 0); -lean_inc(x_195); -lean_dec(x_183); -x_196 = lean_ctor_get(x_195, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_195, 1); -lean_inc(x_197); -if (lean_is_exclusive(x_195)) { - lean_ctor_release(x_195, 0); - lean_ctor_release(x_195, 1); - x_198 = x_195; -} else { - lean_dec_ref(x_195); - x_198 = lean_box(0); -} -x_199 = l_Lean_Syntax_setArg(x_6, x_5, x_197); -x_200 = l_Lean_Syntax_setArg(x_1, x_5, x_199); -if (lean_is_scalar(x_198)) { - x_201 = lean_alloc_ctor(0, 2, 0); -} else { - x_201 = x_198; -} -lean_ctor_set(x_201, 0, x_196); -lean_ctor_set(x_201, 1, x_200); -x_202 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_202, 0, x_201); -return x_202; -} -} -} -} -else -{ -lean_object* x_203; lean_object* x_204; -lean_dec(x_7); -x_203 = l_Lean_Syntax_getArg(x_6, x_5); -x_204 = l_Lean_Elab_Command_expandDeclIdNamespace_x3f(x_203); -if (lean_obj_tag(x_204) == 0) -{ -lean_dec(x_6); -lean_dec(x_1); -return x_204; -} -else -{ -uint8_t x_205; -x_205 = !lean_is_exclusive(x_204); -if (x_205 == 0) -{ -lean_object* x_206; uint8_t x_207; -x_206 = lean_ctor_get(x_204, 0); -x_207 = !lean_is_exclusive(x_206); -if (x_207 == 0) -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_208 = lean_ctor_get(x_206, 1); -x_209 = l_Lean_Syntax_setArg(x_6, x_5, x_208); -x_210 = l_Lean_Syntax_setArg(x_1, x_5, x_209); -lean_ctor_set(x_206, 1, x_210); -return x_204; -} -else -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_211 = lean_ctor_get(x_206, 0); -x_212 = lean_ctor_get(x_206, 1); -lean_inc(x_212); -lean_inc(x_211); -lean_dec(x_206); -x_213 = l_Lean_Syntax_setArg(x_6, x_5, x_212); -x_214 = l_Lean_Syntax_setArg(x_1, x_5, x_213); -x_215 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_215, 0, x_211); -lean_ctor_set(x_215, 1, x_214); -lean_ctor_set(x_204, 0, x_215); -return x_204; -} -} -else -{ -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; -x_216 = lean_ctor_get(x_204, 0); -lean_inc(x_216); -lean_dec(x_204); -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_219 = x_216; -} else { - lean_dec_ref(x_216); - x_219 = lean_box(0); -} -x_220 = l_Lean_Syntax_setArg(x_6, x_5, x_218); -x_221 = l_Lean_Syntax_setArg(x_1, x_5, x_220); -if (lean_is_scalar(x_219)) { - x_222 = lean_alloc_ctor(0, 2, 0); -} else { - x_222 = x_219; -} -lean_ctor_set(x_222, 0, x_217); -lean_ctor_set(x_222, 1, x_221); -x_223 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_223, 0, x_222); -return x_223; -} -} -} -} -} -} -lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint8_t x_10; @@ -1566,6 +1891,63 @@ return x_76; } } } +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +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, 3); +x_12 = l_Lean_replaceRef(x_1, x_11); +x_13 = l_Lean_replaceRef(x_12, x_11); +lean_dec(x_12); +x_14 = l_Lean_replaceRef(x_13, x_11); +lean_dec(x_11); +lean_dec(x_13); +lean_ctor_set(x_7, 3, x_14); +x_15 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_16 = lean_ctor_get(x_7, 0); +x_17 = lean_ctor_get(x_7, 1); +x_18 = lean_ctor_get(x_7, 2); +x_19 = lean_ctor_get(x_7, 3); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_7); +x_20 = l_Lean_replaceRef(x_1, x_19); +x_21 = l_Lean_replaceRef(x_20, x_19); +lean_dec(x_20); +x_22 = l_Lean_replaceRef(x_21, x_19); +lean_dec(x_19); +lean_dec(x_21); +x_23 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); +lean_dec(x_23); +return x_24; +} +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3___rarg___boxed), 9, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { @@ -1614,14 +1996,14 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); -x_28 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_27); +x_28 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_ensureAssignmentHasNoMVars___spec__1(x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_27); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); lean_inc(x_11); -x_31 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_8, x_29, x_9, x_10, x_11, x_12, x_13, x_14, x_30); +x_31 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Command_elabAxiom___spec__1(x_8, x_29, x_9, x_10, x_11, x_12, x_13, x_14, x_30); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; lean_object* x_34; @@ -1631,7 +2013,7 @@ x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); lean_dec(x_31); lean_inc(x_11); -x_34 = l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1(x_4, x_32, x_9, x_10, x_11, x_12, x_13, x_14, x_33); +x_34 = l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__2(x_4, x_32, x_9, x_10, x_11, x_12, x_13, x_14, x_33); if (lean_obj_tag(x_34) == 0) { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; @@ -1673,7 +2055,7 @@ x_48 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_48, 0, x_47); x_49 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_49, 0, x_48); -x_50 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_7, x_49, x_9, x_10, x_11, x_12, x_13, x_14, x_41); +x_50 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3___rarg(x_7, x_49, x_9, x_10, x_11, x_12, x_13, x_14, x_41); lean_dec(x_14); lean_dec(x_12); lean_dec(x_11); @@ -1707,7 +2089,7 @@ lean_inc(x_57); lean_dec(x_56); lean_inc(x_13); lean_inc(x_9); -x_58 = l_Lean_addDecl___at_Lean_Elab_Term_declareTacticSyntax___spec__1(x_55, x_9, x_10, x_11, x_12, x_13, x_14, x_57); +x_58 = l_Lean_addDecl___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__1(x_55, x_9, x_10, x_11, x_12, x_13, x_14, x_57); lean_dec(x_55); if (lean_obj_tag(x_58) == 0) { @@ -2113,11 +2495,11 @@ return x_32; } } } -lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Command_elabAxiom___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Command_elabAxiom___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2126,6 +2508,32 @@ lean_dec(x_3); return x_10; } } +lean_object* l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_mkForallUsedOnly___at_Lean_Elab_Command_elabAxiom___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabAxiom___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { @@ -2154,7 +2562,6001 @@ lean_dec(x_4); return x_6; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__1() { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 2); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_3(x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Syntax_isIdOrAtom_x3f(x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_8 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_replaceRef(x_6, x_9); +lean_dec(x_9); +lean_dec(x_6); +x_12 = !lean_is_exclusive(x_2); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_2, 6); +lean_dec(x_13); +lean_ctor_set(x_2, 6, x_11); +x_14 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_15 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_14, x_2, x_3, x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_20 = lean_ctor_get(x_2, 0); +x_21 = lean_ctor_get(x_2, 1); +x_22 = lean_ctor_get(x_2, 2); +x_23 = lean_ctor_get(x_2, 3); +x_24 = lean_ctor_get(x_2, 4); +x_25 = lean_ctor_get(x_2, 5); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_2); +x_26 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_26, 0, x_20); +lean_ctor_set(x_26, 1, x_21); +lean_ctor_set(x_26, 2, x_22); +lean_ctor_set(x_26, 3, x_23); +lean_ctor_set(x_26, 4, x_24); +lean_ctor_set(x_26, 5, x_25); +lean_ctor_set(x_26, 6, x_11); +x_27 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_28 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_27, x_26, x_3, x_10); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_31 = x_28; +} else { + lean_dec_ref(x_28); + x_31 = lean_box(0); +} +if (lean_is_scalar(x_31)) { + x_32 = lean_alloc_ctor(1, 2, 0); +} else { + x_32 = x_31; +} +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_dec(x_6); +x_33 = lean_ctor_get(x_7, 0); +lean_inc(x_33); +lean_dec(x_7); +x_34 = lean_box(0); +x_35 = lean_name_mk_string(x_34, x_33); +x_36 = lean_st_ref_get(x_3, x_4); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +x_41 = l_Lean_isAttribute(x_40, x_35); +lean_dec(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_free_object(x_36); +x_42 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_42, 0, x_35); +x_43 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +x_44 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +x_46 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_46, x_2, x_3, x_39); +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +return x_47; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_47); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +lean_dec(x_2); +x_52 = lean_unsigned_to_nat(1u); +x_53 = l_Lean_Syntax_getArg(x_1, x_52); +x_54 = l_Lean_Syntax_getNumArgs(x_53); +x_55 = lean_nat_dec_eq(x_54, x_5); +lean_dec(x_54); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_35); +lean_ctor_set(x_56, 1, x_53); +lean_ctor_set(x_36, 0, x_56); +return x_36; +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_53); +x_57 = lean_box(0); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_35); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_36, 0, x_58); +return x_36; +} +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_59 = lean_ctor_get(x_36, 0); +x_60 = lean_ctor_get(x_36, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_36); +x_61 = lean_ctor_get(x_59, 0); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_isAttribute(x_61, x_35); +lean_dec(x_61); +if (x_62 == 0) +{ +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_63 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_63, 0, x_35); +x_64 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +x_65 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); +x_66 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +x_67 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_67, x_2, x_3, x_60); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_71 = x_68; +} else { + lean_dec_ref(x_68); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; +lean_dec(x_2); +x_73 = lean_unsigned_to_nat(1u); +x_74 = l_Lean_Syntax_getArg(x_1, x_73); +x_75 = l_Lean_Syntax_getNumArgs(x_74); +x_76 = lean_nat_dec_eq(x_75, x_5); +lean_dec(x_75); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_35); +lean_ctor_set(x_77, 1, x_74); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_60); +return x_78; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_74); +x_79 = lean_box(0); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_35); +lean_ctor_set(x_80, 1, x_79); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_60); +return x_81; +} +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = x_3 < x_2; +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_5); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_array_uget(x_1, x_3); +lean_inc(x_5); +x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(x_10, x_5, x_6, x_7); +lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_array_push(x_4, x_12); +x_15 = 1; +x_16 = x_3 + x_15; +x_3 = x_16; +x_4 = x_14; +x_7 = x_13; +goto _start; +} +else +{ +uint8_t x_18; +lean_dec(x_5); +lean_dec(x_4); +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) +{ +return x_11; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_11); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +} +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Syntax_getSepArgs(x_1); +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = l_Array_empty___closed__1; +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(x_5, x_7, x_8, x_9, x_2, x_3, x_4); +lean_dec(x_5); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_6, x_2, x_3, x_4); +lean_dec(x_6); +return x_7; +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_replaceRef(x_1, x_7); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_3, 6); +lean_dec(x_11); +lean_ctor_set(x_3, 6, x_9); +x_12 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_2, x_3, x_4, x_8); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_ctor_get(x_3, 2); +x_16 = lean_ctor_get(x_3, 3); +x_17 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 5); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_3); +x_19 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +lean_ctor_set(x_19, 2, x_15); +lean_ctor_set(x_19, 3, x_16); +lean_ctor_set(x_19, 4, x_17); +lean_ctor_set(x_19, 5, x_18); +lean_ctor_set(x_19, 6, x_9); +x_20 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_2, x_19, x_4, x_8); +return x_20; +} +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = lean_unsigned_to_nat(1u); +x_8 = l_Lean_Syntax_getArg(x_1, x_7); +x_9 = lean_unsigned_to_nat(2u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = lean_unsigned_to_nat(3u); +x_12 = l_Lean_Syntax_getArg(x_1, x_11); +x_13 = lean_unsigned_to_nat(4u); +x_14 = l_Lean_Syntax_getArg(x_1, x_13); +x_15 = lean_unsigned_to_nat(5u); +x_16 = l_Lean_Syntax_getArg(x_1, x_15); +x_17 = l_Lean_Syntax_getOptional_x3f(x_6); +lean_dec(x_6); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Syntax_getOptional_x3f(x_10); +lean_dec(x_10); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; uint8_t x_22; uint8_t x_23; +lean_dec(x_2); +x_21 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_22 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_23 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_21 == 0) +{ +if (x_22 == 0) +{ +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__1; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_4); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__2; +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_4); +return x_27; +} +} +else +{ +if (x_23 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__3; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_4); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +x_30 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__4; +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_4); +return x_31; +} +} +} +else +{ +if (x_22 == 0) +{ +if (x_23 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__5; +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_4); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__6; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_4); +return x_35; +} +} +else +{ +if (x_23 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__7; +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_4); +return x_37; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = l_Lean_Elab_PreDefinition_inhabited___closed__1; +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_4); +return x_39; +} +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_20, 0); +lean_inc(x_40); +lean_dec(x_20); +x_41 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_40, x_2, x_3, x_4); +lean_dec(x_40); +if (lean_obj_tag(x_41) == 0) +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; +x_43 = lean_ctor_get(x_41, 0); +x_44 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_45 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_46 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_44 == 0) +{ +if (x_45 == 0) +{ +if (x_46 == 0) +{ +uint8_t x_47; uint8_t x_48; lean_object* x_49; +x_47 = 0; +x_48 = 1; +x_49 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_49, 0, x_18); +lean_ctor_set(x_49, 1, x_43); +lean_ctor_set_uint8(x_49, sizeof(void*)*2, x_47); +lean_ctor_set_uint8(x_49, sizeof(void*)*2 + 1, x_48); +lean_ctor_set_uint8(x_49, sizeof(void*)*2 + 2, x_48); +lean_ctor_set_uint8(x_49, sizeof(void*)*2 + 3, x_48); +lean_ctor_set(x_41, 0, x_49); +return x_41; +} +else +{ +uint8_t x_50; uint8_t x_51; uint8_t x_52; lean_object* x_53; +x_50 = 0; +x_51 = 1; +x_52 = 0; +x_53 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_53, 0, x_18); +lean_ctor_set(x_53, 1, x_43); +lean_ctor_set_uint8(x_53, sizeof(void*)*2, x_50); +lean_ctor_set_uint8(x_53, sizeof(void*)*2 + 1, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*2 + 2, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*2 + 3, x_52); +lean_ctor_set(x_41, 0, x_53); +return x_41; +} +} +else +{ +if (x_46 == 0) +{ +uint8_t x_54; uint8_t x_55; uint8_t x_56; lean_object* x_57; +x_54 = 0; +x_55 = 1; +x_56 = 0; +x_57 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_57, 0, x_18); +lean_ctor_set(x_57, 1, x_43); +lean_ctor_set_uint8(x_57, sizeof(void*)*2, x_54); +lean_ctor_set_uint8(x_57, sizeof(void*)*2 + 1, x_55); +lean_ctor_set_uint8(x_57, sizeof(void*)*2 + 2, x_56); +lean_ctor_set_uint8(x_57, sizeof(void*)*2 + 3, x_55); +lean_ctor_set(x_41, 0, x_57); +return x_41; +} +else +{ +uint8_t x_58; uint8_t x_59; uint8_t x_60; lean_object* x_61; +x_58 = 0; +x_59 = 1; +x_60 = 0; +x_61 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_61, 0, x_18); +lean_ctor_set(x_61, 1, x_43); +lean_ctor_set_uint8(x_61, sizeof(void*)*2, x_58); +lean_ctor_set_uint8(x_61, sizeof(void*)*2 + 1, x_59); +lean_ctor_set_uint8(x_61, sizeof(void*)*2 + 2, x_60); +lean_ctor_set_uint8(x_61, sizeof(void*)*2 + 3, x_60); +lean_ctor_set(x_41, 0, x_61); +return x_41; +} +} +} +else +{ +if (x_45 == 0) +{ +if (x_46 == 0) +{ +uint8_t x_62; uint8_t x_63; uint8_t x_64; lean_object* x_65; +x_62 = 0; +x_63 = 0; +x_64 = 1; +x_65 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_65, 0, x_18); +lean_ctor_set(x_65, 1, x_43); +lean_ctor_set_uint8(x_65, sizeof(void*)*2, x_62); +lean_ctor_set_uint8(x_65, sizeof(void*)*2 + 1, x_63); +lean_ctor_set_uint8(x_65, sizeof(void*)*2 + 2, x_64); +lean_ctor_set_uint8(x_65, sizeof(void*)*2 + 3, x_64); +lean_ctor_set(x_41, 0, x_65); +return x_41; +} +else +{ +uint8_t x_66; uint8_t x_67; uint8_t x_68; lean_object* x_69; +x_66 = 0; +x_67 = 0; +x_68 = 1; +x_69 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_69, 0, x_18); +lean_ctor_set(x_69, 1, x_43); +lean_ctor_set_uint8(x_69, sizeof(void*)*2, x_66); +lean_ctor_set_uint8(x_69, sizeof(void*)*2 + 1, x_67); +lean_ctor_set_uint8(x_69, sizeof(void*)*2 + 2, x_68); +lean_ctor_set_uint8(x_69, sizeof(void*)*2 + 3, x_67); +lean_ctor_set(x_41, 0, x_69); +return x_41; +} +} +else +{ +if (x_46 == 0) +{ +uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; +x_70 = 0; +x_71 = 0; +x_72 = 1; +x_73 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_73, 0, x_18); +lean_ctor_set(x_73, 1, x_43); +lean_ctor_set_uint8(x_73, sizeof(void*)*2, x_70); +lean_ctor_set_uint8(x_73, sizeof(void*)*2 + 1, x_71); +lean_ctor_set_uint8(x_73, sizeof(void*)*2 + 2, x_71); +lean_ctor_set_uint8(x_73, sizeof(void*)*2 + 3, x_72); +lean_ctor_set(x_41, 0, x_73); +return x_41; +} +else +{ +uint8_t x_74; uint8_t x_75; lean_object* x_76; +x_74 = 0; +x_75 = 0; +x_76 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_76, 0, x_18); +lean_ctor_set(x_76, 1, x_43); +lean_ctor_set_uint8(x_76, sizeof(void*)*2, x_74); +lean_ctor_set_uint8(x_76, sizeof(void*)*2 + 1, x_75); +lean_ctor_set_uint8(x_76, sizeof(void*)*2 + 2, x_75); +lean_ctor_set_uint8(x_76, sizeof(void*)*2 + 3, x_75); +lean_ctor_set(x_41, 0, x_76); +return x_41; +} +} +} +} +else +{ +lean_object* x_77; lean_object* x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; +x_77 = lean_ctor_get(x_41, 0); +x_78 = lean_ctor_get(x_41, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_41); +x_79 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_80 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_81 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_79 == 0) +{ +if (x_80 == 0) +{ +if (x_81 == 0) +{ +uint8_t x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; +x_82 = 0; +x_83 = 1; +x_84 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_84, 0, x_18); +lean_ctor_set(x_84, 1, x_77); +lean_ctor_set_uint8(x_84, sizeof(void*)*2, x_82); +lean_ctor_set_uint8(x_84, sizeof(void*)*2 + 1, x_83); +lean_ctor_set_uint8(x_84, sizeof(void*)*2 + 2, x_83); +lean_ctor_set_uint8(x_84, sizeof(void*)*2 + 3, x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_78); +return x_85; +} +else +{ +uint8_t x_86; uint8_t x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; +x_86 = 0; +x_87 = 1; +x_88 = 0; +x_89 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_89, 0, x_18); +lean_ctor_set(x_89, 1, x_77); +lean_ctor_set_uint8(x_89, sizeof(void*)*2, x_86); +lean_ctor_set_uint8(x_89, sizeof(void*)*2 + 1, x_87); +lean_ctor_set_uint8(x_89, sizeof(void*)*2 + 2, x_87); +lean_ctor_set_uint8(x_89, sizeof(void*)*2 + 3, x_88); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_78); +return x_90; +} +} +else +{ +if (x_81 == 0) +{ +uint8_t x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; +x_91 = 0; +x_92 = 1; +x_93 = 0; +x_94 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_94, 0, x_18); +lean_ctor_set(x_94, 1, x_77); +lean_ctor_set_uint8(x_94, sizeof(void*)*2, x_91); +lean_ctor_set_uint8(x_94, sizeof(void*)*2 + 1, x_92); +lean_ctor_set_uint8(x_94, sizeof(void*)*2 + 2, x_93); +lean_ctor_set_uint8(x_94, sizeof(void*)*2 + 3, x_92); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_78); +return x_95; +} +else +{ +uint8_t x_96; uint8_t x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; +x_96 = 0; +x_97 = 1; +x_98 = 0; +x_99 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_99, 0, x_18); +lean_ctor_set(x_99, 1, x_77); +lean_ctor_set_uint8(x_99, sizeof(void*)*2, x_96); +lean_ctor_set_uint8(x_99, sizeof(void*)*2 + 1, x_97); +lean_ctor_set_uint8(x_99, sizeof(void*)*2 + 2, x_98); +lean_ctor_set_uint8(x_99, sizeof(void*)*2 + 3, x_98); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_78); +return x_100; +} +} +} +else +{ +if (x_80 == 0) +{ +if (x_81 == 0) +{ +uint8_t x_101; uint8_t x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; +x_101 = 0; +x_102 = 0; +x_103 = 1; +x_104 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_104, 0, x_18); +lean_ctor_set(x_104, 1, x_77); +lean_ctor_set_uint8(x_104, sizeof(void*)*2, x_101); +lean_ctor_set_uint8(x_104, sizeof(void*)*2 + 1, x_102); +lean_ctor_set_uint8(x_104, sizeof(void*)*2 + 2, x_103); +lean_ctor_set_uint8(x_104, sizeof(void*)*2 + 3, x_103); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_78); +return x_105; +} +else +{ +uint8_t x_106; uint8_t x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; +x_106 = 0; +x_107 = 0; +x_108 = 1; +x_109 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_109, 0, x_18); +lean_ctor_set(x_109, 1, x_77); +lean_ctor_set_uint8(x_109, sizeof(void*)*2, x_106); +lean_ctor_set_uint8(x_109, sizeof(void*)*2 + 1, x_107); +lean_ctor_set_uint8(x_109, sizeof(void*)*2 + 2, x_108); +lean_ctor_set_uint8(x_109, sizeof(void*)*2 + 3, x_107); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_78); +return x_110; +} +} +else +{ +if (x_81 == 0) +{ +uint8_t x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; +x_111 = 0; +x_112 = 0; +x_113 = 1; +x_114 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_114, 0, x_18); +lean_ctor_set(x_114, 1, x_77); +lean_ctor_set_uint8(x_114, sizeof(void*)*2, x_111); +lean_ctor_set_uint8(x_114, sizeof(void*)*2 + 1, x_112); +lean_ctor_set_uint8(x_114, sizeof(void*)*2 + 2, x_112); +lean_ctor_set_uint8(x_114, sizeof(void*)*2 + 3, x_113); +x_115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_78); +return x_115; +} +else +{ +uint8_t x_116; uint8_t x_117; lean_object* x_118; lean_object* x_119; +x_116 = 0; +x_117 = 0; +x_118 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_118, 0, x_18); +lean_ctor_set(x_118, 1, x_77); +lean_ctor_set_uint8(x_118, sizeof(void*)*2, x_116); +lean_ctor_set_uint8(x_118, sizeof(void*)*2 + 1, x_117); +lean_ctor_set_uint8(x_118, sizeof(void*)*2 + 2, x_117); +lean_ctor_set_uint8(x_118, sizeof(void*)*2 + 3, x_117); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_78); +return x_119; +} +} +} +} +} +else +{ +uint8_t x_120; +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_120 = !lean_is_exclusive(x_41); +if (x_120 == 0) +{ +return x_41; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_41, 0); +x_122 = lean_ctor_get(x_41, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_41); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; +} +} +} +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; +x_124 = lean_ctor_get(x_19, 0); +lean_inc(x_124); +lean_dec(x_19); +lean_inc(x_124); +x_125 = l_Lean_Syntax_getKind(x_124); +x_126 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; +x_127 = lean_name_eq(x_125, x_126); +if (x_127 == 0) +{ +lean_object* x_128; uint8_t x_129; +x_128 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; +x_129 = lean_name_eq(x_125, x_128); +lean_dec(x_125); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; uint8_t x_132; +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_8); +x_130 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; +x_131 = l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_124, x_130, x_2, x_3, x_4); +lean_dec(x_124); +x_132 = !lean_is_exclusive(x_131); +if (x_132 == 0) +{ +return x_131; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_131, 0); +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_inc(x_133); +lean_dec(x_131); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +return x_135; +} +} +else +{ +lean_object* x_136; +lean_dec(x_124); +x_136 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_136) == 0) +{ +uint8_t x_137; uint8_t x_138; uint8_t x_139; +lean_dec(x_2); +x_137 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_138 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_139 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_137 == 0) +{ +if (x_138 == 0) +{ +if (x_139 == 0) +{ +lean_object* x_140; lean_object* x_141; +x_140 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__8; +x_141 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_4); +return x_141; +} +else +{ +lean_object* x_142; lean_object* x_143; +x_142 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__9; +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_4); +return x_143; +} +} +else +{ +if (x_139 == 0) +{ +lean_object* x_144; lean_object* x_145; +x_144 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__10; +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_4); +return x_145; +} +else +{ +lean_object* x_146; lean_object* x_147; +x_146 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__11; +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_4); +return x_147; +} +} +} +else +{ +if (x_138 == 0) +{ +if (x_139 == 0) +{ +lean_object* x_148; lean_object* x_149; +x_148 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__12; +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_4); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; +x_150 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__13; +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_4); +return x_151; +} +} +else +{ +if (x_139 == 0) +{ +lean_object* x_152; lean_object* x_153; +x_152 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__14; +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_4); +return x_153; +} +else +{ +lean_object* x_154; lean_object* x_155; +x_154 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__15; +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_4); +return x_155; +} +} +} +} +else +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_ctor_get(x_136, 0); +lean_inc(x_156); +lean_dec(x_136); +x_157 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_156, x_2, x_3, x_4); +lean_dec(x_156); +if (lean_obj_tag(x_157) == 0) +{ +uint8_t x_158; +x_158 = !lean_is_exclusive(x_157); +if (x_158 == 0) +{ +lean_object* x_159; uint8_t x_160; uint8_t x_161; uint8_t x_162; +x_159 = lean_ctor_get(x_157, 0); +x_160 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_161 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_162 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_160 == 0) +{ +if (x_161 == 0) +{ +if (x_162 == 0) +{ +uint8_t x_163; uint8_t x_164; lean_object* x_165; +x_163 = 1; +x_164 = 1; +x_165 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_165, 0, x_18); +lean_ctor_set(x_165, 1, x_159); +lean_ctor_set_uint8(x_165, sizeof(void*)*2, x_163); +lean_ctor_set_uint8(x_165, sizeof(void*)*2 + 1, x_164); +lean_ctor_set_uint8(x_165, sizeof(void*)*2 + 2, x_164); +lean_ctor_set_uint8(x_165, sizeof(void*)*2 + 3, x_164); +lean_ctor_set(x_157, 0, x_165); +return x_157; +} +else +{ +uint8_t x_166; uint8_t x_167; uint8_t x_168; lean_object* x_169; +x_166 = 1; +x_167 = 1; +x_168 = 0; +x_169 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_169, 0, x_18); +lean_ctor_set(x_169, 1, x_159); +lean_ctor_set_uint8(x_169, sizeof(void*)*2, x_166); +lean_ctor_set_uint8(x_169, sizeof(void*)*2 + 1, x_167); +lean_ctor_set_uint8(x_169, sizeof(void*)*2 + 2, x_167); +lean_ctor_set_uint8(x_169, sizeof(void*)*2 + 3, x_168); +lean_ctor_set(x_157, 0, x_169); +return x_157; +} +} +else +{ +if (x_162 == 0) +{ +uint8_t x_170; uint8_t x_171; uint8_t x_172; lean_object* x_173; +x_170 = 1; +x_171 = 1; +x_172 = 0; +x_173 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_173, 0, x_18); +lean_ctor_set(x_173, 1, x_159); +lean_ctor_set_uint8(x_173, sizeof(void*)*2, x_170); +lean_ctor_set_uint8(x_173, sizeof(void*)*2 + 1, x_171); +lean_ctor_set_uint8(x_173, sizeof(void*)*2 + 2, x_172); +lean_ctor_set_uint8(x_173, sizeof(void*)*2 + 3, x_171); +lean_ctor_set(x_157, 0, x_173); +return x_157; +} +else +{ +uint8_t x_174; uint8_t x_175; uint8_t x_176; lean_object* x_177; +x_174 = 1; +x_175 = 1; +x_176 = 0; +x_177 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_177, 0, x_18); +lean_ctor_set(x_177, 1, x_159); +lean_ctor_set_uint8(x_177, sizeof(void*)*2, x_174); +lean_ctor_set_uint8(x_177, sizeof(void*)*2 + 1, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*2 + 2, x_176); +lean_ctor_set_uint8(x_177, sizeof(void*)*2 + 3, x_176); +lean_ctor_set(x_157, 0, x_177); +return x_157; +} +} +} +else +{ +if (x_161 == 0) +{ +if (x_162 == 0) +{ +uint8_t x_178; uint8_t x_179; uint8_t x_180; lean_object* x_181; +x_178 = 1; +x_179 = 0; +x_180 = 1; +x_181 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_181, 0, x_18); +lean_ctor_set(x_181, 1, x_159); +lean_ctor_set_uint8(x_181, sizeof(void*)*2, x_178); +lean_ctor_set_uint8(x_181, sizeof(void*)*2 + 1, x_179); +lean_ctor_set_uint8(x_181, sizeof(void*)*2 + 2, x_180); +lean_ctor_set_uint8(x_181, sizeof(void*)*2 + 3, x_180); +lean_ctor_set(x_157, 0, x_181); +return x_157; +} +else +{ +uint8_t x_182; uint8_t x_183; uint8_t x_184; lean_object* x_185; +x_182 = 1; +x_183 = 0; +x_184 = 1; +x_185 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_185, 0, x_18); +lean_ctor_set(x_185, 1, x_159); +lean_ctor_set_uint8(x_185, sizeof(void*)*2, x_182); +lean_ctor_set_uint8(x_185, sizeof(void*)*2 + 1, x_183); +lean_ctor_set_uint8(x_185, sizeof(void*)*2 + 2, x_184); +lean_ctor_set_uint8(x_185, sizeof(void*)*2 + 3, x_183); +lean_ctor_set(x_157, 0, x_185); +return x_157; +} +} +else +{ +if (x_162 == 0) +{ +uint8_t x_186; uint8_t x_187; uint8_t x_188; lean_object* x_189; +x_186 = 1; +x_187 = 0; +x_188 = 1; +x_189 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_189, 0, x_18); +lean_ctor_set(x_189, 1, x_159); +lean_ctor_set_uint8(x_189, sizeof(void*)*2, x_186); +lean_ctor_set_uint8(x_189, sizeof(void*)*2 + 1, x_187); +lean_ctor_set_uint8(x_189, sizeof(void*)*2 + 2, x_187); +lean_ctor_set_uint8(x_189, sizeof(void*)*2 + 3, x_188); +lean_ctor_set(x_157, 0, x_189); +return x_157; +} +else +{ +uint8_t x_190; uint8_t x_191; lean_object* x_192; +x_190 = 1; +x_191 = 0; +x_192 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_192, 0, x_18); +lean_ctor_set(x_192, 1, x_159); +lean_ctor_set_uint8(x_192, sizeof(void*)*2, x_190); +lean_ctor_set_uint8(x_192, sizeof(void*)*2 + 1, x_191); +lean_ctor_set_uint8(x_192, sizeof(void*)*2 + 2, x_191); +lean_ctor_set_uint8(x_192, sizeof(void*)*2 + 3, x_191); +lean_ctor_set(x_157, 0, x_192); +return x_157; +} +} +} +} +else +{ +lean_object* x_193; lean_object* x_194; uint8_t x_195; uint8_t x_196; uint8_t x_197; +x_193 = lean_ctor_get(x_157, 0); +x_194 = lean_ctor_get(x_157, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_157); +x_195 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_196 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_197 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_195 == 0) +{ +if (x_196 == 0) +{ +if (x_197 == 0) +{ +uint8_t x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; +x_198 = 1; +x_199 = 1; +x_200 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_200, 0, x_18); +lean_ctor_set(x_200, 1, x_193); +lean_ctor_set_uint8(x_200, sizeof(void*)*2, x_198); +lean_ctor_set_uint8(x_200, sizeof(void*)*2 + 1, x_199); +lean_ctor_set_uint8(x_200, sizeof(void*)*2 + 2, x_199); +lean_ctor_set_uint8(x_200, sizeof(void*)*2 + 3, x_199); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_194); +return x_201; +} +else +{ +uint8_t x_202; uint8_t x_203; uint8_t x_204; lean_object* x_205; lean_object* x_206; +x_202 = 1; +x_203 = 1; +x_204 = 0; +x_205 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_205, 0, x_18); +lean_ctor_set(x_205, 1, x_193); +lean_ctor_set_uint8(x_205, sizeof(void*)*2, x_202); +lean_ctor_set_uint8(x_205, sizeof(void*)*2 + 1, x_203); +lean_ctor_set_uint8(x_205, sizeof(void*)*2 + 2, x_203); +lean_ctor_set_uint8(x_205, sizeof(void*)*2 + 3, x_204); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_194); +return x_206; +} +} +else +{ +if (x_197 == 0) +{ +uint8_t x_207; uint8_t x_208; uint8_t x_209; lean_object* x_210; lean_object* x_211; +x_207 = 1; +x_208 = 1; +x_209 = 0; +x_210 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_210, 0, x_18); +lean_ctor_set(x_210, 1, x_193); +lean_ctor_set_uint8(x_210, sizeof(void*)*2, x_207); +lean_ctor_set_uint8(x_210, sizeof(void*)*2 + 1, x_208); +lean_ctor_set_uint8(x_210, sizeof(void*)*2 + 2, x_209); +lean_ctor_set_uint8(x_210, sizeof(void*)*2 + 3, x_208); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_194); +return x_211; +} +else +{ +uint8_t x_212; uint8_t x_213; uint8_t x_214; lean_object* x_215; lean_object* x_216; +x_212 = 1; +x_213 = 1; +x_214 = 0; +x_215 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_215, 0, x_18); +lean_ctor_set(x_215, 1, x_193); +lean_ctor_set_uint8(x_215, sizeof(void*)*2, x_212); +lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 1, x_213); +lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 2, x_214); +lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 3, x_214); +x_216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_194); +return x_216; +} +} +} +else +{ +if (x_196 == 0) +{ +if (x_197 == 0) +{ +uint8_t x_217; uint8_t x_218; uint8_t x_219; lean_object* x_220; lean_object* x_221; +x_217 = 1; +x_218 = 0; +x_219 = 1; +x_220 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_220, 0, x_18); +lean_ctor_set(x_220, 1, x_193); +lean_ctor_set_uint8(x_220, sizeof(void*)*2, x_217); +lean_ctor_set_uint8(x_220, sizeof(void*)*2 + 1, x_218); +lean_ctor_set_uint8(x_220, sizeof(void*)*2 + 2, x_219); +lean_ctor_set_uint8(x_220, sizeof(void*)*2 + 3, x_219); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_194); +return x_221; +} +else +{ +uint8_t x_222; uint8_t x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; +x_222 = 1; +x_223 = 0; +x_224 = 1; +x_225 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_225, 0, x_18); +lean_ctor_set(x_225, 1, x_193); +lean_ctor_set_uint8(x_225, sizeof(void*)*2, x_222); +lean_ctor_set_uint8(x_225, sizeof(void*)*2 + 1, x_223); +lean_ctor_set_uint8(x_225, sizeof(void*)*2 + 2, x_224); +lean_ctor_set_uint8(x_225, sizeof(void*)*2 + 3, x_223); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_194); +return x_226; +} +} +else +{ +if (x_197 == 0) +{ +uint8_t x_227; uint8_t x_228; uint8_t x_229; lean_object* x_230; lean_object* x_231; +x_227 = 1; +x_228 = 0; +x_229 = 1; +x_230 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_230, 0, x_18); +lean_ctor_set(x_230, 1, x_193); +lean_ctor_set_uint8(x_230, sizeof(void*)*2, x_227); +lean_ctor_set_uint8(x_230, sizeof(void*)*2 + 1, x_228); +lean_ctor_set_uint8(x_230, sizeof(void*)*2 + 2, x_228); +lean_ctor_set_uint8(x_230, sizeof(void*)*2 + 3, x_229); +x_231 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_194); +return x_231; +} +else +{ +uint8_t x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; +x_232 = 1; +x_233 = 0; +x_234 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_234, 0, x_18); +lean_ctor_set(x_234, 1, x_193); +lean_ctor_set_uint8(x_234, sizeof(void*)*2, x_232); +lean_ctor_set_uint8(x_234, sizeof(void*)*2 + 1, x_233); +lean_ctor_set_uint8(x_234, sizeof(void*)*2 + 2, x_233); +lean_ctor_set_uint8(x_234, sizeof(void*)*2 + 3, x_233); +x_235 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_235, 0, x_234); +lean_ctor_set(x_235, 1, x_194); +return x_235; +} +} +} +} +} +else +{ +uint8_t x_236; +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_236 = !lean_is_exclusive(x_157); +if (x_236 == 0) +{ +return x_157; +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_237 = lean_ctor_get(x_157, 0); +x_238 = lean_ctor_get(x_157, 1); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_157); +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_238); +return x_239; +} +} +} +} +} +else +{ +lean_object* x_240; +lean_dec(x_125); +lean_dec(x_124); +x_240 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_240) == 0) +{ +uint8_t x_241; uint8_t x_242; uint8_t x_243; +lean_dec(x_2); +x_241 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_242 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_243 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_241 == 0) +{ +if (x_242 == 0) +{ +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; +x_244 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__16; +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_4); +return x_245; +} +else +{ +lean_object* x_246; lean_object* x_247; +x_246 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__17; +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_246); +lean_ctor_set(x_247, 1, x_4); +return x_247; +} +} +else +{ +if (x_243 == 0) +{ +lean_object* x_248; lean_object* x_249; +x_248 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__18; +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_4); +return x_249; +} +else +{ +lean_object* x_250; lean_object* x_251; +x_250 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__19; +x_251 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_4); +return x_251; +} +} +} +else +{ +if (x_242 == 0) +{ +if (x_243 == 0) +{ +lean_object* x_252; lean_object* x_253; +x_252 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__20; +x_253 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_253, 0, x_252); +lean_ctor_set(x_253, 1, x_4); +return x_253; +} +else +{ +lean_object* x_254; lean_object* x_255; +x_254 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__21; +x_255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_4); +return x_255; +} +} +else +{ +if (x_243 == 0) +{ +lean_object* x_256; lean_object* x_257; +x_256 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__22; +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_4); +return x_257; +} +else +{ +lean_object* x_258; lean_object* x_259; +x_258 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__23; +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_258); +lean_ctor_set(x_259, 1, x_4); +return x_259; +} +} +} +} +else +{ +lean_object* x_260; lean_object* x_261; +x_260 = lean_ctor_get(x_240, 0); +lean_inc(x_260); +lean_dec(x_240); +x_261 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_260, x_2, x_3, x_4); +lean_dec(x_260); +if (lean_obj_tag(x_261) == 0) +{ +uint8_t x_262; +x_262 = !lean_is_exclusive(x_261); +if (x_262 == 0) +{ +lean_object* x_263; uint8_t x_264; uint8_t x_265; uint8_t x_266; +x_263 = lean_ctor_get(x_261, 0); +x_264 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_265 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_266 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_264 == 0) +{ +if (x_265 == 0) +{ +if (x_266 == 0) +{ +uint8_t x_267; uint8_t x_268; lean_object* x_269; +x_267 = 2; +x_268 = 1; +x_269 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_269, 0, x_18); +lean_ctor_set(x_269, 1, x_263); +lean_ctor_set_uint8(x_269, sizeof(void*)*2, x_267); +lean_ctor_set_uint8(x_269, sizeof(void*)*2 + 1, x_268); +lean_ctor_set_uint8(x_269, sizeof(void*)*2 + 2, x_268); +lean_ctor_set_uint8(x_269, sizeof(void*)*2 + 3, x_268); +lean_ctor_set(x_261, 0, x_269); +return x_261; +} +else +{ +uint8_t x_270; uint8_t x_271; uint8_t x_272; lean_object* x_273; +x_270 = 2; +x_271 = 1; +x_272 = 0; +x_273 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_273, 0, x_18); +lean_ctor_set(x_273, 1, x_263); +lean_ctor_set_uint8(x_273, sizeof(void*)*2, x_270); +lean_ctor_set_uint8(x_273, sizeof(void*)*2 + 1, x_271); +lean_ctor_set_uint8(x_273, sizeof(void*)*2 + 2, x_271); +lean_ctor_set_uint8(x_273, sizeof(void*)*2 + 3, x_272); +lean_ctor_set(x_261, 0, x_273); +return x_261; +} +} +else +{ +if (x_266 == 0) +{ +uint8_t x_274; uint8_t x_275; uint8_t x_276; lean_object* x_277; +x_274 = 2; +x_275 = 1; +x_276 = 0; +x_277 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_277, 0, x_18); +lean_ctor_set(x_277, 1, x_263); +lean_ctor_set_uint8(x_277, sizeof(void*)*2, x_274); +lean_ctor_set_uint8(x_277, sizeof(void*)*2 + 1, x_275); +lean_ctor_set_uint8(x_277, sizeof(void*)*2 + 2, x_276); +lean_ctor_set_uint8(x_277, sizeof(void*)*2 + 3, x_275); +lean_ctor_set(x_261, 0, x_277); +return x_261; +} +else +{ +uint8_t x_278; uint8_t x_279; uint8_t x_280; lean_object* x_281; +x_278 = 2; +x_279 = 1; +x_280 = 0; +x_281 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_281, 0, x_18); +lean_ctor_set(x_281, 1, x_263); +lean_ctor_set_uint8(x_281, sizeof(void*)*2, x_278); +lean_ctor_set_uint8(x_281, sizeof(void*)*2 + 1, x_279); +lean_ctor_set_uint8(x_281, sizeof(void*)*2 + 2, x_280); +lean_ctor_set_uint8(x_281, sizeof(void*)*2 + 3, x_280); +lean_ctor_set(x_261, 0, x_281); +return x_261; +} +} +} +else +{ +if (x_265 == 0) +{ +if (x_266 == 0) +{ +uint8_t x_282; uint8_t x_283; uint8_t x_284; lean_object* x_285; +x_282 = 2; +x_283 = 0; +x_284 = 1; +x_285 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_285, 0, x_18); +lean_ctor_set(x_285, 1, x_263); +lean_ctor_set_uint8(x_285, sizeof(void*)*2, x_282); +lean_ctor_set_uint8(x_285, sizeof(void*)*2 + 1, x_283); +lean_ctor_set_uint8(x_285, sizeof(void*)*2 + 2, x_284); +lean_ctor_set_uint8(x_285, sizeof(void*)*2 + 3, x_284); +lean_ctor_set(x_261, 0, x_285); +return x_261; +} +else +{ +uint8_t x_286; uint8_t x_287; uint8_t x_288; lean_object* x_289; +x_286 = 2; +x_287 = 0; +x_288 = 1; +x_289 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_289, 0, x_18); +lean_ctor_set(x_289, 1, x_263); +lean_ctor_set_uint8(x_289, sizeof(void*)*2, x_286); +lean_ctor_set_uint8(x_289, sizeof(void*)*2 + 1, x_287); +lean_ctor_set_uint8(x_289, sizeof(void*)*2 + 2, x_288); +lean_ctor_set_uint8(x_289, sizeof(void*)*2 + 3, x_287); +lean_ctor_set(x_261, 0, x_289); +return x_261; +} +} +else +{ +if (x_266 == 0) +{ +uint8_t x_290; uint8_t x_291; uint8_t x_292; lean_object* x_293; +x_290 = 2; +x_291 = 0; +x_292 = 1; +x_293 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_293, 0, x_18); +lean_ctor_set(x_293, 1, x_263); +lean_ctor_set_uint8(x_293, sizeof(void*)*2, x_290); +lean_ctor_set_uint8(x_293, sizeof(void*)*2 + 1, x_291); +lean_ctor_set_uint8(x_293, sizeof(void*)*2 + 2, x_291); +lean_ctor_set_uint8(x_293, sizeof(void*)*2 + 3, x_292); +lean_ctor_set(x_261, 0, x_293); +return x_261; +} +else +{ +uint8_t x_294; uint8_t x_295; lean_object* x_296; +x_294 = 2; +x_295 = 0; +x_296 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_296, 0, x_18); +lean_ctor_set(x_296, 1, x_263); +lean_ctor_set_uint8(x_296, sizeof(void*)*2, x_294); +lean_ctor_set_uint8(x_296, sizeof(void*)*2 + 1, x_295); +lean_ctor_set_uint8(x_296, sizeof(void*)*2 + 2, x_295); +lean_ctor_set_uint8(x_296, sizeof(void*)*2 + 3, x_295); +lean_ctor_set(x_261, 0, x_296); +return x_261; +} +} +} +} +else +{ +lean_object* x_297; lean_object* x_298; uint8_t x_299; uint8_t x_300; uint8_t x_301; +x_297 = lean_ctor_get(x_261, 0); +x_298 = lean_ctor_get(x_261, 1); +lean_inc(x_298); +lean_inc(x_297); +lean_dec(x_261); +x_299 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_300 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_301 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_299 == 0) +{ +if (x_300 == 0) +{ +if (x_301 == 0) +{ +uint8_t x_302; uint8_t x_303; lean_object* x_304; lean_object* x_305; +x_302 = 2; +x_303 = 1; +x_304 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_304, 0, x_18); +lean_ctor_set(x_304, 1, x_297); +lean_ctor_set_uint8(x_304, sizeof(void*)*2, x_302); +lean_ctor_set_uint8(x_304, sizeof(void*)*2 + 1, x_303); +lean_ctor_set_uint8(x_304, sizeof(void*)*2 + 2, x_303); +lean_ctor_set_uint8(x_304, sizeof(void*)*2 + 3, x_303); +x_305 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_305, 0, x_304); +lean_ctor_set(x_305, 1, x_298); +return x_305; +} +else +{ +uint8_t x_306; uint8_t x_307; uint8_t x_308; lean_object* x_309; lean_object* x_310; +x_306 = 2; +x_307 = 1; +x_308 = 0; +x_309 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_309, 0, x_18); +lean_ctor_set(x_309, 1, x_297); +lean_ctor_set_uint8(x_309, sizeof(void*)*2, x_306); +lean_ctor_set_uint8(x_309, sizeof(void*)*2 + 1, x_307); +lean_ctor_set_uint8(x_309, sizeof(void*)*2 + 2, x_307); +lean_ctor_set_uint8(x_309, sizeof(void*)*2 + 3, x_308); +x_310 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_310, 0, x_309); +lean_ctor_set(x_310, 1, x_298); +return x_310; +} +} +else +{ +if (x_301 == 0) +{ +uint8_t x_311; uint8_t x_312; uint8_t x_313; lean_object* x_314; lean_object* x_315; +x_311 = 2; +x_312 = 1; +x_313 = 0; +x_314 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_314, 0, x_18); +lean_ctor_set(x_314, 1, x_297); +lean_ctor_set_uint8(x_314, sizeof(void*)*2, x_311); +lean_ctor_set_uint8(x_314, sizeof(void*)*2 + 1, x_312); +lean_ctor_set_uint8(x_314, sizeof(void*)*2 + 2, x_313); +lean_ctor_set_uint8(x_314, sizeof(void*)*2 + 3, x_312); +x_315 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_315, 0, x_314); +lean_ctor_set(x_315, 1, x_298); +return x_315; +} +else +{ +uint8_t x_316; uint8_t x_317; uint8_t x_318; lean_object* x_319; lean_object* x_320; +x_316 = 2; +x_317 = 1; +x_318 = 0; +x_319 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_319, 0, x_18); +lean_ctor_set(x_319, 1, x_297); +lean_ctor_set_uint8(x_319, sizeof(void*)*2, x_316); +lean_ctor_set_uint8(x_319, sizeof(void*)*2 + 1, x_317); +lean_ctor_set_uint8(x_319, sizeof(void*)*2 + 2, x_318); +lean_ctor_set_uint8(x_319, sizeof(void*)*2 + 3, x_318); +x_320 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_320, 0, x_319); +lean_ctor_set(x_320, 1, x_298); +return x_320; +} +} +} +else +{ +if (x_300 == 0) +{ +if (x_301 == 0) +{ +uint8_t x_321; uint8_t x_322; uint8_t x_323; lean_object* x_324; lean_object* x_325; +x_321 = 2; +x_322 = 0; +x_323 = 1; +x_324 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_324, 0, x_18); +lean_ctor_set(x_324, 1, x_297); +lean_ctor_set_uint8(x_324, sizeof(void*)*2, x_321); +lean_ctor_set_uint8(x_324, sizeof(void*)*2 + 1, x_322); +lean_ctor_set_uint8(x_324, sizeof(void*)*2 + 2, x_323); +lean_ctor_set_uint8(x_324, sizeof(void*)*2 + 3, x_323); +x_325 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_298); +return x_325; +} +else +{ +uint8_t x_326; uint8_t x_327; uint8_t x_328; lean_object* x_329; lean_object* x_330; +x_326 = 2; +x_327 = 0; +x_328 = 1; +x_329 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_329, 0, x_18); +lean_ctor_set(x_329, 1, x_297); +lean_ctor_set_uint8(x_329, sizeof(void*)*2, x_326); +lean_ctor_set_uint8(x_329, sizeof(void*)*2 + 1, x_327); +lean_ctor_set_uint8(x_329, sizeof(void*)*2 + 2, x_328); +lean_ctor_set_uint8(x_329, sizeof(void*)*2 + 3, x_327); +x_330 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_330, 0, x_329); +lean_ctor_set(x_330, 1, x_298); +return x_330; +} +} +else +{ +if (x_301 == 0) +{ +uint8_t x_331; uint8_t x_332; uint8_t x_333; lean_object* x_334; lean_object* x_335; +x_331 = 2; +x_332 = 0; +x_333 = 1; +x_334 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_334, 0, x_18); +lean_ctor_set(x_334, 1, x_297); +lean_ctor_set_uint8(x_334, sizeof(void*)*2, x_331); +lean_ctor_set_uint8(x_334, sizeof(void*)*2 + 1, x_332); +lean_ctor_set_uint8(x_334, sizeof(void*)*2 + 2, x_332); +lean_ctor_set_uint8(x_334, sizeof(void*)*2 + 3, x_333); +x_335 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_335, 0, x_334); +lean_ctor_set(x_335, 1, x_298); +return x_335; +} +else +{ +uint8_t x_336; uint8_t x_337; lean_object* x_338; lean_object* x_339; +x_336 = 2; +x_337 = 0; +x_338 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_338, 0, x_18); +lean_ctor_set(x_338, 1, x_297); +lean_ctor_set_uint8(x_338, sizeof(void*)*2, x_336); +lean_ctor_set_uint8(x_338, sizeof(void*)*2 + 1, x_337); +lean_ctor_set_uint8(x_338, sizeof(void*)*2 + 2, x_337); +lean_ctor_set_uint8(x_338, sizeof(void*)*2 + 3, x_337); +x_339 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_339, 0, x_338); +lean_ctor_set(x_339, 1, x_298); +return x_339; +} +} +} +} +} +else +{ +uint8_t x_340; +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_340 = !lean_is_exclusive(x_261); +if (x_340 == 0) +{ +return x_261; +} +else +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_341 = lean_ctor_get(x_261, 0); +x_342 = lean_ctor_get(x_261, 1); +lean_inc(x_342); +lean_inc(x_341); +lean_dec(x_261); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_341); +lean_ctor_set(x_343, 1, x_342); +return x_343; +} +} +} +} +} +} +else +{ +uint8_t x_344; +x_344 = !lean_is_exclusive(x_17); +if (x_344 == 0) +{ +lean_object* x_345; lean_object* x_346; lean_object* x_363; +x_345 = lean_ctor_get(x_17, 0); +x_363 = l_Lean_Syntax_getArg(x_345, x_7); +if (lean_obj_tag(x_363) == 2) +{ +lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; +lean_dec(x_345); +x_364 = lean_ctor_get(x_363, 1); +lean_inc(x_364); +lean_dec(x_363); +x_365 = lean_string_utf8_byte_size(x_364); +x_366 = lean_nat_sub(x_365, x_9); +lean_dec(x_365); +x_367 = lean_string_utf8_extract(x_364, x_5, x_366); +lean_dec(x_366); +lean_dec(x_364); +lean_ctor_set(x_17, 0, x_367); +x_368 = l_Lean_Syntax_getOptional_x3f(x_10); +lean_dec(x_10); +if (lean_obj_tag(x_368) == 0) +{ +lean_object* x_369; +x_369 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_369) == 0) +{ +uint8_t x_370; uint8_t x_371; uint8_t x_372; +lean_dec(x_2); +x_370 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_371 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_372 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_370 == 0) +{ +if (x_371 == 0) +{ +if (x_372 == 0) +{ +uint8_t x_373; uint8_t x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; +x_373 = 0; +x_374 = 1; +x_375 = l_Array_empty___closed__1; +x_376 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_376, 0, x_17); +lean_ctor_set(x_376, 1, x_375); +lean_ctor_set_uint8(x_376, sizeof(void*)*2, x_373); +lean_ctor_set_uint8(x_376, sizeof(void*)*2 + 1, x_374); +lean_ctor_set_uint8(x_376, sizeof(void*)*2 + 2, x_374); +lean_ctor_set_uint8(x_376, sizeof(void*)*2 + 3, x_374); +x_377 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_377, 0, x_376); +lean_ctor_set(x_377, 1, x_4); +return x_377; +} +else +{ +uint8_t x_378; uint8_t x_379; uint8_t x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +x_378 = 0; +x_379 = 1; +x_380 = 0; +x_381 = l_Array_empty___closed__1; +x_382 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_382, 0, x_17); +lean_ctor_set(x_382, 1, x_381); +lean_ctor_set_uint8(x_382, sizeof(void*)*2, x_378); +lean_ctor_set_uint8(x_382, sizeof(void*)*2 + 1, x_379); +lean_ctor_set_uint8(x_382, sizeof(void*)*2 + 2, x_379); +lean_ctor_set_uint8(x_382, sizeof(void*)*2 + 3, x_380); +x_383 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_383, 0, x_382); +lean_ctor_set(x_383, 1, x_4); +return x_383; +} +} +else +{ +if (x_372 == 0) +{ +uint8_t x_384; uint8_t x_385; uint8_t x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +x_384 = 0; +x_385 = 1; +x_386 = 0; +x_387 = l_Array_empty___closed__1; +x_388 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_388, 0, x_17); +lean_ctor_set(x_388, 1, x_387); +lean_ctor_set_uint8(x_388, sizeof(void*)*2, x_384); +lean_ctor_set_uint8(x_388, sizeof(void*)*2 + 1, x_385); +lean_ctor_set_uint8(x_388, sizeof(void*)*2 + 2, x_386); +lean_ctor_set_uint8(x_388, sizeof(void*)*2 + 3, x_385); +x_389 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_389, 0, x_388); +lean_ctor_set(x_389, 1, x_4); +return x_389; +} +else +{ +uint8_t x_390; uint8_t x_391; uint8_t x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_390 = 0; +x_391 = 1; +x_392 = 0; +x_393 = l_Array_empty___closed__1; +x_394 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_394, 0, x_17); +lean_ctor_set(x_394, 1, x_393); +lean_ctor_set_uint8(x_394, sizeof(void*)*2, x_390); +lean_ctor_set_uint8(x_394, sizeof(void*)*2 + 1, x_391); +lean_ctor_set_uint8(x_394, sizeof(void*)*2 + 2, x_392); +lean_ctor_set_uint8(x_394, sizeof(void*)*2 + 3, x_392); +x_395 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_395, 0, x_394); +lean_ctor_set(x_395, 1, x_4); +return x_395; +} +} +} +else +{ +if (x_371 == 0) +{ +if (x_372 == 0) +{ +uint8_t x_396; uint8_t x_397; uint8_t x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_396 = 0; +x_397 = 0; +x_398 = 1; +x_399 = l_Array_empty___closed__1; +x_400 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_400, 0, x_17); +lean_ctor_set(x_400, 1, x_399); +lean_ctor_set_uint8(x_400, sizeof(void*)*2, x_396); +lean_ctor_set_uint8(x_400, sizeof(void*)*2 + 1, x_397); +lean_ctor_set_uint8(x_400, sizeof(void*)*2 + 2, x_398); +lean_ctor_set_uint8(x_400, sizeof(void*)*2 + 3, x_398); +x_401 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_4); +return x_401; +} +else +{ +uint8_t x_402; uint8_t x_403; uint8_t x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; +x_402 = 0; +x_403 = 0; +x_404 = 1; +x_405 = l_Array_empty___closed__1; +x_406 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_406, 0, x_17); +lean_ctor_set(x_406, 1, x_405); +lean_ctor_set_uint8(x_406, sizeof(void*)*2, x_402); +lean_ctor_set_uint8(x_406, sizeof(void*)*2 + 1, x_403); +lean_ctor_set_uint8(x_406, sizeof(void*)*2 + 2, x_404); +lean_ctor_set_uint8(x_406, sizeof(void*)*2 + 3, x_403); +x_407 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_407, 0, x_406); +lean_ctor_set(x_407, 1, x_4); +return x_407; +} +} +else +{ +if (x_372 == 0) +{ +uint8_t x_408; uint8_t x_409; uint8_t x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; +x_408 = 0; +x_409 = 0; +x_410 = 1; +x_411 = l_Array_empty___closed__1; +x_412 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_412, 0, x_17); +lean_ctor_set(x_412, 1, x_411); +lean_ctor_set_uint8(x_412, sizeof(void*)*2, x_408); +lean_ctor_set_uint8(x_412, sizeof(void*)*2 + 1, x_409); +lean_ctor_set_uint8(x_412, sizeof(void*)*2 + 2, x_409); +lean_ctor_set_uint8(x_412, sizeof(void*)*2 + 3, x_410); +x_413 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_413, 0, x_412); +lean_ctor_set(x_413, 1, x_4); +return x_413; +} +else +{ +uint8_t x_414; uint8_t x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_414 = 0; +x_415 = 0; +x_416 = l_Array_empty___closed__1; +x_417 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_417, 0, x_17); +lean_ctor_set(x_417, 1, x_416); +lean_ctor_set_uint8(x_417, sizeof(void*)*2, x_414); +lean_ctor_set_uint8(x_417, sizeof(void*)*2 + 1, x_415); +lean_ctor_set_uint8(x_417, sizeof(void*)*2 + 2, x_415); +lean_ctor_set_uint8(x_417, sizeof(void*)*2 + 3, x_415); +x_418 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_418, 0, x_417); +lean_ctor_set(x_418, 1, x_4); +return x_418; +} +} +} +} +else +{ +lean_object* x_419; lean_object* x_420; +x_419 = lean_ctor_get(x_369, 0); +lean_inc(x_419); +lean_dec(x_369); +x_420 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_419, x_2, x_3, x_4); +lean_dec(x_419); +if (lean_obj_tag(x_420) == 0) +{ +uint8_t x_421; +x_421 = !lean_is_exclusive(x_420); +if (x_421 == 0) +{ +lean_object* x_422; uint8_t x_423; uint8_t x_424; uint8_t x_425; +x_422 = lean_ctor_get(x_420, 0); +x_423 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_424 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_425 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_423 == 0) +{ +if (x_424 == 0) +{ +if (x_425 == 0) +{ +uint8_t x_426; uint8_t x_427; lean_object* x_428; +x_426 = 0; +x_427 = 1; +x_428 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_428, 0, x_17); +lean_ctor_set(x_428, 1, x_422); +lean_ctor_set_uint8(x_428, sizeof(void*)*2, x_426); +lean_ctor_set_uint8(x_428, sizeof(void*)*2 + 1, x_427); +lean_ctor_set_uint8(x_428, sizeof(void*)*2 + 2, x_427); +lean_ctor_set_uint8(x_428, sizeof(void*)*2 + 3, x_427); +lean_ctor_set(x_420, 0, x_428); +return x_420; +} +else +{ +uint8_t x_429; uint8_t x_430; uint8_t x_431; lean_object* x_432; +x_429 = 0; +x_430 = 1; +x_431 = 0; +x_432 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_432, 0, x_17); +lean_ctor_set(x_432, 1, x_422); +lean_ctor_set_uint8(x_432, sizeof(void*)*2, x_429); +lean_ctor_set_uint8(x_432, sizeof(void*)*2 + 1, x_430); +lean_ctor_set_uint8(x_432, sizeof(void*)*2 + 2, x_430); +lean_ctor_set_uint8(x_432, sizeof(void*)*2 + 3, x_431); +lean_ctor_set(x_420, 0, x_432); +return x_420; +} +} +else +{ +if (x_425 == 0) +{ +uint8_t x_433; uint8_t x_434; uint8_t x_435; lean_object* x_436; +x_433 = 0; +x_434 = 1; +x_435 = 0; +x_436 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_436, 0, x_17); +lean_ctor_set(x_436, 1, x_422); +lean_ctor_set_uint8(x_436, sizeof(void*)*2, x_433); +lean_ctor_set_uint8(x_436, sizeof(void*)*2 + 1, x_434); +lean_ctor_set_uint8(x_436, sizeof(void*)*2 + 2, x_435); +lean_ctor_set_uint8(x_436, sizeof(void*)*2 + 3, x_434); +lean_ctor_set(x_420, 0, x_436); +return x_420; +} +else +{ +uint8_t x_437; uint8_t x_438; uint8_t x_439; lean_object* x_440; +x_437 = 0; +x_438 = 1; +x_439 = 0; +x_440 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_440, 0, x_17); +lean_ctor_set(x_440, 1, x_422); +lean_ctor_set_uint8(x_440, sizeof(void*)*2, x_437); +lean_ctor_set_uint8(x_440, sizeof(void*)*2 + 1, x_438); +lean_ctor_set_uint8(x_440, sizeof(void*)*2 + 2, x_439); +lean_ctor_set_uint8(x_440, sizeof(void*)*2 + 3, x_439); +lean_ctor_set(x_420, 0, x_440); +return x_420; +} +} +} +else +{ +if (x_424 == 0) +{ +if (x_425 == 0) +{ +uint8_t x_441; uint8_t x_442; uint8_t x_443; lean_object* x_444; +x_441 = 0; +x_442 = 0; +x_443 = 1; +x_444 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_444, 0, x_17); +lean_ctor_set(x_444, 1, x_422); +lean_ctor_set_uint8(x_444, sizeof(void*)*2, x_441); +lean_ctor_set_uint8(x_444, sizeof(void*)*2 + 1, x_442); +lean_ctor_set_uint8(x_444, sizeof(void*)*2 + 2, x_443); +lean_ctor_set_uint8(x_444, sizeof(void*)*2 + 3, x_443); +lean_ctor_set(x_420, 0, x_444); +return x_420; +} +else +{ +uint8_t x_445; uint8_t x_446; uint8_t x_447; lean_object* x_448; +x_445 = 0; +x_446 = 0; +x_447 = 1; +x_448 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_448, 0, x_17); +lean_ctor_set(x_448, 1, x_422); +lean_ctor_set_uint8(x_448, sizeof(void*)*2, x_445); +lean_ctor_set_uint8(x_448, sizeof(void*)*2 + 1, x_446); +lean_ctor_set_uint8(x_448, sizeof(void*)*2 + 2, x_447); +lean_ctor_set_uint8(x_448, sizeof(void*)*2 + 3, x_446); +lean_ctor_set(x_420, 0, x_448); +return x_420; +} +} +else +{ +if (x_425 == 0) +{ +uint8_t x_449; uint8_t x_450; uint8_t x_451; lean_object* x_452; +x_449 = 0; +x_450 = 0; +x_451 = 1; +x_452 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_452, 0, x_17); +lean_ctor_set(x_452, 1, x_422); +lean_ctor_set_uint8(x_452, sizeof(void*)*2, x_449); +lean_ctor_set_uint8(x_452, sizeof(void*)*2 + 1, x_450); +lean_ctor_set_uint8(x_452, sizeof(void*)*2 + 2, x_450); +lean_ctor_set_uint8(x_452, sizeof(void*)*2 + 3, x_451); +lean_ctor_set(x_420, 0, x_452); +return x_420; +} +else +{ +uint8_t x_453; uint8_t x_454; lean_object* x_455; +x_453 = 0; +x_454 = 0; +x_455 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_455, 0, x_17); +lean_ctor_set(x_455, 1, x_422); +lean_ctor_set_uint8(x_455, sizeof(void*)*2, x_453); +lean_ctor_set_uint8(x_455, sizeof(void*)*2 + 1, x_454); +lean_ctor_set_uint8(x_455, sizeof(void*)*2 + 2, x_454); +lean_ctor_set_uint8(x_455, sizeof(void*)*2 + 3, x_454); +lean_ctor_set(x_420, 0, x_455); +return x_420; +} +} +} +} +else +{ +lean_object* x_456; lean_object* x_457; uint8_t x_458; uint8_t x_459; uint8_t x_460; +x_456 = lean_ctor_get(x_420, 0); +x_457 = lean_ctor_get(x_420, 1); +lean_inc(x_457); +lean_inc(x_456); +lean_dec(x_420); +x_458 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_459 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_460 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_458 == 0) +{ +if (x_459 == 0) +{ +if (x_460 == 0) +{ +uint8_t x_461; uint8_t x_462; lean_object* x_463; lean_object* x_464; +x_461 = 0; +x_462 = 1; +x_463 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_463, 0, x_17); +lean_ctor_set(x_463, 1, x_456); +lean_ctor_set_uint8(x_463, sizeof(void*)*2, x_461); +lean_ctor_set_uint8(x_463, sizeof(void*)*2 + 1, x_462); +lean_ctor_set_uint8(x_463, sizeof(void*)*2 + 2, x_462); +lean_ctor_set_uint8(x_463, sizeof(void*)*2 + 3, x_462); +x_464 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_464, 0, x_463); +lean_ctor_set(x_464, 1, x_457); +return x_464; +} +else +{ +uint8_t x_465; uint8_t x_466; uint8_t x_467; lean_object* x_468; lean_object* x_469; +x_465 = 0; +x_466 = 1; +x_467 = 0; +x_468 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_468, 0, x_17); +lean_ctor_set(x_468, 1, x_456); +lean_ctor_set_uint8(x_468, sizeof(void*)*2, x_465); +lean_ctor_set_uint8(x_468, sizeof(void*)*2 + 1, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*2 + 2, x_466); +lean_ctor_set_uint8(x_468, sizeof(void*)*2 + 3, x_467); +x_469 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_469, 0, x_468); +lean_ctor_set(x_469, 1, x_457); +return x_469; +} +} +else +{ +if (x_460 == 0) +{ +uint8_t x_470; uint8_t x_471; uint8_t x_472; lean_object* x_473; lean_object* x_474; +x_470 = 0; +x_471 = 1; +x_472 = 0; +x_473 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_473, 0, x_17); +lean_ctor_set(x_473, 1, x_456); +lean_ctor_set_uint8(x_473, sizeof(void*)*2, x_470); +lean_ctor_set_uint8(x_473, sizeof(void*)*2 + 1, x_471); +lean_ctor_set_uint8(x_473, sizeof(void*)*2 + 2, x_472); +lean_ctor_set_uint8(x_473, sizeof(void*)*2 + 3, x_471); +x_474 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_474, 0, x_473); +lean_ctor_set(x_474, 1, x_457); +return x_474; +} +else +{ +uint8_t x_475; uint8_t x_476; uint8_t x_477; lean_object* x_478; lean_object* x_479; +x_475 = 0; +x_476 = 1; +x_477 = 0; +x_478 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_478, 0, x_17); +lean_ctor_set(x_478, 1, x_456); +lean_ctor_set_uint8(x_478, sizeof(void*)*2, x_475); +lean_ctor_set_uint8(x_478, sizeof(void*)*2 + 1, x_476); +lean_ctor_set_uint8(x_478, sizeof(void*)*2 + 2, x_477); +lean_ctor_set_uint8(x_478, sizeof(void*)*2 + 3, x_477); +x_479 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_479, 0, x_478); +lean_ctor_set(x_479, 1, x_457); +return x_479; +} +} +} +else +{ +if (x_459 == 0) +{ +if (x_460 == 0) +{ +uint8_t x_480; uint8_t x_481; uint8_t x_482; lean_object* x_483; lean_object* x_484; +x_480 = 0; +x_481 = 0; +x_482 = 1; +x_483 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_483, 0, x_17); +lean_ctor_set(x_483, 1, x_456); +lean_ctor_set_uint8(x_483, sizeof(void*)*2, x_480); +lean_ctor_set_uint8(x_483, sizeof(void*)*2 + 1, x_481); +lean_ctor_set_uint8(x_483, sizeof(void*)*2 + 2, x_482); +lean_ctor_set_uint8(x_483, sizeof(void*)*2 + 3, x_482); +x_484 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_484, 0, x_483); +lean_ctor_set(x_484, 1, x_457); +return x_484; +} +else +{ +uint8_t x_485; uint8_t x_486; uint8_t x_487; lean_object* x_488; lean_object* x_489; +x_485 = 0; +x_486 = 0; +x_487 = 1; +x_488 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_488, 0, x_17); +lean_ctor_set(x_488, 1, x_456); +lean_ctor_set_uint8(x_488, sizeof(void*)*2, x_485); +lean_ctor_set_uint8(x_488, sizeof(void*)*2 + 1, x_486); +lean_ctor_set_uint8(x_488, sizeof(void*)*2 + 2, x_487); +lean_ctor_set_uint8(x_488, sizeof(void*)*2 + 3, x_486); +x_489 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_489, 0, x_488); +lean_ctor_set(x_489, 1, x_457); +return x_489; +} +} +else +{ +if (x_460 == 0) +{ +uint8_t x_490; uint8_t x_491; uint8_t x_492; lean_object* x_493; lean_object* x_494; +x_490 = 0; +x_491 = 0; +x_492 = 1; +x_493 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_493, 0, x_17); +lean_ctor_set(x_493, 1, x_456); +lean_ctor_set_uint8(x_493, sizeof(void*)*2, x_490); +lean_ctor_set_uint8(x_493, sizeof(void*)*2 + 1, x_491); +lean_ctor_set_uint8(x_493, sizeof(void*)*2 + 2, x_491); +lean_ctor_set_uint8(x_493, sizeof(void*)*2 + 3, x_492); +x_494 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_494, 0, x_493); +lean_ctor_set(x_494, 1, x_457); +return x_494; +} +else +{ +uint8_t x_495; uint8_t x_496; lean_object* x_497; lean_object* x_498; +x_495 = 0; +x_496 = 0; +x_497 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_497, 0, x_17); +lean_ctor_set(x_497, 1, x_456); +lean_ctor_set_uint8(x_497, sizeof(void*)*2, x_495); +lean_ctor_set_uint8(x_497, sizeof(void*)*2 + 1, x_496); +lean_ctor_set_uint8(x_497, sizeof(void*)*2 + 2, x_496); +lean_ctor_set_uint8(x_497, sizeof(void*)*2 + 3, x_496); +x_498 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_498, 0, x_497); +lean_ctor_set(x_498, 1, x_457); +return x_498; +} +} +} +} +} +else +{ +uint8_t x_499; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_499 = !lean_is_exclusive(x_420); +if (x_499 == 0) +{ +return x_420; +} +else +{ +lean_object* x_500; lean_object* x_501; lean_object* x_502; +x_500 = lean_ctor_get(x_420, 0); +x_501 = lean_ctor_get(x_420, 1); +lean_inc(x_501); +lean_inc(x_500); +lean_dec(x_420); +x_502 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_502, 0, x_500); +lean_ctor_set(x_502, 1, x_501); +return x_502; +} +} +} +} +else +{ +lean_object* x_503; lean_object* x_504; lean_object* x_505; uint8_t x_506; +x_503 = lean_ctor_get(x_368, 0); +lean_inc(x_503); +lean_dec(x_368); +lean_inc(x_503); +x_504 = l_Lean_Syntax_getKind(x_503); +x_505 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; +x_506 = lean_name_eq(x_504, x_505); +if (x_506 == 0) +{ +lean_object* x_507; uint8_t x_508; +x_507 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; +x_508 = lean_name_eq(x_504, x_507); +lean_dec(x_504); +if (x_508 == 0) +{ +lean_object* x_509; lean_object* x_510; uint8_t x_511; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_8); +x_509 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; +x_510 = l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_503, x_509, x_2, x_3, x_4); +lean_dec(x_503); +x_511 = !lean_is_exclusive(x_510); +if (x_511 == 0) +{ +return x_510; +} +else +{ +lean_object* x_512; lean_object* x_513; lean_object* x_514; +x_512 = lean_ctor_get(x_510, 0); +x_513 = lean_ctor_get(x_510, 1); +lean_inc(x_513); +lean_inc(x_512); +lean_dec(x_510); +x_514 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_514, 0, x_512); +lean_ctor_set(x_514, 1, x_513); +return x_514; +} +} +else +{ +lean_object* x_515; +lean_dec(x_503); +x_515 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_515) == 0) +{ +uint8_t x_516; uint8_t x_517; uint8_t x_518; +lean_dec(x_2); +x_516 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_517 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_518 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_516 == 0) +{ +if (x_517 == 0) +{ +if (x_518 == 0) +{ +uint8_t x_519; uint8_t x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; +x_519 = 1; +x_520 = 1; +x_521 = l_Array_empty___closed__1; +x_522 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_522, 0, x_17); +lean_ctor_set(x_522, 1, x_521); +lean_ctor_set_uint8(x_522, sizeof(void*)*2, x_519); +lean_ctor_set_uint8(x_522, sizeof(void*)*2 + 1, x_520); +lean_ctor_set_uint8(x_522, sizeof(void*)*2 + 2, x_520); +lean_ctor_set_uint8(x_522, sizeof(void*)*2 + 3, x_520); +x_523 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_523, 0, x_522); +lean_ctor_set(x_523, 1, x_4); +return x_523; +} +else +{ +uint8_t x_524; uint8_t x_525; uint8_t x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_524 = 1; +x_525 = 1; +x_526 = 0; +x_527 = l_Array_empty___closed__1; +x_528 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_528, 0, x_17); +lean_ctor_set(x_528, 1, x_527); +lean_ctor_set_uint8(x_528, sizeof(void*)*2, x_524); +lean_ctor_set_uint8(x_528, sizeof(void*)*2 + 1, x_525); +lean_ctor_set_uint8(x_528, sizeof(void*)*2 + 2, x_525); +lean_ctor_set_uint8(x_528, sizeof(void*)*2 + 3, x_526); +x_529 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_529, 0, x_528); +lean_ctor_set(x_529, 1, x_4); +return x_529; +} +} +else +{ +if (x_518 == 0) +{ +uint8_t x_530; uint8_t x_531; uint8_t x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; +x_530 = 1; +x_531 = 1; +x_532 = 0; +x_533 = l_Array_empty___closed__1; +x_534 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_534, 0, x_17); +lean_ctor_set(x_534, 1, x_533); +lean_ctor_set_uint8(x_534, sizeof(void*)*2, x_530); +lean_ctor_set_uint8(x_534, sizeof(void*)*2 + 1, x_531); +lean_ctor_set_uint8(x_534, sizeof(void*)*2 + 2, x_532); +lean_ctor_set_uint8(x_534, sizeof(void*)*2 + 3, x_531); +x_535 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_535, 0, x_534); +lean_ctor_set(x_535, 1, x_4); +return x_535; +} +else +{ +uint8_t x_536; uint8_t x_537; uint8_t x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; +x_536 = 1; +x_537 = 1; +x_538 = 0; +x_539 = l_Array_empty___closed__1; +x_540 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_540, 0, x_17); +lean_ctor_set(x_540, 1, x_539); +lean_ctor_set_uint8(x_540, sizeof(void*)*2, x_536); +lean_ctor_set_uint8(x_540, sizeof(void*)*2 + 1, x_537); +lean_ctor_set_uint8(x_540, sizeof(void*)*2 + 2, x_538); +lean_ctor_set_uint8(x_540, sizeof(void*)*2 + 3, x_538); +x_541 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_541, 0, x_540); +lean_ctor_set(x_541, 1, x_4); +return x_541; +} +} +} +else +{ +if (x_517 == 0) +{ +if (x_518 == 0) +{ +uint8_t x_542; uint8_t x_543; uint8_t x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; +x_542 = 1; +x_543 = 0; +x_544 = 1; +x_545 = l_Array_empty___closed__1; +x_546 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_546, 0, x_17); +lean_ctor_set(x_546, 1, x_545); +lean_ctor_set_uint8(x_546, sizeof(void*)*2, x_542); +lean_ctor_set_uint8(x_546, sizeof(void*)*2 + 1, x_543); +lean_ctor_set_uint8(x_546, sizeof(void*)*2 + 2, x_544); +lean_ctor_set_uint8(x_546, sizeof(void*)*2 + 3, x_544); +x_547 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_547, 0, x_546); +lean_ctor_set(x_547, 1, x_4); +return x_547; +} +else +{ +uint8_t x_548; uint8_t x_549; uint8_t x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; +x_548 = 1; +x_549 = 0; +x_550 = 1; +x_551 = l_Array_empty___closed__1; +x_552 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_552, 0, x_17); +lean_ctor_set(x_552, 1, x_551); +lean_ctor_set_uint8(x_552, sizeof(void*)*2, x_548); +lean_ctor_set_uint8(x_552, sizeof(void*)*2 + 1, x_549); +lean_ctor_set_uint8(x_552, sizeof(void*)*2 + 2, x_550); +lean_ctor_set_uint8(x_552, sizeof(void*)*2 + 3, x_549); +x_553 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_553, 0, x_552); +lean_ctor_set(x_553, 1, x_4); +return x_553; +} +} +else +{ +if (x_518 == 0) +{ +uint8_t x_554; uint8_t x_555; uint8_t x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; +x_554 = 1; +x_555 = 0; +x_556 = 1; +x_557 = l_Array_empty___closed__1; +x_558 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_558, 0, x_17); +lean_ctor_set(x_558, 1, x_557); +lean_ctor_set_uint8(x_558, sizeof(void*)*2, x_554); +lean_ctor_set_uint8(x_558, sizeof(void*)*2 + 1, x_555); +lean_ctor_set_uint8(x_558, sizeof(void*)*2 + 2, x_555); +lean_ctor_set_uint8(x_558, sizeof(void*)*2 + 3, x_556); +x_559 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_559, 0, x_558); +lean_ctor_set(x_559, 1, x_4); +return x_559; +} +else +{ +uint8_t x_560; uint8_t x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; +x_560 = 1; +x_561 = 0; +x_562 = l_Array_empty___closed__1; +x_563 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_563, 0, x_17); +lean_ctor_set(x_563, 1, x_562); +lean_ctor_set_uint8(x_563, sizeof(void*)*2, x_560); +lean_ctor_set_uint8(x_563, sizeof(void*)*2 + 1, x_561); +lean_ctor_set_uint8(x_563, sizeof(void*)*2 + 2, x_561); +lean_ctor_set_uint8(x_563, sizeof(void*)*2 + 3, x_561); +x_564 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_564, 0, x_563); +lean_ctor_set(x_564, 1, x_4); +return x_564; +} +} +} +} +else +{ +lean_object* x_565; lean_object* x_566; +x_565 = lean_ctor_get(x_515, 0); +lean_inc(x_565); +lean_dec(x_515); +x_566 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_565, x_2, x_3, x_4); +lean_dec(x_565); +if (lean_obj_tag(x_566) == 0) +{ +uint8_t x_567; +x_567 = !lean_is_exclusive(x_566); +if (x_567 == 0) +{ +lean_object* x_568; uint8_t x_569; uint8_t x_570; uint8_t x_571; +x_568 = lean_ctor_get(x_566, 0); +x_569 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_570 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_571 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_569 == 0) +{ +if (x_570 == 0) +{ +if (x_571 == 0) +{ +uint8_t x_572; uint8_t x_573; lean_object* x_574; +x_572 = 1; +x_573 = 1; +x_574 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_574, 0, x_17); +lean_ctor_set(x_574, 1, x_568); +lean_ctor_set_uint8(x_574, sizeof(void*)*2, x_572); +lean_ctor_set_uint8(x_574, sizeof(void*)*2 + 1, x_573); +lean_ctor_set_uint8(x_574, sizeof(void*)*2 + 2, x_573); +lean_ctor_set_uint8(x_574, sizeof(void*)*2 + 3, x_573); +lean_ctor_set(x_566, 0, x_574); +return x_566; +} +else +{ +uint8_t x_575; uint8_t x_576; uint8_t x_577; lean_object* x_578; +x_575 = 1; +x_576 = 1; +x_577 = 0; +x_578 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_578, 0, x_17); +lean_ctor_set(x_578, 1, x_568); +lean_ctor_set_uint8(x_578, sizeof(void*)*2, x_575); +lean_ctor_set_uint8(x_578, sizeof(void*)*2 + 1, x_576); +lean_ctor_set_uint8(x_578, sizeof(void*)*2 + 2, x_576); +lean_ctor_set_uint8(x_578, sizeof(void*)*2 + 3, x_577); +lean_ctor_set(x_566, 0, x_578); +return x_566; +} +} +else +{ +if (x_571 == 0) +{ +uint8_t x_579; uint8_t x_580; uint8_t x_581; lean_object* x_582; +x_579 = 1; +x_580 = 1; +x_581 = 0; +x_582 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_582, 0, x_17); +lean_ctor_set(x_582, 1, x_568); +lean_ctor_set_uint8(x_582, sizeof(void*)*2, x_579); +lean_ctor_set_uint8(x_582, sizeof(void*)*2 + 1, x_580); +lean_ctor_set_uint8(x_582, sizeof(void*)*2 + 2, x_581); +lean_ctor_set_uint8(x_582, sizeof(void*)*2 + 3, x_580); +lean_ctor_set(x_566, 0, x_582); +return x_566; +} +else +{ +uint8_t x_583; uint8_t x_584; uint8_t x_585; lean_object* x_586; +x_583 = 1; +x_584 = 1; +x_585 = 0; +x_586 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_586, 0, x_17); +lean_ctor_set(x_586, 1, x_568); +lean_ctor_set_uint8(x_586, sizeof(void*)*2, x_583); +lean_ctor_set_uint8(x_586, sizeof(void*)*2 + 1, x_584); +lean_ctor_set_uint8(x_586, sizeof(void*)*2 + 2, x_585); +lean_ctor_set_uint8(x_586, sizeof(void*)*2 + 3, x_585); +lean_ctor_set(x_566, 0, x_586); +return x_566; +} +} +} +else +{ +if (x_570 == 0) +{ +if (x_571 == 0) +{ +uint8_t x_587; uint8_t x_588; uint8_t x_589; lean_object* x_590; +x_587 = 1; +x_588 = 0; +x_589 = 1; +x_590 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_590, 0, x_17); +lean_ctor_set(x_590, 1, x_568); +lean_ctor_set_uint8(x_590, sizeof(void*)*2, x_587); +lean_ctor_set_uint8(x_590, sizeof(void*)*2 + 1, x_588); +lean_ctor_set_uint8(x_590, sizeof(void*)*2 + 2, x_589); +lean_ctor_set_uint8(x_590, sizeof(void*)*2 + 3, x_589); +lean_ctor_set(x_566, 0, x_590); +return x_566; +} +else +{ +uint8_t x_591; uint8_t x_592; uint8_t x_593; lean_object* x_594; +x_591 = 1; +x_592 = 0; +x_593 = 1; +x_594 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_594, 0, x_17); +lean_ctor_set(x_594, 1, x_568); +lean_ctor_set_uint8(x_594, sizeof(void*)*2, x_591); +lean_ctor_set_uint8(x_594, sizeof(void*)*2 + 1, x_592); +lean_ctor_set_uint8(x_594, sizeof(void*)*2 + 2, x_593); +lean_ctor_set_uint8(x_594, sizeof(void*)*2 + 3, x_592); +lean_ctor_set(x_566, 0, x_594); +return x_566; +} +} +else +{ +if (x_571 == 0) +{ +uint8_t x_595; uint8_t x_596; uint8_t x_597; lean_object* x_598; +x_595 = 1; +x_596 = 0; +x_597 = 1; +x_598 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_598, 0, x_17); +lean_ctor_set(x_598, 1, x_568); +lean_ctor_set_uint8(x_598, sizeof(void*)*2, x_595); +lean_ctor_set_uint8(x_598, sizeof(void*)*2 + 1, x_596); +lean_ctor_set_uint8(x_598, sizeof(void*)*2 + 2, x_596); +lean_ctor_set_uint8(x_598, sizeof(void*)*2 + 3, x_597); +lean_ctor_set(x_566, 0, x_598); +return x_566; +} +else +{ +uint8_t x_599; uint8_t x_600; lean_object* x_601; +x_599 = 1; +x_600 = 0; +x_601 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_601, 0, x_17); +lean_ctor_set(x_601, 1, x_568); +lean_ctor_set_uint8(x_601, sizeof(void*)*2, x_599); +lean_ctor_set_uint8(x_601, sizeof(void*)*2 + 1, x_600); +lean_ctor_set_uint8(x_601, sizeof(void*)*2 + 2, x_600); +lean_ctor_set_uint8(x_601, sizeof(void*)*2 + 3, x_600); +lean_ctor_set(x_566, 0, x_601); +return x_566; +} +} +} +} +else +{ +lean_object* x_602; lean_object* x_603; uint8_t x_604; uint8_t x_605; uint8_t x_606; +x_602 = lean_ctor_get(x_566, 0); +x_603 = lean_ctor_get(x_566, 1); +lean_inc(x_603); +lean_inc(x_602); +lean_dec(x_566); +x_604 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_605 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_606 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_604 == 0) +{ +if (x_605 == 0) +{ +if (x_606 == 0) +{ +uint8_t x_607; uint8_t x_608; lean_object* x_609; lean_object* x_610; +x_607 = 1; +x_608 = 1; +x_609 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_609, 0, x_17); +lean_ctor_set(x_609, 1, x_602); +lean_ctor_set_uint8(x_609, sizeof(void*)*2, x_607); +lean_ctor_set_uint8(x_609, sizeof(void*)*2 + 1, x_608); +lean_ctor_set_uint8(x_609, sizeof(void*)*2 + 2, x_608); +lean_ctor_set_uint8(x_609, sizeof(void*)*2 + 3, x_608); +x_610 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_610, 0, x_609); +lean_ctor_set(x_610, 1, x_603); +return x_610; +} +else +{ +uint8_t x_611; uint8_t x_612; uint8_t x_613; lean_object* x_614; lean_object* x_615; +x_611 = 1; +x_612 = 1; +x_613 = 0; +x_614 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_614, 0, x_17); +lean_ctor_set(x_614, 1, x_602); +lean_ctor_set_uint8(x_614, sizeof(void*)*2, x_611); +lean_ctor_set_uint8(x_614, sizeof(void*)*2 + 1, x_612); +lean_ctor_set_uint8(x_614, sizeof(void*)*2 + 2, x_612); +lean_ctor_set_uint8(x_614, sizeof(void*)*2 + 3, x_613); +x_615 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_615, 0, x_614); +lean_ctor_set(x_615, 1, x_603); +return x_615; +} +} +else +{ +if (x_606 == 0) +{ +uint8_t x_616; uint8_t x_617; uint8_t x_618; lean_object* x_619; lean_object* x_620; +x_616 = 1; +x_617 = 1; +x_618 = 0; +x_619 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_619, 0, x_17); +lean_ctor_set(x_619, 1, x_602); +lean_ctor_set_uint8(x_619, sizeof(void*)*2, x_616); +lean_ctor_set_uint8(x_619, sizeof(void*)*2 + 1, x_617); +lean_ctor_set_uint8(x_619, sizeof(void*)*2 + 2, x_618); +lean_ctor_set_uint8(x_619, sizeof(void*)*2 + 3, x_617); +x_620 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_620, 0, x_619); +lean_ctor_set(x_620, 1, x_603); +return x_620; +} +else +{ +uint8_t x_621; uint8_t x_622; uint8_t x_623; lean_object* x_624; lean_object* x_625; +x_621 = 1; +x_622 = 1; +x_623 = 0; +x_624 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_624, 0, x_17); +lean_ctor_set(x_624, 1, x_602); +lean_ctor_set_uint8(x_624, sizeof(void*)*2, x_621); +lean_ctor_set_uint8(x_624, sizeof(void*)*2 + 1, x_622); +lean_ctor_set_uint8(x_624, sizeof(void*)*2 + 2, x_623); +lean_ctor_set_uint8(x_624, sizeof(void*)*2 + 3, x_623); +x_625 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_625, 0, x_624); +lean_ctor_set(x_625, 1, x_603); +return x_625; +} +} +} +else +{ +if (x_605 == 0) +{ +if (x_606 == 0) +{ +uint8_t x_626; uint8_t x_627; uint8_t x_628; lean_object* x_629; lean_object* x_630; +x_626 = 1; +x_627 = 0; +x_628 = 1; +x_629 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_629, 0, x_17); +lean_ctor_set(x_629, 1, x_602); +lean_ctor_set_uint8(x_629, sizeof(void*)*2, x_626); +lean_ctor_set_uint8(x_629, sizeof(void*)*2 + 1, x_627); +lean_ctor_set_uint8(x_629, sizeof(void*)*2 + 2, x_628); +lean_ctor_set_uint8(x_629, sizeof(void*)*2 + 3, x_628); +x_630 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_630, 0, x_629); +lean_ctor_set(x_630, 1, x_603); +return x_630; +} +else +{ +uint8_t x_631; uint8_t x_632; uint8_t x_633; lean_object* x_634; lean_object* x_635; +x_631 = 1; +x_632 = 0; +x_633 = 1; +x_634 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_634, 0, x_17); +lean_ctor_set(x_634, 1, x_602); +lean_ctor_set_uint8(x_634, sizeof(void*)*2, x_631); +lean_ctor_set_uint8(x_634, sizeof(void*)*2 + 1, x_632); +lean_ctor_set_uint8(x_634, sizeof(void*)*2 + 2, x_633); +lean_ctor_set_uint8(x_634, sizeof(void*)*2 + 3, x_632); +x_635 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_635, 0, x_634); +lean_ctor_set(x_635, 1, x_603); +return x_635; +} +} +else +{ +if (x_606 == 0) +{ +uint8_t x_636; uint8_t x_637; uint8_t x_638; lean_object* x_639; lean_object* x_640; +x_636 = 1; +x_637 = 0; +x_638 = 1; +x_639 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_639, 0, x_17); +lean_ctor_set(x_639, 1, x_602); +lean_ctor_set_uint8(x_639, sizeof(void*)*2, x_636); +lean_ctor_set_uint8(x_639, sizeof(void*)*2 + 1, x_637); +lean_ctor_set_uint8(x_639, sizeof(void*)*2 + 2, x_637); +lean_ctor_set_uint8(x_639, sizeof(void*)*2 + 3, x_638); +x_640 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_640, 0, x_639); +lean_ctor_set(x_640, 1, x_603); +return x_640; +} +else +{ +uint8_t x_641; uint8_t x_642; lean_object* x_643; lean_object* x_644; +x_641 = 1; +x_642 = 0; +x_643 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_643, 0, x_17); +lean_ctor_set(x_643, 1, x_602); +lean_ctor_set_uint8(x_643, sizeof(void*)*2, x_641); +lean_ctor_set_uint8(x_643, sizeof(void*)*2 + 1, x_642); +lean_ctor_set_uint8(x_643, sizeof(void*)*2 + 2, x_642); +lean_ctor_set_uint8(x_643, sizeof(void*)*2 + 3, x_642); +x_644 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_644, 0, x_643); +lean_ctor_set(x_644, 1, x_603); +return x_644; +} +} +} +} +} +else +{ +uint8_t x_645; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_645 = !lean_is_exclusive(x_566); +if (x_645 == 0) +{ +return x_566; +} +else +{ +lean_object* x_646; lean_object* x_647; lean_object* x_648; +x_646 = lean_ctor_get(x_566, 0); +x_647 = lean_ctor_get(x_566, 1); +lean_inc(x_647); +lean_inc(x_646); +lean_dec(x_566); +x_648 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_648, 0, x_646); +lean_ctor_set(x_648, 1, x_647); +return x_648; +} +} +} +} +} +else +{ +lean_object* x_649; +lean_dec(x_504); +lean_dec(x_503); +x_649 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_649) == 0) +{ +uint8_t x_650; uint8_t x_651; uint8_t x_652; +lean_dec(x_2); +x_650 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_651 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_652 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_650 == 0) +{ +if (x_651 == 0) +{ +if (x_652 == 0) +{ +uint8_t x_653; uint8_t x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; +x_653 = 2; +x_654 = 1; +x_655 = l_Array_empty___closed__1; +x_656 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_656, 0, x_17); +lean_ctor_set(x_656, 1, x_655); +lean_ctor_set_uint8(x_656, sizeof(void*)*2, x_653); +lean_ctor_set_uint8(x_656, sizeof(void*)*2 + 1, x_654); +lean_ctor_set_uint8(x_656, sizeof(void*)*2 + 2, x_654); +lean_ctor_set_uint8(x_656, sizeof(void*)*2 + 3, x_654); +x_657 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_657, 0, x_656); +lean_ctor_set(x_657, 1, x_4); +return x_657; +} +else +{ +uint8_t x_658; uint8_t x_659; uint8_t x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; +x_658 = 2; +x_659 = 1; +x_660 = 0; +x_661 = l_Array_empty___closed__1; +x_662 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_662, 0, x_17); +lean_ctor_set(x_662, 1, x_661); +lean_ctor_set_uint8(x_662, sizeof(void*)*2, x_658); +lean_ctor_set_uint8(x_662, sizeof(void*)*2 + 1, x_659); +lean_ctor_set_uint8(x_662, sizeof(void*)*2 + 2, x_659); +lean_ctor_set_uint8(x_662, sizeof(void*)*2 + 3, x_660); +x_663 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_663, 0, x_662); +lean_ctor_set(x_663, 1, x_4); +return x_663; +} +} +else +{ +if (x_652 == 0) +{ +uint8_t x_664; uint8_t x_665; uint8_t x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; +x_664 = 2; +x_665 = 1; +x_666 = 0; +x_667 = l_Array_empty___closed__1; +x_668 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_668, 0, x_17); +lean_ctor_set(x_668, 1, x_667); +lean_ctor_set_uint8(x_668, sizeof(void*)*2, x_664); +lean_ctor_set_uint8(x_668, sizeof(void*)*2 + 1, x_665); +lean_ctor_set_uint8(x_668, sizeof(void*)*2 + 2, x_666); +lean_ctor_set_uint8(x_668, sizeof(void*)*2 + 3, x_665); +x_669 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_669, 0, x_668); +lean_ctor_set(x_669, 1, x_4); +return x_669; +} +else +{ +uint8_t x_670; uint8_t x_671; uint8_t x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; +x_670 = 2; +x_671 = 1; +x_672 = 0; +x_673 = l_Array_empty___closed__1; +x_674 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_674, 0, x_17); +lean_ctor_set(x_674, 1, x_673); +lean_ctor_set_uint8(x_674, sizeof(void*)*2, x_670); +lean_ctor_set_uint8(x_674, sizeof(void*)*2 + 1, x_671); +lean_ctor_set_uint8(x_674, sizeof(void*)*2 + 2, x_672); +lean_ctor_set_uint8(x_674, sizeof(void*)*2 + 3, x_672); +x_675 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_675, 0, x_674); +lean_ctor_set(x_675, 1, x_4); +return x_675; +} +} +} +else +{ +if (x_651 == 0) +{ +if (x_652 == 0) +{ +uint8_t x_676; uint8_t x_677; uint8_t x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; +x_676 = 2; +x_677 = 0; +x_678 = 1; +x_679 = l_Array_empty___closed__1; +x_680 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_680, 0, x_17); +lean_ctor_set(x_680, 1, x_679); +lean_ctor_set_uint8(x_680, sizeof(void*)*2, x_676); +lean_ctor_set_uint8(x_680, sizeof(void*)*2 + 1, x_677); +lean_ctor_set_uint8(x_680, sizeof(void*)*2 + 2, x_678); +lean_ctor_set_uint8(x_680, sizeof(void*)*2 + 3, x_678); +x_681 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_681, 0, x_680); +lean_ctor_set(x_681, 1, x_4); +return x_681; +} +else +{ +uint8_t x_682; uint8_t x_683; uint8_t x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; +x_682 = 2; +x_683 = 0; +x_684 = 1; +x_685 = l_Array_empty___closed__1; +x_686 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_686, 0, x_17); +lean_ctor_set(x_686, 1, x_685); +lean_ctor_set_uint8(x_686, sizeof(void*)*2, x_682); +lean_ctor_set_uint8(x_686, sizeof(void*)*2 + 1, x_683); +lean_ctor_set_uint8(x_686, sizeof(void*)*2 + 2, x_684); +lean_ctor_set_uint8(x_686, sizeof(void*)*2 + 3, x_683); +x_687 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_687, 0, x_686); +lean_ctor_set(x_687, 1, x_4); +return x_687; +} +} +else +{ +if (x_652 == 0) +{ +uint8_t x_688; uint8_t x_689; uint8_t x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; +x_688 = 2; +x_689 = 0; +x_690 = 1; +x_691 = l_Array_empty___closed__1; +x_692 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_692, 0, x_17); +lean_ctor_set(x_692, 1, x_691); +lean_ctor_set_uint8(x_692, sizeof(void*)*2, x_688); +lean_ctor_set_uint8(x_692, sizeof(void*)*2 + 1, x_689); +lean_ctor_set_uint8(x_692, sizeof(void*)*2 + 2, x_689); +lean_ctor_set_uint8(x_692, sizeof(void*)*2 + 3, x_690); +x_693 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_693, 0, x_692); +lean_ctor_set(x_693, 1, x_4); +return x_693; +} +else +{ +uint8_t x_694; uint8_t x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; +x_694 = 2; +x_695 = 0; +x_696 = l_Array_empty___closed__1; +x_697 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_697, 0, x_17); +lean_ctor_set(x_697, 1, x_696); +lean_ctor_set_uint8(x_697, sizeof(void*)*2, x_694); +lean_ctor_set_uint8(x_697, sizeof(void*)*2 + 1, x_695); +lean_ctor_set_uint8(x_697, sizeof(void*)*2 + 2, x_695); +lean_ctor_set_uint8(x_697, sizeof(void*)*2 + 3, x_695); +x_698 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_698, 0, x_697); +lean_ctor_set(x_698, 1, x_4); +return x_698; +} +} +} +} +else +{ +lean_object* x_699; lean_object* x_700; +x_699 = lean_ctor_get(x_649, 0); +lean_inc(x_699); +lean_dec(x_649); +x_700 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_699, x_2, x_3, x_4); +lean_dec(x_699); +if (lean_obj_tag(x_700) == 0) +{ +uint8_t x_701; +x_701 = !lean_is_exclusive(x_700); +if (x_701 == 0) +{ +lean_object* x_702; uint8_t x_703; uint8_t x_704; uint8_t x_705; +x_702 = lean_ctor_get(x_700, 0); +x_703 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_704 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_705 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_703 == 0) +{ +if (x_704 == 0) +{ +if (x_705 == 0) +{ +uint8_t x_706; uint8_t x_707; lean_object* x_708; +x_706 = 2; +x_707 = 1; +x_708 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_708, 0, x_17); +lean_ctor_set(x_708, 1, x_702); +lean_ctor_set_uint8(x_708, sizeof(void*)*2, x_706); +lean_ctor_set_uint8(x_708, sizeof(void*)*2 + 1, x_707); +lean_ctor_set_uint8(x_708, sizeof(void*)*2 + 2, x_707); +lean_ctor_set_uint8(x_708, sizeof(void*)*2 + 3, x_707); +lean_ctor_set(x_700, 0, x_708); +return x_700; +} +else +{ +uint8_t x_709; uint8_t x_710; uint8_t x_711; lean_object* x_712; +x_709 = 2; +x_710 = 1; +x_711 = 0; +x_712 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_712, 0, x_17); +lean_ctor_set(x_712, 1, x_702); +lean_ctor_set_uint8(x_712, sizeof(void*)*2, x_709); +lean_ctor_set_uint8(x_712, sizeof(void*)*2 + 1, x_710); +lean_ctor_set_uint8(x_712, sizeof(void*)*2 + 2, x_710); +lean_ctor_set_uint8(x_712, sizeof(void*)*2 + 3, x_711); +lean_ctor_set(x_700, 0, x_712); +return x_700; +} +} +else +{ +if (x_705 == 0) +{ +uint8_t x_713; uint8_t x_714; uint8_t x_715; lean_object* x_716; +x_713 = 2; +x_714 = 1; +x_715 = 0; +x_716 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_716, 0, x_17); +lean_ctor_set(x_716, 1, x_702); +lean_ctor_set_uint8(x_716, sizeof(void*)*2, x_713); +lean_ctor_set_uint8(x_716, sizeof(void*)*2 + 1, x_714); +lean_ctor_set_uint8(x_716, sizeof(void*)*2 + 2, x_715); +lean_ctor_set_uint8(x_716, sizeof(void*)*2 + 3, x_714); +lean_ctor_set(x_700, 0, x_716); +return x_700; +} +else +{ +uint8_t x_717; uint8_t x_718; uint8_t x_719; lean_object* x_720; +x_717 = 2; +x_718 = 1; +x_719 = 0; +x_720 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_720, 0, x_17); +lean_ctor_set(x_720, 1, x_702); +lean_ctor_set_uint8(x_720, sizeof(void*)*2, x_717); +lean_ctor_set_uint8(x_720, sizeof(void*)*2 + 1, x_718); +lean_ctor_set_uint8(x_720, sizeof(void*)*2 + 2, x_719); +lean_ctor_set_uint8(x_720, sizeof(void*)*2 + 3, x_719); +lean_ctor_set(x_700, 0, x_720); +return x_700; +} +} +} +else +{ +if (x_704 == 0) +{ +if (x_705 == 0) +{ +uint8_t x_721; uint8_t x_722; uint8_t x_723; lean_object* x_724; +x_721 = 2; +x_722 = 0; +x_723 = 1; +x_724 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_724, 0, x_17); +lean_ctor_set(x_724, 1, x_702); +lean_ctor_set_uint8(x_724, sizeof(void*)*2, x_721); +lean_ctor_set_uint8(x_724, sizeof(void*)*2 + 1, x_722); +lean_ctor_set_uint8(x_724, sizeof(void*)*2 + 2, x_723); +lean_ctor_set_uint8(x_724, sizeof(void*)*2 + 3, x_723); +lean_ctor_set(x_700, 0, x_724); +return x_700; +} +else +{ +uint8_t x_725; uint8_t x_726; uint8_t x_727; lean_object* x_728; +x_725 = 2; +x_726 = 0; +x_727 = 1; +x_728 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_728, 0, x_17); +lean_ctor_set(x_728, 1, x_702); +lean_ctor_set_uint8(x_728, sizeof(void*)*2, x_725); +lean_ctor_set_uint8(x_728, sizeof(void*)*2 + 1, x_726); +lean_ctor_set_uint8(x_728, sizeof(void*)*2 + 2, x_727); +lean_ctor_set_uint8(x_728, sizeof(void*)*2 + 3, x_726); +lean_ctor_set(x_700, 0, x_728); +return x_700; +} +} +else +{ +if (x_705 == 0) +{ +uint8_t x_729; uint8_t x_730; uint8_t x_731; lean_object* x_732; +x_729 = 2; +x_730 = 0; +x_731 = 1; +x_732 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_732, 0, x_17); +lean_ctor_set(x_732, 1, x_702); +lean_ctor_set_uint8(x_732, sizeof(void*)*2, x_729); +lean_ctor_set_uint8(x_732, sizeof(void*)*2 + 1, x_730); +lean_ctor_set_uint8(x_732, sizeof(void*)*2 + 2, x_730); +lean_ctor_set_uint8(x_732, sizeof(void*)*2 + 3, x_731); +lean_ctor_set(x_700, 0, x_732); +return x_700; +} +else +{ +uint8_t x_733; uint8_t x_734; lean_object* x_735; +x_733 = 2; +x_734 = 0; +x_735 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_735, 0, x_17); +lean_ctor_set(x_735, 1, x_702); +lean_ctor_set_uint8(x_735, sizeof(void*)*2, x_733); +lean_ctor_set_uint8(x_735, sizeof(void*)*2 + 1, x_734); +lean_ctor_set_uint8(x_735, sizeof(void*)*2 + 2, x_734); +lean_ctor_set_uint8(x_735, sizeof(void*)*2 + 3, x_734); +lean_ctor_set(x_700, 0, x_735); +return x_700; +} +} +} +} +else +{ +lean_object* x_736; lean_object* x_737; uint8_t x_738; uint8_t x_739; uint8_t x_740; +x_736 = lean_ctor_get(x_700, 0); +x_737 = lean_ctor_get(x_700, 1); +lean_inc(x_737); +lean_inc(x_736); +lean_dec(x_700); +x_738 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_739 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_740 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_738 == 0) +{ +if (x_739 == 0) +{ +if (x_740 == 0) +{ +uint8_t x_741; uint8_t x_742; lean_object* x_743; lean_object* x_744; +x_741 = 2; +x_742 = 1; +x_743 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_743, 0, x_17); +lean_ctor_set(x_743, 1, x_736); +lean_ctor_set_uint8(x_743, sizeof(void*)*2, x_741); +lean_ctor_set_uint8(x_743, sizeof(void*)*2 + 1, x_742); +lean_ctor_set_uint8(x_743, sizeof(void*)*2 + 2, x_742); +lean_ctor_set_uint8(x_743, sizeof(void*)*2 + 3, x_742); +x_744 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_744, 0, x_743); +lean_ctor_set(x_744, 1, x_737); +return x_744; +} +else +{ +uint8_t x_745; uint8_t x_746; uint8_t x_747; lean_object* x_748; lean_object* x_749; +x_745 = 2; +x_746 = 1; +x_747 = 0; +x_748 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_748, 0, x_17); +lean_ctor_set(x_748, 1, x_736); +lean_ctor_set_uint8(x_748, sizeof(void*)*2, x_745); +lean_ctor_set_uint8(x_748, sizeof(void*)*2 + 1, x_746); +lean_ctor_set_uint8(x_748, sizeof(void*)*2 + 2, x_746); +lean_ctor_set_uint8(x_748, sizeof(void*)*2 + 3, x_747); +x_749 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_749, 0, x_748); +lean_ctor_set(x_749, 1, x_737); +return x_749; +} +} +else +{ +if (x_740 == 0) +{ +uint8_t x_750; uint8_t x_751; uint8_t x_752; lean_object* x_753; lean_object* x_754; +x_750 = 2; +x_751 = 1; +x_752 = 0; +x_753 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_753, 0, x_17); +lean_ctor_set(x_753, 1, x_736); +lean_ctor_set_uint8(x_753, sizeof(void*)*2, x_750); +lean_ctor_set_uint8(x_753, sizeof(void*)*2 + 1, x_751); +lean_ctor_set_uint8(x_753, sizeof(void*)*2 + 2, x_752); +lean_ctor_set_uint8(x_753, sizeof(void*)*2 + 3, x_751); +x_754 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_754, 0, x_753); +lean_ctor_set(x_754, 1, x_737); +return x_754; +} +else +{ +uint8_t x_755; uint8_t x_756; uint8_t x_757; lean_object* x_758; lean_object* x_759; +x_755 = 2; +x_756 = 1; +x_757 = 0; +x_758 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_758, 0, x_17); +lean_ctor_set(x_758, 1, x_736); +lean_ctor_set_uint8(x_758, sizeof(void*)*2, x_755); +lean_ctor_set_uint8(x_758, sizeof(void*)*2 + 1, x_756); +lean_ctor_set_uint8(x_758, sizeof(void*)*2 + 2, x_757); +lean_ctor_set_uint8(x_758, sizeof(void*)*2 + 3, x_757); +x_759 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_759, 0, x_758); +lean_ctor_set(x_759, 1, x_737); +return x_759; +} +} +} +else +{ +if (x_739 == 0) +{ +if (x_740 == 0) +{ +uint8_t x_760; uint8_t x_761; uint8_t x_762; lean_object* x_763; lean_object* x_764; +x_760 = 2; +x_761 = 0; +x_762 = 1; +x_763 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_763, 0, x_17); +lean_ctor_set(x_763, 1, x_736); +lean_ctor_set_uint8(x_763, sizeof(void*)*2, x_760); +lean_ctor_set_uint8(x_763, sizeof(void*)*2 + 1, x_761); +lean_ctor_set_uint8(x_763, sizeof(void*)*2 + 2, x_762); +lean_ctor_set_uint8(x_763, sizeof(void*)*2 + 3, x_762); +x_764 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_764, 0, x_763); +lean_ctor_set(x_764, 1, x_737); +return x_764; +} +else +{ +uint8_t x_765; uint8_t x_766; uint8_t x_767; lean_object* x_768; lean_object* x_769; +x_765 = 2; +x_766 = 0; +x_767 = 1; +x_768 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_768, 0, x_17); +lean_ctor_set(x_768, 1, x_736); +lean_ctor_set_uint8(x_768, sizeof(void*)*2, x_765); +lean_ctor_set_uint8(x_768, sizeof(void*)*2 + 1, x_766); +lean_ctor_set_uint8(x_768, sizeof(void*)*2 + 2, x_767); +lean_ctor_set_uint8(x_768, sizeof(void*)*2 + 3, x_766); +x_769 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_769, 0, x_768); +lean_ctor_set(x_769, 1, x_737); +return x_769; +} +} +else +{ +if (x_740 == 0) +{ +uint8_t x_770; uint8_t x_771; uint8_t x_772; lean_object* x_773; lean_object* x_774; +x_770 = 2; +x_771 = 0; +x_772 = 1; +x_773 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_773, 0, x_17); +lean_ctor_set(x_773, 1, x_736); +lean_ctor_set_uint8(x_773, sizeof(void*)*2, x_770); +lean_ctor_set_uint8(x_773, sizeof(void*)*2 + 1, x_771); +lean_ctor_set_uint8(x_773, sizeof(void*)*2 + 2, x_771); +lean_ctor_set_uint8(x_773, sizeof(void*)*2 + 3, x_772); +x_774 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_774, 0, x_773); +lean_ctor_set(x_774, 1, x_737); +return x_774; +} +else +{ +uint8_t x_775; uint8_t x_776; lean_object* x_777; lean_object* x_778; +x_775 = 2; +x_776 = 0; +x_777 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_777, 0, x_17); +lean_ctor_set(x_777, 1, x_736); +lean_ctor_set_uint8(x_777, sizeof(void*)*2, x_775); +lean_ctor_set_uint8(x_777, sizeof(void*)*2 + 1, x_776); +lean_ctor_set_uint8(x_777, sizeof(void*)*2 + 2, x_776); +lean_ctor_set_uint8(x_777, sizeof(void*)*2 + 3, x_776); +x_778 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_778, 0, x_777); +lean_ctor_set(x_778, 1, x_737); +return x_778; +} +} +} +} +} +else +{ +uint8_t x_779; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_779 = !lean_is_exclusive(x_700); +if (x_779 == 0) +{ +return x_700; +} +else +{ +lean_object* x_780; lean_object* x_781; lean_object* x_782; +x_780 = lean_ctor_get(x_700, 0); +x_781 = lean_ctor_get(x_700, 1); +lean_inc(x_781); +lean_inc(x_780); +lean_dec(x_700); +x_782 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_782, 0, x_780); +lean_ctor_set(x_782, 1, x_781); +return x_782; +} +} +} +} +} +} +else +{ +lean_object* x_783; +lean_dec(x_363); +lean_free_object(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +x_783 = lean_box(0); +x_346 = x_783; +goto block_362; +} +block_362: +{ +lean_object* x_347; lean_object* x_348; uint8_t 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; uint8_t x_358; +lean_dec(x_346); +x_347 = l_Lean_Syntax_getArg(x_345, x_7); +x_348 = lean_box(0); +x_349 = 0; +x_350 = l_Lean_Syntax_formatStxAux___main(x_348, x_349, x_5, x_347); +x_351 = lean_box(0); +x_352 = l_Lean_Format_pretty(x_350, x_351); +x_353 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_353, 0, x_352); +x_354 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_354, 0, x_353); +x_355 = l_Lean_Elab_elabModifiers___rarg___closed__3; +x_356 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_356, 0, x_355); +lean_ctor_set(x_356, 1, x_354); +x_357 = l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_345, x_356, x_2, x_3, x_4); +lean_dec(x_345); +x_358 = !lean_is_exclusive(x_357); +if (x_358 == 0) +{ +return x_357; +} +else +{ +lean_object* x_359; lean_object* x_360; lean_object* x_361; +x_359 = lean_ctor_get(x_357, 0); +x_360 = lean_ctor_get(x_357, 1); +lean_inc(x_360); +lean_inc(x_359); +lean_dec(x_357); +x_361 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_361, 0, x_359); +lean_ctor_set(x_361, 1, x_360); +return x_361; +} +} +} +else +{ +lean_object* x_784; lean_object* x_785; lean_object* x_802; +x_784 = lean_ctor_get(x_17, 0); +lean_inc(x_784); +lean_dec(x_17); +x_802 = l_Lean_Syntax_getArg(x_784, x_7); +if (lean_obj_tag(x_802) == 2) +{ +lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; +lean_dec(x_784); +x_803 = lean_ctor_get(x_802, 1); +lean_inc(x_803); +lean_dec(x_802); +x_804 = lean_string_utf8_byte_size(x_803); +x_805 = lean_nat_sub(x_804, x_9); +lean_dec(x_804); +x_806 = lean_string_utf8_extract(x_803, x_5, x_805); +lean_dec(x_805); +lean_dec(x_803); +x_807 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_807, 0, x_806); +x_808 = l_Lean_Syntax_getOptional_x3f(x_10); +lean_dec(x_10); +if (lean_obj_tag(x_808) == 0) +{ +lean_object* x_809; +x_809 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_809) == 0) +{ +uint8_t x_810; uint8_t x_811; uint8_t x_812; +lean_dec(x_2); +x_810 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_811 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_812 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_810 == 0) +{ +if (x_811 == 0) +{ +if (x_812 == 0) +{ +uint8_t x_813; uint8_t x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; +x_813 = 0; +x_814 = 1; +x_815 = l_Array_empty___closed__1; +x_816 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_816, 0, x_807); +lean_ctor_set(x_816, 1, x_815); +lean_ctor_set_uint8(x_816, sizeof(void*)*2, x_813); +lean_ctor_set_uint8(x_816, sizeof(void*)*2 + 1, x_814); +lean_ctor_set_uint8(x_816, sizeof(void*)*2 + 2, x_814); +lean_ctor_set_uint8(x_816, sizeof(void*)*2 + 3, x_814); +x_817 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_817, 0, x_816); +lean_ctor_set(x_817, 1, x_4); +return x_817; +} +else +{ +uint8_t x_818; uint8_t x_819; uint8_t x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; +x_818 = 0; +x_819 = 1; +x_820 = 0; +x_821 = l_Array_empty___closed__1; +x_822 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_822, 0, x_807); +lean_ctor_set(x_822, 1, x_821); +lean_ctor_set_uint8(x_822, sizeof(void*)*2, x_818); +lean_ctor_set_uint8(x_822, sizeof(void*)*2 + 1, x_819); +lean_ctor_set_uint8(x_822, sizeof(void*)*2 + 2, x_819); +lean_ctor_set_uint8(x_822, sizeof(void*)*2 + 3, x_820); +x_823 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_823, 0, x_822); +lean_ctor_set(x_823, 1, x_4); +return x_823; +} +} +else +{ +if (x_812 == 0) +{ +uint8_t x_824; uint8_t x_825; uint8_t x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; +x_824 = 0; +x_825 = 1; +x_826 = 0; +x_827 = l_Array_empty___closed__1; +x_828 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_828, 0, x_807); +lean_ctor_set(x_828, 1, x_827); +lean_ctor_set_uint8(x_828, sizeof(void*)*2, x_824); +lean_ctor_set_uint8(x_828, sizeof(void*)*2 + 1, x_825); +lean_ctor_set_uint8(x_828, sizeof(void*)*2 + 2, x_826); +lean_ctor_set_uint8(x_828, sizeof(void*)*2 + 3, x_825); +x_829 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_829, 0, x_828); +lean_ctor_set(x_829, 1, x_4); +return x_829; +} +else +{ +uint8_t x_830; uint8_t x_831; uint8_t x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; +x_830 = 0; +x_831 = 1; +x_832 = 0; +x_833 = l_Array_empty___closed__1; +x_834 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_834, 0, x_807); +lean_ctor_set(x_834, 1, x_833); +lean_ctor_set_uint8(x_834, sizeof(void*)*2, x_830); +lean_ctor_set_uint8(x_834, sizeof(void*)*2 + 1, x_831); +lean_ctor_set_uint8(x_834, sizeof(void*)*2 + 2, x_832); +lean_ctor_set_uint8(x_834, sizeof(void*)*2 + 3, x_832); +x_835 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_835, 0, x_834); +lean_ctor_set(x_835, 1, x_4); +return x_835; +} +} +} +else +{ +if (x_811 == 0) +{ +if (x_812 == 0) +{ +uint8_t x_836; uint8_t x_837; uint8_t x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; +x_836 = 0; +x_837 = 0; +x_838 = 1; +x_839 = l_Array_empty___closed__1; +x_840 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_840, 0, x_807); +lean_ctor_set(x_840, 1, x_839); +lean_ctor_set_uint8(x_840, sizeof(void*)*2, x_836); +lean_ctor_set_uint8(x_840, sizeof(void*)*2 + 1, x_837); +lean_ctor_set_uint8(x_840, sizeof(void*)*2 + 2, x_838); +lean_ctor_set_uint8(x_840, sizeof(void*)*2 + 3, x_838); +x_841 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_841, 0, x_840); +lean_ctor_set(x_841, 1, x_4); +return x_841; +} +else +{ +uint8_t x_842; uint8_t x_843; uint8_t x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; +x_842 = 0; +x_843 = 0; +x_844 = 1; +x_845 = l_Array_empty___closed__1; +x_846 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_846, 0, x_807); +lean_ctor_set(x_846, 1, x_845); +lean_ctor_set_uint8(x_846, sizeof(void*)*2, x_842); +lean_ctor_set_uint8(x_846, sizeof(void*)*2 + 1, x_843); +lean_ctor_set_uint8(x_846, sizeof(void*)*2 + 2, x_844); +lean_ctor_set_uint8(x_846, sizeof(void*)*2 + 3, x_843); +x_847 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_847, 0, x_846); +lean_ctor_set(x_847, 1, x_4); +return x_847; +} +} +else +{ +if (x_812 == 0) +{ +uint8_t x_848; uint8_t x_849; uint8_t x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; +x_848 = 0; +x_849 = 0; +x_850 = 1; +x_851 = l_Array_empty___closed__1; +x_852 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_852, 0, x_807); +lean_ctor_set(x_852, 1, x_851); +lean_ctor_set_uint8(x_852, sizeof(void*)*2, x_848); +lean_ctor_set_uint8(x_852, sizeof(void*)*2 + 1, x_849); +lean_ctor_set_uint8(x_852, sizeof(void*)*2 + 2, x_849); +lean_ctor_set_uint8(x_852, sizeof(void*)*2 + 3, x_850); +x_853 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_853, 0, x_852); +lean_ctor_set(x_853, 1, x_4); +return x_853; +} +else +{ +uint8_t x_854; uint8_t x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; +x_854 = 0; +x_855 = 0; +x_856 = l_Array_empty___closed__1; +x_857 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_857, 0, x_807); +lean_ctor_set(x_857, 1, x_856); +lean_ctor_set_uint8(x_857, sizeof(void*)*2, x_854); +lean_ctor_set_uint8(x_857, sizeof(void*)*2 + 1, x_855); +lean_ctor_set_uint8(x_857, sizeof(void*)*2 + 2, x_855); +lean_ctor_set_uint8(x_857, sizeof(void*)*2 + 3, x_855); +x_858 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_858, 0, x_857); +lean_ctor_set(x_858, 1, x_4); +return x_858; +} +} +} +} +else +{ +lean_object* x_859; lean_object* x_860; +x_859 = lean_ctor_get(x_809, 0); +lean_inc(x_859); +lean_dec(x_809); +x_860 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_859, x_2, x_3, x_4); +lean_dec(x_859); +if (lean_obj_tag(x_860) == 0) +{ +lean_object* x_861; lean_object* x_862; lean_object* x_863; uint8_t x_864; uint8_t x_865; uint8_t x_866; +x_861 = lean_ctor_get(x_860, 0); +lean_inc(x_861); +x_862 = lean_ctor_get(x_860, 1); +lean_inc(x_862); +if (lean_is_exclusive(x_860)) { + lean_ctor_release(x_860, 0); + lean_ctor_release(x_860, 1); + x_863 = x_860; +} else { + lean_dec_ref(x_860); + x_863 = lean_box(0); +} +x_864 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_865 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_866 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_864 == 0) +{ +if (x_865 == 0) +{ +if (x_866 == 0) +{ +uint8_t x_867; uint8_t x_868; lean_object* x_869; lean_object* x_870; +x_867 = 0; +x_868 = 1; +x_869 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_869, 0, x_807); +lean_ctor_set(x_869, 1, x_861); +lean_ctor_set_uint8(x_869, sizeof(void*)*2, x_867); +lean_ctor_set_uint8(x_869, sizeof(void*)*2 + 1, x_868); +lean_ctor_set_uint8(x_869, sizeof(void*)*2 + 2, x_868); +lean_ctor_set_uint8(x_869, sizeof(void*)*2 + 3, x_868); +if (lean_is_scalar(x_863)) { + x_870 = lean_alloc_ctor(0, 2, 0); +} else { + x_870 = x_863; +} +lean_ctor_set(x_870, 0, x_869); +lean_ctor_set(x_870, 1, x_862); +return x_870; +} +else +{ +uint8_t x_871; uint8_t x_872; uint8_t x_873; lean_object* x_874; lean_object* x_875; +x_871 = 0; +x_872 = 1; +x_873 = 0; +x_874 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_874, 0, x_807); +lean_ctor_set(x_874, 1, x_861); +lean_ctor_set_uint8(x_874, sizeof(void*)*2, x_871); +lean_ctor_set_uint8(x_874, sizeof(void*)*2 + 1, x_872); +lean_ctor_set_uint8(x_874, sizeof(void*)*2 + 2, x_872); +lean_ctor_set_uint8(x_874, sizeof(void*)*2 + 3, x_873); +if (lean_is_scalar(x_863)) { + x_875 = lean_alloc_ctor(0, 2, 0); +} else { + x_875 = x_863; +} +lean_ctor_set(x_875, 0, x_874); +lean_ctor_set(x_875, 1, x_862); +return x_875; +} +} +else +{ +if (x_866 == 0) +{ +uint8_t x_876; uint8_t x_877; uint8_t x_878; lean_object* x_879; lean_object* x_880; +x_876 = 0; +x_877 = 1; +x_878 = 0; +x_879 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_879, 0, x_807); +lean_ctor_set(x_879, 1, x_861); +lean_ctor_set_uint8(x_879, sizeof(void*)*2, x_876); +lean_ctor_set_uint8(x_879, sizeof(void*)*2 + 1, x_877); +lean_ctor_set_uint8(x_879, sizeof(void*)*2 + 2, x_878); +lean_ctor_set_uint8(x_879, sizeof(void*)*2 + 3, x_877); +if (lean_is_scalar(x_863)) { + x_880 = lean_alloc_ctor(0, 2, 0); +} else { + x_880 = x_863; +} +lean_ctor_set(x_880, 0, x_879); +lean_ctor_set(x_880, 1, x_862); +return x_880; +} +else +{ +uint8_t x_881; uint8_t x_882; uint8_t x_883; lean_object* x_884; lean_object* x_885; +x_881 = 0; +x_882 = 1; +x_883 = 0; +x_884 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_884, 0, x_807); +lean_ctor_set(x_884, 1, x_861); +lean_ctor_set_uint8(x_884, sizeof(void*)*2, x_881); +lean_ctor_set_uint8(x_884, sizeof(void*)*2 + 1, x_882); +lean_ctor_set_uint8(x_884, sizeof(void*)*2 + 2, x_883); +lean_ctor_set_uint8(x_884, sizeof(void*)*2 + 3, x_883); +if (lean_is_scalar(x_863)) { + x_885 = lean_alloc_ctor(0, 2, 0); +} else { + x_885 = x_863; +} +lean_ctor_set(x_885, 0, x_884); +lean_ctor_set(x_885, 1, x_862); +return x_885; +} +} +} +else +{ +if (x_865 == 0) +{ +if (x_866 == 0) +{ +uint8_t x_886; uint8_t x_887; uint8_t x_888; lean_object* x_889; lean_object* x_890; +x_886 = 0; +x_887 = 0; +x_888 = 1; +x_889 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_889, 0, x_807); +lean_ctor_set(x_889, 1, x_861); +lean_ctor_set_uint8(x_889, sizeof(void*)*2, x_886); +lean_ctor_set_uint8(x_889, sizeof(void*)*2 + 1, x_887); +lean_ctor_set_uint8(x_889, sizeof(void*)*2 + 2, x_888); +lean_ctor_set_uint8(x_889, sizeof(void*)*2 + 3, x_888); +if (lean_is_scalar(x_863)) { + x_890 = lean_alloc_ctor(0, 2, 0); +} else { + x_890 = x_863; +} +lean_ctor_set(x_890, 0, x_889); +lean_ctor_set(x_890, 1, x_862); +return x_890; +} +else +{ +uint8_t x_891; uint8_t x_892; uint8_t x_893; lean_object* x_894; lean_object* x_895; +x_891 = 0; +x_892 = 0; +x_893 = 1; +x_894 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_894, 0, x_807); +lean_ctor_set(x_894, 1, x_861); +lean_ctor_set_uint8(x_894, sizeof(void*)*2, x_891); +lean_ctor_set_uint8(x_894, sizeof(void*)*2 + 1, x_892); +lean_ctor_set_uint8(x_894, sizeof(void*)*2 + 2, x_893); +lean_ctor_set_uint8(x_894, sizeof(void*)*2 + 3, x_892); +if (lean_is_scalar(x_863)) { + x_895 = lean_alloc_ctor(0, 2, 0); +} else { + x_895 = x_863; +} +lean_ctor_set(x_895, 0, x_894); +lean_ctor_set(x_895, 1, x_862); +return x_895; +} +} +else +{ +if (x_866 == 0) +{ +uint8_t x_896; uint8_t x_897; uint8_t x_898; lean_object* x_899; lean_object* x_900; +x_896 = 0; +x_897 = 0; +x_898 = 1; +x_899 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_899, 0, x_807); +lean_ctor_set(x_899, 1, x_861); +lean_ctor_set_uint8(x_899, sizeof(void*)*2, x_896); +lean_ctor_set_uint8(x_899, sizeof(void*)*2 + 1, x_897); +lean_ctor_set_uint8(x_899, sizeof(void*)*2 + 2, x_897); +lean_ctor_set_uint8(x_899, sizeof(void*)*2 + 3, x_898); +if (lean_is_scalar(x_863)) { + x_900 = lean_alloc_ctor(0, 2, 0); +} else { + x_900 = x_863; +} +lean_ctor_set(x_900, 0, x_899); +lean_ctor_set(x_900, 1, x_862); +return x_900; +} +else +{ +uint8_t x_901; uint8_t x_902; lean_object* x_903; lean_object* x_904; +x_901 = 0; +x_902 = 0; +x_903 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_903, 0, x_807); +lean_ctor_set(x_903, 1, x_861); +lean_ctor_set_uint8(x_903, sizeof(void*)*2, x_901); +lean_ctor_set_uint8(x_903, sizeof(void*)*2 + 1, x_902); +lean_ctor_set_uint8(x_903, sizeof(void*)*2 + 2, x_902); +lean_ctor_set_uint8(x_903, sizeof(void*)*2 + 3, x_902); +if (lean_is_scalar(x_863)) { + x_904 = lean_alloc_ctor(0, 2, 0); +} else { + x_904 = x_863; +} +lean_ctor_set(x_904, 0, x_903); +lean_ctor_set(x_904, 1, x_862); +return x_904; +} +} +} +} +else +{ +lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; +lean_dec(x_807); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_905 = lean_ctor_get(x_860, 0); +lean_inc(x_905); +x_906 = lean_ctor_get(x_860, 1); +lean_inc(x_906); +if (lean_is_exclusive(x_860)) { + lean_ctor_release(x_860, 0); + lean_ctor_release(x_860, 1); + x_907 = x_860; +} else { + lean_dec_ref(x_860); + x_907 = lean_box(0); +} +if (lean_is_scalar(x_907)) { + x_908 = lean_alloc_ctor(1, 2, 0); +} else { + x_908 = x_907; +} +lean_ctor_set(x_908, 0, x_905); +lean_ctor_set(x_908, 1, x_906); +return x_908; +} +} +} +else +{ +lean_object* x_909; lean_object* x_910; lean_object* x_911; uint8_t x_912; +x_909 = lean_ctor_get(x_808, 0); +lean_inc(x_909); +lean_dec(x_808); +lean_inc(x_909); +x_910 = l_Lean_Syntax_getKind(x_909); +x_911 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__3; +x_912 = lean_name_eq(x_910, x_911); +if (x_912 == 0) +{ +lean_object* x_913; uint8_t x_914; +x_913 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__4; +x_914 = lean_name_eq(x_910, x_913); +lean_dec(x_910); +if (x_914 == 0) +{ +lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; +lean_dec(x_807); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_8); +x_915 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__7; +x_916 = l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_909, x_915, x_2, x_3, x_4); +lean_dec(x_909); +x_917 = lean_ctor_get(x_916, 0); +lean_inc(x_917); +x_918 = lean_ctor_get(x_916, 1); +lean_inc(x_918); +if (lean_is_exclusive(x_916)) { + lean_ctor_release(x_916, 0); + lean_ctor_release(x_916, 1); + x_919 = x_916; +} else { + lean_dec_ref(x_916); + x_919 = lean_box(0); +} +if (lean_is_scalar(x_919)) { + x_920 = lean_alloc_ctor(1, 2, 0); +} else { + x_920 = x_919; +} +lean_ctor_set(x_920, 0, x_917); +lean_ctor_set(x_920, 1, x_918); +return x_920; +} +else +{ +lean_object* x_921; +lean_dec(x_909); +x_921 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_921) == 0) +{ +uint8_t x_922; uint8_t x_923; uint8_t x_924; +lean_dec(x_2); +x_922 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_923 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_924 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_922 == 0) +{ +if (x_923 == 0) +{ +if (x_924 == 0) +{ +uint8_t x_925; uint8_t x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; +x_925 = 1; +x_926 = 1; +x_927 = l_Array_empty___closed__1; +x_928 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_928, 0, x_807); +lean_ctor_set(x_928, 1, x_927); +lean_ctor_set_uint8(x_928, sizeof(void*)*2, x_925); +lean_ctor_set_uint8(x_928, sizeof(void*)*2 + 1, x_926); +lean_ctor_set_uint8(x_928, sizeof(void*)*2 + 2, x_926); +lean_ctor_set_uint8(x_928, sizeof(void*)*2 + 3, x_926); +x_929 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_929, 0, x_928); +lean_ctor_set(x_929, 1, x_4); +return x_929; +} +else +{ +uint8_t x_930; uint8_t x_931; uint8_t x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; +x_930 = 1; +x_931 = 1; +x_932 = 0; +x_933 = l_Array_empty___closed__1; +x_934 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_934, 0, x_807); +lean_ctor_set(x_934, 1, x_933); +lean_ctor_set_uint8(x_934, sizeof(void*)*2, x_930); +lean_ctor_set_uint8(x_934, sizeof(void*)*2 + 1, x_931); +lean_ctor_set_uint8(x_934, sizeof(void*)*2 + 2, x_931); +lean_ctor_set_uint8(x_934, sizeof(void*)*2 + 3, x_932); +x_935 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_935, 0, x_934); +lean_ctor_set(x_935, 1, x_4); +return x_935; +} +} +else +{ +if (x_924 == 0) +{ +uint8_t x_936; uint8_t x_937; uint8_t x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; +x_936 = 1; +x_937 = 1; +x_938 = 0; +x_939 = l_Array_empty___closed__1; +x_940 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_940, 0, x_807); +lean_ctor_set(x_940, 1, x_939); +lean_ctor_set_uint8(x_940, sizeof(void*)*2, x_936); +lean_ctor_set_uint8(x_940, sizeof(void*)*2 + 1, x_937); +lean_ctor_set_uint8(x_940, sizeof(void*)*2 + 2, x_938); +lean_ctor_set_uint8(x_940, sizeof(void*)*2 + 3, x_937); +x_941 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_941, 0, x_940); +lean_ctor_set(x_941, 1, x_4); +return x_941; +} +else +{ +uint8_t x_942; uint8_t x_943; uint8_t x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; +x_942 = 1; +x_943 = 1; +x_944 = 0; +x_945 = l_Array_empty___closed__1; +x_946 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_946, 0, x_807); +lean_ctor_set(x_946, 1, x_945); +lean_ctor_set_uint8(x_946, sizeof(void*)*2, x_942); +lean_ctor_set_uint8(x_946, sizeof(void*)*2 + 1, x_943); +lean_ctor_set_uint8(x_946, sizeof(void*)*2 + 2, x_944); +lean_ctor_set_uint8(x_946, sizeof(void*)*2 + 3, x_944); +x_947 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_947, 0, x_946); +lean_ctor_set(x_947, 1, x_4); +return x_947; +} +} +} +else +{ +if (x_923 == 0) +{ +if (x_924 == 0) +{ +uint8_t x_948; uint8_t x_949; uint8_t x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; +x_948 = 1; +x_949 = 0; +x_950 = 1; +x_951 = l_Array_empty___closed__1; +x_952 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_952, 0, x_807); +lean_ctor_set(x_952, 1, x_951); +lean_ctor_set_uint8(x_952, sizeof(void*)*2, x_948); +lean_ctor_set_uint8(x_952, sizeof(void*)*2 + 1, x_949); +lean_ctor_set_uint8(x_952, sizeof(void*)*2 + 2, x_950); +lean_ctor_set_uint8(x_952, sizeof(void*)*2 + 3, x_950); +x_953 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_953, 0, x_952); +lean_ctor_set(x_953, 1, x_4); +return x_953; +} +else +{ +uint8_t x_954; uint8_t x_955; uint8_t x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; +x_954 = 1; +x_955 = 0; +x_956 = 1; +x_957 = l_Array_empty___closed__1; +x_958 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_958, 0, x_807); +lean_ctor_set(x_958, 1, x_957); +lean_ctor_set_uint8(x_958, sizeof(void*)*2, x_954); +lean_ctor_set_uint8(x_958, sizeof(void*)*2 + 1, x_955); +lean_ctor_set_uint8(x_958, sizeof(void*)*2 + 2, x_956); +lean_ctor_set_uint8(x_958, sizeof(void*)*2 + 3, x_955); +x_959 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_959, 0, x_958); +lean_ctor_set(x_959, 1, x_4); +return x_959; +} +} +else +{ +if (x_924 == 0) +{ +uint8_t x_960; uint8_t x_961; uint8_t x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; +x_960 = 1; +x_961 = 0; +x_962 = 1; +x_963 = l_Array_empty___closed__1; +x_964 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_964, 0, x_807); +lean_ctor_set(x_964, 1, x_963); +lean_ctor_set_uint8(x_964, sizeof(void*)*2, x_960); +lean_ctor_set_uint8(x_964, sizeof(void*)*2 + 1, x_961); +lean_ctor_set_uint8(x_964, sizeof(void*)*2 + 2, x_961); +lean_ctor_set_uint8(x_964, sizeof(void*)*2 + 3, x_962); +x_965 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_965, 0, x_964); +lean_ctor_set(x_965, 1, x_4); +return x_965; +} +else +{ +uint8_t x_966; uint8_t x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; +x_966 = 1; +x_967 = 0; +x_968 = l_Array_empty___closed__1; +x_969 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_969, 0, x_807); +lean_ctor_set(x_969, 1, x_968); +lean_ctor_set_uint8(x_969, sizeof(void*)*2, x_966); +lean_ctor_set_uint8(x_969, sizeof(void*)*2 + 1, x_967); +lean_ctor_set_uint8(x_969, sizeof(void*)*2 + 2, x_967); +lean_ctor_set_uint8(x_969, sizeof(void*)*2 + 3, x_967); +x_970 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_970, 0, x_969); +lean_ctor_set(x_970, 1, x_4); +return x_970; +} +} +} +} +else +{ +lean_object* x_971; lean_object* x_972; +x_971 = lean_ctor_get(x_921, 0); +lean_inc(x_971); +lean_dec(x_921); +x_972 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_971, x_2, x_3, x_4); +lean_dec(x_971); +if (lean_obj_tag(x_972) == 0) +{ +lean_object* x_973; lean_object* x_974; lean_object* x_975; uint8_t x_976; uint8_t x_977; uint8_t x_978; +x_973 = lean_ctor_get(x_972, 0); +lean_inc(x_973); +x_974 = lean_ctor_get(x_972, 1); +lean_inc(x_974); +if (lean_is_exclusive(x_972)) { + lean_ctor_release(x_972, 0); + lean_ctor_release(x_972, 1); + x_975 = x_972; +} else { + lean_dec_ref(x_972); + x_975 = lean_box(0); +} +x_976 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_977 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_978 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_976 == 0) +{ +if (x_977 == 0) +{ +if (x_978 == 0) +{ +uint8_t x_979; uint8_t x_980; lean_object* x_981; lean_object* x_982; +x_979 = 1; +x_980 = 1; +x_981 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_981, 0, x_807); +lean_ctor_set(x_981, 1, x_973); +lean_ctor_set_uint8(x_981, sizeof(void*)*2, x_979); +lean_ctor_set_uint8(x_981, sizeof(void*)*2 + 1, x_980); +lean_ctor_set_uint8(x_981, sizeof(void*)*2 + 2, x_980); +lean_ctor_set_uint8(x_981, sizeof(void*)*2 + 3, x_980); +if (lean_is_scalar(x_975)) { + x_982 = lean_alloc_ctor(0, 2, 0); +} else { + x_982 = x_975; +} +lean_ctor_set(x_982, 0, x_981); +lean_ctor_set(x_982, 1, x_974); +return x_982; +} +else +{ +uint8_t x_983; uint8_t x_984; uint8_t x_985; lean_object* x_986; lean_object* x_987; +x_983 = 1; +x_984 = 1; +x_985 = 0; +x_986 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_986, 0, x_807); +lean_ctor_set(x_986, 1, x_973); +lean_ctor_set_uint8(x_986, sizeof(void*)*2, x_983); +lean_ctor_set_uint8(x_986, sizeof(void*)*2 + 1, x_984); +lean_ctor_set_uint8(x_986, sizeof(void*)*2 + 2, x_984); +lean_ctor_set_uint8(x_986, sizeof(void*)*2 + 3, x_985); +if (lean_is_scalar(x_975)) { + x_987 = lean_alloc_ctor(0, 2, 0); +} else { + x_987 = x_975; +} +lean_ctor_set(x_987, 0, x_986); +lean_ctor_set(x_987, 1, x_974); +return x_987; +} +} +else +{ +if (x_978 == 0) +{ +uint8_t x_988; uint8_t x_989; uint8_t x_990; lean_object* x_991; lean_object* x_992; +x_988 = 1; +x_989 = 1; +x_990 = 0; +x_991 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_991, 0, x_807); +lean_ctor_set(x_991, 1, x_973); +lean_ctor_set_uint8(x_991, sizeof(void*)*2, x_988); +lean_ctor_set_uint8(x_991, sizeof(void*)*2 + 1, x_989); +lean_ctor_set_uint8(x_991, sizeof(void*)*2 + 2, x_990); +lean_ctor_set_uint8(x_991, sizeof(void*)*2 + 3, x_989); +if (lean_is_scalar(x_975)) { + x_992 = lean_alloc_ctor(0, 2, 0); +} else { + x_992 = x_975; +} +lean_ctor_set(x_992, 0, x_991); +lean_ctor_set(x_992, 1, x_974); +return x_992; +} +else +{ +uint8_t x_993; uint8_t x_994; uint8_t x_995; lean_object* x_996; lean_object* x_997; +x_993 = 1; +x_994 = 1; +x_995 = 0; +x_996 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_996, 0, x_807); +lean_ctor_set(x_996, 1, x_973); +lean_ctor_set_uint8(x_996, sizeof(void*)*2, x_993); +lean_ctor_set_uint8(x_996, sizeof(void*)*2 + 1, x_994); +lean_ctor_set_uint8(x_996, sizeof(void*)*2 + 2, x_995); +lean_ctor_set_uint8(x_996, sizeof(void*)*2 + 3, x_995); +if (lean_is_scalar(x_975)) { + x_997 = lean_alloc_ctor(0, 2, 0); +} else { + x_997 = x_975; +} +lean_ctor_set(x_997, 0, x_996); +lean_ctor_set(x_997, 1, x_974); +return x_997; +} +} +} +else +{ +if (x_977 == 0) +{ +if (x_978 == 0) +{ +uint8_t x_998; uint8_t x_999; uint8_t x_1000; lean_object* x_1001; lean_object* x_1002; +x_998 = 1; +x_999 = 0; +x_1000 = 1; +x_1001 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1001, 0, x_807); +lean_ctor_set(x_1001, 1, x_973); +lean_ctor_set_uint8(x_1001, sizeof(void*)*2, x_998); +lean_ctor_set_uint8(x_1001, sizeof(void*)*2 + 1, x_999); +lean_ctor_set_uint8(x_1001, sizeof(void*)*2 + 2, x_1000); +lean_ctor_set_uint8(x_1001, sizeof(void*)*2 + 3, x_1000); +if (lean_is_scalar(x_975)) { + x_1002 = lean_alloc_ctor(0, 2, 0); +} else { + x_1002 = x_975; +} +lean_ctor_set(x_1002, 0, x_1001); +lean_ctor_set(x_1002, 1, x_974); +return x_1002; +} +else +{ +uint8_t x_1003; uint8_t x_1004; uint8_t x_1005; lean_object* x_1006; lean_object* x_1007; +x_1003 = 1; +x_1004 = 0; +x_1005 = 1; +x_1006 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1006, 0, x_807); +lean_ctor_set(x_1006, 1, x_973); +lean_ctor_set_uint8(x_1006, sizeof(void*)*2, x_1003); +lean_ctor_set_uint8(x_1006, sizeof(void*)*2 + 1, x_1004); +lean_ctor_set_uint8(x_1006, sizeof(void*)*2 + 2, x_1005); +lean_ctor_set_uint8(x_1006, sizeof(void*)*2 + 3, x_1004); +if (lean_is_scalar(x_975)) { + x_1007 = lean_alloc_ctor(0, 2, 0); +} else { + x_1007 = x_975; +} +lean_ctor_set(x_1007, 0, x_1006); +lean_ctor_set(x_1007, 1, x_974); +return x_1007; +} +} +else +{ +if (x_978 == 0) +{ +uint8_t x_1008; uint8_t x_1009; uint8_t x_1010; lean_object* x_1011; lean_object* x_1012; +x_1008 = 1; +x_1009 = 0; +x_1010 = 1; +x_1011 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1011, 0, x_807); +lean_ctor_set(x_1011, 1, x_973); +lean_ctor_set_uint8(x_1011, sizeof(void*)*2, x_1008); +lean_ctor_set_uint8(x_1011, sizeof(void*)*2 + 1, x_1009); +lean_ctor_set_uint8(x_1011, sizeof(void*)*2 + 2, x_1009); +lean_ctor_set_uint8(x_1011, sizeof(void*)*2 + 3, x_1010); +if (lean_is_scalar(x_975)) { + x_1012 = lean_alloc_ctor(0, 2, 0); +} else { + x_1012 = x_975; +} +lean_ctor_set(x_1012, 0, x_1011); +lean_ctor_set(x_1012, 1, x_974); +return x_1012; +} +else +{ +uint8_t x_1013; uint8_t x_1014; lean_object* x_1015; lean_object* x_1016; +x_1013 = 1; +x_1014 = 0; +x_1015 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1015, 0, x_807); +lean_ctor_set(x_1015, 1, x_973); +lean_ctor_set_uint8(x_1015, sizeof(void*)*2, x_1013); +lean_ctor_set_uint8(x_1015, sizeof(void*)*2 + 1, x_1014); +lean_ctor_set_uint8(x_1015, sizeof(void*)*2 + 2, x_1014); +lean_ctor_set_uint8(x_1015, sizeof(void*)*2 + 3, x_1014); +if (lean_is_scalar(x_975)) { + x_1016 = lean_alloc_ctor(0, 2, 0); +} else { + x_1016 = x_975; +} +lean_ctor_set(x_1016, 0, x_1015); +lean_ctor_set(x_1016, 1, x_974); +return x_1016; +} +} +} +} +else +{ +lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; +lean_dec(x_807); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_1017 = lean_ctor_get(x_972, 0); +lean_inc(x_1017); +x_1018 = lean_ctor_get(x_972, 1); +lean_inc(x_1018); +if (lean_is_exclusive(x_972)) { + lean_ctor_release(x_972, 0); + lean_ctor_release(x_972, 1); + x_1019 = x_972; +} else { + lean_dec_ref(x_972); + x_1019 = lean_box(0); +} +if (lean_is_scalar(x_1019)) { + x_1020 = lean_alloc_ctor(1, 2, 0); +} else { + x_1020 = x_1019; +} +lean_ctor_set(x_1020, 0, x_1017); +lean_ctor_set(x_1020, 1, x_1018); +return x_1020; +} +} +} +} +else +{ +lean_object* x_1021; +lean_dec(x_910); +lean_dec(x_909); +x_1021 = l_Lean_Syntax_getOptional_x3f(x_8); +lean_dec(x_8); +if (lean_obj_tag(x_1021) == 0) +{ +uint8_t x_1022; uint8_t x_1023; uint8_t x_1024; +lean_dec(x_2); +x_1022 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_1023 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_1024 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_1022 == 0) +{ +if (x_1023 == 0) +{ +if (x_1024 == 0) +{ +uint8_t x_1025; uint8_t x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; +x_1025 = 2; +x_1026 = 1; +x_1027 = l_Array_empty___closed__1; +x_1028 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1028, 0, x_807); +lean_ctor_set(x_1028, 1, x_1027); +lean_ctor_set_uint8(x_1028, sizeof(void*)*2, x_1025); +lean_ctor_set_uint8(x_1028, sizeof(void*)*2 + 1, x_1026); +lean_ctor_set_uint8(x_1028, sizeof(void*)*2 + 2, x_1026); +lean_ctor_set_uint8(x_1028, sizeof(void*)*2 + 3, x_1026); +x_1029 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1029, 0, x_1028); +lean_ctor_set(x_1029, 1, x_4); +return x_1029; +} +else +{ +uint8_t x_1030; uint8_t x_1031; uint8_t x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; +x_1030 = 2; +x_1031 = 1; +x_1032 = 0; +x_1033 = l_Array_empty___closed__1; +x_1034 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1034, 0, x_807); +lean_ctor_set(x_1034, 1, x_1033); +lean_ctor_set_uint8(x_1034, sizeof(void*)*2, x_1030); +lean_ctor_set_uint8(x_1034, sizeof(void*)*2 + 1, x_1031); +lean_ctor_set_uint8(x_1034, sizeof(void*)*2 + 2, x_1031); +lean_ctor_set_uint8(x_1034, sizeof(void*)*2 + 3, x_1032); +x_1035 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1035, 0, x_1034); +lean_ctor_set(x_1035, 1, x_4); +return x_1035; +} +} +else +{ +if (x_1024 == 0) +{ +uint8_t x_1036; uint8_t x_1037; uint8_t x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; +x_1036 = 2; +x_1037 = 1; +x_1038 = 0; +x_1039 = l_Array_empty___closed__1; +x_1040 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1040, 0, x_807); +lean_ctor_set(x_1040, 1, x_1039); +lean_ctor_set_uint8(x_1040, sizeof(void*)*2, x_1036); +lean_ctor_set_uint8(x_1040, sizeof(void*)*2 + 1, x_1037); +lean_ctor_set_uint8(x_1040, sizeof(void*)*2 + 2, x_1038); +lean_ctor_set_uint8(x_1040, sizeof(void*)*2 + 3, x_1037); +x_1041 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1041, 0, x_1040); +lean_ctor_set(x_1041, 1, x_4); +return x_1041; +} +else +{ +uint8_t x_1042; uint8_t x_1043; uint8_t x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; +x_1042 = 2; +x_1043 = 1; +x_1044 = 0; +x_1045 = l_Array_empty___closed__1; +x_1046 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1046, 0, x_807); +lean_ctor_set(x_1046, 1, x_1045); +lean_ctor_set_uint8(x_1046, sizeof(void*)*2, x_1042); +lean_ctor_set_uint8(x_1046, sizeof(void*)*2 + 1, x_1043); +lean_ctor_set_uint8(x_1046, sizeof(void*)*2 + 2, x_1044); +lean_ctor_set_uint8(x_1046, sizeof(void*)*2 + 3, x_1044); +x_1047 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1047, 0, x_1046); +lean_ctor_set(x_1047, 1, x_4); +return x_1047; +} +} +} +else +{ +if (x_1023 == 0) +{ +if (x_1024 == 0) +{ +uint8_t x_1048; uint8_t x_1049; uint8_t x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; +x_1048 = 2; +x_1049 = 0; +x_1050 = 1; +x_1051 = l_Array_empty___closed__1; +x_1052 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1052, 0, x_807); +lean_ctor_set(x_1052, 1, x_1051); +lean_ctor_set_uint8(x_1052, sizeof(void*)*2, x_1048); +lean_ctor_set_uint8(x_1052, sizeof(void*)*2 + 1, x_1049); +lean_ctor_set_uint8(x_1052, sizeof(void*)*2 + 2, x_1050); +lean_ctor_set_uint8(x_1052, sizeof(void*)*2 + 3, x_1050); +x_1053 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1053, 0, x_1052); +lean_ctor_set(x_1053, 1, x_4); +return x_1053; +} +else +{ +uint8_t x_1054; uint8_t x_1055; uint8_t x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; +x_1054 = 2; +x_1055 = 0; +x_1056 = 1; +x_1057 = l_Array_empty___closed__1; +x_1058 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1058, 0, x_807); +lean_ctor_set(x_1058, 1, x_1057); +lean_ctor_set_uint8(x_1058, sizeof(void*)*2, x_1054); +lean_ctor_set_uint8(x_1058, sizeof(void*)*2 + 1, x_1055); +lean_ctor_set_uint8(x_1058, sizeof(void*)*2 + 2, x_1056); +lean_ctor_set_uint8(x_1058, sizeof(void*)*2 + 3, x_1055); +x_1059 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1059, 0, x_1058); +lean_ctor_set(x_1059, 1, x_4); +return x_1059; +} +} +else +{ +if (x_1024 == 0) +{ +uint8_t x_1060; uint8_t x_1061; uint8_t x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; +x_1060 = 2; +x_1061 = 0; +x_1062 = 1; +x_1063 = l_Array_empty___closed__1; +x_1064 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1064, 0, x_807); +lean_ctor_set(x_1064, 1, x_1063); +lean_ctor_set_uint8(x_1064, sizeof(void*)*2, x_1060); +lean_ctor_set_uint8(x_1064, sizeof(void*)*2 + 1, x_1061); +lean_ctor_set_uint8(x_1064, sizeof(void*)*2 + 2, x_1061); +lean_ctor_set_uint8(x_1064, sizeof(void*)*2 + 3, x_1062); +x_1065 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1065, 0, x_1064); +lean_ctor_set(x_1065, 1, x_4); +return x_1065; +} +else +{ +uint8_t x_1066; uint8_t x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; +x_1066 = 2; +x_1067 = 0; +x_1068 = l_Array_empty___closed__1; +x_1069 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1069, 0, x_807); +lean_ctor_set(x_1069, 1, x_1068); +lean_ctor_set_uint8(x_1069, sizeof(void*)*2, x_1066); +lean_ctor_set_uint8(x_1069, sizeof(void*)*2 + 1, x_1067); +lean_ctor_set_uint8(x_1069, sizeof(void*)*2 + 2, x_1067); +lean_ctor_set_uint8(x_1069, sizeof(void*)*2 + 3, x_1067); +x_1070 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1070, 0, x_1069); +lean_ctor_set(x_1070, 1, x_4); +return x_1070; +} +} +} +} +else +{ +lean_object* x_1071; lean_object* x_1072; +x_1071 = lean_ctor_get(x_1021, 0); +lean_inc(x_1071); +lean_dec(x_1021); +x_1072 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_1071, x_2, x_3, x_4); +lean_dec(x_1071); +if (lean_obj_tag(x_1072) == 0) +{ +lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; uint8_t x_1076; uint8_t x_1077; uint8_t x_1078; +x_1073 = lean_ctor_get(x_1072, 0); +lean_inc(x_1073); +x_1074 = lean_ctor_get(x_1072, 1); +lean_inc(x_1074); +if (lean_is_exclusive(x_1072)) { + lean_ctor_release(x_1072, 0); + lean_ctor_release(x_1072, 1); + x_1075 = x_1072; +} else { + lean_dec_ref(x_1072); + x_1075 = lean_box(0); +} +x_1076 = l_Lean_Syntax_isNone(x_12); +lean_dec(x_12); +x_1077 = l_Lean_Syntax_isNone(x_16); +lean_dec(x_16); +x_1078 = l_Lean_Syntax_isNone(x_14); +lean_dec(x_14); +if (x_1076 == 0) +{ +if (x_1077 == 0) +{ +if (x_1078 == 0) +{ +uint8_t x_1079; uint8_t x_1080; lean_object* x_1081; lean_object* x_1082; +x_1079 = 2; +x_1080 = 1; +x_1081 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1081, 0, x_807); +lean_ctor_set(x_1081, 1, x_1073); +lean_ctor_set_uint8(x_1081, sizeof(void*)*2, x_1079); +lean_ctor_set_uint8(x_1081, sizeof(void*)*2 + 1, x_1080); +lean_ctor_set_uint8(x_1081, sizeof(void*)*2 + 2, x_1080); +lean_ctor_set_uint8(x_1081, sizeof(void*)*2 + 3, x_1080); +if (lean_is_scalar(x_1075)) { + x_1082 = lean_alloc_ctor(0, 2, 0); +} else { + x_1082 = x_1075; +} +lean_ctor_set(x_1082, 0, x_1081); +lean_ctor_set(x_1082, 1, x_1074); +return x_1082; +} +else +{ +uint8_t x_1083; uint8_t x_1084; uint8_t x_1085; lean_object* x_1086; lean_object* x_1087; +x_1083 = 2; +x_1084 = 1; +x_1085 = 0; +x_1086 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1086, 0, x_807); +lean_ctor_set(x_1086, 1, x_1073); +lean_ctor_set_uint8(x_1086, sizeof(void*)*2, x_1083); +lean_ctor_set_uint8(x_1086, sizeof(void*)*2 + 1, x_1084); +lean_ctor_set_uint8(x_1086, sizeof(void*)*2 + 2, x_1084); +lean_ctor_set_uint8(x_1086, sizeof(void*)*2 + 3, x_1085); +if (lean_is_scalar(x_1075)) { + x_1087 = lean_alloc_ctor(0, 2, 0); +} else { + x_1087 = x_1075; +} +lean_ctor_set(x_1087, 0, x_1086); +lean_ctor_set(x_1087, 1, x_1074); +return x_1087; +} +} +else +{ +if (x_1078 == 0) +{ +uint8_t x_1088; uint8_t x_1089; uint8_t x_1090; lean_object* x_1091; lean_object* x_1092; +x_1088 = 2; +x_1089 = 1; +x_1090 = 0; +x_1091 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1091, 0, x_807); +lean_ctor_set(x_1091, 1, x_1073); +lean_ctor_set_uint8(x_1091, sizeof(void*)*2, x_1088); +lean_ctor_set_uint8(x_1091, sizeof(void*)*2 + 1, x_1089); +lean_ctor_set_uint8(x_1091, sizeof(void*)*2 + 2, x_1090); +lean_ctor_set_uint8(x_1091, sizeof(void*)*2 + 3, x_1089); +if (lean_is_scalar(x_1075)) { + x_1092 = lean_alloc_ctor(0, 2, 0); +} else { + x_1092 = x_1075; +} +lean_ctor_set(x_1092, 0, x_1091); +lean_ctor_set(x_1092, 1, x_1074); +return x_1092; +} +else +{ +uint8_t x_1093; uint8_t x_1094; uint8_t x_1095; lean_object* x_1096; lean_object* x_1097; +x_1093 = 2; +x_1094 = 1; +x_1095 = 0; +x_1096 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1096, 0, x_807); +lean_ctor_set(x_1096, 1, x_1073); +lean_ctor_set_uint8(x_1096, sizeof(void*)*2, x_1093); +lean_ctor_set_uint8(x_1096, sizeof(void*)*2 + 1, x_1094); +lean_ctor_set_uint8(x_1096, sizeof(void*)*2 + 2, x_1095); +lean_ctor_set_uint8(x_1096, sizeof(void*)*2 + 3, x_1095); +if (lean_is_scalar(x_1075)) { + x_1097 = lean_alloc_ctor(0, 2, 0); +} else { + x_1097 = x_1075; +} +lean_ctor_set(x_1097, 0, x_1096); +lean_ctor_set(x_1097, 1, x_1074); +return x_1097; +} +} +} +else +{ +if (x_1077 == 0) +{ +if (x_1078 == 0) +{ +uint8_t x_1098; uint8_t x_1099; uint8_t x_1100; lean_object* x_1101; lean_object* x_1102; +x_1098 = 2; +x_1099 = 0; +x_1100 = 1; +x_1101 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1101, 0, x_807); +lean_ctor_set(x_1101, 1, x_1073); +lean_ctor_set_uint8(x_1101, sizeof(void*)*2, x_1098); +lean_ctor_set_uint8(x_1101, sizeof(void*)*2 + 1, x_1099); +lean_ctor_set_uint8(x_1101, sizeof(void*)*2 + 2, x_1100); +lean_ctor_set_uint8(x_1101, sizeof(void*)*2 + 3, x_1100); +if (lean_is_scalar(x_1075)) { + x_1102 = lean_alloc_ctor(0, 2, 0); +} else { + x_1102 = x_1075; +} +lean_ctor_set(x_1102, 0, x_1101); +lean_ctor_set(x_1102, 1, x_1074); +return x_1102; +} +else +{ +uint8_t x_1103; uint8_t x_1104; uint8_t x_1105; lean_object* x_1106; lean_object* x_1107; +x_1103 = 2; +x_1104 = 0; +x_1105 = 1; +x_1106 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1106, 0, x_807); +lean_ctor_set(x_1106, 1, x_1073); +lean_ctor_set_uint8(x_1106, sizeof(void*)*2, x_1103); +lean_ctor_set_uint8(x_1106, sizeof(void*)*2 + 1, x_1104); +lean_ctor_set_uint8(x_1106, sizeof(void*)*2 + 2, x_1105); +lean_ctor_set_uint8(x_1106, sizeof(void*)*2 + 3, x_1104); +if (lean_is_scalar(x_1075)) { + x_1107 = lean_alloc_ctor(0, 2, 0); +} else { + x_1107 = x_1075; +} +lean_ctor_set(x_1107, 0, x_1106); +lean_ctor_set(x_1107, 1, x_1074); +return x_1107; +} +} +else +{ +if (x_1078 == 0) +{ +uint8_t x_1108; uint8_t x_1109; uint8_t x_1110; lean_object* x_1111; lean_object* x_1112; +x_1108 = 2; +x_1109 = 0; +x_1110 = 1; +x_1111 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1111, 0, x_807); +lean_ctor_set(x_1111, 1, x_1073); +lean_ctor_set_uint8(x_1111, sizeof(void*)*2, x_1108); +lean_ctor_set_uint8(x_1111, sizeof(void*)*2 + 1, x_1109); +lean_ctor_set_uint8(x_1111, sizeof(void*)*2 + 2, x_1109); +lean_ctor_set_uint8(x_1111, sizeof(void*)*2 + 3, x_1110); +if (lean_is_scalar(x_1075)) { + x_1112 = lean_alloc_ctor(0, 2, 0); +} else { + x_1112 = x_1075; +} +lean_ctor_set(x_1112, 0, x_1111); +lean_ctor_set(x_1112, 1, x_1074); +return x_1112; +} +else +{ +uint8_t x_1113; uint8_t x_1114; lean_object* x_1115; lean_object* x_1116; +x_1113 = 2; +x_1114 = 0; +x_1115 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_1115, 0, x_807); +lean_ctor_set(x_1115, 1, x_1073); +lean_ctor_set_uint8(x_1115, sizeof(void*)*2, x_1113); +lean_ctor_set_uint8(x_1115, sizeof(void*)*2 + 1, x_1114); +lean_ctor_set_uint8(x_1115, sizeof(void*)*2 + 2, x_1114); +lean_ctor_set_uint8(x_1115, sizeof(void*)*2 + 3, x_1114); +if (lean_is_scalar(x_1075)) { + x_1116 = lean_alloc_ctor(0, 2, 0); +} else { + x_1116 = x_1075; +} +lean_ctor_set(x_1116, 0, x_1115); +lean_ctor_set(x_1116, 1, x_1074); +return x_1116; +} +} +} +} +else +{ +lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; +lean_dec(x_807); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +x_1117 = lean_ctor_get(x_1072, 0); +lean_inc(x_1117); +x_1118 = lean_ctor_get(x_1072, 1); +lean_inc(x_1118); +if (lean_is_exclusive(x_1072)) { + lean_ctor_release(x_1072, 0); + lean_ctor_release(x_1072, 1); + x_1119 = x_1072; +} else { + lean_dec_ref(x_1072); + x_1119 = lean_box(0); +} +if (lean_is_scalar(x_1119)) { + x_1120 = lean_alloc_ctor(1, 2, 0); +} else { + x_1120 = x_1119; +} +lean_ctor_set(x_1120, 0, x_1117); +lean_ctor_set(x_1120, 1, x_1118); +return x_1120; +} +} +} +} +} +else +{ +lean_object* x_1121; +lean_dec(x_802); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_8); +x_1121 = lean_box(0); +x_785 = x_1121; +goto block_801; +} +block_801: +{ +lean_object* x_786; lean_object* x_787; uint8_t x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; +lean_dec(x_785); +x_786 = l_Lean_Syntax_getArg(x_784, x_7); +x_787 = lean_box(0); +x_788 = 0; +x_789 = l_Lean_Syntax_formatStxAux___main(x_787, x_788, x_5, x_786); +x_790 = lean_box(0); +x_791 = l_Lean_Format_pretty(x_789, x_790); +x_792 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_792, 0, x_791); +x_793 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_793, 0, x_792); +x_794 = l_Lean_Elab_elabModifiers___rarg___closed__3; +x_795 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_795, 0, x_794); +lean_ctor_set(x_795, 1, x_793); +x_796 = l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_784, x_795, x_2, x_3, x_4); +lean_dec(x_784); +x_797 = lean_ctor_get(x_796, 0); +lean_inc(x_797); +x_798 = lean_ctor_get(x_796, 1); +lean_inc(x_798); +if (lean_is_exclusive(x_796)) { + lean_ctor_release(x_796, 0); + lean_ctor_release(x_796, 1); + x_799 = x_796; +} else { + lean_dec_ref(x_796); + x_799 = lean_box(0); +} +if (lean_is_scalar(x_799)) { + x_800 = lean_alloc_ctor(1, 2, 0); +} else { + x_800 = x_799; +} +lean_ctor_set(x_800, 0, x_797); +lean_ctor_set(x_800, 1, x_798); +return x_800; +} +} +} +} +} +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(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_st_ref_get(x_3, x_4); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = lean_ctor_get(x_5, 0); +x_8 = lean_ctor_get(x_5, 1); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +lean_inc(x_9); +x_10 = l_Lean_Environment_contains(x_9, x_1); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; +lean_inc(x_1); +lean_inc(x_9); +x_11 = l_Lean_mkPrivateName(x_9, x_1); +lean_inc(x_9); +x_12 = l_Lean_Environment_contains(x_9, x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_private_to_user_name(x_1); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; +lean_dec(x_9); +lean_dec(x_2); +x_14 = lean_box(0); +lean_ctor_set(x_5, 0, x_14); +return x_5; +} +else +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Environment_contains(x_9, x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_15); +lean_dec(x_2); +x_17 = lean_box(0); +lean_ctor_set(x_5, 0, x_17); +return x_5; +} +else +{ +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_free_object(x_5); +x_18 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_18, 0, x_15); +x_19 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__3; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_22, x_2, x_3, x_8); +return x_23; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_9); +lean_free_object(x_5); +x_24 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_24, 0, x_1); +x_25 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__3; +x_26 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +x_29 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_28, x_2, x_3, x_8); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +return x_29; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_29); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +} +else +{ +lean_object* x_34; +lean_dec(x_9); +lean_free_object(x_5); +lean_inc(x_1); +x_34 = lean_private_to_user_name(x_1); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_35 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_35, 0, x_1); +x_36 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_37 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_39 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +x_40 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_39, x_2, x_3, x_8); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +return x_40; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_40); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +lean_dec(x_1); +x_45 = lean_ctor_get(x_34, 0); +lean_inc(x_45); +lean_dec(x_34); +x_46 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_46, 0, x_45); +x_47 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__3; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_50, x_2, x_3, x_8); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +return x_51; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_51, 0); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_56 = lean_ctor_get(x_5, 0); +x_57 = lean_ctor_get(x_5, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_5); +x_58 = lean_ctor_get(x_56, 0); +lean_inc(x_58); +lean_dec(x_56); +lean_inc(x_58); +x_59 = l_Lean_Environment_contains(x_58, x_1); +if (x_59 == 0) +{ +lean_object* x_60; uint8_t x_61; +lean_inc(x_1); +lean_inc(x_58); +x_60 = l_Lean_mkPrivateName(x_58, x_1); +lean_inc(x_58); +x_61 = l_Lean_Environment_contains(x_58, x_60); +lean_dec(x_60); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = lean_private_to_user_name(x_1); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_58); +lean_dec(x_2); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_57); +return x_64; +} +else +{ +lean_object* x_65; uint8_t x_66; +x_65 = lean_ctor_get(x_62, 0); +lean_inc(x_65); +lean_dec(x_62); +x_66 = l_Lean_Environment_contains(x_58, x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +lean_dec(x_65); +lean_dec(x_2); +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_57); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_69 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_69, 0, x_65); +x_70 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__3; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_73 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_73, x_2, x_3, x_57); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +lean_dec(x_58); +x_75 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_75, 0, x_1); +x_76 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__3; +x_77 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +x_78 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_79 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_79, x_2, x_3, x_57); +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_83 = x_80; +} else { + lean_dec_ref(x_80); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(1, 2, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_81); +lean_ctor_set(x_84, 1, x_82); +return x_84; +} +} +else +{ +lean_object* x_85; +lean_dec(x_58); +lean_inc(x_1); +x_85 = lean_private_to_user_name(x_1); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_86 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_86, 0, x_1); +x_87 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_88 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +x_89 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_90 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +x_91 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_90, x_2, x_3, x_57); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_94 = x_91; +} else { + lean_dec_ref(x_91); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_1); +x_96 = lean_ctor_get(x_85, 0); +lean_inc(x_96); +lean_dec(x_85); +x_97 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_97, 0, x_96); +x_98 = l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__3; +x_99 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +x_100 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +x_101 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_101, x_2, x_3, x_57); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; +} else { + lean_dec_ref(x_102); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; +} +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; +} +} +} +} +} +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_st_ref_take(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 0); +lean_dec(x_9); +lean_ctor_set(x_6, 0, x_1); +x_10 = lean_st_ref_set(x_3, x_6, x_7); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_17 = lean_ctor_get(x_6, 1); +x_18 = lean_ctor_get(x_6, 2); +x_19 = lean_ctor_get(x_6, 3); +x_20 = lean_ctor_get(x_6, 4); +x_21 = lean_ctor_get(x_6, 5); +x_22 = lean_ctor_get(x_6, 6); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_6); +x_23 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_19); +lean_ctor_set(x_23, 4, x_20); +lean_ctor_set(x_23, 5, x_21); +lean_ctor_set(x_23, 6, x_22); +x_24 = lean_st_ref_set(x_3, x_23, x_7); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_26 = x_24; +} else { + lean_dec_ref(x_24); + x_26 = lean_box(0); +} +x_27 = lean_box(0); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +} +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_6; +lean_inc(x_2); +x_6 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_6, 0); +lean_dec(x_8); +lean_ctor_set(x_6, 0, x_2); +return x_6; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_2); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +else +{ +uint8_t x_11; +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) +{ +return x_6; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_6); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +case 1: +{ +lean_object* x_15; +lean_inc(x_3); +lean_inc(x_2); +x_15 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_st_ref_get(x_4, x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_protectedExt; +lean_inc(x_2); +x_22 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_21, x_20, x_2); +x_23 = l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(x_22, x_3, x_4, x_19); +lean_dec(x_3); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +lean_ctor_set(x_23, 0, x_2); +return x_23; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_23, 1); +lean_inc(x_26); +lean_dec(x_23); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_2); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_3); +lean_dec(x_2); +x_28 = !lean_is_exclusive(x_15); +if (x_28 == 0) +{ +return x_15; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +default: +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_st_ref_get(x_4, x_5); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l_Lean_mkPrivateName(x_35, x_2); +lean_inc(x_36); +x_37 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_36, x_3, x_4, x_34); +if (lean_obj_tag(x_37) == 0) +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_36); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_36); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +uint8_t x_42; +lean_dec(x_36); +x_42 = !lean_is_exclusive(x_37); +if (x_42 == 0) +{ +return x_37; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 0); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_37); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +} +} +} +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1() { _start: { lean_object* x_1; @@ -2162,27 +8564,27 @@ x_1 = lean_mk_string("invalid 'protected' constructor in a 'private' inductive d return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__1; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__2; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__4() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__4() { _start: { lean_object* x_1; @@ -2190,27 +8592,27 @@ x_1 = lean_mk_string("invalid 'private' constructor in a 'private' inductive dat return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__5() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__4; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__6() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__5; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; @@ -2229,430 +8631,345 @@ return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_12 = lean_array_fget(x_4, x_3); x_13 = lean_unsigned_to_nat(0u); x_14 = lean_array_fset(x_4, x_3, x_13); -x_28 = x_12; -x_29 = lean_unsigned_to_nat(1u); -x_30 = l_Lean_Syntax_getArg(x_28, x_29); -x_31 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = l_Lean_replaceRef(x_28, x_32); -lean_dec(x_32); -x_35 = lean_ctor_get(x_5, 0); -x_36 = lean_ctor_get(x_5, 1); -x_37 = lean_ctor_get(x_5, 2); -x_38 = lean_ctor_get(x_5, 3); -x_39 = lean_ctor_get(x_5, 4); -x_40 = lean_ctor_get(x_5, 5); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); +x_23 = x_12; +x_24 = lean_unsigned_to_nat(1u); +x_25 = l_Lean_Syntax_getArg(x_23, x_24); +x_26 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Lean_replaceRef(x_23, x_27); +lean_dec(x_27); +x_30 = lean_ctor_get(x_5, 0); +x_31 = lean_ctor_get(x_5, 1); +x_32 = lean_ctor_get(x_5, 2); +x_33 = lean_ctor_get(x_5, 3); +x_34 = lean_ctor_get(x_5, 4); +x_35 = lean_ctor_get(x_5, 5); lean_inc(x_35); -x_41 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_41, 0, x_35); -lean_ctor_set(x_41, 1, x_36); -lean_ctor_set(x_41, 2, x_37); -lean_ctor_set(x_41, 3, x_38); -lean_ctor_set(x_41, 4, x_39); -lean_ctor_set(x_41, 5, x_40); -lean_ctor_set(x_41, 6, x_34); -lean_inc(x_41); -x_42 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_30, x_41, x_6, x_33); -lean_dec(x_30); -if (lean_obj_tag(x_42) == 0) +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +x_36 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_31); +lean_ctor_set(x_36, 2, x_32); +lean_ctor_set(x_36, 3, x_33); +lean_ctor_set(x_36, 4, x_34); +lean_ctor_set(x_36, 5, x_35); +lean_ctor_set(x_36, 6, x_29); +lean_inc(x_36); +x_37 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_25, x_36, x_6, x_28); +lean_dec(x_25); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_102; -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_102 = l_Lean_Elab_Modifiers_isPrivate(x_43); -if (x_102 == 0) +lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_85; uint8_t x_96; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_96 = l_Lean_Elab_Modifiers_isPrivate(x_38); +if (x_96 == 0) { -uint8_t x_103; -x_103 = l_Lean_Elab_Modifiers_isProtected(x_43); -if (x_103 == 0) -{ -x_45 = x_44; -goto block_101; +uint8_t x_97; +x_97 = 0; +x_85 = x_97; +goto block_95; } else { -uint8_t x_104; -x_104 = l_Lean_Elab_Modifiers_isPrivate(x_1); -if (x_104 == 0) -{ -x_45 = x_44; -goto block_101; +uint8_t x_98; +x_98 = l_Lean_Elab_Modifiers_isPrivate(x_1); +x_85 = x_98; +goto block_95; } -else +block_84: { -lean_object* x_105; lean_object* x_106; uint8_t x_107; -lean_dec(x_43); -lean_dec(x_28); -x_105 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__3; -x_106 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_105, x_41, x_6, x_44); -x_107 = !lean_is_exclusive(x_106); -if (x_107 == 0) +if (x_40 == 0) { -x_15 = x_106; -goto block_27; -} -else +lean_object* x_41; +lean_inc(x_36); +x_41 = l_Lean_Elab_Command_checkValidCtorModifier(x_38, x_36, x_6, x_39); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_106, 0); -x_109 = lean_ctor_get(x_106, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_106); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -x_15 = x_110; -goto block_27; -} -} -} -} -else -{ -uint8_t x_111; -x_111 = l_Lean_Elab_Modifiers_isPrivate(x_1); -if (x_111 == 0) -{ -x_45 = x_44; -goto block_101; -} -else -{ -lean_object* x_112; lean_object* x_113; uint8_t x_114; -lean_dec(x_43); -lean_dec(x_28); -x_112 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__6; -x_113 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_112, x_41, x_6, x_44); -x_114 = !lean_is_exclusive(x_113); -if (x_114 == 0) -{ -x_15 = x_113; -goto block_27; -} -else -{ -lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_115 = lean_ctor_get(x_113, 0); -x_116 = lean_ctor_get(x_113, 1); -lean_inc(x_116); -lean_inc(x_115); -lean_dec(x_113); -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_15 = x_117; -goto block_27; -} -} -} -block_101: -{ -lean_object* x_46; -lean_inc(x_41); -x_46 = l_Lean_Elab_Command_checkValidCtorModifier(x_43, x_41, x_6, x_45); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -x_48 = lean_unsigned_to_nat(2u); -x_49 = l_Lean_Syntax_getIdAt(x_28, x_48); -x_50 = l_Lean_Name_append___main(x_2, x_49); -x_51 = l_Lean_Syntax_getArg(x_28, x_48); -x_52 = lean_ctor_get_uint8(x_43, sizeof(void*)*2); -x_53 = l_Lean_Elab_Command_getRef(x_41, x_6, x_47); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); lean_dec(x_41); +x_43 = lean_unsigned_to_nat(2u); +x_44 = l_Lean_Syntax_getIdAt(x_23, x_43); +x_45 = l_Lean_Name_append___main(x_2, x_44); +x_46 = l_Lean_Syntax_getArg(x_23, x_43); +x_47 = lean_ctor_get_uint8(x_38, sizeof(void*)*2); +x_48 = l_Lean_Elab_Command_getRef(x_36, x_6, x_42); +lean_dec(x_36); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = l_Lean_replaceRef(x_46, x_49); +lean_dec(x_49); +lean_dec(x_46); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +x_52 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_52, 0, x_30); +lean_ctor_set(x_52, 1, x_31); +lean_ctor_set(x_52, 2, x_32); +lean_ctor_set(x_52, 3, x_33); +lean_ctor_set(x_52, 4, x_34); +lean_ctor_set(x_52, 5, x_35); +lean_ctor_set(x_52, 6, x_51); +x_53 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(x_47, x_45, x_52, x_6, x_50); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 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_Lean_replaceRef(x_51, x_54); -lean_dec(x_54); -lean_dec(x_51); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -x_57 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_57, 0, x_35); -lean_ctor_set(x_57, 1, x_36); -lean_ctor_set(x_57, 2, x_37); -lean_ctor_set(x_57, 3, x_38); -lean_ctor_set(x_57, 4, x_39); -lean_ctor_set(x_57, 5, x_40); -lean_ctor_set(x_57, 6, x_56); -x_58 = l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__5(x_52, x_50, x_57, x_6, x_55); -if (lean_obj_tag(x_58) == 0) +x_56 = lean_unsigned_to_nat(3u); +x_57 = l_Lean_Syntax_getArg(x_23, x_56); +x_58 = l_Lean_Syntax_isNone(x_57); +lean_dec(x_57); +x_59 = lean_unsigned_to_nat(4u); +x_60 = l_Lean_Syntax_getArg(x_23, x_59); +x_61 = l_Lean_Elab_expandOptDeclSig(x_60); +lean_dec(x_60); +if (x_58 == 0) { -uint8_t x_59; -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) +lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec(x_61); +x_64 = 1; +x_65 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_65, 0, x_23); +lean_ctor_set(x_65, 1, x_38); +lean_ctor_set(x_65, 2, x_54); +lean_ctor_set(x_65, 3, x_62); +lean_ctor_set(x_65, 4, x_63); +lean_ctor_set_uint8(x_65, sizeof(void*)*5, x_64); +x_15 = x_65; +x_16 = x_55; +goto block_22; +} +else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_60 = lean_ctor_get(x_58, 0); -x_61 = lean_unsigned_to_nat(3u); -x_62 = l_Lean_Syntax_getArg(x_28, x_61); -x_63 = l_Lean_Syntax_isNone(x_62); -lean_dec(x_62); -x_64 = lean_unsigned_to_nat(4u); -x_65 = l_Lean_Syntax_getArg(x_28, x_64); -x_66 = l_Lean_Elab_expandOptDeclSig(x_65); -lean_dec(x_65); -if (x_63 == 0) -{ -lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; -x_67 = lean_ctor_get(x_66, 0); +lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; +x_66 = lean_ctor_get(x_61, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_61, 1); lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = 1; -x_70 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_70, 0, x_28); -lean_ctor_set(x_70, 1, x_43); -lean_ctor_set(x_70, 2, x_60); -lean_ctor_set(x_70, 3, x_67); -lean_ctor_set(x_70, 4, x_68); -lean_ctor_set_uint8(x_70, sizeof(void*)*5, x_69); -lean_ctor_set(x_58, 0, x_70); -x_15 = x_58; -goto block_27; -} -else -{ -lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; -x_71 = lean_ctor_get(x_66, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_66, 1); -lean_inc(x_72); -lean_dec(x_66); -x_73 = 0; -x_74 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_74, 0, x_28); -lean_ctor_set(x_74, 1, x_43); -lean_ctor_set(x_74, 2, x_60); -lean_ctor_set(x_74, 3, x_71); -lean_ctor_set(x_74, 4, x_72); -lean_ctor_set_uint8(x_74, sizeof(void*)*5, x_73); -lean_ctor_set(x_58, 0, x_74); -x_15 = x_58; -goto block_27; +lean_dec(x_61); +x_68 = 0; +x_69 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_69, 0, x_23); +lean_ctor_set(x_69, 1, x_38); +lean_ctor_set(x_69, 2, x_54); +lean_ctor_set(x_69, 3, x_66); +lean_ctor_set(x_69, 4, x_67); +lean_ctor_set_uint8(x_69, sizeof(void*)*5, x_68); +x_15 = x_69; +x_16 = x_55; +goto block_22; } } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_75 = lean_ctor_get(x_58, 0); -x_76 = lean_ctor_get(x_58, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_58); -x_77 = lean_unsigned_to_nat(3u); -x_78 = l_Lean_Syntax_getArg(x_28, x_77); -x_79 = l_Lean_Syntax_isNone(x_78); -lean_dec(x_78); -x_80 = lean_unsigned_to_nat(4u); -x_81 = l_Lean_Syntax_getArg(x_28, x_80); -x_82 = l_Lean_Elab_expandOptDeclSig(x_81); -lean_dec(x_81); -if (x_79 == 0) -{ -lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); -lean_dec(x_82); -x_85 = 1; -x_86 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_86, 0, x_28); -lean_ctor_set(x_86, 1, x_43); -lean_ctor_set(x_86, 2, x_75); -lean_ctor_set(x_86, 3, x_83); -lean_ctor_set(x_86, 4, x_84); -lean_ctor_set_uint8(x_86, sizeof(void*)*5, x_85); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_76); -x_15 = x_87; -goto block_27; -} -else -{ -lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; -x_88 = lean_ctor_get(x_82, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_82, 1); -lean_inc(x_89); -lean_dec(x_82); -x_90 = 0; -x_91 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_91, 0, x_28); -lean_ctor_set(x_91, 1, x_43); -lean_ctor_set(x_91, 2, x_75); -lean_ctor_set(x_91, 3, x_88); -lean_ctor_set(x_91, 4, x_89); -lean_ctor_set_uint8(x_91, sizeof(void*)*5, x_90); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_76); -x_15 = x_92; -goto block_27; -} -} -} -else -{ -uint8_t x_93; -lean_dec(x_43); -lean_dec(x_28); -x_93 = !lean_is_exclusive(x_58); -if (x_93 == 0) -{ -x_15 = x_58; -goto block_27; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_58, 0); -x_95 = lean_ctor_get(x_58, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_58); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_15 = x_96; -goto block_27; -} -} -} -else -{ -uint8_t x_97; -lean_dec(x_43); -lean_dec(x_41); -lean_dec(x_28); -x_97 = !lean_is_exclusive(x_46); -if (x_97 == 0) -{ -x_15 = x_46; -goto block_27; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_46, 0); -x_99 = lean_ctor_get(x_46, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_46); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -x_15 = x_100; -goto block_27; -} -} -} -} -else -{ -uint8_t x_118; -lean_dec(x_41); -lean_dec(x_28); -x_118 = !lean_is_exclusive(x_42); -if (x_118 == 0) -{ -x_15 = x_42; -goto block_27; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_42, 0); -x_120 = lean_ctor_get(x_42, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_42); -x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_119); -lean_ctor_set(x_121, 1, x_120); -x_15 = x_121; -goto block_27; -} -} -block_27: -{ -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; -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_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_3, x_18); -x_20 = x_16; -x_21 = lean_array_fset(x_14, x_3, x_20); -lean_dec(x_3); -x_3 = x_19; -x_4 = x_21; -x_7 = x_17; -goto _start; -} -else -{ -uint8_t x_23; +uint8_t x_70; +lean_dec(x_38); +lean_dec(x_23); lean_dec(x_14); lean_dec(x_3); -x_23 = !lean_is_exclusive(x_15); -if (x_23 == 0) +x_70 = !lean_is_exclusive(x_53); +if (x_70 == 0) { -return x_15; +return x_53; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_15); -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* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_53, 0); +x_72 = lean_ctor_get(x_53, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_53); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +else +{ +uint8_t x_74; +lean_dec(x_38); +lean_dec(x_36); +lean_dec(x_23); +lean_dec(x_14); +lean_dec(x_3); +x_74 = !lean_is_exclusive(x_41); +if (x_74 == 0) +{ +return x_41; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_41, 0); +x_76 = lean_ctor_get(x_41, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_41); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; uint8_t x_80; +lean_dec(x_38); +lean_dec(x_23); +lean_dec(x_14); +lean_dec(x_3); +x_78 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3; +x_79 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_78, x_36, x_6, x_39); +x_80 = !lean_is_exclusive(x_79); +if (x_80 == 0) +{ +return x_79; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_79, 0); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_79); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +block_95: +{ +if (x_85 == 0) +{ +uint8_t x_86; +x_86 = l_Lean_Elab_Modifiers_isProtected(x_38); +if (x_86 == 0) +{ +uint8_t x_87; +x_87 = 0; +x_40 = x_87; +goto block_84; +} +else +{ +uint8_t x_88; +x_88 = l_Lean_Elab_Modifiers_isPrivate(x_1); +x_40 = x_88; +goto block_84; +} +} +else +{ +lean_object* x_89; lean_object* x_90; uint8_t x_91; +lean_dec(x_38); +lean_dec(x_23); +lean_dec(x_14); +lean_dec(x_3); +x_89 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__6; +x_90 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_89, x_36, x_6, x_39); +x_91 = !lean_is_exclusive(x_90); +if (x_91 == 0) +{ +return x_90; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_90, 0); +x_93 = lean_ctor_get(x_90, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_90); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; } } } } +else +{ +uint8_t x_99; +lean_dec(x_36); +lean_dec(x_23); +lean_dec(x_14); +lean_dec(x_3); +x_99 = !lean_is_exclusive(x_37); +if (x_99 == 0) +{ +return x_37; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_37, 0); +x_101 = lean_ctor_get(x_37, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_37); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; } } -lean_object* l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +block_22: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_3, x_17); +x_19 = x_15; +x_20 = lean_array_fset(x_14, x_3, x_19); +lean_dec(x_3); +x_3 = x_18; +x_4 = x_20; +x_7 = x_16; +goto _start; +} +} +} +} +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(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; @@ -2704,7 +9021,7 @@ x_26 = x_25; x_27 = lean_unsigned_to_nat(0u); lean_inc(x_20); lean_inc(x_1); -x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___boxed), 7, 4); +x_28 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___boxed), 7, 4); lean_closure_set(x_28, 0, x_1); lean_closure_set(x_28, 1, x_20); lean_closure_set(x_28, 2, x_27); @@ -2841,11 +9158,114 @@ return x_49; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__4(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__6(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__2(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_throwErrorAt___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__7___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__9(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_setEnv___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__10(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); +lean_dec(x_1); +x_7 = l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__8(x_6, x_2, x_3, x_4, x_5); +lean_dec(x_4); +return x_7; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); @@ -2853,21 +9273,21 @@ lean_dec(x_1); return x_8; } } -lean_object* l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_3); return x_7; } } -lean_object* l___private_Lean_Elab_Declaration_2__classInductiveSyntaxToView(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_classInductiveSyntaxToView(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; x_6 = lean_unsigned_to_nat(2u); -x_7 = l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView(x_1, x_2, x_6, x_3, x_4, x_5); +x_7 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(x_1, x_2, x_6, x_3, x_4, x_5); return x_7; } } @@ -2878,7 +9298,7 @@ lean_object* x_6; lean_object* x_7; x_6 = lean_unsigned_to_nat(1u); lean_inc(x_4); lean_inc(x_3); -x_7 = l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView(x_1, x_2, x_6, x_3, x_4, x_5); +x_7 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(x_1, x_2, x_6, x_3, x_4, x_5); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -2928,7 +9348,7 @@ x_7 = l_Lean_Elab_Modifiers_addAttribute(x_1, x_6); x_8 = lean_unsigned_to_nat(2u); lean_inc(x_4); lean_inc(x_3); -x_9 = l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView(x_7, x_2, x_8, x_3, x_4, x_5); +x_9 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(x_7, x_2, x_8, x_3, x_4, x_5); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -2969,6 +9389,42 @@ return x_18; } } } +lean_object* l_Lean_Elab_Command_elabDeclaration_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_2, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Command_elabDeclaration_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDeclaration_match__1___rarg), 3, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Elab_Command_elabDeclaration___closed__1() { _start: { @@ -3031,7 +9487,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Lean_Syntax_getArg(x_1, x_6); lean_inc(x_2); -x_8 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_7, x_2, x_3, x_4); +x_8 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_7, x_2, x_3, x_4); lean_dec(x_7); if (lean_obj_tag(x_8) == 0) { @@ -3055,7 +9511,7 @@ x_17 = lean_name_eq(x_13, x_16); if (x_17 == 0) { lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; +x_18 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; x_19 = lean_name_eq(x_13, x_18); if (x_19 == 0) { @@ -3073,7 +9529,7 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; lean_dec(x_1); x_23 = l_Lean_Elab_Command_elabDeclaration___closed__3; -x_24 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_23, x_2, x_3, x_10); +x_24 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_23, x_2, x_3, x_10); lean_dec(x_3); return x_24; } @@ -3262,13 +9718,13 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Command_commandElabAttribute; -x_3 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; +x_3 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; x_4 = l___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_3__isMutualInductive___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -3309,7 +9765,7 @@ goto _start; } } } -uint8_t l___private_Lean_Elab_Declaration_3__isMutualInductive(lean_object* x_1) { +uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; @@ -3319,7 +9775,7 @@ x_4 = l_Lean_Syntax_getArgs(x_3); lean_dec(x_3); x_5 = lean_array_get_size(x_4); x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_3__isMutualInductive___spec__1(x_1, x_4, x_5, x_6); +x_7 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1(x_1, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); if (x_7 == 0) @@ -3336,11 +9792,11 @@ return x_9; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_3__isMutualInductive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_3__isMutualInductive___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -3348,17 +9804,17 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_Elab_Declaration_3__isMutualInductive___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Declaration_3__isMutualInductive(x_1); +x_2 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_4__elabMutualInductive___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_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___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; @@ -3386,7 +9842,7 @@ x_12 = lean_array_fset(x_2, x_1, x_11); x_13 = x_10; x_14 = l_Lean_Syntax_getArg(x_13, x_11); lean_inc(x_3); -x_15 = l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1(x_14, x_3, x_4, x_5); +x_15 = l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__1(x_14, x_3, x_4, x_5); lean_dec(x_14); if (lean_obj_tag(x_15) == 0) { @@ -3401,7 +9857,7 @@ x_19 = l_Lean_Syntax_getArg(x_13, x_18); lean_dec(x_13); lean_inc(x_4); lean_inc(x_3); -x_20 = l___private_Lean_Elab_Declaration_1__inductiveSyntaxToView(x_16, x_19, x_18, x_3, x_4, x_17); +x_20 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView(x_16, x_19, x_18, x_3, x_4, x_17); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; @@ -3476,13 +9932,13 @@ return x_34; } } } -lean_object* l___private_Lean_Elab_Declaration_4__elabMutualInductive(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive(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; x_5 = x_1; x_6 = lean_unsigned_to_nat(0u); -x_7 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_4__elabMutualInductive___spec__1), 5, 2); +x_7 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive___spec__1), 5, 2); lean_closure_set(x_7, 0, x_6); lean_closure_set(x_7, 1, x_5); x_8 = x_7; @@ -3527,7 +9983,7 @@ return x_16; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_5__isMutualDef___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -3565,7 +10021,7 @@ goto _start; } } } -uint8_t l___private_Lean_Elab_Declaration_5__isMutualDef(lean_object* x_1) { +uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; @@ -3575,7 +10031,7 @@ x_4 = l_Lean_Syntax_getArgs(x_3); lean_dec(x_3); x_5 = lean_array_get_size(x_4); x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_5__isMutualDef___spec__1(x_1, x_4, x_5, x_6); +x_7 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1(x_1, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); if (x_7 == 0) @@ -3592,11 +10048,11 @@ return x_9; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_5__isMutualDef___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_5__isMutualDef___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -3604,17 +10060,17 @@ x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Lean_Elab_Declaration_5__isMutualDef___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Declaration_5__isMutualDef(x_1); +x_2 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3624,12 +10080,12 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -uint8_t l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand(lean_object* x_1) { +uint8_t l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; x_2 = l_Lean_Syntax_getKind(x_1); -x_3 = l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___closed__1; +x_3 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__1; x_4 = lean_name_eq(x_2, x_3); if (x_4 == 0) { @@ -3713,16 +10169,16 @@ return x_22; } } } -lean_object* l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand(x_1); +x_2 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Declaration_7__splitMutualPreamble___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble_loop(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3741,7 +10197,7 @@ else { lean_object* x_6; uint8_t x_7; x_6 = lean_array_fget(x_1, x_2); -x_7 = l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand(x_6); +x_7 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand(x_6); if (x_7 == 0) { lean_object* x_8; uint8_t x_9; @@ -3749,50 +10205,196 @@ x_8 = lean_unsigned_to_nat(0u); x_9 = lean_nat_dec_eq(x_2, x_8); if (x_9 == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_inc(x_2); lean_inc(x_1); -x_10 = l_Array_extract___rarg(x_1, x_8, x_2); -x_11 = l_Array_extract___rarg(x_1, x_2, x_3); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_10); -lean_ctor_set(x_12, 1, x_11); -x_13 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_13, 0, x_12); -return x_13; +x_10 = l_Array_toSubarray___rarg(x_1, x_8, x_2); +x_11 = l_Array_ofSubarray___rarg(x_10); +lean_dec(x_10); +x_12 = l_Array_toSubarray___rarg(x_1, x_2, x_3); +x_13 = l_Array_ofSubarray___rarg(x_12); +lean_dec(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set(x_14, 1, 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_14; +lean_object* x_16; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_14 = lean_box(0); -return x_14; +x_16 = lean_box(0); +return x_16; } } else { -lean_object* x_15; lean_object* x_16; +lean_object* x_17; lean_object* x_18; lean_dec(x_3); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_2, x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_2, x_17); lean_dec(x_2); -x_2 = x_16; +x_2 = x_18; goto _start; } } } } -lean_object* l___private_Lean_Elab_Declaration_7__splitMutualPreamble(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble(lean_object* x_1) { _start: { -lean_object* x_3; -x_3 = l___private_Lean_Elab_Declaration_7__splitMutualPreamble___main(x_1, x_2); +lean_object* x_2; lean_object* x_3; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble_loop(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1() { +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_dec(x_5); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_6; +lean_dec(x_4); +x_6 = lean_apply_1(x_3, x_1); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_3); +x_7 = lean_ctor_get(x_2, 0); +lean_inc(x_7); +lean_dec(x_2); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_apply_2(x_4, x_8, x_9); +return x_10; +} +} +else +{ +lean_dec(x_4); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_11; +lean_dec(x_5); +x_11 = lean_apply_1(x_3, x_1); +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_dec(x_3); +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +lean_dec(x_2); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +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 = lean_apply_3(x_5, x_13, x_14, x_15); +return x_16; +} +} +} +} +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualNamespace_match__1___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualNamespace_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualNamespace_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_expandMutualNamespace_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualNamespace_match__4___rarg), 2, 0); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1() { _start: { lean_object* x_1; @@ -3800,7 +10402,7 @@ x_1 = lean_mk_string("conflicting namespaces in mutual declaration, using namesp return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2() { _start: { lean_object* x_1; @@ -3808,7 +10410,7 @@ x_1 = lean_mk_string("', but used '"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3() { _start: { lean_object* x_1; @@ -3816,100 +10418,96 @@ x_1 = lean_mk_string("' in previous declaration"); return x_1; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___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_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_3, x_7); -lean_dec(x_7); -if (x_8 == 0) +lean_object* x_7; lean_object* x_8; uint8_t x_14; +x_14 = x_3 < x_2; +if (x_14 == 0) { -lean_object* x_9; -lean_dec(x_3); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_6); -return x_9; +lean_object* x_15; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_4); +lean_ctor_set(x_15, 1, x_6); +return x_15; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_21; -x_10 = lean_array_fget(x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); -lean_dec(x_3); -x_13 = lean_ctor_get(x_4, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_4, 1); -lean_inc(x_14); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - x_15 = x_4; -} else { - lean_dec_ref(x_4); - x_15 = lean_box(0); -} -lean_inc(x_10); -x_21 = l_Lean_Elab_Command_expandDeclNamespace_x3f(x_10); -if (lean_obj_tag(x_13) == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_array_uget(x_1, x_3); +x_17 = !lean_is_exclusive(x_4); +if (x_17 == 0) { -if (lean_obj_tag(x_21) == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_4, 0); +x_19 = lean_ctor_get(x_4, 1); +lean_inc(x_16); +x_20 = l_Lean_Elab_Command_expandDeclNamespace_x3f(x_16); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_22; -x_22 = lean_box(0); -x_16 = x_22; -goto block_20; +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_array_push(x_18, x_16); +lean_ctor_set(x_4, 0, x_21); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_4); +x_7 = x_22; +x_8 = x_6; +goto block_13; } else { uint8_t x_23; -lean_dec(x_15); -lean_dec(x_10); -x_23 = !lean_is_exclusive(x_21); +lean_free_object(x_4); +lean_dec(x_16); +x_23 = !lean_is_exclusive(x_20); if (x_23 == 0) { lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_20, 0); x_25 = !lean_is_exclusive(x_24); if (x_25 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_26 = lean_ctor_get(x_24, 0); x_27 = lean_ctor_get(x_24, 1); -lean_ctor_set(x_21, 0, x_26); -x_28 = lean_array_push(x_14, x_27); -lean_ctor_set(x_24, 1, x_28); -lean_ctor_set(x_24, 0, x_21); -x_3 = x_12; -x_4 = x_24; -goto _start; +lean_ctor_set(x_20, 0, x_26); +x_28 = lean_array_push(x_18, x_27); +lean_ctor_set(x_24, 1, x_20); +lean_ctor_set(x_24, 0, x_28); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_24); +x_7 = x_29; +x_8 = x_6; +goto block_13; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_30 = lean_ctor_get(x_24, 0); x_31 = lean_ctor_get(x_24, 1); lean_inc(x_31); lean_inc(x_30); lean_dec(x_24); -lean_ctor_set(x_21, 0, x_30); -x_32 = lean_array_push(x_14, x_31); +lean_ctor_set(x_20, 0, x_30); +x_32 = lean_array_push(x_18, x_31); x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_21); -lean_ctor_set(x_33, 1, x_32); -x_3 = x_12; -x_4 = x_33; -goto _start; +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_20); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +x_7 = x_34; +x_8 = x_6; +goto block_13; } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_35 = lean_ctor_get(x_21, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_35 = lean_ctor_get(x_20, 0); lean_inc(x_35); -lean_dec(x_21); +lean_dec(x_20); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); @@ -3924,182 +10522,358 @@ if (lean_is_exclusive(x_35)) { } x_39 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_39, 0, x_36); -x_40 = lean_array_push(x_14, x_37); +x_40 = lean_array_push(x_18, x_37); if (lean_is_scalar(x_38)) { x_41 = lean_alloc_ctor(0, 2, 0); } else { x_41 = x_38; } -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_3 = x_12; -x_4 = x_41; -goto _start; +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_7 = x_42; +x_8 = x_6; +goto block_13; } } } else { -if (lean_obj_tag(x_21) == 0) +if (lean_obj_tag(x_20) == 0) { -lean_object* x_43; -x_43 = lean_box(0); -x_16 = x_43; -goto block_20; +lean_object* x_43; lean_object* x_44; +x_43 = lean_array_push(x_18, x_16); +lean_ctor_set(x_4, 0, x_43); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_4); +x_7 = x_44; +x_8 = x_6; +goto block_13; } else { -lean_object* x_44; lean_object* x_45; uint8_t x_46; -lean_dec(x_15); -lean_dec(x_10); -x_44 = lean_ctor_get(x_21, 0); -lean_inc(x_44); -lean_dec(x_21); -x_45 = lean_ctor_get(x_13, 0); -lean_inc(x_45); -x_46 = !lean_is_exclusive(x_44); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = lean_ctor_get(x_44, 0); -x_48 = lean_ctor_get(x_44, 1); -x_49 = lean_name_eq(x_45, x_47); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; -lean_free_object(x_44); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_50 = l_System_FilePath_dirName___closed__1; -x_51 = l_Lean_Name_toStringWithSep___main(x_50, x_47); -x_52 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; -x_53 = lean_string_append(x_52, x_51); -lean_dec(x_51); -x_54 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; -x_55 = lean_string_append(x_53, x_54); -x_56 = l_Lean_Name_toStringWithSep___main(x_50, x_45); -x_57 = lean_string_append(x_55, x_56); -lean_dec(x_56); -x_58 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; -x_59 = lean_string_append(x_57, x_58); -x_60 = l_Lean_Macro_throwError___rarg(x_48, x_59, x_5, x_6); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -return x_60; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_60); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -else -{ -lean_object* x_65; -lean_dec(x_47); -lean_dec(x_45); -x_65 = lean_array_push(x_14, x_48); -lean_ctor_set(x_44, 1, x_65); -lean_ctor_set(x_44, 0, x_13); -x_3 = x_12; -x_4 = x_44; -goto _start; -} -} -else -{ -lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_67 = lean_ctor_get(x_44, 0); -x_68 = lean_ctor_get(x_44, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_44); -x_69 = lean_name_eq(x_45, x_67); -if (x_69 == 0) -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_70 = l_System_FilePath_dirName___closed__1; -x_71 = l_Lean_Name_toStringWithSep___main(x_70, x_67); -x_72 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; -x_73 = lean_string_append(x_72, x_71); -lean_dec(x_71); -x_74 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; -x_75 = lean_string_append(x_73, x_74); -x_76 = l_Lean_Name_toStringWithSep___main(x_70, x_45); -x_77 = lean_string_append(x_75, x_76); -lean_dec(x_76); -x_78 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; -x_79 = lean_string_append(x_77, x_78); -x_80 = l_Lean_Macro_throwError___rarg(x_68, x_79, x_5, x_6); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_83 = x_80; -} else { - lean_dec_ref(x_80); - x_83 = lean_box(0); -} -if (lean_is_scalar(x_83)) { - x_84 = lean_alloc_ctor(1, 2, 0); -} else { - x_84 = x_83; -} -lean_ctor_set(x_84, 0, x_81); -lean_ctor_set(x_84, 1, x_82); -return x_84; -} -else -{ -lean_object* x_85; lean_object* x_86; -lean_dec(x_67); -lean_dec(x_45); -x_85 = lean_array_push(x_14, x_68); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_13); -lean_ctor_set(x_86, 1, x_85); -x_3 = x_12; -x_4 = x_86; -goto _start; -} -} -} -} -block_20: -{ -lean_object* x_17; lean_object* x_18; +lean_object* x_45; lean_object* x_46; uint8_t x_47; +lean_free_object(x_4); lean_dec(x_16); -x_17 = lean_array_push(x_14, x_10); -if (lean_is_scalar(x_15)) { - x_18 = lean_alloc_ctor(0, 2, 0); +x_45 = lean_ctor_get(x_20, 0); +lean_inc(x_45); +lean_dec(x_20); +x_46 = lean_ctor_get(x_19, 0); +lean_inc(x_46); +x_47 = !lean_is_exclusive(x_45); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_48 = lean_ctor_get(x_45, 0); +x_49 = lean_ctor_get(x_45, 1); +x_50 = lean_name_eq(x_46, x_48); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_free_object(x_45); +lean_dec(x_19); +lean_dec(x_18); +x_51 = l_System_FilePath_dirName___closed__1; +x_52 = l_Lean_Name_toStringWithSep___main(x_51, x_48); +x_53 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; +x_54 = lean_string_append(x_53, x_52); +lean_dec(x_52); +x_55 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; +x_56 = lean_string_append(x_54, x_55); +x_57 = l_Lean_Name_toStringWithSep___main(x_51, x_46); +x_58 = lean_string_append(x_56, x_57); +lean_dec(x_57); +x_59 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; +x_60 = lean_string_append(x_58, x_59); +x_61 = l_Lean_Macro_throwError___rarg(x_49, x_60, x_5, x_6); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +return x_61; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_61); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; +} +} +else +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_48); +lean_dec(x_46); +x_66 = lean_array_push(x_18, x_49); +lean_ctor_set(x_45, 1, x_19); +lean_ctor_set(x_45, 0, x_66); +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_45); +x_7 = x_67; +x_8 = x_6; +goto block_13; +} +} +else +{ +lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_68 = lean_ctor_get(x_45, 0); +x_69 = lean_ctor_get(x_45, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_45); +x_70 = lean_name_eq(x_46, x_68); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_19); +lean_dec(x_18); +x_71 = l_System_FilePath_dirName___closed__1; +x_72 = l_Lean_Name_toStringWithSep___main(x_71, x_68); +x_73 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; +x_74 = lean_string_append(x_73, x_72); +lean_dec(x_72); +x_75 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; +x_76 = lean_string_append(x_74, x_75); +x_77 = l_Lean_Name_toStringWithSep___main(x_71, x_46); +x_78 = lean_string_append(x_76, x_77); +lean_dec(x_77); +x_79 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; +x_80 = lean_string_append(x_78, x_79); +x_81 = l_Lean_Macro_throwError___rarg(x_69, x_80, x_5, x_6); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_84 = x_81; } else { - x_18 = x_15; + lean_dec_ref(x_81); + x_84 = lean_box(0); } -lean_ctor_set(x_18, 0, x_13); -lean_ctor_set(x_18, 1, x_17); -x_3 = x_12; -x_4 = x_18; +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(1, 2, 0); +} else { + x_85 = x_84; +} +lean_ctor_set(x_85, 0, x_82); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_68); +lean_dec(x_46); +x_86 = lean_array_push(x_18, x_69); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_19); +x_88 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_88, 0, x_87); +x_7 = x_88; +x_8 = x_6; +goto block_13; +} +} +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_4, 0); +x_90 = lean_ctor_get(x_4, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_4); +lean_inc(x_16); +x_91 = l_Lean_Elab_Command_expandDeclNamespace_x3f(x_16); +if (lean_obj_tag(x_90) == 0) +{ +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_array_push(x_89, x_16); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_90); +x_94 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_94, 0, x_93); +x_7 = x_94; +x_8 = x_6; +goto block_13; +} +else +{ +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_dec(x_16); +x_95 = lean_ctor_get(x_91, 0); +lean_inc(x_95); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + x_96 = x_91; +} else { + lean_dec_ref(x_91); + x_96 = lean_box(0); +} +x_97 = lean_ctor_get(x_95, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_99 = x_95; +} else { + lean_dec_ref(x_95); + x_99 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_100 = lean_alloc_ctor(1, 1, 0); +} else { + x_100 = x_96; +} +lean_ctor_set(x_100, 0, x_97); +x_101 = lean_array_push(x_89, x_98); +if (lean_is_scalar(x_99)) { + x_102 = lean_alloc_ctor(0, 2, 0); +} else { + x_102 = x_99; +} +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_100); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_102); +x_7 = x_103; +x_8 = x_6; +goto block_13; +} +} +else +{ +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_array_push(x_89, x_16); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_90); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_105); +x_7 = x_106; +x_8 = x_6; +goto block_13; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +lean_dec(x_16); +x_107 = lean_ctor_get(x_91, 0); +lean_inc(x_107); +lean_dec(x_91); +x_108 = lean_ctor_get(x_90, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_107, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_111 = x_107; +} else { + lean_dec_ref(x_107); + x_111 = lean_box(0); +} +x_112 = lean_name_eq(x_108, x_109); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_dec(x_111); +lean_dec(x_90); +lean_dec(x_89); +x_113 = l_System_FilePath_dirName___closed__1; +x_114 = l_Lean_Name_toStringWithSep___main(x_113, x_109); +x_115 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1; +x_116 = lean_string_append(x_115, x_114); +lean_dec(x_114); +x_117 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2; +x_118 = lean_string_append(x_116, x_117); +x_119 = l_Lean_Name_toStringWithSep___main(x_113, x_108); +x_120 = lean_string_append(x_118, x_119); +lean_dec(x_119); +x_121 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3; +x_122 = lean_string_append(x_120, x_121); +x_123 = l_Lean_Macro_throwError___rarg(x_110, x_122, x_5, x_6); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_126 = x_123; +} else { + lean_dec_ref(x_123); + x_126 = lean_box(0); +} +if (lean_is_scalar(x_126)) { + x_127 = lean_alloc_ctor(1, 2, 0); +} else { + x_127 = x_126; +} +lean_ctor_set(x_127, 0, x_124); +lean_ctor_set(x_127, 1, x_125); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_109); +lean_dec(x_108); +x_128 = lean_array_push(x_89, x_110); +if (lean_is_scalar(x_111)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_111; +} +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_90); +x_130 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_130, 0, x_129); +x_7 = x_130; +x_8 = x_6; +goto block_13; +} +} +} +} +} +block_13: +{ +lean_object* x_9; size_t x_10; size_t x_11; +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = 1; +x_11 = x_3 + x_10; +x_3 = x_11; +x_4 = x_9; +x_6 = x_8; goto _start; } } } -} static lean_object* _init_l_Lean_Elab_Command_expandMutualNamespace___closed__1() { _start: { @@ -4107,192 +10881,198 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Array_empty___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); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } lean_object* l_Lean_Elab_Command_expandMutualNamespace(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_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; x_4 = lean_unsigned_to_nat(1u); x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = l_Lean_Syntax_getArgs(x_5); lean_dec(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Lean_Elab_Command_expandMutualNamespace___closed__1; -x_9 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1(x_1, x_6, x_7, x_8, x_2, x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_9 = 0; +x_10 = l_Lean_Elab_Command_expandMutualNamespace___closed__1; +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1(x_6, x_8, x_9, x_10, x_2, x_3); lean_dec(x_6); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); if (lean_obj_tag(x_11) == 0) { -uint8_t x_12; -lean_dec(x_10); +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +lean_dec(x_12); lean_dec(x_1); -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) +x_14 = !lean_is_exclusive(x_11); +if (x_14 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_9, 0); -lean_dec(x_13); -x_14 = lean_box(1); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_14); -return x_9; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_9, 1); -lean_inc(x_15); -lean_dec(x_9); +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_11, 0); +lean_dec(x_15); x_16 = lean_box(1); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} +lean_ctor_set_tag(x_11, 1); +lean_ctor_set(x_11, 0, x_16); +return x_11; } else { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_9); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_19 = lean_ctor_get(x_9, 0); -lean_dec(x_19); -x_20 = lean_ctor_get(x_10, 1); -lean_inc(x_20); -lean_dec(x_10); -x_21 = lean_ctor_get(x_11, 0); -lean_inc(x_21); +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); lean_dec(x_11); -x_22 = l_Lean_mkIdentFrom(x_1, x_21); -x_23 = l_Lean_nullKind; -x_24 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_20); -x_25 = l_Lean_Syntax_setArg(x_1, x_4, x_24); -x_26 = l_Lean_Elab_Command_elabDeclaration___closed__5; -lean_inc(x_22); -x_27 = lean_array_push(x_26, x_22); -x_28 = l_Lean_Elab_Command_elabNamespace___closed__1; -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -x_30 = l_Array_empty___closed__1; -x_31 = lean_array_push(x_30, x_29); -x_32 = lean_array_push(x_31, x_25); -x_33 = lean_array_push(x_30, x_22); -x_34 = l_Lean_nullKind___closed__2; -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Command_expandInCmd___closed__7; -x_37 = lean_array_push(x_36, x_35); -x_38 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = lean_array_push(x_32, x_39); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_34); -lean_ctor_set(x_41, 1, x_40); -lean_ctor_set(x_9, 0, x_41); -return x_9; +x_18 = lean_box(1); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_42 = lean_ctor_get(x_9, 1); -lean_inc(x_42); -lean_dec(x_9); -x_43 = lean_ctor_get(x_10, 1); -lean_inc(x_43); -lean_dec(x_10); -x_44 = lean_ctor_get(x_11, 0); +uint8_t x_20; +x_20 = !lean_is_exclusive(x_11); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_21 = lean_ctor_get(x_11, 0); +lean_dec(x_21); +x_22 = lean_ctor_get(x_12, 0); +lean_inc(x_22); +lean_dec(x_12); +x_23 = lean_ctor_get(x_13, 0); +lean_inc(x_23); +lean_dec(x_13); +x_24 = l_Lean_mkIdentFrom(x_1, x_23); +x_25 = l_Lean_nullKind; +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +x_27 = l_Lean_Syntax_setArg(x_1, x_4, x_26); +x_28 = l_Lean_Elab_Command_elabDeclaration___closed__5; +lean_inc(x_24); +x_29 = lean_array_push(x_28, x_24); +x_30 = l_Lean_Elab_Command_elabNamespace___closed__1; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Array_empty___closed__1; +x_33 = lean_array_push(x_32, x_31); +x_34 = lean_array_push(x_33, x_27); +x_35 = lean_array_push(x_32, x_24); +x_36 = l_Lean_nullKind___closed__2; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_35); +x_38 = l_Lean_Elab_Command_expandInCmd___closed__7; +x_39 = lean_array_push(x_38, x_37); +x_40 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +x_42 = lean_array_push(x_34, x_41); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_36); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_11, 0, x_43); +return x_11; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_44 = lean_ctor_get(x_11, 1); lean_inc(x_44); lean_dec(x_11); -x_45 = l_Lean_mkIdentFrom(x_1, x_44); -x_46 = l_Lean_nullKind; -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_43); -x_48 = l_Lean_Syntax_setArg(x_1, x_4, x_47); -x_49 = l_Lean_Elab_Command_elabDeclaration___closed__5; +x_45 = lean_ctor_get(x_12, 0); lean_inc(x_45); -x_50 = lean_array_push(x_49, x_45); -x_51 = l_Lean_Elab_Command_elabNamespace___closed__1; -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -x_53 = l_Array_empty___closed__1; -x_54 = lean_array_push(x_53, x_52); -x_55 = lean_array_push(x_54, x_48); -x_56 = lean_array_push(x_53, x_45); -x_57 = l_Lean_nullKind___closed__2; -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Elab_Command_expandInCmd___closed__7; -x_60 = lean_array_push(x_59, x_58); -x_61 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = lean_array_push(x_55, x_62); +lean_dec(x_12); +x_46 = lean_ctor_get(x_13, 0); +lean_inc(x_46); +lean_dec(x_13); +x_47 = l_Lean_mkIdentFrom(x_1, x_46); +x_48 = l_Lean_nullKind; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_45); +x_50 = l_Lean_Syntax_setArg(x_1, x_4, x_49); +x_51 = l_Lean_Elab_Command_elabDeclaration___closed__5; +lean_inc(x_47); +x_52 = lean_array_push(x_51, x_47); +x_53 = l_Lean_Elab_Command_elabNamespace___closed__1; +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_52); +x_55 = l_Array_empty___closed__1; +x_56 = lean_array_push(x_55, x_54); +x_57 = lean_array_push(x_56, x_50); +x_58 = lean_array_push(x_55, x_47); +x_59 = l_Lean_nullKind___closed__2; +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = l_Lean_Elab_Command_expandInCmd___closed__7; +x_62 = lean_array_push(x_61, x_60); +x_63 = l___regBuiltin_Lean_Elab_Command_elabEnd___closed__2; x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_57); -lean_ctor_set(x_64, 1, 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_42); -return x_65; +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = lean_array_push(x_57, x_64); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_59); +lean_ctor_set(x_66, 1, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_44); +return x_67; } } } else { -uint8_t x_66; +uint8_t x_68; lean_dec(x_1); -x_66 = !lean_is_exclusive(x_9); -if (x_66 == 0) +x_68 = !lean_is_exclusive(x_11); +if (x_68 == 0) { -return x_9; +return x_11; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_9, 0); -x_68 = lean_ctor_get(x_9, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_9); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_11, 0); +x_70 = lean_ctor_get(x_11, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_11); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___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_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___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_Lean_Elab_Command_expandMutualNamespace___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_2); lean_dec(x_2); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1(x_1, x_7, x_8, x_4, x_5, x_6); +lean_dec(x_5); lean_dec(x_1); -return x_7; +return x_9; } } lean_object* l_Lean_Elab_Command_expandMutualNamespace___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -4341,188 +11121,261 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualElement___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_Lean_Elab_Command_expandMutualElement_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_7; uint8_t x_8; -x_7 = lean_array_get_size(x_2); -x_8 = lean_nat_dec_lt(x_3, x_7); -lean_dec(x_7); -if (x_8 == 0) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_9; -lean_dec(x_5); -lean_dec(x_3); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_6); -return x_9; +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_array_fget(x_2, x_3); -x_11 = lean_unsigned_to_nat(1u); -x_12 = lean_nat_add(x_3, x_11); +lean_object* x_6; lean_object* x_7; lean_dec(x_3); -x_13 = !lean_is_exclusive(x_4); -if (x_13 == 0) +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_expandMutualElement_match__1(lean_object* x_1) { +_start: { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_4, 0); -x_15 = lean_ctor_get(x_4, 1); +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualElement_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandMutualElement_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_expandMutualElement_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualElement_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Command_expandMutualElement_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_expandMutualElement_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualElement_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = x_3 < x_2; +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_5); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_4); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +else +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_array_uget(x_1, x_3); +x_10 = !lean_is_exclusive(x_4); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_4, 0); +x_12 = lean_ctor_get(x_4, 1); lean_inc(x_5); -lean_inc(x_10); -x_16 = l_Lean_Macro_expandMacro_x3fImp(x_10, x_5, x_6); -if (lean_obj_tag(x_16) == 0) +lean_inc(x_9); +x_13 = l_Lean_Macro_expandMacro_x3fImp(x_9, x_5, x_6); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_17; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -if (lean_obj_tag(x_17) == 0) +lean_object* x_14; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_array_push(x_14, x_10); -lean_ctor_set(x_4, 0, x_19); -x_3 = x_12; -x_6 = x_18; +lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_array_push(x_11, x_9); +lean_ctor_set(x_4, 0, x_16); +x_17 = 1; +x_18 = x_3 + x_17; +x_3 = x_18; +x_6 = x_15; goto _start; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; -lean_dec(x_15); -lean_dec(x_10); -x_21 = lean_ctor_get(x_16, 1); -lean_inc(x_21); -lean_dec(x_16); -x_22 = lean_ctor_get(x_17, 0); -lean_inc(x_22); -lean_dec(x_17); -x_23 = lean_array_push(x_14, x_22); -x_24 = 1; -x_25 = lean_box(x_24); -lean_ctor_set(x_4, 1, x_25); -lean_ctor_set(x_4, 0, x_23); -x_3 = x_12; -x_6 = x_21; -goto _start; -} -} -else -{ -uint8_t x_27; -lean_free_object(x_4); -lean_dec(x_15); -lean_dec(x_14); +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_dec(x_12); -lean_dec(x_10); +lean_dec(x_9); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_dec(x_13); +x_21 = lean_ctor_get(x_14, 0); +lean_inc(x_21); +lean_dec(x_14); +x_22 = lean_array_push(x_11, x_21); +x_23 = 1; +x_24 = lean_box(x_23); +lean_ctor_set(x_4, 1, x_24); +lean_ctor_set(x_4, 0, x_22); +x_25 = 1; +x_26 = x_3 + x_25; +x_3 = x_26; +x_6 = x_20; +goto _start; +} +} +else +{ +uint8_t x_28; +lean_free_object(x_4); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_5); -x_27 = !lean_is_exclusive(x_16); -if (x_27 == 0) +x_28 = !lean_is_exclusive(x_13); +if (x_28 == 0) { -return x_16; +return x_13; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -x_29 = lean_ctor_get(x_16, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_13, 0); +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_16); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; +lean_dec(x_13); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_4, 0); -x_32 = lean_ctor_get(x_4, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_4, 0); +x_33 = lean_ctor_get(x_4, 1); +lean_inc(x_33); lean_inc(x_32); -lean_inc(x_31); lean_dec(x_4); lean_inc(x_5); -lean_inc(x_10); -x_33 = l_Lean_Macro_expandMacro_x3fImp(x_10, x_5, x_6); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); +lean_inc(x_9); +x_34 = l_Lean_Macro_expandMacro_x3fImp(x_9, x_5, x_6); if (lean_obj_tag(x_34) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_33, 1); +lean_object* x_35; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_array_push(x_31, x_10); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_32); -x_3 = x_12; -x_4 = x_37; -x_6 = x_35; -goto _start; -} -else +if (lean_obj_tag(x_35) == 0) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_32); -lean_dec(x_10); -x_39 = lean_ctor_get(x_33, 1); -lean_inc(x_39); -lean_dec(x_33); -x_40 = lean_ctor_get(x_34, 0); -lean_inc(x_40); +lean_object* x_36; lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); lean_dec(x_34); -x_41 = lean_array_push(x_31, x_40); -x_42 = 1; -x_43 = lean_box(x_42); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_43); -x_3 = x_12; -x_4 = x_44; -x_6 = x_39; +x_37 = lean_array_push(x_32, x_9); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_33); +x_39 = 1; +x_40 = x_3 + x_39; +x_3 = x_40; +x_4 = x_38; +x_6 = x_36; +goto _start; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; +lean_dec(x_33); +lean_dec(x_9); +x_42 = lean_ctor_get(x_34, 1); +lean_inc(x_42); +lean_dec(x_34); +x_43 = lean_ctor_get(x_35, 0); +lean_inc(x_43); +lean_dec(x_35); +x_44 = lean_array_push(x_32, x_43); +x_45 = 1; +x_46 = lean_box(x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_46); +x_48 = 1; +x_49 = x_3 + x_48; +x_3 = x_49; +x_4 = x_47; +x_6 = x_42; goto _start; } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_33); lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_12); -lean_dec(x_10); +lean_dec(x_9); lean_dec(x_5); -x_46 = lean_ctor_get(x_33, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_33, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_48 = x_33; +x_51 = lean_ctor_get(x_34, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_34, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_53 = x_34; } else { - lean_dec_ref(x_33); - x_48 = lean_box(0); + lean_dec_ref(x_34); + x_53 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); } else { - x_49 = x_48; + x_54 = x_53; } -lean_ctor_set(x_49, 0, x_46); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; } } } @@ -4531,127 +11384,133 @@ return x_49; lean_object* l_Lean_Elab_Command_expandMutualElement(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_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; x_4 = lean_unsigned_to_nat(1u); x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = l_Lean_Syntax_getArgs(x_5); lean_dec(x_5); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; -x_9 = l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualElement___spec__1(x_1, x_6, x_7, x_8, x_2, x_3); +x_7 = lean_array_get_size(x_6); +x_8 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_9 = 0; +x_10 = l___private_Lean_Meta_RecursorInfo_10__getProduceMotiveAndRecursive___closed__1; +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(x_6, x_8, x_9, x_10, x_2, x_3); lean_dec(x_6); -if (lean_obj_tag(x_9) == 0) +if (lean_obj_tag(x_11) == 0) { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -x_12 = lean_unbox(x_11); -lean_dec(x_11); -if (x_12 == 0) +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) { -uint8_t x_13; -lean_dec(x_10); +uint8_t x_15; +lean_dec(x_12); lean_dec(x_1); -x_13 = !lean_is_exclusive(x_9); -if (x_13 == 0) +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) { -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_9, 0); -lean_dec(x_14); -x_15 = lean_box(1); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_15); -return x_9; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -lean_dec(x_9); +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_11, 0); +lean_dec(x_16); x_17 = lean_box(1); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; +lean_ctor_set_tag(x_11, 1); +lean_ctor_set(x_11, 0, x_17); +return x_11; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_dec(x_11); +x_19 = lean_box(1); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; } } else { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_9); -if (x_19 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_11); +if (x_21 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_9, 0); -lean_dec(x_20); -x_21 = lean_ctor_get(x_10, 0); -lean_inc(x_21); -lean_dec(x_10); -x_22 = l_Lean_nullKind; -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_21); -x_24 = l_Lean_Syntax_setArg(x_1, x_4, x_23); -lean_ctor_set(x_9, 0, x_24); -return x_9; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_11, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_12, 0); +lean_inc(x_23); +lean_dec(x_12); +x_24 = l_Lean_nullKind; +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Syntax_setArg(x_1, x_4, x_25); +lean_ctor_set(x_11, 0, x_26); +return x_11; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_25 = lean_ctor_get(x_9, 1); -lean_inc(x_25); -lean_dec(x_9); -x_26 = lean_ctor_get(x_10, 0); -lean_inc(x_26); -lean_dec(x_10); -x_27 = l_Lean_nullKind; -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Syntax_setArg(x_1, x_4, x_28); -x_30 = lean_alloc_ctor(0, 2, 0); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_ctor_get(x_11, 1); +lean_inc(x_27); +lean_dec(x_11); +x_28 = lean_ctor_get(x_12, 0); +lean_inc(x_28); +lean_dec(x_12); +x_29 = l_Lean_nullKind; +x_30 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_25); -return x_30; +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Lean_Syntax_setArg(x_1, x_4, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_27); +return x_32; } } } else { -uint8_t x_31; +uint8_t x_33; lean_dec(x_1); -x_31 = !lean_is_exclusive(x_9); -if (x_31 == 0) +x_33 = !lean_is_exclusive(x_11); +if (x_33 == 0) { -return x_9; +return x_11; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_9, 0); -x_33 = lean_ctor_get(x_9, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_9); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_11, 0); +x_35 = lean_ctor_get(x_11, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_11); +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* l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualElement___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_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___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_Lean_Elab_Command_expandMutualElement___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_2); lean_dec(x_2); +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualElement___spec__1(x_1, x_7, x_8, x_4, x_5, x_6); lean_dec(x_1); -return x_7; +return x_9; } } static lean_object* _init_l___regBuiltin_Lean_Elab_Command_expandMutualElement___closed__1() { @@ -4673,6 +11532,42 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_apply_2(x_3, x_7, x_8); +return x_9; +} +} +} +lean_object* l_Lean_Elab_Command_expandMutualPreamble_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandMutualPreamble_match__1___rarg), 3, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Elab_Command_expandMutualPreamble___closed__1() { _start: { @@ -4746,7 +11641,7 @@ x_5 = l_Lean_Syntax_getArg(x_1, x_4); x_6 = l_Lean_Syntax_getArgs(x_5); lean_dec(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l___private_Lean_Elab_Declaration_7__splitMutualPreamble___main(x_6, x_7); +x_8 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_splitMutualPreamble_loop(x_6, x_7); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; @@ -4852,16 +11747,16 @@ lean_object* l_Lean_Elab_Command_elabMutual(lean_object* x_1, lean_object* x_2, _start: { uint8_t x_5; -x_5 = l___private_Lean_Elab_Declaration_3__isMutualInductive(x_1); +x_5 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualInductive(x_1); if (x_5 == 0) { uint8_t x_6; -x_6 = l___private_Lean_Elab_Declaration_5__isMutualDef(x_1); +x_6 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualDef(x_1); if (x_6 == 0) { lean_object* x_7; lean_object* x_8; x_7 = l_Lean_Elab_Command_elabMutual___closed__3; -x_8 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_7, x_2, x_3, x_4); +x_8 = l_Lean_throwError___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__5___rarg(x_7, x_2, x_3, x_4); lean_dec(x_3); return x_8; } @@ -4883,7 +11778,7 @@ x_13 = lean_unsigned_to_nat(1u); x_14 = l_Lean_Syntax_getArg(x_1, x_13); x_15 = l_Lean_Syntax_getArgs(x_14); lean_dec(x_14); -x_16 = l___private_Lean_Elab_Declaration_4__elabMutualInductive(x_15, x_2, x_3, x_4); +x_16 = l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_elabMutualInductive(x_15, x_2, x_3, x_4); return x_16; } } @@ -4916,7 +11811,55 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +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_9, 0); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = lean_ctor_get(x_2, 2); +lean_inc(x_13); +x_14 = lean_ctor_get(x_2, 5); +lean_inc(x_14); +lean_dec(x_2); +x_15 = l_Lean_ResolveName_resolveGlobalName(x_12, x_13, x_14, x_1); +lean_dec(x_13); +lean_ctor_set(x_9, 0, x_15); +return x_9; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_2, 2); +lean_inc(x_19); +x_20 = lean_ctor_get(x_2, 5); +lean_inc(x_20); +lean_dec(x_2); +x_21 = l_Lean_ResolveName_resolveGlobalName(x_18, x_19, x_20, x_1); +lean_dec(x_19); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_17); +return x_22; +} +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___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_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -4932,15 +11875,15 @@ x_14 = l_Lean_throwUnknownConstant___rarg___closed__5; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_16 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_16; } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3(lean_object* x_1) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg___boxed), 8, 0); return x_2; } } @@ -4950,7 +11893,7 @@ _start: lean_object* x_9; uint8_t x_10; lean_inc(x_2); lean_inc(x_1); -x_9 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { @@ -4974,7 +11917,7 @@ else lean_object* x_17; uint8_t x_18; lean_dec(x_14); lean_free_object(x_9); -x_17 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_17 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12); x_18 = !lean_is_exclusive(x_17); if (x_18 == 0) { @@ -5021,7 +11964,7 @@ else { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_dec(x_25); -x_29 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +x_29 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_23); x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); @@ -5084,7 +12027,7 @@ x_24 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_24, 0, x_23); x_25 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_25, 0, x_24); -x_26 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_26 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_26; } else @@ -5151,7 +12094,7 @@ x_47 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_47, 0, x_46); x_48 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_48, 0, x_47); -x_49 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_49 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_34); return x_49; } } @@ -5182,7 +12125,7 @@ return x_53; } } } -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; @@ -5190,41 +12133,38 @@ x_11 = l_Lean_Elab_Term_applyAttributes(x_3, x_1, x_2, x_4, x_5, x_6, x_7, x_8, return x_11; } } -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5(uint8_t x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_3); -x_9 = lean_nat_dec_lt(x_4, x_8); -lean_dec(x_8); -if (x_9 == 0) +uint8_t x_10; +x_10 = x_5 < x_4; +if (x_10 == 0) { -lean_object* x_10; lean_object* x_11; -lean_dec(x_4); +lean_object* x_11; lean_dec(x_2); -x_10 = lean_box(0); x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_7); +lean_ctor_set(x_11, 0, x_6); +lean_ctor_set(x_11, 1, x_9); 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; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_12 = lean_array_fget(x_3, x_4); +lean_dec(x_6); +x_12 = lean_array_uget(x_3, x_5); x_13 = lean_box(0); x_14 = l_Lean_Syntax_getId(x_12); x_15 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Command_elabAttr___spec__1___boxed), 8, 1); lean_closure_set(x_15, 0, x_14); x_16 = lean_box(x_1); lean_inc(x_2); -x_17 = lean_alloc_closure((void*)(l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1___boxed), 10, 2); +x_17 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___lambda__1___boxed), 10, 2); lean_closure_set(x_17, 0, x_2); lean_closure_set(x_17, 1, x_16); x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 9, 2); lean_closure_set(x_18, 0, x_15); lean_closure_set(x_18, 1, x_17); -x_19 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); +x_19 = l_Lean_Elab_Command_getRef(x_7, x_8, x_9); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); @@ -5233,12 +12173,12 @@ lean_dec(x_19); x_22 = l_Lean_replaceRef(x_12, x_20); lean_dec(x_20); lean_dec(x_12); -x_23 = lean_ctor_get(x_5, 0); -x_24 = lean_ctor_get(x_5, 1); -x_25 = lean_ctor_get(x_5, 2); -x_26 = lean_ctor_get(x_5, 3); -x_27 = lean_ctor_get(x_5, 4); -x_28 = lean_ctor_get(x_5, 5); +x_23 = lean_ctor_get(x_7, 0); +x_24 = lean_ctor_get(x_7, 1); +x_25 = lean_ctor_get(x_7, 2); +x_26 = lean_ctor_get(x_7, 3); +x_27 = lean_ctor_get(x_7, 4); +x_28 = lean_ctor_get(x_7, 5); lean_inc(x_28); lean_inc(x_27); lean_inc(x_26); @@ -5253,42 +12193,42 @@ lean_ctor_set(x_29, 3, x_26); lean_ctor_set(x_29, 4, x_27); lean_ctor_set(x_29, 5, x_28); lean_ctor_set(x_29, 6, x_22); -x_30 = l_Lean_Elab_Command_liftTermElabM___rarg(x_13, x_18, x_29, x_6, x_21); +x_30 = l_Lean_Elab_Command_liftTermElabM___rarg(x_13, x_18, x_29, x_8, x_21); if (lean_obj_tag(x_30) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_object* x_31; size_t x_32; size_t x_33; lean_object* x_34; x_31 = lean_ctor_get(x_30, 1); lean_inc(x_31); lean_dec(x_30); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_4, x_32); -lean_dec(x_4); -x_4 = x_33; -x_7 = x_31; +x_32 = 1; +x_33 = x_5 + x_32; +x_34 = lean_box(0); +x_5 = x_33; +x_6 = x_34; +x_9 = x_31; goto _start; } else { -uint8_t x_35; -lean_dec(x_4); +uint8_t x_36; lean_dec(x_2); -x_35 = !lean_is_exclusive(x_30); -if (x_35 == 0) +x_36 = !lean_is_exclusive(x_30); +if (x_36 == 0) { return x_30; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_30, 0); -x_37 = lean_ctor_get(x_30, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_30, 0); +x_38 = lean_ctor_get(x_30, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); lean_dec(x_30); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } @@ -5305,11 +12245,11 @@ lean_dec(x_6); x_8 = lean_unsigned_to_nat(3u); x_9 = l_Lean_Syntax_getArg(x_1, x_8); lean_inc(x_2); -x_10 = l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(x_9, x_2, x_3, x_4); +x_10 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__3(x_9, x_2, x_3, x_4); lean_dec(x_9); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -5319,41 +12259,102 @@ x_13 = lean_unsigned_to_nat(5u); x_14 = l_Lean_Syntax_getArg(x_1, x_13); x_15 = l_Lean_Syntax_getArgs(x_14); lean_dec(x_14); -x_16 = l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4(x_7, x_11, x_15, x_5, x_2, x_3, x_12); +x_16 = lean_array_get_size(x_15); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +x_19 = lean_box(0); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5(x_7, x_11, x_15, x_17, x_18, x_19, x_2, x_3, x_12); lean_dec(x_2); lean_dec(x_15); -return x_16; +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +return x_20; } else { -uint8_t x_17; +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_20); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +return x_20; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_20); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +uint8_t x_29; lean_dec(x_2); -x_17 = !lean_is_exclusive(x_10); -if (x_17 == 0) +x_29 = !lean_is_exclusive(x_10); +if (x_29 == 0) { return x_10; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_10, 0); -x_19 = lean_ctor_get(x_10, 1); -lean_inc(x_19); -lean_inc(x_18); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_10, 0); +x_31 = lean_ctor_get(x_10, 1); +lean_inc(x_31); +lean_inc(x_30); lean_dec(x_10); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_18); -lean_ctor_set(x_20, 1, x_19); -return x_20; +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; } } } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___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* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabAttr___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___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_9; +x_9 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabAttr___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -5388,13 +12389,13 @@ lean_dec(x_3); return x_9; } } -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_2); lean_dec(x_2); -x_12 = l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___lambda__1(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___lambda__1(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -5402,17 +12403,21 @@ lean_dec(x_1); return x_12; } } -lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_1); +uint8_t x_10; size_t x_11; size_t x_12; lean_object* x_13; +x_10 = lean_unbox(x_1); lean_dec(x_1); -x_9 = l_Array_forMAux___main___at_Lean_Elab_Command_elabAttr___spec__4(x_8, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = lean_unbox_usize(x_5); lean_dec(x_5); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabAttr___spec__5(x_10, x_2, x_3, x_11, x_12, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_3); -return x_9; +return x_13; } } lean_object* l_Lean_Elab_Command_elabAttr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -6003,7 +13008,7 @@ lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_60); x_63 = l_Lean_Elab_Command_expandInitialize___closed__9; x_64 = lean_array_push(x_63, x_62); -x_65 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; +x_65 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; x_66 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_66, 0, x_65); lean_ctor_set(x_66, 1, x_64); @@ -6220,7 +13225,7 @@ x_191 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_191, 0, x_190); lean_ctor_set(x_191, 1, x_189); x_192 = lean_array_push(x_144, x_191); -x_193 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__2; +x_193 = l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10; x_194 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_194, 0, x_193); lean_ctor_set(x_194, 1, x_192); @@ -6330,18 +13335,18 @@ l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9 = _init_l_Lean_Elab_Comm lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__9); l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10 = _init_l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10(); lean_mark_persistent(l_Lean_Elab_Command_expandDeclNamespace_x3f___closed__10); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__2); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__3); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__4 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__4(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__4); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__5 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__5(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__5); -l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__6 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__6(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_1__inductiveSyntaxToView___spec__1___closed__6); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__3); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__4 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__4(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__4); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__5 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__5(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__5); +l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__6 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__6(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_Declaration_0__Lean_Elab_Command_inductiveSyntaxToView___spec__11___closed__6); l_Lean_Elab_Command_elabDeclaration___closed__1 = _init_l_Lean_Elab_Command_elabDeclaration___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabDeclaration___closed__1); l_Lean_Elab_Command_elabDeclaration___closed__2 = _init_l_Lean_Elab_Command_elabDeclaration___closed__2(); @@ -6357,14 +13362,14 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabDeclaration___closed__ res = l___regBuiltin_Lean_Elab_Command_elabDeclaration(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___closed__1 = _init_l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Declaration_6__isMutualPreambleCommand___closed__1); -l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1(); -lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1); -l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2(); -lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2); -l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3 = _init_l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3(); -lean_mark_persistent(l_Array_iterateMAux___main___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3); +l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__1 = _init_l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Declaration_0__Lean_Elab_Command_isMutualPreambleCommand___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_expandMutualNamespace___spec__1___closed__3); l_Lean_Elab_Command_expandMutualNamespace___closed__1 = _init_l_Lean_Elab_Command_expandMutualNamespace___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_expandMutualNamespace___closed__1); l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandMutualNamespace___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Import.c b/stage0/stdlib/Lean/Elab/Import.c index b56e7cfd00..5ee26ec674 100644 --- a/stage0/stdlib/Lean/Elab/Import.c +++ b/stage0/stdlib/Lean/Elab/Import.c @@ -13,43 +13,48 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* lean_string_push(lean_object*, uint32_t); lean_object* l_Lean_Parser_parseHeader(lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* l_List_map___main___at_Lean_Elab_headerToImports___spec__1(lean_object*); -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_headerToImports___closed__2; lean_object* l_Lean_Elab_headerToImports(lean_object*); +lean_object* l_List_forInAux___main___at_Lean_Elab_printDeps___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); +lean_object* l_Lean_Elab_parseImports_match__1(lean_object*); extern lean_object* l_String_splitAux___main___closed__1; +lean_object* l_IO_println___at_Lean_Elab_printDeps___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_headerToImports___closed__1; lean_object* l_Lean_Elab_headerToImports___boxed(lean_object*); lean_object* l_Lean_findOLean(lean_object*, lean_object*); lean_object* l_Lean_Elab_processHeader(lean_object*, lean_object*, lean_object*, uint32_t, lean_object*); lean_object* l_Lean_Elab_parseImports___closed__1; lean_object* l_Lean_MessageLog_toList(lean_object*); +lean_object* l_Lean_Elab_parseImports_match__1___rarg(lean_object*, lean_object*); +lean_object* l_IO_getStdout___at_Lean_Elab_printDeps___spec__3(lean_object*); lean_object* l_Lean_Elab_headerToImports___closed__3; -lean_object* l_IO_println___at_Lean_HasRepr_hasEval___spec__1(lean_object*, lean_object*); -lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_processHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_print_deps(lean_object*, lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_FileMap_ofString(lean_object*); -lean_object* l_List_forM___main___at_Lean_Elab_printDeps___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_mk_empty_environment(uint32_t, lean_object*); lean_object* lean_import_modules(lean_object*, uint32_t, lean_object*); -extern lean_object* l_Lean_Syntax_inhabited; lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +lean_object* l_List_forInAux___main___at_Lean_Elab_printDeps___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); +lean_object* lean_get_stdout(lean_object*); +lean_object* l_IO_print___at_Lean_Elab_printDeps___spec__2(lean_object*, lean_object*); lean_object* lean_parse_imports(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getPos(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_parseImports(lean_object*, lean_object*, lean_object*); -lean_object* l_List_forM___main___at_Lean_Elab_printDeps___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l_Lean_Syntax_asNode(lean_object*); +lean_object* l_Lean_Elab_parseImportsExport_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_parseImportsExport_match__1(lean_object*); extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__6; lean_object* l_List_map___main___at_Lean_Elab_headerToImports___spec__1(lean_object* x_1) { _start: @@ -66,7 +71,7 @@ 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; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(1u); @@ -74,71 +79,75 @@ x_7 = l_Lean_Syntax_getArg(x_4, x_6); x_8 = l_Lean_Syntax_isNone(x_7); lean_dec(x_7); x_9 = lean_unsigned_to_nat(2u); -x_10 = l_Lean_Syntax_getIdAt(x_4, x_9); +x_10 = l_Lean_Syntax_getArg(x_4, x_9); lean_dec(x_4); -x_11 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_5); +x_11 = l_Lean_Syntax_getId(x_10); +lean_dec(x_10); +x_12 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_5); if (x_8 == 0) { -uint8_t x_12; lean_object* x_13; -x_12 = 1; -x_13 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_13, 0, x_10); -lean_ctor_set_uint8(x_13, sizeof(void*)*1, x_12); -lean_ctor_set(x_1, 1, x_11); -lean_ctor_set(x_1, 0, x_13); +uint8_t x_13; lean_object* x_14; +x_13 = 1; +x_14 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_14, 0, x_11); +lean_ctor_set_uint8(x_14, sizeof(void*)*1, x_13); +lean_ctor_set(x_1, 1, x_12); +lean_ctor_set(x_1, 0, x_14); return x_1; } else { -uint8_t x_14; lean_object* x_15; -x_14 = 0; -x_15 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_15, 0, x_10); -lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_14); -lean_ctor_set(x_1, 1, x_11); -lean_ctor_set(x_1, 0, x_15); +uint8_t x_15; lean_object* x_16; +x_15 = 0; +x_16 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set_uint8(x_16, sizeof(void*)*1, x_15); +lean_ctor_set(x_1, 1, x_12); +lean_ctor_set(x_1, 0, x_16); return x_1; } } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_16 = lean_ctor_get(x_1, 0); -x_17 = lean_ctor_get(x_1, 1); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_17 = lean_ctor_get(x_1, 0); +x_18 = lean_ctor_get(x_1, 1); +lean_inc(x_18); lean_inc(x_17); -lean_inc(x_16); lean_dec(x_1); -x_18 = lean_unsigned_to_nat(1u); -x_19 = l_Lean_Syntax_getArg(x_16, x_18); -x_20 = l_Lean_Syntax_isNone(x_19); -lean_dec(x_19); -x_21 = lean_unsigned_to_nat(2u); -x_22 = l_Lean_Syntax_getIdAt(x_16, x_21); -lean_dec(x_16); -x_23 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_17); -if (x_20 == 0) +x_19 = lean_unsigned_to_nat(1u); +x_20 = l_Lean_Syntax_getArg(x_17, x_19); +x_21 = l_Lean_Syntax_isNone(x_20); +lean_dec(x_20); +x_22 = lean_unsigned_to_nat(2u); +x_23 = l_Lean_Syntax_getArg(x_17, x_22); +lean_dec(x_17); +x_24 = l_Lean_Syntax_getId(x_23); +lean_dec(x_23); +x_25 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_18); +if (x_21 == 0) { -uint8_t x_24; lean_object* x_25; lean_object* x_26; -x_24 = 1; -x_25 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set_uint8(x_25, sizeof(void*)*1, x_24); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_23); -return x_26; +uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_26 = 1; +x_27 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_26); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; } else { -uint8_t x_27; lean_object* x_28; lean_object* x_29; -x_27 = 0; -x_28 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_28, 0, x_22); -lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_23); -return x_29; +uint8_t x_29; lean_object* x_30; lean_object* x_31; +x_29 = 0; +x_30 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_30, 0, x_24); +lean_ctor_set_uint8(x_30, sizeof(void*)*1, x_29); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_25); +return x_31; } } } @@ -181,45 +190,31 @@ return x_3; lean_object* l_Lean_Elab_headerToImports(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_2 = l_Lean_Syntax_asNode(x_1); -x_3 = lean_ctor_get(x_2, 1); -lean_inc(x_3); -lean_dec(x_2); -x_4 = l_Lean_Syntax_inhabited; -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_array_get(x_4, x_3, x_5); -x_7 = l_Lean_Syntax_isNone(x_6); -lean_dec(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_8 = lean_box(0); -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_array_get(x_4, x_3, x_9); +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Syntax_getArg(x_1, x_2); +x_4 = l_Lean_Syntax_isNone(x_3); lean_dec(x_3); -x_11 = l_Lean_Syntax_getArgs(x_10); -lean_dec(x_10); -x_12 = l_Array_toList___rarg(x_11); -lean_dec(x_11); -x_13 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_12); -x_14 = l_List_append___rarg(x_8, x_13); -return x_14; +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Syntax_getArgs(x_6); +lean_dec(x_6); +x_8 = l_Array_toList___rarg(x_7); +lean_dec(x_7); +x_9 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_8); +if (x_4 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = l_List_append___rarg(x_10, x_9); +return x_11; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_array_get(x_4, x_3, x_15); -lean_dec(x_3); -x_17 = l_Lean_Syntax_getArgs(x_16); -lean_dec(x_16); -x_18 = l_Array_toList___rarg(x_17); -lean_dec(x_17); -x_19 = l_List_map___main___at_Lean_Elab_headerToImports___spec__1(x_18); -x_20 = l_Lean_Elab_headerToImports___closed__3; -x_21 = l_List_append___rarg(x_20, x_19); -return x_21; +lean_object* x_12; lean_object* x_13; +x_12 = l_Lean_Elab_headerToImports___closed__3; +x_13 = l_List_append___rarg(x_12, x_9); +return x_13; } } } @@ -451,6 +446,32 @@ lean_dec(x_1); return x_7; } } +lean_object* l_Lean_Elab_parseImports_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_parseImports_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_parseImports_match__1___rarg), 2, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Elab_parseImports___closed__1() { _start: { @@ -834,6 +855,32 @@ return x_111; } } } +lean_object* l_Lean_Elab_parseImportsExport_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = lean_apply_3(x_2, x_4, x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_parseImportsExport_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_parseImportsExport_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* lean_parse_imports(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -993,25 +1040,87 @@ return x_38; } } } -lean_object* l_List_forM___main___at_Lean_Elab_printDeps___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_IO_getStdout___at_Lean_Elab_printDeps___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_get_stdout(x_1); +return x_2; +} +} +lean_object* l_IO_print___at_Lean_Elab_printDeps___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_get_stdout(x_2); +if (lean_obj_tag(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_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +x_6 = lean_ctor_get(x_4, 5); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_apply_2(x_6, x_1, x_5); +return x_7; +} +else +{ +uint8_t x_8; +lean_dec(x_1); +x_8 = !lean_is_exclusive(x_3); +if (x_8 == 0) +{ +return x_3; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_3, 0); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); +lean_inc(x_9); +lean_dec(x_3); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set(x_11, 1, x_10); +return x_11; +} +} +} +} +lean_object* l_IO_println___at_Lean_Elab_printDeps___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint32_t x_3; lean_object* x_4; lean_object* x_5; +x_3 = 10; +x_4 = lean_string_push(x_1, x_3); +x_5 = l_IO_print___at_Lean_Elab_printDeps___spec__2(x_4, x_2); +return x_5; +} +} +lean_object* l_List_forInAux___main___at_Lean_Elab_printDeps___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_3; lean_object* x_4; -x_3 = lean_box(0); +lean_object* x_4; x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_3); -lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); return x_4; } else { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_2); x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); x_7 = lean_ctor_get(x_5, 0); -x_8 = l_Lean_findOLean(x_7, x_2); +x_8 = l_Lean_findOLean(x_7, x_3); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; @@ -1020,60 +1129,62 @@ lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); lean_dec(x_8); -x_11 = l_IO_println___at_Lean_HasRepr_hasEval___spec__1(x_9, x_10); +x_11 = l_IO_println___at_Lean_Elab_printDeps___spec__1(x_9, x_10); if (lean_obj_tag(x_11) == 0) { -lean_object* x_12; +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 = lean_box(0); x_1 = x_6; -x_2 = x_12; +x_2 = x_13; +x_3 = x_12; goto _start; } else { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_11); -if (x_14 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 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_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); 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; +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } } else { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_8); -if (x_18 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_8); +if (x_19 == 0) { return x_8; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_8, 0); -x_20 = lean_ctor_get(x_8, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_8, 0); +x_21 = lean_ctor_get(x_8, 1); +lean_inc(x_21); lean_inc(x_20); -lean_inc(x_19); lean_dec(x_8); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } @@ -1082,19 +1193,63 @@ return x_21; lean_object* lean_print_deps(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_List_forM___main___at_Lean_Elab_printDeps___spec__1(x_1, x_2); +lean_object* x_3; lean_object* x_4; +x_3 = lean_box(0); +x_4 = l_List_forInAux___main___at_Lean_Elab_printDeps___spec__4(x_1, x_3, x_2); lean_dec(x_1); -return x_3; +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +return x_4; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); +lean_inc(x_6); +lean_dec(x_4); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_6); +lean_ctor_set(x_8, 1, x_7); +return x_8; } } -lean_object* l_List_forM___main___at_Lean_Elab_printDeps___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) +{ +return x_4; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +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_forInAux___main___at_Lean_Elab_printDeps___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; -x_3 = l_List_forM___main___at_Lean_Elab_printDeps___spec__1(x_1, x_2); +lean_object* x_4; +x_4 = l_List_forInAux___main___at_Lean_Elab_printDeps___spec__4(x_1, x_2, x_3); lean_dec(x_1); -return x_3; +return x_4; } } lean_object* initialize_Init(lean_object*); diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index d8763bb869..dce785f110 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -33,6 +33,7 @@ lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkL lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1; lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__6; +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4; lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__2___lambda__1___closed__4; lean_object* l_Lean_mkSort(lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -65,6 +66,7 @@ extern lean_object* l_Lean_Elab_Attribute_inhabited; lean_object* l___private_Lean_Elab_Inductive_35__mkInductiveDecl___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_14__withInductiveLocalDecls___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashMap_inhabited___closed__1; +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Elab_Inductive_28__updateParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_InferType_22__isTypeFormerTypeImp___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -104,6 +106,7 @@ lean_object* l_List_mapM___main___at___private_Lean_Elab_Inductive_31__replaceIn lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); extern lean_object* l_Lean_Prod_hasQuote___rarg___closed__2; +lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1___closed__2; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_Inductive_24__traceIndTypes___spec__4___closed__1; @@ -167,7 +170,6 @@ lean_object* l___private_Lean_Elab_Inductive_13__withInductiveLocalDeclsAux___ma lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__5; lean_object* l___private_Lean_Elab_Inductive_20__collectUniversesFromCtorTypeAux___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -257,7 +259,6 @@ lean_object* l_Lean_Elab_Command_checkValidCtorModifier___closed__6; lean_object* l___private_Lean_Elab_Inductive_17__levelMVarToParamAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_forMAux___main___at___private_Lean_Elab_Inductive_16__elabCtors___spec__1___closed__4; lean_object* lean_mk_no_confusion(lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18; lean_object* l_Lean_Elab_Command_shouldInferResultUniverse___closed__5; lean_object* l___private_Lean_Meta_Basic_20__forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Lean_Ref___closed__2; @@ -367,6 +368,7 @@ lean_object* lean_mk_rec_on(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_3__checkUnsafe___spec__1___closed__2; lean_object* l_Lean_Expr_ReplaceLevelImpl_replaceUnsafeM___main___at___private_Lean_Elab_Inductive_23__updateResultingUniverse___spec__1(lean_object*, size_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Inductive_31__replaceIndFVarsWithConsts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__1; lean_object* l___private_Lean_Elab_Inductive_33__applyInferMod___boxed(lean_object*, lean_object*, lean_object*); @@ -2152,6 +2154,34 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } +static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("expected type"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} lean_object* l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -2187,7 +2217,7 @@ x_18 = l_Lean_MessageData_ofList___closed__3; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg___closed__18; +x_20 = l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -2337,7 +2367,7 @@ x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Inductive_9__checkParams lean_closure_set(x_11, 0, x_4); lean_closure_set(x_11, 1, x_5); x_12 = l_Array_empty___closed__1; -x_13 = l_Lean_Meta_forallTelescopeCompatibleAux___main___rarg(x_11, x_3, x_1, x_2, x_12, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg(x_11, x_3, x_1, x_2, x_12, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -14341,6 +14371,12 @@ l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__2); l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__3); +l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__4); +l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__5); +l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___lambda__1___closed__6); l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1(); lean_mark_persistent(l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__1); l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2 = _init_l___private_Lean_Elab_Inductive_9__checkParamsAndResultType___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/LetRec.c b/stage0/stdlib/Lean/Elab/LetRec.c index f4436af959..a7bd3ef30f 100644 --- a/stage0/stdlib/Lean/Elab/LetRec.c +++ b/stage0/stdlib/Lean/Elab/LetRec.c @@ -14,127 +14,600 @@ extern "C" { #endif lean_object* l_Lean_Elab_Term_elabLetRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_add(size_t, size_t); +lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Term_elabLetRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_1__mkLetRecDeclView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); +extern lean_object* l_Std_HashMap_inhabited___closed__1; +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10___rarg(lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__3; extern lean_object* l_Array_empty___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_throwAbort___rarg___closed__1; lean_object* lean_private_to_user_name(lean_object*); -extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; -lean_object* l___private_Lean_Elab_LetRec_5__abortIfContainsSyntheticSorry(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_6__registerLetRecsToLift___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___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_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_4__elabLetRecDeclValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_4__elabLetRecDeclValues___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_6__registerLetRecsToLift___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_USize_decLt(size_t, size_t); +lean_object* l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__2; +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop(lean_object*); lean_object* l_Lean_Elab_Term_elabLetRec___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_5__abortIfContainsSyntheticSorry___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_3__withAuxLocalDecls(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__1; +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__8(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_elabBinders___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___rarg(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; +lean_object* l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1___rarg(lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_4__elabLetRecDeclValues___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___closed__3; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_6__registerLetRecsToLift___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasSyntheticSorry___main(lean_object*); +lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__3; -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; extern lean_object* l_Lean_mkAppStx___closed__6; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_1__mkLetRecDeclView___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); +lean_object* l___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); extern lean_object* l_Lean_Elab_elabAttr___rarg___closed__3; +lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___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_Syntax_getNumArgs(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec(lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__3; -lean_object* l___private_Lean_Elab_LetRec_6__registerLetRecsToLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__2; extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__1___closed__3; -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__2; +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView_match__1(lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__4; -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__3; -lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___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* l_Array_toList___rarg(lean_object*); +lean_object* l_Lean_MetavarContext_MkBinding_mkBinding(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__1; -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main(lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__1; -lean_object* l___private_Lean_Elab_LetRec_3__withAuxLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux(lean_object*); -extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; +lean_object* l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_ensureAssignmentHasNoMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___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_elabAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2___rarg(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__2; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__2; +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__3; +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatch(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView_match__1___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = l_Lean_Syntax_isIdOrAtom_x3f(x_10); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_6); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_13 = lean_ctor_get(x_6, 3); +x_14 = l_Lean_replaceRef(x_10, x_13); +lean_dec(x_10); +x_15 = l_Lean_replaceRef(x_14, x_13); +lean_dec(x_14); +x_16 = l_Lean_replaceRef(x_15, x_13); +lean_dec(x_13); +lean_dec(x_15); +lean_ctor_set(x_6, 3, x_16); +x_17 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_18 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_6); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_23 = lean_ctor_get(x_6, 0); +x_24 = lean_ctor_get(x_6, 1); +x_25 = lean_ctor_get(x_6, 2); +x_26 = lean_ctor_get(x_6, 3); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_6); +x_27 = l_Lean_replaceRef(x_10, x_26); +lean_dec(x_10); +x_28 = l_Lean_replaceRef(x_27, x_26); +lean_dec(x_27); +x_29 = l_Lean_replaceRef(x_28, x_26); +lean_dec(x_26); +lean_dec(x_28); +x_30 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_30, 0, x_23); +lean_ctor_set(x_30, 1, x_24); +lean_ctor_set(x_30, 2, x_25); +lean_ctor_set(x_30, 3, x_29); +x_31 = l_Lean_Elab_elabAttr___rarg___closed__3; +x_32 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_31, x_2, x_3, x_4, x_5, x_30, x_7, x_8); +lean_dec(x_30); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_35 = x_32; +} else { + lean_dec_ref(x_32); + x_35 = lean_box(0); +} +if (lean_is_scalar(x_35)) { + x_36 = lean_alloc_ctor(1, 2, 0); +} else { + x_36 = x_35; +} +lean_ctor_set(x_36, 0, x_33); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +lean_dec(x_10); +x_37 = lean_ctor_get(x_11, 0); +lean_inc(x_37); +lean_dec(x_11); +x_38 = lean_box(0); +x_39 = lean_name_mk_string(x_38, x_37); +x_40 = lean_st_ref_get(x_7, x_8); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_40, 1); +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_Lean_isAttribute(x_44, x_39); +lean_dec(x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +lean_free_object(x_40); +x_46 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_46, 0, x_39); +x_47 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +x_49 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_43); +lean_dec(x_6); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +return x_51; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_51, 0); +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +lean_dec(x_6); +lean_dec(x_2); +x_56 = lean_unsigned_to_nat(1u); +x_57 = l_Lean_Syntax_getArg(x_1, x_56); +x_58 = l_Lean_Syntax_getNumArgs(x_57); +x_59 = lean_nat_dec_eq(x_58, x_9); +lean_dec(x_58); +if (x_59 == 0) +{ +lean_object* x_60; +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_39); +lean_ctor_set(x_60, 1, x_57); +lean_ctor_set(x_40, 0, x_60); +return x_40; +} +else +{ +lean_object* x_61; lean_object* x_62; +lean_dec(x_57); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_39); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_40, 0, x_62); +return x_40; +} +} +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_63 = lean_ctor_get(x_40, 0); +x_64 = lean_ctor_get(x_40, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_40); +x_65 = lean_ctor_get(x_63, 0); +lean_inc(x_65); +lean_dec(x_63); +x_66 = l_Lean_isAttribute(x_65, x_39); +lean_dec(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_67 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_67, 0, x_39); +x_68 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; +x_69 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +x_70 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_64); +lean_dec(x_6); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; +} else { + lean_dec_ref(x_72); + x_75 = lean_box(0); +} +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(1, 2, 0); +} else { + x_76 = x_75; +} +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; +lean_dec(x_6); +lean_dec(x_2); +x_77 = lean_unsigned_to_nat(1u); +x_78 = l_Lean_Syntax_getArg(x_1, x_77); +x_79 = l_Lean_Syntax_getNumArgs(x_78); +x_80 = lean_nat_dec_eq(x_79, x_9); +lean_dec(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_39); +lean_ctor_set(x_81, 1, x_78); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_64); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_78); +x_83 = lean_box(0); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_39); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_64); +return x_85; +} +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = x_3 < x_2; +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_9); +lean_dec(x_5); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_array_uget(x_1, x_3); +lean_inc(x_9); +lean_inc(x_5); +x_15 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3(x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_array_push(x_4, x_16); +x_19 = 1; +x_20 = x_3 + x_19; +x_3 = x_20; +x_4 = x_18; +x_11 = x_17; +goto _start; +} +else +{ +uint8_t x_22; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +x_22 = !lean_is_exclusive(x_15); +if (x_22 == 0) +{ +return x_15; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_15, 0); +x_24 = lean_ctor_get(x_15, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_15); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +} +} +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_9 = l_Lean_Syntax_getSepArgs(x_1); +x_10 = lean_array_get_size(x_9); +x_11 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_12 = 0; +x_13 = l_Array_empty___closed__1; +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4(x_9, x_11, x_12, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_9); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +return x_14; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_14); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +return x_14; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_14); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_unsigned_to_nat(1u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_10); +return x_11; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___rarg), 1, 0); +return x_7; +} +} +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; uint8_t x_10; @@ -202,7 +675,7 @@ x_25 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); -x_27 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_12); return x_27; } } @@ -222,7 +695,7 @@ x_31 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_33 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_12); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) { @@ -263,7 +736,7 @@ x_42 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_44 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_12); x_45 = !lean_is_exclusive(x_44); if (x_45 == 0) { @@ -300,7 +773,7 @@ x_53 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_54 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_54, 0, x_52); lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +x_55 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_12); x_56 = !lean_is_exclusive(x_55); if (x_56 == 0) { @@ -390,7 +863,7 @@ x_76 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_77 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_77, 0, x_75); lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_77, x_2, x_3, x_4, x_5, x_6, x_7, x_61); +x_78 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_77, x_2, x_3, x_4, x_5, x_6, x_7, x_61); return x_78; } } @@ -409,7 +882,7 @@ x_82 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_83 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_83, 0, x_81); lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_83, x_2, x_3, x_4, x_5, x_6, x_7, x_61); +x_84 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_83, x_2, x_3, x_4, x_5, x_6, x_7, x_61); x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); x_86 = lean_ctor_get(x_84, 1); @@ -451,7 +924,7 @@ x_93 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_94 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_94, 0, x_92); lean_ctor_set(x_94, 1, x_93); -x_95 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_94, x_2, x_3, x_4, x_5, x_6, x_7, x_61); +x_95 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_94, x_2, x_3, x_4, x_5, x_6, x_7, x_61); x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); x_97 = lean_ctor_get(x_95, 1); @@ -490,7 +963,7 @@ x_104 = l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__6; x_105 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_105, 0, x_103); lean_ctor_set(x_105, 1, x_104); -x_106 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_105, x_2, x_3, x_4, x_5, x_6, x_7, x_61); +x_106 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_105, x_2, x_3, x_4, x_5, x_6, x_7, x_61); x_107 = lean_ctor_get(x_106, 0); lean_inc(x_107); x_108 = lean_ctor_get(x_106, 1); @@ -516,7 +989,282 @@ return x_110; } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2___rarg(lean_object* x_1) { +lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; +x_10 = l_Array_isEmpty___rarg(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; +x_11 = lean_st_ref_get(x_6, x_9); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_get(x_8, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 2); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_5, 1); +lean_inc(x_19); +x_20 = l_Std_HashMap_inhabited___closed__1; +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_18); +lean_ctor_set(x_21, 2, x_20); +x_22 = 0; +x_23 = l_Lean_MetavarContext_MkBinding_mkBinding(x_22, x_19, x_1, x_2, x_22, x_22, x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +x_28 = lean_st_ref_take(x_8, x_17); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_32 = lean_ctor_get(x_29, 2); +lean_dec(x_32); +lean_ctor_set(x_29, 2, x_27); +x_33 = lean_st_ref_set(x_8, x_29, x_30); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = lean_ctor_get(x_25, 0); +lean_inc(x_35); +lean_dec(x_25); +x_36 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_35, x_5, x_6, x_7, x_8, x_34); +lean_dec(x_5); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_26); +return x_36; +} +else +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec(x_36); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_26); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_41 = lean_ctor_get(x_29, 0); +x_42 = lean_ctor_get(x_29, 1); +x_43 = lean_ctor_get(x_29, 3); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_29); +x_44 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +lean_ctor_set(x_44, 2, x_27); +lean_ctor_set(x_44, 3, x_43); +x_45 = lean_st_ref_set(x_8, x_44, x_30); +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_ctor_get(x_25, 0); +lean_inc(x_47); +lean_dec(x_25); +x_48 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_47, x_5, x_6, x_7, x_8, x_46); +lean_dec(x_5); +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_50 = x_48; +} else { + lean_dec_ref(x_48); + x_50 = lean_box(0); +} +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_50; +} +lean_ctor_set(x_51, 0, x_26); +lean_ctor_set(x_51, 1, x_49); +return x_51; +} +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_52 = lean_ctor_get(x_23, 1); +lean_inc(x_52); +lean_dec(x_23); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_53, x_5, x_6, x_7, x_8, x_17); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_ctor_get(x_52, 1); +lean_inc(x_56); +lean_dec(x_52); +x_57 = lean_st_ref_take(x_8, x_55); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = !lean_is_exclusive(x_58); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_61 = lean_ctor_get(x_58, 2); +lean_dec(x_61); +lean_ctor_set(x_58, 2, x_56); +x_62 = lean_st_ref_set(x_8, x_58, x_59); +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_65 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_64, x_5, x_6, x_7, x_8, x_63); +lean_dec(x_5); +return x_65; +} +else +{ +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; +x_66 = lean_ctor_get(x_58, 0); +x_67 = lean_ctor_get(x_58, 1); +x_68 = lean_ctor_get(x_58, 3); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_58); +x_69 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_69, 0, x_66); +lean_ctor_set(x_69, 1, x_67); +lean_ctor_set(x_69, 2, x_56); +lean_ctor_set(x_69, 3, x_68); +x_70 = lean_st_ref_set(x_8, x_69, x_59); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +lean_dec(x_70); +x_72 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_73 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_72, x_5, x_6, x_7, x_8, x_71); +lean_dec(x_5); +return x_73; +} +} +} +else +{ +lean_object* x_74; +lean_dec(x_5); +lean_dec(x_1); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_2); +lean_ctor_set(x_74, 1, x_9); +return x_74; +} +} +} +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__8(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_1, x_2, x_3, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_7); +if (x_10 == 0) +{ +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, 3); +x_12 = l_Lean_replaceRef(x_1, x_11); +x_13 = l_Lean_replaceRef(x_12, x_11); +lean_dec(x_12); +x_14 = l_Lean_replaceRef(x_13, x_11); +lean_dec(x_11); +lean_dec(x_13); +lean_ctor_set(x_7, 3, x_14); +x_15 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_16 = lean_ctor_get(x_7, 0); +x_17 = lean_ctor_get(x_7, 1); +x_18 = lean_ctor_get(x_7, 2); +x_19 = lean_ctor_get(x_7, 3); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_7); +x_20 = l_Lean_replaceRef(x_1, x_19); +x_21 = l_Lean_replaceRef(x_20, x_19); +lean_dec(x_20); +x_22 = l_Lean_replaceRef(x_21, x_19); +lean_dec(x_19); +lean_dec(x_21); +x_23 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_23, 0, x_16); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_23, x_8, x_9); +lean_dec(x_23); +return x_24; +} +} +} +lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg___boxed), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -527,380 +1275,15 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2___rarg), 1, 0); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10___rarg), 1, 0); return x_7; } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Lean_Syntax_getArg(x_1, x_9); -x_11 = l_Lean_Syntax_isIdOrAtom_x3f(x_10); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_6); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; -x_13 = lean_ctor_get(x_6, 3); -x_14 = l_Lean_replaceRef(x_10, x_13); -lean_dec(x_10); -x_15 = l_Lean_replaceRef(x_14, x_13); -lean_dec(x_14); -x_16 = l_Lean_replaceRef(x_15, x_13); -lean_dec(x_13); -lean_dec(x_15); -lean_ctor_set(x_6, 3, x_16); -x_17 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_18 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_6); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ -return x_18; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_18, 0); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_18); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_23 = lean_ctor_get(x_6, 0); -x_24 = lean_ctor_get(x_6, 1); -x_25 = lean_ctor_get(x_6, 2); -x_26 = lean_ctor_get(x_6, 3); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_6); -x_27 = l_Lean_replaceRef(x_10, x_26); -lean_dec(x_10); -x_28 = l_Lean_replaceRef(x_27, x_26); -lean_dec(x_27); -x_29 = l_Lean_replaceRef(x_28, x_26); -lean_dec(x_26); -lean_dec(x_28); -x_30 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_30, 0, x_23); -lean_ctor_set(x_30, 1, x_24); -lean_ctor_set(x_30, 2, x_25); -lean_ctor_set(x_30, 3, x_29); -x_31 = l_Lean_Elab_elabAttr___rarg___closed__3; -x_32 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_31, x_2, x_3, x_4, x_5, x_30, x_7, x_8); -lean_dec(x_30); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_35 = x_32; -} else { - lean_dec_ref(x_32); - x_35 = lean_box(0); -} -if (lean_is_scalar(x_35)) { - x_36 = lean_alloc_ctor(1, 2, 0); -} else { - x_36 = x_35; -} -lean_ctor_set(x_36, 0, x_33); -lean_ctor_set(x_36, 1, x_34); -return x_36; -} -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -lean_dec(x_10); -x_37 = lean_ctor_get(x_11, 0); -lean_inc(x_37); -lean_dec(x_11); -x_38 = lean_box(0); -x_39 = lean_name_mk_string(x_38, x_37); -x_40 = lean_st_ref_get(x_7, x_8); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -x_44 = lean_ctor_get(x_42, 0); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_isAttribute(x_44, x_39); -lean_dec(x_44); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -lean_free_object(x_40); -x_46 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_46, 0, x_39); -x_47 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; -x_48 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; -x_50 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_50, x_2, x_3, x_4, x_5, x_6, x_7, x_43); -lean_dec(x_6); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) -{ -return x_51; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_51, 0); -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_51); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; -lean_dec(x_6); -lean_dec(x_2); -x_56 = lean_unsigned_to_nat(1u); -x_57 = l_Lean_Syntax_getArg(x_1, x_56); -x_58 = l_Lean_Syntax_getNumArgs(x_57); -x_59 = lean_nat_dec_eq(x_58, x_9); -lean_dec(x_58); -if (x_59 == 0) -{ -lean_object* x_60; -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_39); -lean_ctor_set(x_60, 1, x_57); -lean_ctor_set(x_40, 0, x_60); -return x_40; -} -else -{ -lean_object* x_61; lean_object* x_62; -lean_dec(x_57); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_39); -lean_ctor_set(x_62, 1, x_61); -lean_ctor_set(x_40, 0, x_62); -return x_40; -} -} -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_63 = lean_ctor_get(x_40, 0); -x_64 = lean_ctor_get(x_40, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_40); -x_65 = lean_ctor_get(x_63, 0); -lean_inc(x_65); -lean_dec(x_63); -x_66 = l_Lean_isAttribute(x_65, x_39); -lean_dec(x_65); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_67 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_67, 0, x_39); -x_68 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; -x_69 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; -x_71 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_71, x_2, x_3, x_4, x_5, x_6, x_7, x_64); -lean_dec(x_6); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_75 = x_72; -} else { - lean_dec_ref(x_72); - x_75 = lean_box(0); -} -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); -} else { - x_76 = x_75; -} -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -lean_dec(x_6); -lean_dec(x_2); -x_77 = lean_unsigned_to_nat(1u); -x_78 = l_Lean_Syntax_getArg(x_1, x_77); -x_79 = l_Lean_Syntax_getNumArgs(x_78); -x_80 = lean_nat_dec_eq(x_79, x_9); -lean_dec(x_79); -if (x_80 == 0) -{ -lean_object* x_81; lean_object* x_82; -x_81 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_81, 0, x_39); -lean_ctor_set(x_81, 1, x_78); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_64); -return x_82; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_dec(x_78); -x_83 = lean_box(0); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_39); -lean_ctor_set(x_84, 1, x_83); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_64); -return x_85; -} -} -} -} -} -} -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_2); -x_13 = lean_nat_dec_lt(x_3, x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_3); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_4); -lean_ctor_set(x_14, 1, x_11); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_array_fget(x_2, x_3); -lean_inc(x_9); -lean_inc(x_5); -x_16 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__5(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_array_push(x_4, x_17); -x_20 = lean_nat_add(x_3, x_1); -lean_dec(x_3); -x_3 = x_20; -x_4 = x_19; -x_11 = x_18; -goto _start; -} -else -{ -uint8_t x_22; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_22 = !lean_is_exclusive(x_16); -if (x_22 == 0) -{ -return x_16; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_16, 0); -x_24 = lean_ctor_get(x_16, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_16); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; -} -} -} -} -} -lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = l_Lean_Syntax_getArgs(x_1); -x_10 = lean_unsigned_to_nat(2u); -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_empty___closed__1; -x_13 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__6(x_10, x_9, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_9); -return x_13; -} -} -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_unsigned_to_nat(1u); -x_10 = l_Lean_Syntax_getArg(x_1, x_9); -x_11 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__4(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_10); -return x_11; -} -} -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -908,27 +1291,27 @@ x_1 = lean_mk_string("failed to infer 'let rec' declaration type"); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__1; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__2; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; @@ -948,13 +1331,13 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__3; +x_13 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__3; x_14 = l_Lean_Elab_Term_registerCustomErrorIfMVar(x_11, x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_12); x_15 = lean_ctor_get(x_14, 1); lean_inc(x_15); lean_dec(x_14); lean_inc(x_2); -x_16 = l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_16 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1051,7 +1434,7 @@ return x_33; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__1() { _start: { lean_object* x_1; @@ -1059,27 +1442,27 @@ x_1 = lean_mk_string("patterns are not allowed in 'let rec' expressions"); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__1; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__2; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -1104,37 +1487,475 @@ return x_13; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_140; uint8_t x_141; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_25; lean_object* x_26; uint8_t x_27; x_14 = lean_array_fget(x_2, x_1); x_15 = lean_unsigned_to_nat(0u); x_16 = lean_array_fset(x_2, x_1, x_15); x_25 = x_14; -x_140 = l_Lean_Syntax_getArg(x_25, x_15); -x_141 = l_Lean_Syntax_isNone(x_140); -if (x_141 == 0) +x_26 = l_Lean_Syntax_getArg(x_25, x_15); +x_27 = l_Lean_Syntax_isNone(x_26); +if (x_27 == 0) { -lean_object* x_142; lean_object* x_143; -x_142 = l_Lean_Syntax_getArg(x_140, x_15); -lean_dec(x_140); +lean_object* x_28; lean_object* x_29; +x_28 = l_Lean_Syntax_getArg(x_26, x_15); +lean_dec(x_26); lean_inc(x_7); lean_inc(x_3); -x_143 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__3(x_142, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_142); -if (lean_obj_tag(x_143) == 0) +x_29 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__1(x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_28); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_144; lean_object* x_145; -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_26 = x_144; -x_27 = x_145; -goto block_139; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_unsigned_to_nat(1u); +x_33 = l_Lean_Syntax_getArg(x_25, x_32); +lean_dec(x_25); +x_34 = l_Lean_Syntax_getArg(x_33, x_15); +lean_dec(x_33); +x_35 = l_Lean_Elab_Term_elabLetDeclCore___closed__2; +lean_inc(x_34); +x_36 = l_Lean_Syntax_isOfKind(x_34, x_35); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; uint8_t x_39; +x_37 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; +lean_inc(x_34); +x_38 = l_Lean_Syntax_isOfKind(x_34, x_37); +if (x_38 == 0) +{ +lean_object* x_134; uint8_t x_135; +x_134 = l_Lean_Elab_Term_elabLetDeclCore___closed__4; +lean_inc(x_34); +x_135 = l_Lean_Syntax_isOfKind(x_34, x_134); +x_39 = x_135; +goto block_133; } else { -uint8_t x_146; +uint8_t x_136; +x_136 = 1; +x_39 = x_136; +goto block_133; +} +block_133: +{ +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_40 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___rarg(x_31); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +return x_40; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 0); +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_40); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +else +{ +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 = l_Lean_Syntax_getArg(x_34, x_15); +x_46 = l_Lean_Syntax_getId(x_45); +lean_dec(x_45); +x_47 = l_Lean_Elab_Term_getDeclName_x3f(x_3, x_4, x_5, x_6, x_7, x_8, x_31); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_131; +x_131 = lean_box(0); +x_50 = x_131; +goto block_130; +} +else +{ +lean_object* x_132; +x_132 = lean_ctor_get(x_48, 0); +lean_inc(x_132); +lean_dec(x_48); +x_50 = x_132; +goto block_130; +} +block_130: +{ +lean_object* x_51; lean_object* x_52; +lean_inc(x_46); +x_51 = l_Lean_Name_append___main(x_50, x_46); +lean_dec(x_50); +lean_inc(x_3); +lean_inc(x_51); +x_52 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6(x_51, x_3, x_4, x_5, x_6, x_7, x_8, x_49); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; uint8_t x_54; uint8_t x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = 2; +x_55 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_51); +x_56 = l_Lean_Elab_Term_applyAttributesAt(x_51, x_30, x_54, x_55, x_3, x_4, x_5, x_6, x_7, x_8, x_53); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_58 = l_Lean_Syntax_getArg(x_34, x_32); +x_59 = l_Lean_Syntax_getArgs(x_58); +lean_dec(x_58); +x_60 = lean_unsigned_to_nat(2u); +x_61 = l_Lean_Syntax_getArg(x_34, x_60); +x_62 = l_Lean_Elab_Term_expandOptType(x_34, x_61); +lean_dec(x_61); +x_63 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1), 9, 1); +lean_closure_set(x_63, 0, x_62); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_64 = l_Lean_Elab_Term_elabBinders___rarg(x_59, x_63, x_3, x_4, x_5, x_6, x_7, x_8, x_57); +lean_dec(x_59); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; 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; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_ctor_get(x_65, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_65, 1); +lean_inc(x_68); +lean_dec(x_65); +lean_inc(x_67); +x_69 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_69, 0, x_67); +x_70 = 2; +x_71 = lean_box(0); +lean_inc(x_5); +x_72 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_69, x_70, x_71, x_5, x_6, x_7, x_8, x_66); +if (x_38 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t 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; uint8_t x_101; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_unsigned_to_nat(3u); +x_76 = l_Lean_Syntax_getArg(x_34, x_75); +x_77 = lean_st_ref_get(x_8, x_74); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = lean_ctor_get(x_78, 0); +lean_inc(x_80); +lean_dec(x_78); +x_81 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_79); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec(x_81); +x_84 = lean_ctor_get(x_7, 1); +lean_inc(x_84); +x_85 = lean_ctor_get(x_7, 2); +lean_inc(x_85); +x_86 = lean_st_ref_get(x_8, x_83); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +lean_inc(x_80); +x_90 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_90, 0, x_80); +x_91 = x_90; +x_92 = lean_environment_main_module(x_80); +x_93 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +lean_ctor_set(x_93, 2, x_82); +lean_ctor_set(x_93, 3, x_84); +lean_ctor_set(x_93, 4, x_85); +x_94 = 0; +x_95 = l_Lean_Elab_Term_expandMatchAltsIntoMatch(x_34, x_76, x_94, x_93, x_89); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = lean_st_ref_take(x_8, x_88); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_101 = !lean_is_exclusive(x_99); +if (x_101 == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_102 = lean_ctor_get(x_99, 1); +lean_dec(x_102); +lean_ctor_set(x_99, 1, x_97); +x_103 = lean_st_ref_set(x_8, x_99, x_100); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +x_105 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_105, 0, x_34); +lean_ctor_set(x_105, 1, x_30); +lean_ctor_set(x_105, 2, x_46); +lean_ctor_set(x_105, 3, x_51); +lean_ctor_set(x_105, 4, x_68); +lean_ctor_set(x_105, 5, x_67); +lean_ctor_set(x_105, 6, x_73); +lean_ctor_set(x_105, 7, x_96); +x_17 = x_105; +x_18 = x_104; +goto block_24; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_106 = lean_ctor_get(x_99, 0); +x_107 = lean_ctor_get(x_99, 2); +x_108 = lean_ctor_get(x_99, 3); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_99); +x_109 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_109, 0, x_106); +lean_ctor_set(x_109, 1, x_97); +lean_ctor_set(x_109, 2, x_107); +lean_ctor_set(x_109, 3, x_108); +x_110 = lean_st_ref_set(x_8, x_109, x_100); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +lean_dec(x_110); +x_112 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_112, 0, x_34); +lean_ctor_set(x_112, 1, x_30); +lean_ctor_set(x_112, 2, x_46); +lean_ctor_set(x_112, 3, x_51); +lean_ctor_set(x_112, 4, x_68); +lean_ctor_set(x_112, 5, x_67); +lean_ctor_set(x_112, 6, x_73); +lean_ctor_set(x_112, 7, x_96); +x_17 = x_112; +x_18 = x_111; +goto block_24; +} +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_113 = lean_ctor_get(x_72, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_72, 1); +lean_inc(x_114); +lean_dec(x_72); +x_115 = lean_unsigned_to_nat(4u); +x_116 = l_Lean_Syntax_getArg(x_34, x_115); +x_117 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_117, 0, x_34); +lean_ctor_set(x_117, 1, x_30); +lean_ctor_set(x_117, 2, x_46); +lean_ctor_set(x_117, 3, x_51); +lean_ctor_set(x_117, 4, x_68); +lean_ctor_set(x_117, 5, x_67); +lean_ctor_set(x_117, 6, x_113); +lean_ctor_set(x_117, 7, x_116); +x_17 = x_117; +x_18 = x_114; +goto block_24; +} +} +else +{ +uint8_t x_118; +lean_dec(x_51); +lean_dec(x_46); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_118 = !lean_is_exclusive(x_64); +if (x_118 == 0) +{ +return x_64; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_64, 0); +x_120 = lean_ctor_get(x_64, 1); +lean_inc(x_120); +lean_inc(x_119); +lean_dec(x_64); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; +} +} +} +else +{ +uint8_t x_122; +lean_dec(x_51); +lean_dec(x_46); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_122 = !lean_is_exclusive(x_56); +if (x_122 == 0) +{ +return x_56; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_56, 0); +x_124 = lean_ctor_get(x_56, 1); +lean_inc(x_124); +lean_inc(x_123); +lean_dec(x_56); +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +return x_125; +} +} +} +else +{ +uint8_t x_126; +lean_dec(x_51); +lean_dec(x_46); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_126 = !lean_is_exclusive(x_52); +if (x_126 == 0) +{ +return x_52; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_52, 0); +x_128 = lean_ctor_get(x_52, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_52); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +return x_129; +} +} +} +} +} +} +else +{ +lean_object* x_137; lean_object* x_138; uint8_t x_139; +lean_dec(x_30); +lean_dec(x_16); +lean_dec(x_1); +x_137 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__3; +x_138 = l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg(x_34, x_137, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_34); +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) +{ +return x_138; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_138, 0); +x_141 = lean_ctor_get(x_138, 1); +lean_inc(x_141); +lean_inc(x_140); +lean_dec(x_138); +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +return x_142; +} +} +} +else +{ +uint8_t x_143; lean_dec(x_25); lean_dec(x_16); lean_dec(x_8); @@ -1144,34 +1965,467 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_146 = !lean_is_exclusive(x_143); -if (x_146 == 0) +x_143 = !lean_is_exclusive(x_29); +if (x_143 == 0) { -return x_143; +return x_29; } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_143, 0); -x_148 = lean_ctor_get(x_143, 1); -lean_inc(x_148); -lean_inc(x_147); -lean_dec(x_143); -x_149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -return x_149; +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_29, 0); +x_145 = lean_ctor_get(x_29, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_29); +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +return x_146; } } } else { -lean_object* x_150; -lean_dec(x_140); -x_150 = l_Array_empty___closed__1; -x_26 = x_150; -x_27 = x_9; -goto block_139; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; +lean_dec(x_26); +x_147 = lean_unsigned_to_nat(1u); +x_148 = l_Lean_Syntax_getArg(x_25, x_147); +lean_dec(x_25); +x_149 = l_Lean_Syntax_getArg(x_148, x_15); +lean_dec(x_148); +x_150 = l_Lean_Elab_Term_elabLetDeclCore___closed__2; +lean_inc(x_149); +x_151 = l_Lean_Syntax_isOfKind(x_149, x_150); +if (x_151 == 0) +{ +lean_object* x_152; uint8_t x_153; uint8_t x_154; +x_152 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; +lean_inc(x_149); +x_153 = l_Lean_Syntax_isOfKind(x_149, x_152); +if (x_153 == 0) +{ +lean_object* x_250; uint8_t x_251; +x_250 = l_Lean_Elab_Term_elabLetDeclCore___closed__4; +lean_inc(x_149); +x_251 = l_Lean_Syntax_isOfKind(x_149, x_250); +x_154 = x_251; +goto block_249; +} +else +{ +uint8_t x_252; +x_252 = 1; +x_154 = x_252; +goto block_249; +} +block_249: +{ +if (x_154 == 0) +{ +lean_object* x_155; uint8_t x_156; +lean_dec(x_149); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_155 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___rarg(x_9); +x_156 = !lean_is_exclusive(x_155); +if (x_156 == 0) +{ +return x_155; +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_155, 0); +x_158 = lean_ctor_get(x_155, 1); +lean_inc(x_158); +lean_inc(x_157); +lean_dec(x_155); +x_159 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set(x_159, 1, x_158); +return x_159; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_160 = l_Lean_Syntax_getArg(x_149, x_15); +x_161 = l_Lean_Syntax_getId(x_160); +lean_dec(x_160); +x_162 = l_Lean_Elab_Term_getDeclName_x3f(x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +lean_dec(x_162); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_247; +x_247 = lean_box(0); +x_165 = x_247; +goto block_246; +} +else +{ +lean_object* x_248; +x_248 = lean_ctor_get(x_163, 0); +lean_inc(x_248); +lean_dec(x_163); +x_165 = x_248; +goto block_246; +} +block_246: +{ +lean_object* x_166; lean_object* x_167; +lean_inc(x_161); +x_166 = l_Lean_Name_append___main(x_165, x_161); +lean_dec(x_165); +lean_inc(x_3); +lean_inc(x_166); +x_167 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6(x_166, x_3, x_4, x_5, x_6, x_7, x_8, x_164); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; uint8_t x_170; uint8_t x_171; lean_object* x_172; +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); +lean_dec(x_167); +x_169 = l_Array_empty___closed__1; +x_170 = 2; +x_171 = 1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_166); +x_172 = l_Lean_Elab_Term_applyAttributesAt(x_166, x_169, x_170, x_171, x_3, x_4, x_5, x_6, x_7, x_8, x_168); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +lean_dec(x_172); +x_174 = l_Lean_Syntax_getArg(x_149, x_147); +x_175 = l_Lean_Syntax_getArgs(x_174); +lean_dec(x_174); +x_176 = lean_unsigned_to_nat(2u); +x_177 = l_Lean_Syntax_getArg(x_149, x_176); +x_178 = l_Lean_Elab_Term_expandOptType(x_149, x_177); +lean_dec(x_177); +x_179 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1), 9, 1); +lean_closure_set(x_179, 0, x_178); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_180 = l_Lean_Elab_Term_elabBinders___rarg(x_175, x_179, x_3, x_4, x_5, x_6, x_7, x_8, x_173); +lean_dec(x_175); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +x_183 = lean_ctor_get(x_181, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_181, 1); +lean_inc(x_184); +lean_dec(x_181); +lean_inc(x_183); +x_185 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_185, 0, x_183); +x_186 = 2; +x_187 = lean_box(0); +lean_inc(x_5); +x_188 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_185, x_186, x_187, x_5, x_6, x_7, x_8, x_182); +if (x_153 == 0) +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_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; uint8_t x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +lean_dec(x_188); +x_191 = lean_unsigned_to_nat(3u); +x_192 = l_Lean_Syntax_getArg(x_149, x_191); +x_193 = lean_st_ref_get(x_8, x_190); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 1); +lean_inc(x_195); +lean_dec(x_193); +x_196 = lean_ctor_get(x_194, 0); +lean_inc(x_196); +lean_dec(x_194); +x_197 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_195); +x_198 = lean_ctor_get(x_197, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_197, 1); +lean_inc(x_199); +lean_dec(x_197); +x_200 = lean_ctor_get(x_7, 1); +lean_inc(x_200); +x_201 = lean_ctor_get(x_7, 2); +lean_inc(x_201); +x_202 = lean_st_ref_get(x_8, x_199); +x_203 = lean_ctor_get(x_202, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_202, 1); +lean_inc(x_204); +lean_dec(x_202); +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +lean_inc(x_196); +x_206 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_206, 0, x_196); +x_207 = x_206; +x_208 = lean_environment_main_module(x_196); +x_209 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +lean_ctor_set(x_209, 2, x_198); +lean_ctor_set(x_209, 3, x_200); +lean_ctor_set(x_209, 4, x_201); +x_210 = 0; +x_211 = l_Lean_Elab_Term_expandMatchAltsIntoMatch(x_149, x_192, x_210, x_209, x_205); +x_212 = lean_ctor_get(x_211, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_211, 1); +lean_inc(x_213); +lean_dec(x_211); +x_214 = lean_st_ref_take(x_8, x_204); +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec(x_214); +x_217 = !lean_is_exclusive(x_215); +if (x_217 == 0) +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_218 = lean_ctor_get(x_215, 1); +lean_dec(x_218); +lean_ctor_set(x_215, 1, x_213); +x_219 = lean_st_ref_set(x_8, x_215, x_216); +x_220 = lean_ctor_get(x_219, 1); +lean_inc(x_220); +lean_dec(x_219); +x_221 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_221, 0, x_149); +lean_ctor_set(x_221, 1, x_169); +lean_ctor_set(x_221, 2, x_161); +lean_ctor_set(x_221, 3, x_166); +lean_ctor_set(x_221, 4, x_184); +lean_ctor_set(x_221, 5, x_183); +lean_ctor_set(x_221, 6, x_189); +lean_ctor_set(x_221, 7, x_212); +x_17 = x_221; +x_18 = x_220; +goto block_24; +} +else +{ +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; +x_222 = lean_ctor_get(x_215, 0); +x_223 = lean_ctor_get(x_215, 2); +x_224 = lean_ctor_get(x_215, 3); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_215); +x_225 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_225, 0, x_222); +lean_ctor_set(x_225, 1, x_213); +lean_ctor_set(x_225, 2, x_223); +lean_ctor_set(x_225, 3, x_224); +x_226 = lean_st_ref_set(x_8, x_225, x_216); +x_227 = lean_ctor_get(x_226, 1); +lean_inc(x_227); +lean_dec(x_226); +x_228 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_228, 0, x_149); +lean_ctor_set(x_228, 1, x_169); +lean_ctor_set(x_228, 2, x_161); +lean_ctor_set(x_228, 3, x_166); +lean_ctor_set(x_228, 4, x_184); +lean_ctor_set(x_228, 5, x_183); +lean_ctor_set(x_228, 6, x_189); +lean_ctor_set(x_228, 7, x_212); +x_17 = x_228; +x_18 = x_227; +goto block_24; +} +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_229 = lean_ctor_get(x_188, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_188, 1); +lean_inc(x_230); +lean_dec(x_188); +x_231 = lean_unsigned_to_nat(4u); +x_232 = l_Lean_Syntax_getArg(x_149, x_231); +x_233 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_233, 0, x_149); +lean_ctor_set(x_233, 1, x_169); +lean_ctor_set(x_233, 2, x_161); +lean_ctor_set(x_233, 3, x_166); +lean_ctor_set(x_233, 4, x_184); +lean_ctor_set(x_233, 5, x_183); +lean_ctor_set(x_233, 6, x_229); +lean_ctor_set(x_233, 7, x_232); +x_17 = x_233; +x_18 = x_230; +goto block_24; +} +} +else +{ +uint8_t x_234; +lean_dec(x_166); +lean_dec(x_161); +lean_dec(x_149); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_234 = !lean_is_exclusive(x_180); +if (x_234 == 0) +{ +return x_180; +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_235 = lean_ctor_get(x_180, 0); +x_236 = lean_ctor_get(x_180, 1); +lean_inc(x_236); +lean_inc(x_235); +lean_dec(x_180); +x_237 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_237, 0, x_235); +lean_ctor_set(x_237, 1, x_236); +return x_237; +} +} +} +else +{ +uint8_t x_238; +lean_dec(x_166); +lean_dec(x_161); +lean_dec(x_149); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_238 = !lean_is_exclusive(x_172); +if (x_238 == 0) +{ +return x_172; +} +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_239 = lean_ctor_get(x_172, 0); +x_240 = lean_ctor_get(x_172, 1); +lean_inc(x_240); +lean_inc(x_239); +lean_dec(x_172); +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_239); +lean_ctor_set(x_241, 1, x_240); +return x_241; +} +} +} +else +{ +uint8_t x_242; +lean_dec(x_166); +lean_dec(x_161); +lean_dec(x_149); +lean_dec(x_16); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_242 = !lean_is_exclusive(x_167); +if (x_242 == 0) +{ +return x_167; +} +else +{ +lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_243 = lean_ctor_get(x_167, 0); +x_244 = lean_ctor_get(x_167, 1); +lean_inc(x_244); +lean_inc(x_243); +lean_dec(x_167); +x_245 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_245, 0, x_243); +lean_ctor_set(x_245, 1, x_244); +return x_245; +} +} +} +} +} +} +else +{ +lean_object* x_253; lean_object* x_254; uint8_t x_255; +lean_dec(x_16); +lean_dec(x_1); +x_253 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__3; +x_254 = l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg(x_149, x_253, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_149); +x_255 = !lean_is_exclusive(x_254); +if (x_255 == 0) +{ +return x_254; +} +else +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_256 = lean_ctor_get(x_254, 0); +x_257 = lean_ctor_get(x_254, 1); +lean_inc(x_257); +lean_inc(x_256); +lean_dec(x_254); +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_256); +lean_ctor_set(x_258, 1, x_257); +return x_258; +} +} } block_24: { @@ -1186,456 +2440,10 @@ x_2 = x_22; x_9 = x_18; goto _start; } -block_139: -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_28 = lean_unsigned_to_nat(1u); -x_29 = l_Lean_Syntax_getArg(x_25, x_28); -lean_dec(x_25); -x_30 = l_Lean_Syntax_getArg(x_29, x_15); -lean_dec(x_29); -x_31 = l_Lean_Elab_Term_elabLetDeclCore___closed__2; -lean_inc(x_30); -x_32 = l_Lean_Syntax_isOfKind(x_30, x_31); -if (x_32 == 0) -{ -lean_object* x_33; uint8_t x_34; lean_object* x_35; -x_33 = l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_464____closed__8; -lean_inc(x_30); -x_34 = l_Lean_Syntax_isOfKind(x_30, x_33); -if (x_34 == 0) -{ -lean_object* x_124; uint8_t x_125; -x_124 = l_Lean_Elab_Term_elabLetDeclCore___closed__4; -lean_inc(x_30); -x_125 = l_Lean_Syntax_isOfKind(x_30, x_124); -if (x_125 == 0) -{ -lean_object* x_126; uint8_t x_127; -lean_dec(x_30); -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_126 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2___rarg(x_27); -x_127 = !lean_is_exclusive(x_126); -if (x_127 == 0) -{ -return x_126; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_126, 0); -x_129 = lean_ctor_get(x_126, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_126); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; -} -} -else -{ -lean_object* x_131; -x_131 = lean_box(0); -x_35 = x_131; -goto block_123; -} -} -else -{ -lean_object* x_132; -x_132 = lean_box(0); -x_35 = x_132; -goto block_123; -} -block_123: -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_35); -x_36 = l_Lean_Syntax_getIdAt(x_30, x_15); -x_37 = l_Lean_Elab_Term_getDeclName_x3f(x_3, x_4, x_5, x_6, x_7, x_8, x_27); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_121; -x_121 = lean_box(0); -x_40 = x_121; -goto block_120; -} -else -{ -lean_object* x_122; -x_122 = lean_ctor_get(x_38, 0); -lean_inc(x_122); -lean_dec(x_38); -x_40 = x_122; -goto block_120; -} -block_120: -{ -lean_object* x_41; lean_object* x_42; -lean_inc(x_36); -x_41 = l_Lean_Name_append___main(x_40, x_36); -lean_dec(x_40); -lean_inc(x_3); -lean_inc(x_41); -x_42 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__1(x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_39); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = 2; -x_45 = 1; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_3); -lean_inc(x_41); -x_46 = l_Lean_Elab_Term_applyAttributesAt(x_41, x_26, x_44, x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_43); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -x_48 = l_Lean_Syntax_getArg(x_30, x_28); -x_49 = l_Lean_Syntax_getArgs(x_48); -lean_dec(x_48); -x_50 = lean_unsigned_to_nat(2u); -x_51 = l_Lean_Syntax_getArg(x_30, x_50); -x_52 = l_Lean_Elab_Term_expandOptType(x_30, x_51); -lean_dec(x_51); -x_53 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1), 9, 1); -lean_closure_set(x_53, 0, x_52); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_54 = l_Lean_Elab_Term_elabBinders___rarg(x_49, x_53, x_3, x_4, x_5, x_6, x_7, x_8, x_47); -lean_dec(x_49); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -lean_dec(x_55); -lean_inc(x_57); -x_59 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_59, 0, x_57); -x_60 = 2; -x_61 = lean_box(0); -lean_inc(x_5); -x_62 = l___private_Lean_Meta_Basic_4__mkFreshExprMVarImpl(x_59, x_60, x_61, x_5, x_6, x_7, x_8, x_56); -if (x_34 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_unsigned_to_nat(3u); -x_66 = l_Lean_Syntax_getArg(x_30, x_65); -x_67 = lean_st_ref_get(x_8, x_64); -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 = lean_ctor_get(x_68, 0); -lean_inc(x_70); -lean_dec(x_68); -x_71 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_69); -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_74 = lean_ctor_get(x_7, 1); -lean_inc(x_74); -x_75 = lean_ctor_get(x_7, 2); -lean_inc(x_75); -x_76 = lean_st_ref_get(x_8, x_73); -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_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -lean_inc(x_70); -x_80 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_80, 0, x_70); -x_81 = x_80; -x_82 = lean_environment_main_module(x_70); -x_83 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -lean_ctor_set(x_83, 2, x_72); -lean_ctor_set(x_83, 3, x_74); -lean_ctor_set(x_83, 4, x_75); -x_84 = 0; -x_85 = l_Lean_Elab_Term_expandMatchAltsIntoMatch(x_30, x_66, x_84, x_83, x_79); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_st_ref_take(x_8, x_78); -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -x_91 = !lean_is_exclusive(x_89); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_92 = lean_ctor_get(x_89, 1); -lean_dec(x_92); -lean_ctor_set(x_89, 1, x_87); -x_93 = lean_st_ref_set(x_8, x_89, x_90); -x_94 = lean_ctor_get(x_93, 1); -lean_inc(x_94); -lean_dec(x_93); -x_95 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_95, 0, x_30); -lean_ctor_set(x_95, 1, x_26); -lean_ctor_set(x_95, 2, x_36); -lean_ctor_set(x_95, 3, x_41); -lean_ctor_set(x_95, 4, x_58); -lean_ctor_set(x_95, 5, x_57); -lean_ctor_set(x_95, 6, x_63); -lean_ctor_set(x_95, 7, x_86); -x_17 = x_95; -x_18 = x_94; -goto block_24; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_96 = lean_ctor_get(x_89, 0); -x_97 = lean_ctor_get(x_89, 2); -x_98 = lean_ctor_get(x_89, 3); -lean_inc(x_98); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_89); -x_99 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_99, 0, x_96); -lean_ctor_set(x_99, 1, x_87); -lean_ctor_set(x_99, 2, x_97); -lean_ctor_set(x_99, 3, x_98); -x_100 = lean_st_ref_set(x_8, x_99, x_90); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); -x_102 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_102, 0, x_30); -lean_ctor_set(x_102, 1, x_26); -lean_ctor_set(x_102, 2, x_36); -lean_ctor_set(x_102, 3, x_41); -lean_ctor_set(x_102, 4, x_58); -lean_ctor_set(x_102, 5, x_57); -lean_ctor_set(x_102, 6, x_63); -lean_ctor_set(x_102, 7, x_86); -x_17 = x_102; -x_18 = x_101; -goto block_24; -} -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_103 = lean_ctor_get(x_62, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_62, 1); -lean_inc(x_104); -lean_dec(x_62); -x_105 = lean_unsigned_to_nat(4u); -x_106 = l_Lean_Syntax_getArg(x_30, x_105); -x_107 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_107, 0, x_30); -lean_ctor_set(x_107, 1, x_26); -lean_ctor_set(x_107, 2, x_36); -lean_ctor_set(x_107, 3, x_41); -lean_ctor_set(x_107, 4, x_58); -lean_ctor_set(x_107, 5, x_57); -lean_ctor_set(x_107, 6, x_103); -lean_ctor_set(x_107, 7, x_106); -x_17 = x_107; -x_18 = x_104; -goto block_24; -} -} -else -{ -uint8_t x_108; -lean_dec(x_41); -lean_dec(x_36); -lean_dec(x_30); -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_108 = !lean_is_exclusive(x_54); -if (x_108 == 0) -{ -return x_54; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_54, 0); -x_110 = lean_ctor_get(x_54, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_54); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; } } } -else -{ -uint8_t x_112; -lean_dec(x_41); -lean_dec(x_36); -lean_dec(x_30); -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_112 = !lean_is_exclusive(x_46); -if (x_112 == 0) -{ -return x_46; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_46, 0); -x_114 = lean_ctor_get(x_46, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_46); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -} -else -{ -uint8_t x_116; -lean_dec(x_41); -lean_dec(x_36); -lean_dec(x_30); -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_116 = !lean_is_exclusive(x_42); -if (x_116 == 0) -{ -return x_42; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_42, 0); -x_118 = lean_ctor_get(x_42, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_42); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; -} -} -} -} -} -else -{ -lean_object* x_133; lean_object* x_134; uint8_t x_135; -lean_dec(x_26); -lean_dec(x_16); -lean_dec(x_1); -x_133 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__3; -x_134 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_30, x_133, x_3, x_4, x_5, x_6, x_7, x_8, x_27); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_30); -x_135 = !lean_is_exclusive(x_134); -if (x_135 == 0) -{ -return x_134; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_134, 0); -x_137 = lean_ctor_get(x_134, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_134); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -return x_138; -} -} -} -} -} -} -lean_object* l___private_Lean_Elab_LetRec_1__mkLetRecDeclView(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -1645,7 +2453,7 @@ x_11 = l_Lean_Syntax_getSepArgs(x_10); lean_dec(x_10); x_12 = x_11; x_13 = lean_unsigned_to_nat(0u); -x_14 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7), 9, 2); +x_14 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11), 9, 2); lean_closure_set(x_14, 0, x_13); lean_closure_set(x_14, 1, x_12); x_15 = x_14; @@ -1709,24 +2517,67 @@ return x_31; } } } -lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_1); return x_9; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___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) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_14; +} +} +lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__5(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -1736,80 +2587,95 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); return x_9; } } -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_12; -x_12 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); +lean_object* x_10; +x_10 = l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_2); lean_dec(x_2); -lean_dec(x_1); +x_12 = l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__8(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); return x_12; } } -lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___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* l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; -x_9 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); +lean_object* x_10; +x_10 = l_Lean_throwErrorAt___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__10(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -return x_9; +return x_7; } } -lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); +x_9 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_1); return x_9; } } -lean_object* l___private_Lean_Elab_LetRec_1__mkLetRecDeclView___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lean_Elab_LetRec_1__mkLetRecDeclView(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_1); -return x_9; -} -} -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_unsigned_to_nat(1u); x_14 = lean_nat_add(x_1, x_13); x_15 = lean_array_push(x_2, x_5); -x_16 = l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg(x_3, x_4, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_16 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg(x_3, x_4, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12); return x_16; } } -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -1835,7 +2701,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_15, 6); lean_inc(x_18); lean_dec(x_15); -x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg___lambda__1___boxed), 12, 4); +x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg___lambda__1___boxed), 12, 4); lean_closure_set(x_19, 0, x_3); lean_closure_set(x_19, 1, x_4); lean_closure_set(x_19, 2, x_1); @@ -1845,58 +2711,316 @@ return x_20; } } } -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg), 11, 0); return x_2; } } -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_1); return x_13; } } -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_12; -} -} -lean_object* l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___rarg), 11, 0); -return x_2; -} -} -lean_object* l___private_Lean_Elab_LetRec_3__withAuxLocalDecls___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___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_unsigned_to_nat(0u); x_11 = l_Array_empty___closed__1; -x_12 = l___private_Lean_Elab_LetRec_2__withAuxLocalDeclsAux___main___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop___rarg(x_1, x_2, x_10, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9); return x_12; } } -lean_object* l___private_Lean_Elab_LetRec_3__withAuxLocalDecls(lean_object* x_1) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_3__withAuxLocalDecls___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls___rarg), 9, 0); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_4__elabLetRecDeclValues___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = l_Array_isEmpty___rarg(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; +x_11 = lean_st_ref_get(x_6, x_9); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_st_ref_get(x_8, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 2); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_ctor_get(x_5, 1); +lean_inc(x_19); +x_20 = l_Std_HashMap_inhabited___closed__1; +x_21 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_21, 0, x_14); +lean_ctor_set(x_21, 1, x_18); +lean_ctor_set(x_21, 2, x_20); +x_22 = 1; +x_23 = 0; +x_24 = l_Lean_MetavarContext_MkBinding_mkBinding(x_22, x_19, x_1, x_2, x_23, x_23, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +x_29 = lean_st_ref_take(x_8, x_17); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = !lean_is_exclusive(x_30); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_33 = lean_ctor_get(x_30, 2); +lean_dec(x_33); +lean_ctor_set(x_30, 2, x_28); +x_34 = lean_st_ref_set(x_8, x_30, x_31); +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +lean_dec(x_34); +x_36 = lean_ctor_get(x_26, 0); +lean_inc(x_36); +lean_dec(x_26); +x_37 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_36, x_5, x_6, x_7, x_8, x_35); +lean_dec(x_5); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_37, 0); +lean_dec(x_39); +lean_ctor_set(x_37, 0, x_27); +return x_37; +} +else +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_27); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_42 = lean_ctor_get(x_30, 0); +x_43 = lean_ctor_get(x_30, 1); +x_44 = lean_ctor_get(x_30, 3); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_30); +x_45 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_45, 0, x_42); +lean_ctor_set(x_45, 1, x_43); +lean_ctor_set(x_45, 2, x_28); +lean_ctor_set(x_45, 3, x_44); +x_46 = lean_st_ref_set(x_8, x_45, x_31); +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec(x_46); +x_48 = lean_ctor_get(x_26, 0); +lean_inc(x_48); +lean_dec(x_26); +x_49 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_48, x_5, x_6, x_7, x_8, x_47); +lean_dec(x_5); +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_51 = x_49; +} else { + lean_dec_ref(x_49); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_27); +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; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_53 = lean_ctor_get(x_24, 1); +lean_inc(x_53); +lean_dec(x_24); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = l_Lean_Meta_setMCtx___at___private_Lean_Meta_Basic_6__liftMkBindingM___spec__1(x_54, x_5, x_6, x_7, x_8, x_17); +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec(x_55); +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +lean_dec(x_53); +x_58 = lean_st_ref_take(x_8, x_56); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = !lean_is_exclusive(x_59); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_59, 2); +lean_dec(x_62); +lean_ctor_set(x_59, 2, x_57); +x_63 = lean_st_ref_set(x_8, x_59, x_60); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); +x_65 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_66 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_65, x_5, x_6, x_7, x_8, x_64); +lean_dec(x_5); +return x_66; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_67 = lean_ctor_get(x_59, 0); +x_68 = lean_ctor_get(x_59, 1); +x_69 = lean_ctor_get(x_59, 3); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_59); +x_70 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set(x_70, 2, x_57); +lean_ctor_set(x_70, 3, x_69); +x_71 = lean_st_ref_set(x_8, x_70, x_60); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = l___private_Lean_Meta_Basic_6__liftMkBindingM___rarg___closed__3; +x_74 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_73, x_5, x_6, x_7, x_8, x_72); +lean_dec(x_5); +return x_74; +} +} +} +else +{ +lean_object* x_75; +lean_dec(x_5); +lean_dec(x_1); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_2); +lean_ctor_set(x_75, 1, x_9); +return x_75; +} +} +} +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg___lambda__1), 10, 3); +lean_closure_set(x_11, 0, x_3); +lean_closure_set(x_11, 1, x_4); +lean_closure_set(x_11, 2, x_5); +x_12 = l___private_Lean_Meta_Basic_21__forallBoundedTelescopeImp___rarg(x_1, x_2, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +return x_12; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__2___rarg), 10, 0); +return x_2; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -1915,7 +3039,7 @@ lean_closure_set(x_17, 0, x_12); lean_closure_set(x_17, 1, x_13); lean_closure_set(x_17, 2, x_16); lean_closure_set(x_17, 3, x_14); -x_18 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1___boxed), 9, 1); +x_18 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__1___boxed), 9, 1); lean_closure_set(x_18, 0, x_2); x_19 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_monadLog___spec__2___rarg), 9, 2); lean_closure_set(x_19, 0, x_17); @@ -1924,7 +3048,7 @@ x_20 = l_Lean_Elab_Term_withDeclName___rarg(x_11, x_19, x_4, x_5, x_6, x_7, x_8, return x_20; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_4__elabLetRecDeclValues___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -1960,7 +3084,7 @@ x_19 = lean_ctor_get(x_17, 4); lean_inc(x_19); x_20 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_20, 0, x_19); -x_21 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_4__elabLetRecDeclValues___spec__1___lambda__1), 10, 1); +x_21 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__3___lambda__1), 10, 1); lean_closure_set(x_21, 0, x_17); lean_inc(x_8); lean_inc(x_7); @@ -1968,7 +3092,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_22 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(x_18, x_20, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_22 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__2___rarg(x_18, x_20, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -2020,7 +3144,7 @@ return x_33; } } } -lean_object* l___private_Lean_Elab_LetRec_4__elabLetRecDeclValues(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; @@ -2029,7 +3153,7 @@ lean_inc(x_9); lean_dec(x_1); x_10 = x_9; x_11 = lean_unsigned_to_nat(0u); -x_12 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_4__elabLetRecDeclValues___spec__1), 9, 2); +x_12 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__3), 9, 2); lean_closure_set(x_12, 0, x_11); lean_closure_set(x_12, 1, x_10); x_13 = x_12; @@ -2037,11 +3161,43 @@ x_14 = lean_apply_7(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_14; } } -lean_object* l___private_Lean_Elab_LetRec_5__abortIfContainsSyntheticSorry(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +lean_object* l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwAbort___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___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; +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1___rarg), 1, 0); +return x_7; +} +} +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; uint8_t x_10; -x_9 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Meta_instantiateMVars___at_Lean_Elab_Term_ensureAssignmentHasNoMVars___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { @@ -2061,7 +3217,7 @@ else { lean_object* x_15; lean_free_object(x_9); -x_15 = l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(x_12); +x_15 = l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1___rarg(x_12); return x_15; } } @@ -2087,17 +3243,31 @@ return x_20; else { lean_object* x_21; -x_21 = l_Lean_Elab_throwAbort___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__2___rarg(x_17); +x_21 = l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1___rarg(x_17); return x_21; } } } } -lean_object* l___private_Lean_Elab_LetRec_5__abortIfContainsSyntheticSorry___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_throwAbort___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Elab_LetRec_5__abortIfContainsSyntheticSorry(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_abortIfContainsSyntheticSorry(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -2107,7 +3277,27 @@ lean_dec(x_2); return x_9; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_6__registerLetRecsToLift___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_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_5); +return x_7; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___rarg___boxed), 5, 0); +return x_3; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -2174,13 +3364,13 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_LetRec_6__registerLetRecsToLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_11 = lean_ctor_get(x_6, 1); lean_inc(x_11); -x_12 = l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_elabBinders___spec__1___rarg(x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___rarg(x_6, x_7, x_8, x_9, x_10); lean_dec(x_6); x_13 = lean_ctor_get(x_12, 0); lean_inc(x_13); @@ -2189,7 +3379,7 @@ lean_inc(x_14); lean_dec(x_12); x_15 = x_1; x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_6__registerLetRecsToLift___spec__1(x_2, x_3, x_11, x_13, x_16, x_15); +x_17 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2(x_2, x_3, x_11, x_13, x_16, x_15); x_18 = x_17; x_19 = lean_st_ref_take(x_5, x_14); x_20 = lean_ctor_get(x_19, 0); @@ -2273,21 +3463,43 @@ return x_44; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_6__registerLetRecsToLift___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_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___rarg(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); +return x_6; +} +} +lean_object* l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Meta_getLocalInstances___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_6__registerLetRecsToLift___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); lean_dec(x_1); return x_7; } } -lean_object* l___private_Lean_Elab_LetRec_6__registerLetRecsToLift___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Lean_Elab_LetRec_6__registerLetRecsToLift(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2309,7 +3521,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_1); -x_12 = l___private_Lean_Elab_LetRec_4__elabLetRecDeclValues(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; @@ -2339,12 +3551,12 @@ x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); lean_inc(x_7); -x_21 = l___private_Lean_Elab_LetRec_6__registerLetRecsToLift(x_3, x_4, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_20); +x_21 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift(x_3, x_4, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_20); lean_dec(x_13); x_22 = lean_ctor_get(x_21, 1); lean_inc(x_22); lean_dec(x_21); -x_23 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(x_4, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_22); +x_23 = l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues___spec__1(x_4, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_22); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -2428,7 +3640,7 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_10 = l___private_Lean_Elab_LetRec_1__mkLetRecDeclView(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -2444,7 +3656,7 @@ x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabLetRec___lambda__1), 11, lean_closure_set(x_14, 0, x_11); lean_closure_set(x_14, 1, x_2); lean_closure_set(x_14, 2, x_13); -x_15 = l___private_Lean_Elab_LetRec_3__withAuxLocalDecls___rarg(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +x_15 = l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls___rarg(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_12); return x_15; } else @@ -2549,18 +3761,18 @@ lean_dec_ref(res); res = initialize_Lean_Elab_SyntheticMVars(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__2); -l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___lambda__1___closed__3); -l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__2); -l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_1__mkLetRecDeclView___spec__7___closed__3); +l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___lambda__1___closed__3); +l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__11___closed__3); l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__1); l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__2 = _init_l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 38d24811c1..90c718bdf2 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -22,6 +22,7 @@ lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_20__checkLetR lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_Elab_logTrace___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_add(size_t, size_t); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -74,6 +75,7 @@ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___sp lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__22; lean_object* l_Lean_Meta_findLocalDecl_x3f___at___private_Lean_Elab_MutualDef_19__getFunName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___closed__3; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Meta_resetZetaFVarIds___at_Lean_Elab_Term_MutualClosure_main___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -90,7 +92,6 @@ lean_object* l___private_Lean_Elab_MutualDef_27__merge(lean_object*, lean_object lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_get_x21(lean_object*, lean_object*); lean_object* lean_private_to_user_name(lean_object*); -extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_reverseAux___main___rarg(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -125,7 +126,6 @@ lean_object* l_Lean_Elab_mkDeclName___at___private_Lean_Elab_MutualDef_6__elabHe extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_Elab_Term_MutualClosure_main(lean_object*, 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_Nat_foldAux___main___at_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_indexOfAux___main___at_Lean_LocalContext_erase___spec__3(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_10__elabFunValues___spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -138,6 +138,7 @@ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___sp uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isExample(uint8_t); lean_object* l_Lean_Elab_Term_MutualClosure_insertReplacementForMainFns___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Meta_getZetaFVarIds___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_MutualDef_11__collectUsed___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__2; @@ -236,6 +237,7 @@ uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getModifie lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_mkDefViewOfConstant___closed__8; lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__5; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_29__fixpoint(lean_object*); lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_37__mkLetRecClosureFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -319,6 +321,7 @@ uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Lean_Elab_MutualDef_28__updateUsedVarsOf(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__5; lean_object* l_Lean_Elab_log___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_usize_of_nat(lean_object*); lean_object* l_Nat_foldMAux___main___at_Lean_Elab_Term_MutualClosure_pushMain___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceFVarIdAtLocalDecl(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_DefKind_isTheorem(uint8_t); @@ -377,6 +380,7 @@ lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_obj lean_object* l___private_Lean_Elab_MutualDef_1__checkModifiers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_21__mkInitialUsedFVarsMap___spec__3___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_index(lean_object*); +lean_object* l_Lean_Syntax_getSepArgs(lean_object*); uint8_t l_Lean_isAttribute(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_5__elabFunType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_erase___at___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___spec__1___boxed(lean_object*, lean_object*); @@ -487,7 +491,6 @@ lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__10; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_MutualClosure_main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDefView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; extern lean_object* l_Lean_Elab_mkDeclName___rarg___closed__3; extern lean_object* l_Lean_Elab_PreDefinition_inhabited___closed__1; lean_object* l___private_Lean_Elab_MutualDef_2__checkKinds___closed__1; @@ -515,6 +518,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_MutualDef_6__el lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__11; uint8_t l___private_Lean_Elab_MutualDef_14__isExample(lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_3__check___closed__23; lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -523,9 +527,9 @@ lean_object* l_Nat_foldMAux___main___at_Lean_Elab_Term_MutualClosure_pushMain___ lean_object* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___closed__12; lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_MutualClosure_getKindForLetRecs___boxed(lean_object*); +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_MutualClosure_getKindForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_8__withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_MutualDef_35__mkClosureForAux___main___closed__5; lean_object* l_Lean_Elab_DefViewElabHeader_inhabited; lean_object* l___private_Lean_Elab_MutualDef_13__withUsedWhen___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -14603,11 +14607,11 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean lean_free_object(x_36); x_42 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_42, 0, x_35); -x_43 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; +x_43 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); -x_45 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; +x_45 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); @@ -14680,11 +14684,11 @@ if (x_62 == 0) 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_63 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_63, 0, x_35); -x_64 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; +x_64 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); -x_66 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; +x_66 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; x_67 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_67, 0, x_65); lean_ctor_set(x_67, 1, x_66); @@ -14748,44 +14752,41 @@ return x_81; } } } -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_2); -x_9 = lean_nat_dec_lt(x_3, x_8); -lean_dec(x_8); -if (x_9 == 0) +uint8_t x_8; +x_8 = x_3 < x_2; +if (x_8 == 0) { -lean_object* x_10; +lean_object* x_9; lean_dec(x_5); -lean_dec(x_3); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_4); -lean_ctor_set(x_10, 1, x_7); -return x_10; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_7); +return x_9; } else { -lean_object* x_11; lean_object* x_12; -x_11 = lean_array_fget(x_2, x_3); +lean_object* x_10; lean_object* x_11; +x_10 = lean_array_uget(x_1, x_3); lean_inc(x_5); -x_12 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(x_11, x_5, x_6, x_7); -lean_dec(x_11); -if (lean_obj_tag(x_12) == 0) +x_11 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(x_10, x_5, x_6, x_7); +lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_12, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_array_push(x_4, x_13); -x_16 = lean_nat_add(x_3, x_1); -lean_dec(x_3); +lean_dec(x_11); +x_14 = lean_array_push(x_4, x_12); +x_15 = 1; +x_16 = x_3 + x_15; x_3 = x_16; -x_4 = x_15; -x_7 = x_14; +x_4 = x_14; +x_7 = x_13; goto _start; } else @@ -14793,20 +14794,19 @@ else uint8_t x_18; lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_18 = !lean_is_exclusive(x_12); +x_18 = !lean_is_exclusive(x_11); if (x_18 == 0) { -return x_12; +return x_11; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_12, 0); -x_20 = lean_ctor_get(x_12, 1); +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); lean_inc(x_20); lean_inc(x_19); -lean_dec(x_12); +lean_dec(x_11); x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -14819,14 +14819,59 @@ return x_21; lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_5 = l_Lean_Syntax_getArgs(x_1); -x_6 = lean_unsigned_to_nat(2u); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_empty___closed__1; -x_9 = l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__5(x_6, x_5, x_7, x_8, x_2, x_3, x_4); +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Syntax_getSepArgs(x_1); +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = l_Array_empty___closed__1; +x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(x_5, x_7, x_8, x_9, x_2, x_3, x_4); lean_dec(x_5); -return x_9; +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} } } lean_object* l_Lean_Elab_elabDeclAttrs___at_Lean_Elab_Command_elabMutualDef___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -20216,15 +20261,18 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; -x_8 = l_Array_foldlStepMAux___main___at_Lean_Elab_Command_elabMutualDef___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_2); lean_dec(x_2); +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +lean_dec(x_6); lean_dec(x_1); -return x_8; +return x_10; } } lean_object* l_Lean_Elab_elabAttrs___at_Lean_Elab_Command_elabMutualDef___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index d16bfbf826..786a117f0c 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -57,7 +57,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnass lean_object* l_Lean_Meta_collectMVarsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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*); -extern lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; lean_object* l___private_Lean_Util_SCC_1__getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7___boxed(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); @@ -72,6 +71,7 @@ lean_object* l_Lean_Expr_FoldConstsImpl_fold___main___at___private_Lean_Elab_Pre lean_object* l___private_Lean_Util_SCC_5__updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__18(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__8___lambda__4___closed__2; lean_object* l_Lean_Elab_addAndCompileUnsafe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive_match__1(lean_object*); lean_object* l_Std_AssocList_foldlM___main___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__16(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -369,7 +369,7 @@ x_26 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__L x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); -x_28 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_28 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -587,7 +587,7 @@ x_34 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__L x_35 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_35, 0, x_34); lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_36 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); @@ -4110,7 +4110,7 @@ x_21 = lean_ctor_get(x_14, 2); lean_inc(x_21); x_22 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_22, 0, x_21); -x_23 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_23 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); @@ -4479,7 +4479,7 @@ lean_ctor_set(x_11, 1, x_10); x_12 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_12, 0, x_11); lean_ctor_set(x_12, 1, x_2); -x_13 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_13 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_14 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -5113,7 +5113,7 @@ lean_dec(x_96); x_98 = l_List_map___main___at_Lean_Elab_addPreDefinitions___spec__7(x_97); x_99 = l_Lean_MessageData_ofList(x_98); lean_dec(x_98); -x_100 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_100 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_101 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_101, 0, x_100); lean_ctor_set(x_101, 1, x_99); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c index 566f6c3860..d882c15b2f 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural.c @@ -16,7 +16,6 @@ extern "C" { lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_fmt___at_Lean_Position_Lean_HasFormat___spec__1(lean_object*); extern lean_object* l_Lean_Meta_binductionOnSuffix; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__2(lean_object*); @@ -29,16 +28,12 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBel lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__1; -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__12; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_addInstanceEntry___spec__11(lean_object*, lean_object*); -extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); @@ -47,6 +42,8 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecO extern lean_object* l_Lean_MessageData_ofList___closed__3; uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__3(lean_object*); lean_object* l_Array_indexOfAux___main___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__1(lean_object*, lean_object*, lean_object*); @@ -60,11 +57,12 @@ lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Elab_PreDefinition_ extern lean_object* l_Std_HashMap_inhabited___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_findAssumption_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__2___closed__2; lean_object* l_Array_filterAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -85,6 +83,7 @@ uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Lean_MonadLCtx___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_3__checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__4; +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__10; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos(lean_object*, lean_object*); @@ -99,13 +98,15 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replace lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -extern lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__7; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg___closed__2; lean_object* l___private_Lean_Meta_InferType_4__getLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEq___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_findAssumption_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__3; @@ -117,7 +118,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBel extern lean_object* l_Lean_levelZero; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__17; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_structuralRecursion___closed__1; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__8; @@ -130,18 +131,20 @@ lean_object* l_Lean_Elab_structuralRecursion___boxed(lean_object*, lean_object*, lean_object* l_Lean_mkMData(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__9; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__8; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3(lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix_match__1(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__4; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__3; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__5; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos_match__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__2; +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_brecOnSuffix; lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forEachExprImp_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -153,6 +156,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__1___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__3___closed__4; lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -164,9 +168,8 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRec lean_object* l___private_Lean_Meta_Basic_28__withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__1; lean_object* l_Std_HashMapImp_insert___at_Lean_Meta_ForEachExpr_visit___main___spec__1(lean_object*, lean_object*, lean_object*); -uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__1; +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__4(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__1___closed__2; lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); @@ -174,13 +177,11 @@ lean_object* l_Lean_Expr_headBeta(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__3; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__3___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__3(lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object*); lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ForEachExpr_visit___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -189,7 +190,6 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRec lean_object* l_Lean_Meta_forEachExpr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__18; lean_object* l_Lean_Meta_getLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -199,7 +199,6 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Str lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__5; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__1___closed__6; lean_object* l_Lean_throwError___at_Lean_Elab_mkInhabitantFor___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__14; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__15; @@ -210,7 +209,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__6; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__6; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__2; +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forEachExpr_x27___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__1___closed__1; @@ -229,11 +228,11 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadP lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_1__mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___closed__1; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__1___closed__7; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__2(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__1___closed__3; +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Structural___hyg_3362_(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); @@ -245,11 +244,10 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRec lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__3___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__8; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__4(lean_object*); -lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l___private_Lean_Meta_LevelDefEq_2__decLevelImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -265,15 +263,18 @@ size_t l_USize_mod(size_t, size_t); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict(lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__1; lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1; lean_object* l_Lean_Meta_dependsOn___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__13; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__2; extern lean_object* l_Lean_Expr_FindImpl_initCache; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1; size_t lean_ptr_addr(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -288,8 +289,7 @@ lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Str uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__1(lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); @@ -301,10 +301,9 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_contain lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___closed__7; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__3; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__1; lean_object* l_Lean_Meta_MatcherApp_toExpr(lean_object*); -extern lean_object* l_Lean_Meta_whnfRef; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getIndexMinPos_match__1(lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix___boxed(lean_object*, lean_object*, lean_object*); @@ -327,6 +326,7 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwToBelowFailed___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_Meta_mkAppM___at___private_Lean_Elab_PreDefinition_MkInhabitant_0__Lean_Elab_mkInhabitant_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,22 +342,21 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureN lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ForEachExpr_visit___main___spec__10(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__2; lean_object* l_Lean_Expr_FindImpl_findM_x3f___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_containsRecFn___spec__1(lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__2___rarg___closed__2; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_replaceRecApps_loop___spec__8___lambda__1___closed__5; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadParamDep_x3f_match__3(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_getFixedPrefix_match__1___rarg(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_MessageData_hasCoeOfListExpr___spec__1(lean_object*); +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop_match__2(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_decLevel___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -365,19 +364,16 @@ lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureN uint8_t lean_level_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelow___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__11; -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__2; lean_object* l_Lean_indentExpr(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion___lambda__2___closed__3; -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Core_mkFreshUserName___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__13; lean_object* l_Lean_Meta_getFVarLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__11; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_hasBadIndexDep_x3f_match__3(lean_object*); @@ -389,7 +385,6 @@ lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_ lean_object* l_Lean_Elab_structuralRecursion___closed__2; lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3; lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(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 l_Lean_LocalDecl_isLet(lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux_match__3(lean_object*); @@ -3342,106 +3337,6 @@ x_8 = l_Lean_Meta_getLocalDecl___at_Lean_Meta_getFVarLocalDecl___spec__1(x_7, x_ return x_8; } } -lean_object* l_Lean_Meta_whnf___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_4, 1); -lean_inc(x_8); -x_9 = lean_ctor_get(x_4, 2); -lean_inc(x_9); -x_10 = lean_ctor_get(x_4, 3); -lean_inc(x_10); -x_11 = lean_nat_dec_eq(x_8, x_9); -if (x_11 == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_4); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_13 = lean_ctor_get(x_4, 3); -lean_dec(x_13); -x_14 = lean_ctor_get(x_4, 2); -lean_dec(x_14); -x_15 = lean_ctor_get(x_4, 1); -lean_dec(x_15); -x_16 = lean_ctor_get(x_4, 0); -lean_dec(x_16); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_8, x_17); -lean_dec(x_8); -lean_ctor_set(x_4, 1, x_18); -x_19 = l_Lean_Meta_whnfRef; -x_20 = lean_st_ref_get(x_19, x_6); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_apply_6(x_21, x_1, x_2, x_3, x_4, x_5, x_22); -return x_23; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -lean_dec(x_4); -x_24 = lean_unsigned_to_nat(1u); -x_25 = lean_nat_add(x_8, x_24); -lean_dec(x_8); -x_26 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_26, 0, x_7); -lean_ctor_set(x_26, 1, x_25); -lean_ctor_set(x_26, 2, x_9); -lean_ctor_set(x_26, 3, x_10); -x_27 = l_Lean_Meta_whnfRef; -x_28 = lean_st_ref_get(x_27, x_6); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_apply_6(x_29, x_1, x_2, x_3, x_26, x_5, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_32 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; -x_33 = l_Lean_throwError___at_Lean_Meta_mkWHNFRef___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -return x_33; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_33, 0); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_33); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -} -} lean_object* l_Lean_Meta_whnfD___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -3457,7 +3352,7 @@ if (x_9 == 0) uint8_t x_10; lean_object* x_11; x_10 = 1; lean_ctor_set_uint8(x_8, 5, x_10); -x_11 = l_Lean_Meta_whnf___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_11 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_11) == 0) { uint8_t x_12; @@ -3525,7 +3420,7 @@ lean_ctor_set_uint8(x_28, 5, x_27); lean_ctor_set_uint8(x_28, 6, x_25); lean_ctor_set_uint8(x_28, 7, x_26); lean_ctor_set(x_2, 0, x_28); -x_29 = l_Lean_Meta_whnf___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +x_29 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_29) == 0) { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; @@ -3617,7 +3512,7 @@ x_51 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_39); lean_ctor_set(x_51, 2, x_40); -x_52 = l_Lean_Meta_whnf___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_1, x_51, x_3, x_4, x_5, x_6); +x_52 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_1, x_51, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_52) == 0) { lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; @@ -3669,7 +3564,7 @@ return x_60; } } } -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; uint8_t x_8; @@ -3707,7 +3602,7 @@ return x_18; } } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__1() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1() { _start: { lean_object* x_1; @@ -3715,7 +3610,7 @@ x_1 = lean_mk_string("Lean.Elab.PreDefinition.Structural"); return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__2() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2() { _start: { lean_object* x_1; @@ -3723,12 +3618,12 @@ x_1 = lean_mk_string("_private.Lean.Elab.PreDefinition.Structural.0.Lean.Elab.fi return x_1; } } -static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__3() { +static lean_object* _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__1; -x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__2; +x_1 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1; +x_2 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2; x_3 = lean_unsigned_to_nat(101u); x_4 = lean_unsigned_to_nat(117u); x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; @@ -3736,7 +3631,7 @@ x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -3765,7 +3660,7 @@ if (lean_obj_tag(x_11) == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_14 = l_Nat_Inhabited; -x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__3; +x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3; x_16 = lean_panic_fn(x_14, x_15); x_17 = x_16; x_18 = lean_array_fset(x_9, x_2, x_17); @@ -3790,7 +3685,7 @@ goto _start; } } } -uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +uint8_t l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(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; @@ -3828,7 +3723,7 @@ return x_13; } } } -uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -3847,7 +3742,7 @@ else lean_object* x_6; uint8_t x_7; x_6 = lean_array_fget(x_1, x_2); lean_inc(x_2); -x_7 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(x_1, x_6, x_2, lean_box(0)); +x_7 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_1, x_6, x_2, lean_box(0)); lean_dec(x_6); if (x_7 == 0) { @@ -3868,7 +3763,7 @@ goto _start; } } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(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; @@ -4165,7 +4060,7 @@ lean_dec(x_35); x_37 = l_Lean_Meta_brecOnSuffix; lean_inc(x_36); x_38 = lean_name_mk_string(x_36, x_37); -x_39 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_38, x_5, x_6, x_7, x_8, x_27); +x_39 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_38, x_5, x_6, x_7, x_8, x_27); lean_dec(x_38); x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); @@ -4175,7 +4070,7 @@ lean_dec(x_39); x_42 = l_Lean_Meta_binductionOnSuffix; lean_inc(x_36); x_43 = lean_name_mk_string(x_36, x_42); -x_44 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_43, x_5, x_6, x_7, x_8, x_41); +x_44 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_43, x_5, x_6, x_7, x_8, x_41); lean_dec(x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); @@ -4253,7 +4148,7 @@ x_58 = l_Array_extract___rarg(x_56, x_50, x_57); x_59 = lean_array_get_size(x_56); x_60 = l_Array_extract___rarg(x_56, x_57, x_59); x_426 = lean_array_get_size(x_60); -x_427 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__8(x_20, x_34, x_60, x_426, x_50); +x_427 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(x_20, x_34, x_60, x_426, x_50); lean_dec(x_426); lean_dec(x_34); if (x_427 == 0) @@ -4316,7 +4211,7 @@ lean_inc(x_69); lean_dec(x_67); lean_inc(x_60); x_70 = x_60; -x_71 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_63, x_50, x_70); +x_71 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_63, x_50, x_70); x_72 = x_71; x_73 = lean_array_get_size(x_62); x_74 = lean_nat_sub(x_4, x_73); @@ -4651,7 +4546,7 @@ x_155 = l_Lean_indentExpr(x_139); x_156 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_156, 0, x_154); lean_ctor_set(x_156, 1, x_155); -x_157 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_157 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_158 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_158, 0, x_156); lean_ctor_set(x_158, 1, x_157); @@ -4934,7 +4829,7 @@ x_233 = l_Lean_indentExpr(x_217); x_234 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_234, 0, x_232); lean_ctor_set(x_234, 1, x_233); -x_235 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_235 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_236 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_236, 0, x_234); lean_ctor_set(x_236, 1, x_235); @@ -5209,7 +5104,7 @@ x_303 = l_Lean_indentExpr(x_20); x_304 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_304, 0, x_302); lean_ctor_set(x_304, 1, x_303); -x_305 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_305 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_306 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_306, 0, x_304); lean_ctor_set(x_306, 1, x_305); @@ -5405,7 +5300,7 @@ block_425: if (x_359 == 0) { uint8_t x_360; -x_360 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_60, x_50); +x_360 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_60, x_50); if (x_360 == 0) { uint8_t x_361; @@ -5447,7 +5342,7 @@ x_370 = l_Lean_indentExpr(x_20); x_371 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_371, 0, x_369); lean_ctor_set(x_371, 1, x_370); -x_372 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_372 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_373 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_373, 0, x_371); lean_ctor_set(x_373, 1, x_372); @@ -5807,11 +5702,11 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___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* l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Lean_hasConst___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -5820,41 +5715,41 @@ lean_dec(x_1); return x_7; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_1, x_2, x_3); +x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; lean_object* x_6; -x_5 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Data_Array_Basic_8__allDiffAuxAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); x_6 = lean_box(x_5); return x_6; } } -lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__6(x_1, x_2); +x_3 = l___private_Init_Data_Array_Basic_9__allDiffAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5(x_1, x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7___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___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__8(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__7(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -6448,7 +6343,7 @@ x_12 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_ensureNoRecFn x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_14 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -7438,7 +7333,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_10 = l_Lean_Meta_whnf___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__3(x_2, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Meta_whnf___at_Lean_Meta_forallTelescopeCompatibleAux___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_124; lean_object* x_125; lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; @@ -8010,7 +7905,7 @@ lean_ctor_set(x_131, 0, x_3); x_132 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_132, 0, x_130); lean_ctor_set(x_132, 1, x_131); -x_133 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_133 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_134 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_134, 0, x_132); lean_ctor_set(x_134, 1, x_133); @@ -8098,66 +7993,7 @@ x_7 = l___private_Lean_CoreM_1__mkFreshNameImp(x_1, x_4, x_5, x_6); return x_7; } } -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Meta_Basic_27__withLocalDeclImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -return x_10; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_10, 0); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_10); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -return x_14; -} -} -else -{ -uint8_t x_15; -x_15 = !lean_is_exclusive(x_10); -if (x_15 == 0) -{ -return x_10; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_10, 0); -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_10); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -} -} -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___boxed), 9, 0); -return x_2; -} -} -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; @@ -8208,15 +8044,15 @@ return x_17; } } } -lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3(lean_object* x_1) { +lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg), 8, 0); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -8230,7 +8066,7 @@ x_16 = lean_apply_7(x_5, x_6, x_15, x_7, x_8, x_9, x_10, x_11); return x_16; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -8238,17 +8074,17 @@ x_1 = lean_mk_string("C"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__1; +x_2 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; @@ -8268,21 +8104,21 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__2; +x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2; x_20 = l___private_Lean_CoreM_1__mkFreshNameImp(x_19, x_10, x_11, x_18); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__1), 11, 5); +x_23 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__1), 11, 5); lean_closure_set(x_23, 0, x_1); lean_closure_set(x_23, 1, x_2); lean_closure_set(x_23, 2, x_3); lean_closure_set(x_23, 3, x_4); lean_closure_set(x_23, 4, x_5); x_24 = 0; -x_25 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_21, x_24, x_17, x_23, x_8, x_9, x_10, x_11, x_22); +x_25 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(x_21, x_24, x_17, x_23, x_8, x_9, x_10, x_11, x_22); return x_25; } else @@ -8318,7 +8154,7 @@ return x_29; } } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__1() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1() { _start: { lean_object* x_1; @@ -8326,16 +8162,16 @@ x_1 = lean_mk_string("unexpected 'below' type"); return x_1; } } -static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__2() { +static lean_object* _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__1; +x_1 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___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* x_10, lean_object* x_11) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { if (lean_obj_tag(x_4) == 5) @@ -8373,11 +8209,11 @@ lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); x_22 = l_Lean_indentExpr(x_3); -x_23 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__2; +x_23 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -x_25 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_25 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); @@ -8428,14 +8264,14 @@ lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); lean_dec(x_35); -x_38 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___boxed), 12, 5); +x_38 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___boxed), 12, 5); lean_closure_set(x_38, 0, x_34); lean_closure_set(x_38, 1, x_5); lean_closure_set(x_38, 2, x_19); lean_closure_set(x_38, 3, x_20); lean_closure_set(x_38, 4, x_2); x_39 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_40 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_36, x_39, x_38, x_7, x_8, x_9, x_10, x_37); +x_40 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_36, x_39, x_38, x_7, x_8, x_9, x_10, x_37); return x_40; } else @@ -8473,11 +8309,11 @@ return x_44; } } } -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4(lean_object* x_1) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg), 11, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg), 11, 0); return x_2; } } @@ -8565,7 +8401,7 @@ x_17 = lean_unsigned_to_nat(1u); x_18 = lean_nat_sub(x_14, x_17); lean_dec(x_14); lean_inc(x_10); -x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg(x_2, x_3, x_10, x_10, x_16, x_18, x_4, x_5, x_6, x_7, x_12); +x_19 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_2, x_3, x_10, x_10, x_16, x_18, x_4, x_5, x_6, x_7, x_12); return x_19; } block_31: @@ -8585,7 +8421,7 @@ x_24 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); -x_26 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_26 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -8649,21 +8485,11 @@ lean_dec(x_2); return x_7; } } -lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_2); -lean_dec(x_2); -x_11 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_7); lean_dec(x_6); return x_13; @@ -9249,7 +9075,7 @@ x_62 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Stru x_63 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); -x_64 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_64 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); @@ -9292,7 +9118,7 @@ x_72 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Stru x_73 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_73, 0, x_72); lean_ctor_set(x_73, 1, x_71); -x_74 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_74 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_75 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_75, 0, x_73); lean_ctor_set(x_75, 1, x_74); @@ -9523,7 +9349,7 @@ x_130 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_131 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_129); -x_132 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_132 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_133 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_133, 0, x_131); lean_ctor_set(x_133, 1, x_132); @@ -9566,7 +9392,7 @@ x_140 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_141 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_141, 0, x_140); lean_ctor_set(x_141, 1, x_139); -x_142 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_142 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_143 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_143, 0, x_141); lean_ctor_set(x_143, 1, x_142); @@ -9797,7 +9623,7 @@ x_198 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_199 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_199, 0, x_198); lean_ctor_set(x_199, 1, x_197); -x_200 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_200 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_201 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_201, 0, x_199); lean_ctor_set(x_201, 1, x_200); @@ -9840,7 +9666,7 @@ x_208 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_209 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_209, 0, x_208); lean_ctor_set(x_209, 1, x_207); -x_210 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_210 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_211 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_211, 0, x_209); lean_ctor_set(x_211, 1, x_210); @@ -10071,7 +9897,7 @@ x_266 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_267 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_267, 0, x_266); lean_ctor_set(x_267, 1, x_265); -x_268 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_268 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_269 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_269, 0, x_267); lean_ctor_set(x_269, 1, x_268); @@ -10114,7 +9940,7 @@ x_276 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_277 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_277, 0, x_276); lean_ctor_set(x_277, 1, x_275); -x_278 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_278 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_279 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_279, 0, x_277); lean_ctor_set(x_279, 1, x_278); @@ -10345,7 +10171,7 @@ x_334 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_335 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_335, 0, x_334); lean_ctor_set(x_335, 1, x_333); -x_336 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_336 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_337 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_337, 0, x_335); lean_ctor_set(x_337, 1, x_336); @@ -10388,7 +10214,7 @@ x_344 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_345 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_345, 0, x_344); lean_ctor_set(x_345, 1, x_343); -x_346 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_346 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_347 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_347, 0, x_345); lean_ctor_set(x_347, 1, x_346); @@ -10636,7 +10462,7 @@ x_408 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_409 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_409, 0, x_408); lean_ctor_set(x_409, 1, x_407); -x_410 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_410 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_411 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_411, 0, x_409); lean_ctor_set(x_411, 1, x_410); @@ -10679,7 +10505,7 @@ x_418 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_419 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_419, 0, x_418); lean_ctor_set(x_419, 1, x_417); -x_420 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_420 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_421 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_421, 0, x_419); lean_ctor_set(x_421, 1, x_420); @@ -10910,7 +10736,7 @@ x_476 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_477 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_477, 0, x_476); lean_ctor_set(x_477, 1, x_475); -x_478 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_478 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_479 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_479, 0, x_477); lean_ctor_set(x_479, 1, x_478); @@ -10953,7 +10779,7 @@ x_486 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_487 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_487, 0, x_486); lean_ctor_set(x_487, 1, x_485); -x_488 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_488 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_489 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_489, 0, x_487); lean_ctor_set(x_489, 1, x_488); @@ -11184,7 +11010,7 @@ x_544 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_545 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_545, 0, x_544); lean_ctor_set(x_545, 1, x_543); -x_546 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_546 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_547 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_547, 0, x_545); lean_ctor_set(x_547, 1, x_546); @@ -11227,7 +11053,7 @@ x_554 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_555 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_555, 0, x_554); lean_ctor_set(x_555, 1, x_553); -x_556 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_556 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_557 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_557, 0, x_555); lean_ctor_set(x_557, 1, x_556); @@ -11458,7 +11284,7 @@ x_612 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_613 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_613, 0, x_612); lean_ctor_set(x_613, 1, x_611); -x_614 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_614 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_615 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_615, 0, x_613); lean_ctor_set(x_615, 1, x_614); @@ -11501,7 +11327,7 @@ x_622 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_623 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_623, 0, x_622); lean_ctor_set(x_623, 1, x_621); -x_624 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_624 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_625 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_625, 0, x_623); lean_ctor_set(x_625, 1, x_624); @@ -11732,7 +11558,7 @@ x_680 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_681 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_681, 0, x_680); lean_ctor_set(x_681, 1, x_679); -x_682 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_682 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_683 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_683, 0, x_681); lean_ctor_set(x_683, 1, x_682); @@ -11775,7 +11601,7 @@ x_690 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_691 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_691, 0, x_690); lean_ctor_set(x_691, 1, x_689); -x_692 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_692 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_693 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_693, 0, x_691); lean_ctor_set(x_693, 1, x_692); @@ -12006,7 +11832,7 @@ x_748 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_749 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_749, 0, x_748); lean_ctor_set(x_749, 1, x_747); -x_750 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_750 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_751 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_751, 0, x_749); lean_ctor_set(x_751, 1, x_750); @@ -12049,7 +11875,7 @@ x_758 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_759 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_759, 0, x_758); lean_ctor_set(x_759, 1, x_757); -x_760 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_760 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_761 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_761, 0, x_759); lean_ctor_set(x_761, 1, x_760); @@ -12280,7 +12106,7 @@ x_816 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_817 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_817, 0, x_816); lean_ctor_set(x_817, 1, x_815); -x_818 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_818 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_819 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_819, 0, x_817); lean_ctor_set(x_819, 1, x_818); @@ -12323,7 +12149,7 @@ x_826 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_827 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_827, 0, x_826); lean_ctor_set(x_827, 1, x_825); -x_828 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_828 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_829 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_829, 0, x_827); lean_ctor_set(x_829, 1, x_828); @@ -12702,7 +12528,7 @@ x_62 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Stru x_63 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); -x_64 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_64 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); @@ -12745,7 +12571,7 @@ x_72 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Stru x_73 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_73, 0, x_72); lean_ctor_set(x_73, 1, x_71); -x_74 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_74 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_75 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_75, 0, x_73); lean_ctor_set(x_75, 1, x_74); @@ -12976,7 +12802,7 @@ x_130 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_131 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_129); -x_132 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_132 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_133 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_133, 0, x_131); lean_ctor_set(x_133, 1, x_132); @@ -13019,7 +12845,7 @@ x_140 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_141 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_141, 0, x_140); lean_ctor_set(x_141, 1, x_139); -x_142 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_142 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_143 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_143, 0, x_141); lean_ctor_set(x_143, 1, x_142); @@ -13250,7 +13076,7 @@ x_198 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_199 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_199, 0, x_198); lean_ctor_set(x_199, 1, x_197); -x_200 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_200 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_201 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_201, 0, x_199); lean_ctor_set(x_201, 1, x_200); @@ -13293,7 +13119,7 @@ x_208 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_209 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_209, 0, x_208); lean_ctor_set(x_209, 1, x_207); -x_210 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_210 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_211 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_211, 0, x_209); lean_ctor_set(x_211, 1, x_210); @@ -13524,7 +13350,7 @@ x_266 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_267 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_267, 0, x_266); lean_ctor_set(x_267, 1, x_265); -x_268 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_268 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_269 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_269, 0, x_267); lean_ctor_set(x_269, 1, x_268); @@ -13567,7 +13393,7 @@ x_276 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_277 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_277, 0, x_276); lean_ctor_set(x_277, 1, x_275); -x_278 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_278 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_279 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_279, 0, x_277); lean_ctor_set(x_279, 1, x_278); @@ -13798,7 +13624,7 @@ x_334 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_335 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_335, 0, x_334); lean_ctor_set(x_335, 1, x_333); -x_336 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_336 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_337 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_337, 0, x_335); lean_ctor_set(x_337, 1, x_336); @@ -13841,7 +13667,7 @@ x_344 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_345 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_345, 0, x_344); lean_ctor_set(x_345, 1, x_343); -x_346 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_346 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_347 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_347, 0, x_345); lean_ctor_set(x_347, 1, x_346); @@ -14089,7 +13915,7 @@ x_408 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_409 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_409, 0, x_408); lean_ctor_set(x_409, 1, x_407); -x_410 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_410 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_411 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_411, 0, x_409); lean_ctor_set(x_411, 1, x_410); @@ -14132,7 +13958,7 @@ x_418 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_419 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_419, 0, x_418); lean_ctor_set(x_419, 1, x_417); -x_420 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_420 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_421 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_421, 0, x_419); lean_ctor_set(x_421, 1, x_420); @@ -14363,7 +14189,7 @@ x_476 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_477 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_477, 0, x_476); lean_ctor_set(x_477, 1, x_475); -x_478 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_478 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_479 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_479, 0, x_477); lean_ctor_set(x_479, 1, x_478); @@ -14406,7 +14232,7 @@ x_486 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_487 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_487, 0, x_486); lean_ctor_set(x_487, 1, x_485); -x_488 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_488 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_489 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_489, 0, x_487); lean_ctor_set(x_489, 1, x_488); @@ -14637,7 +14463,7 @@ x_544 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_545 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_545, 0, x_544); lean_ctor_set(x_545, 1, x_543); -x_546 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_546 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_547 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_547, 0, x_545); lean_ctor_set(x_547, 1, x_546); @@ -14680,7 +14506,7 @@ x_554 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_555 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_555, 0, x_554); lean_ctor_set(x_555, 1, x_553); -x_556 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_556 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_557 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_557, 0, x_555); lean_ctor_set(x_557, 1, x_556); @@ -14911,7 +14737,7 @@ x_612 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_613 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_613, 0, x_612); lean_ctor_set(x_613, 1, x_611); -x_614 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_614 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_615 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_615, 0, x_613); lean_ctor_set(x_615, 1, x_614); @@ -14954,7 +14780,7 @@ x_622 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_623 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_623, 0, x_622); lean_ctor_set(x_623, 1, x_621); -x_624 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_624 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_625 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_625, 0, x_623); lean_ctor_set(x_625, 1, x_624); @@ -15185,7 +15011,7 @@ x_680 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_681 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_681, 0, x_680); lean_ctor_set(x_681, 1, x_679); -x_682 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_682 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_683 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_683, 0, x_681); lean_ctor_set(x_683, 1, x_682); @@ -15228,7 +15054,7 @@ x_690 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_691 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_691, 0, x_690); lean_ctor_set(x_691, 1, x_689); -x_692 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_692 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_693 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_693, 0, x_691); lean_ctor_set(x_693, 1, x_692); @@ -15459,7 +15285,7 @@ x_748 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_749 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_749, 0, x_748); lean_ctor_set(x_749, 1, x_747); -x_750 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_750 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_751 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_751, 0, x_749); lean_ctor_set(x_751, 1, x_750); @@ -15502,7 +15328,7 @@ x_758 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_759 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_759, 0, x_758); lean_ctor_set(x_759, 1, x_757); -x_760 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_760 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_761 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_761, 0, x_759); lean_ctor_set(x_761, 1, x_760); @@ -15733,7 +15559,7 @@ x_816 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_817 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_817, 0, x_816); lean_ctor_set(x_817, 1, x_815); -x_818 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_818 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_819 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_819, 0, x_817); lean_ctor_set(x_819, 1, x_818); @@ -15776,7 +15602,7 @@ x_826 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_827 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_827, 0, x_826); lean_ctor_set(x_827, 1, x_825); -x_828 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_828 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_829 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_829, 0, x_827); lean_ctor_set(x_829, 1, x_828); @@ -16026,7 +15852,7 @@ x_21 = l_Lean_indentExpr(x_3); x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_23 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -16142,7 +15968,7 @@ lean_dec(x_52); x_54 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_54, 0, x_50); lean_ctor_set(x_54, 1, x_53); -x_55 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_55 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_54); lean_ctor_set(x_56, 1, x_55); @@ -16586,7 +16412,7 @@ x_62 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Stru x_63 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_61); -x_64 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_64 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); @@ -16629,7 +16455,7 @@ x_72 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Stru x_73 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_73, 0, x_72); lean_ctor_set(x_73, 1, x_71); -x_74 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_74 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_75 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_75, 0, x_73); lean_ctor_set(x_75, 1, x_74); @@ -16860,7 +16686,7 @@ x_130 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_131 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_129); -x_132 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_132 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_133 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_133, 0, x_131); lean_ctor_set(x_133, 1, x_132); @@ -16903,7 +16729,7 @@ x_140 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_141 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_141, 0, x_140); lean_ctor_set(x_141, 1, x_139); -x_142 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_142 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_143 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_143, 0, x_141); lean_ctor_set(x_143, 1, x_142); @@ -17134,7 +16960,7 @@ x_198 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_199 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_199, 0, x_198); lean_ctor_set(x_199, 1, x_197); -x_200 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_200 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_201 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_201, 0, x_199); lean_ctor_set(x_201, 1, x_200); @@ -17177,7 +17003,7 @@ x_208 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_209 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_209, 0, x_208); lean_ctor_set(x_209, 1, x_207); -x_210 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_210 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_211 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_211, 0, x_209); lean_ctor_set(x_211, 1, x_210); @@ -17408,7 +17234,7 @@ x_266 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_267 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_267, 0, x_266); lean_ctor_set(x_267, 1, x_265); -x_268 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_268 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_269 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_269, 0, x_267); lean_ctor_set(x_269, 1, x_268); @@ -17451,7 +17277,7 @@ x_276 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_277 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_277, 0, x_276); lean_ctor_set(x_277, 1, x_275); -x_278 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_278 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_279 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_279, 0, x_277); lean_ctor_set(x_279, 1, x_278); @@ -17682,7 +17508,7 @@ x_334 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_335 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_335, 0, x_334); lean_ctor_set(x_335, 1, x_333); -x_336 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_336 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_337 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_337, 0, x_335); lean_ctor_set(x_337, 1, x_336); @@ -17725,7 +17551,7 @@ x_344 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_345 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_345, 0, x_344); lean_ctor_set(x_345, 1, x_343); -x_346 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_346 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_347 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_347, 0, x_345); lean_ctor_set(x_347, 1, x_346); @@ -17973,7 +17799,7 @@ x_408 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_409 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_409, 0, x_408); lean_ctor_set(x_409, 1, x_407); -x_410 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_410 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_411 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_411, 0, x_409); lean_ctor_set(x_411, 1, x_410); @@ -18016,7 +17842,7 @@ x_418 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_419 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_419, 0, x_418); lean_ctor_set(x_419, 1, x_417); -x_420 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_420 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_421 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_421, 0, x_419); lean_ctor_set(x_421, 1, x_420); @@ -18247,7 +18073,7 @@ x_476 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_477 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_477, 0, x_476); lean_ctor_set(x_477, 1, x_475); -x_478 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_478 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_479 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_479, 0, x_477); lean_ctor_set(x_479, 1, x_478); @@ -18290,7 +18116,7 @@ x_486 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_487 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_487, 0, x_486); lean_ctor_set(x_487, 1, x_485); -x_488 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_488 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_489 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_489, 0, x_487); lean_ctor_set(x_489, 1, x_488); @@ -18521,7 +18347,7 @@ x_544 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_545 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_545, 0, x_544); lean_ctor_set(x_545, 1, x_543); -x_546 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_546 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_547 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_547, 0, x_545); lean_ctor_set(x_547, 1, x_546); @@ -18564,7 +18390,7 @@ x_554 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_555 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_555, 0, x_554); lean_ctor_set(x_555, 1, x_553); -x_556 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_556 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_557 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_557, 0, x_555); lean_ctor_set(x_557, 1, x_556); @@ -18795,7 +18621,7 @@ x_612 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_613 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_613, 0, x_612); lean_ctor_set(x_613, 1, x_611); -x_614 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_614 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_615 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_615, 0, x_613); lean_ctor_set(x_615, 1, x_614); @@ -18838,7 +18664,7 @@ x_622 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_623 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_623, 0, x_622); lean_ctor_set(x_623, 1, x_621); -x_624 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_624 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_625 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_625, 0, x_623); lean_ctor_set(x_625, 1, x_624); @@ -19069,7 +18895,7 @@ x_680 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_681 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_681, 0, x_680); lean_ctor_set(x_681, 1, x_679); -x_682 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_682 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_683 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_683, 0, x_681); lean_ctor_set(x_683, 1, x_682); @@ -19112,7 +18938,7 @@ x_690 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_691 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_691, 0, x_690); lean_ctor_set(x_691, 1, x_689); -x_692 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_692 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_693 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_693, 0, x_691); lean_ctor_set(x_693, 1, x_692); @@ -19343,7 +19169,7 @@ x_748 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_749 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_749, 0, x_748); lean_ctor_set(x_749, 1, x_747); -x_750 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_750 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_751 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_751, 0, x_749); lean_ctor_set(x_751, 1, x_750); @@ -19386,7 +19212,7 @@ x_758 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_759 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_759, 0, x_758); lean_ctor_set(x_759, 1, x_757); -x_760 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_760 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_761 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_761, 0, x_759); lean_ctor_set(x_761, 1, x_760); @@ -19617,7 +19443,7 @@ x_816 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_817 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_817, 0, x_816); lean_ctor_set(x_817, 1, x_815); -x_818 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_818 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_819 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_819, 0, x_817); lean_ctor_set(x_819, 1, x_818); @@ -19660,7 +19486,7 @@ x_826 = l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Str x_827 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_827, 0, x_826); lean_ctor_set(x_827, 1, x_825); -x_828 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_828 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_829 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_829, 0, x_827); lean_ctor_set(x_829, 1, x_828); @@ -20339,7 +20165,7 @@ lean_closure_set(x_121, 0, x_115); lean_closure_set(x_121, 1, x_1); lean_closure_set(x_121, 2, x_2); lean_closure_set(x_121, 3, x_3); -x_122 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_113, x_120, x_118, x_121, x_5, x_6, x_7, x_8, x_119); +x_122 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(x_113, x_120, x_118, x_121, x_5, x_6, x_7, x_8, x_119); return x_122; } else @@ -20407,7 +20233,7 @@ lean_closure_set(x_135, 0, x_129); lean_closure_set(x_135, 1, x_1); lean_closure_set(x_135, 2, x_2); lean_closure_set(x_135, 3, x_3); -x_136 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_127, x_134, x_132, x_135, x_5, x_6, x_7, x_8, x_133); +x_136 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__4___rarg(x_127, x_134, x_132, x_135, x_5, x_6, x_7, x_8, x_133); return x_136; } else @@ -21099,7 +20925,7 @@ lean_closure_set(x_28, 5, x_2); lean_closure_set(x_28, 6, x_5); lean_closure_set(x_28, 7, x_6); lean_closure_set(x_28, 8, x_7); -x_29 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_19, x_27, x_28, x_10, x_11, x_12, x_13, x_20); +x_29 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_19, x_27, x_28, x_10, x_11, x_12, x_13, x_20); return x_29; } else @@ -21525,7 +21351,7 @@ lean_closure_set(x_48, 4, x_1); lean_closure_set(x_48, 5, x_2); lean_closure_set(x_48, 6, x_40); x_49 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_50 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_44, x_49, x_48, x_4, x_5, x_6, x_7, x_47); +x_50 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_44, x_49, x_48, x_4, x_5, x_6, x_7, x_47); return x_50; } else @@ -21538,7 +21364,7 @@ x_52 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___cl x_53 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_53, 0, x_52); lean_ctor_set(x_53, 1, x_51); -x_54 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_54 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_55 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_55, 0, x_53); lean_ctor_set(x_55, 1, x_54); @@ -21556,7 +21382,7 @@ lean_closure_set(x_59, 4, x_1); lean_closure_set(x_59, 5, x_2); lean_closure_set(x_59, 6, x_40); x_60 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_61 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_44, x_60, x_59, x_4, x_5, x_6, x_7, x_58); +x_61 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_44, x_60, x_59, x_4, x_5, x_6, x_7, x_58); return x_61; } } @@ -21619,7 +21445,7 @@ x_80 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___cl x_81 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_81, 0, x_80); lean_ctor_set(x_81, 1, x_79); -x_82 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_82 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_83 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_83, 0, x_81); lean_ctor_set(x_83, 1, x_82); @@ -21719,7 +21545,7 @@ x_124 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___c x_125 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_125, 0, x_124); lean_ctor_set(x_125, 1, x_123); -x_126 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_126 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_127 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_127, 0, x_125); lean_ctor_set(x_127, 1, x_126); @@ -21954,7 +21780,7 @@ lean_closure_set(x_170, 4, x_1); lean_closure_set(x_170, 5, x_2); lean_closure_set(x_170, 6, x_162); x_171 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_172 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_166, x_171, x_170, x_4, x_5, x_6, x_7, x_169); +x_172 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_166, x_171, x_170, x_4, x_5, x_6, x_7, x_169); return x_172; } else @@ -21967,7 +21793,7 @@ x_174 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___c x_175 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_175, 0, x_174); lean_ctor_set(x_175, 1, x_173); -x_176 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_176 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_177 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_177, 0, x_175); lean_ctor_set(x_177, 1, x_176); @@ -21985,7 +21811,7 @@ lean_closure_set(x_181, 4, x_1); lean_closure_set(x_181, 5, x_2); lean_closure_set(x_181, 6, x_162); x_182 = l___private_Lean_Meta_Match_Match_42__updateAlts___main___lambda__2___closed__1; -x_183 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg(x_166, x_182, x_181, x_4, x_5, x_6, x_7, x_180); +x_183 = l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__2___rarg(x_166, x_182, x_181, x_4, x_5, x_6, x_7, x_180); return x_183; } } @@ -22048,7 +21874,7 @@ x_202 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___c x_203 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_203, 0, x_202); lean_ctor_set(x_203, 1, x_201); -x_204 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_204 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_205 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_205, 0, x_203); lean_ctor_set(x_205, 1, x_204); @@ -22148,7 +21974,7 @@ x_246 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___c x_247 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_247, 0, x_246); lean_ctor_set(x_247, 1, x_245); -x_248 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_248 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_249 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_249, 0, x_247); lean_ctor_set(x_249, 1, x_248); @@ -22249,7 +22075,7 @@ x_288 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_mkBRecOn___c x_289 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_289, 0, x_288); lean_ctor_set(x_289, 1, x_287); -x_290 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_290 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_291 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_291, 0, x_289); lean_ctor_set(x_291, 1, x_290); @@ -22582,7 +22408,7 @@ x_41 = l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_elimRecursion x_42 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_42, 0, x_41); lean_ctor_set(x_42, 1, x_40); -x_43 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_43 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_42); lean_ctor_set(x_44, 1, x_43); @@ -22840,7 +22666,7 @@ x_20 = lean_ctor_get(x_1, 2); lean_inc(x_20); x_21 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_21, 0, x_20); -x_22 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_22 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); @@ -23228,12 +23054,12 @@ l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFaile lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__2); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_throwStructuralFailed___rarg___closed__3); -l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__1(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__1); -l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__2(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__2); -l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__3(); -lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__5___closed__3); +l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__1); +l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__2); +l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3 = _init_l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3(); +lean_mark_persistent(l_Array_umapMAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___spec__4___closed__3); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__1); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_findRecArg_loop___rarg___closed__2(); @@ -23316,14 +23142,14 @@ l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed_ lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__15); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_toBelowAux___closed__16); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__1); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___lambda__2___closed__2); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__1(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__1); -l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__2(); -lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__4___rarg___closed__2); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__1); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___lambda__2___closed__2); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__1); +l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2 = _init_l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___main___at___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___spec__3___rarg___closed__2); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__1); l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_0__Lean_Elab_withBelowDict___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Print.c b/stage0/stdlib/Lean/Elab/Print.c index 409490a45b..4526ce3b9e 100644 --- a/stage0/stdlib/Lean/Elab/Print.c +++ b/stage0/stdlib/Lean/Elab/Print.c @@ -57,7 +57,6 @@ lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Elab_Command_CollectAxioms_collect_match__2(lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; -extern lean_object* l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; lean_object* l_Lean_Elab_Command_elabPrint___closed__4; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__2___rarg(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabPrint___closed__2; @@ -69,6 +68,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printIdCore___closed__2; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader___closed__1; +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printInduct___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printAxiomLike(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabPrintAxioms(lean_object*); @@ -107,7 +107,6 @@ extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; lean_object* l_Lean_Elab_Command_CollectAxioms_State_axioms___default; lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -extern lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_List_forM___main___at___private_Lean_Elab_Print_0__Lean_Elab_Command_printId___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; @@ -186,6 +185,7 @@ extern lean_object* l_Lean_Elab_Term_resolveName___closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_printQuot___boxed(lean_object*); lean_object* l___private_Lean_Elab_Print_0__Lean_Elab_Command_mkHeader_match__2(lean_object*); +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_withLogging___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Modifiers_hasFormat___closed__4; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); @@ -211,7 +211,7 @@ x_6 = l___private_Lean_Elab_Print_0__Lean_Elab_Command_throwUnknownId___closed__ x_7 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); -x_8 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_8 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; x_9 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_9, 0, x_7); lean_ctor_set(x_9, 1, x_8); @@ -3617,7 +3617,7 @@ if (x_13 == 0) lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; x_14 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_14, 0, x_1); -x_15 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_15 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; x_16 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); @@ -3633,7 +3633,7 @@ lean_dec(x_20); x_22 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_22, 0, x_18); lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_Elab_Term_reportUnsolvedGoals___closed__3; +x_23 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -3647,7 +3647,7 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean lean_dec(x_12); x_27 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_27, 0, x_1); -x_28 = l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__6; +x_28 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 0f3a5482fb..8e5f436367 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -21,6 +21,7 @@ lean_object* l_Lean_Elab_Command_elabStructure___lambda__1___boxed(lean_object** lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_expandDeclId___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +size_t l_USize_add(size_t, size_t); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_cases_on(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_6__findFieldInfo_x3f___boxed(lean_object*, lean_object*); @@ -42,6 +43,7 @@ lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object* lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); lean_object* l___private_Lean_Elab_Structure_11__withFields___main(lean_object*); lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uget(lean_object*, size_t); lean_object* l___private_Lean_Elab_Structure_29__mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,7 +74,6 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_9__withParents___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__11; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__12; -extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; lean_object* l___private_Lean_Elab_Structure_15__withUsed___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureNoUnassignedMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkId___at___private_Lean_Elab_Structure_30__addDefaults___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -104,6 +105,7 @@ lean_object* l_Lean_Elab_Command_elabStructure___closed__10; lean_object* l___private_Lean_Elab_Structure_20__collectUniversesFromFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_11__withFields(lean_object*); +uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_4__validStructType___boxed(lean_object*); lean_object* l___private_Lean_Elab_Structure_14__removeUnused(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -176,7 +178,6 @@ lean_object* l_Lean_Meta_mkAuxDefinition___at___private_Lean_Elab_Structure_30__ lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_Structure_2__expandCtor___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_25__addCtorFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__7; lean_object* l_Lean_Elab_Command_StructFieldInfo_inhabited___closed__1; @@ -255,6 +256,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__ex lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__3; +size_t lean_usize_of_nat(lean_object*); extern lean_object* l_Lean_registerClassAttr___closed__2; lean_object* l_Lean_LocalContext_updateBinderInfo(lean_object*, lean_object*, uint8_t); extern lean_object* l_Lean_Elab_elabModifiers___rarg___closed__3; @@ -316,6 +318,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__ex lean_object* l_Lean_Elab_Command_elabStructure___closed__1; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Structure_31__elabStructureView___spec__7(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_addGlobalInstance___at___private_Lean_Elab_Structure_31__elabStructureView___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_5__checkParentIsStructure___closed__6; lean_object* l_Lean_Meta_mkLambdaFVars___at___private_Lean_Elab_Term_19__elabImplicitLambdaAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -333,6 +336,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__ex lean_object* l___private_Lean_Elab_Structure_11__withFields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_8__processSubfields___main___rarg___closed__6; lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_3__expandFields___spec__2___closed__5; lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); @@ -386,11 +390,9 @@ lean_object* l___private_Lean_Elab_Structure_17__levelMVarToParamFVars(lean_obje uint8_t l_Lean_Elab_Modifiers_isPrivate(lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Name_appendBefore(lean_object*, lean_object*); -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___closed__2; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l___private_Lean_Elab_Structure_26__mkCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; lean_object* l_Lean_Expr_inferImplicit___main(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_28__addProjections(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -427,6 +429,7 @@ lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_31__e lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_2__expandCtor___spec__1___closed__4; lean_object* l_Lean_Elab_Command_checkValidFieldModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_20__elabImplicitLambda___main___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -434,6 +437,7 @@ lean_object* l___private_Lean_Elab_Structure_11__withFields___main___rarg___clos lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_30__addDefaults___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars___at_Lean_Elab_Term_elabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; lean_object* l_Array_findMAux___main___at___private_Lean_Elab_Structure_6__findFieldInfo_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__6; uint8_t lean_is_class(lean_object*, lean_object*); @@ -673,11 +677,11 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean lean_free_object(x_36); x_42 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_42, 0, x_35); -x_43 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; +x_43 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); -x_45 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; +x_45 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; x_46 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); @@ -750,11 +754,11 @@ if (x_62 == 0) 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_63 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_63, 0, x_35); -x_64 = l_Lean_Elab_elabAttr___rarg___lambda__2___closed__3; +x_64 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__2; x_65 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_65, 0, x_64); lean_ctor_set(x_65, 1, x_63); -x_66 = l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; +x_66 = l_Lean_Elab_elabAttr___rarg___lambda__5___closed__3; x_67 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_67, 0, x_65); lean_ctor_set(x_67, 1, x_66); @@ -818,44 +822,41 @@ return x_81; } } } -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; uint8_t x_9; -x_8 = lean_array_get_size(x_2); -x_9 = lean_nat_dec_lt(x_3, x_8); -lean_dec(x_8); -if (x_9 == 0) +uint8_t x_8; +x_8 = x_3 < x_2; +if (x_8 == 0) { -lean_object* x_10; +lean_object* x_9; lean_dec(x_5); -lean_dec(x_3); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_4); -lean_ctor_set(x_10, 1, x_7); -return x_10; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_7); +return x_9; } else { -lean_object* x_11; lean_object* x_12; -x_11 = lean_array_fget(x_2, x_3); +lean_object* x_10; lean_object* x_11; +x_10 = lean_array_uget(x_1, x_3); lean_inc(x_5); -x_12 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4(x_11, x_5, x_6, x_7); -lean_dec(x_11); -if (lean_obj_tag(x_12) == 0) +x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_2__expandCtor___spec__4(x_10, x_5, x_6, x_7); +lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_12, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_array_push(x_4, x_13); -x_16 = lean_nat_add(x_3, x_1); -lean_dec(x_3); +lean_dec(x_11); +x_14 = lean_array_push(x_4, x_12); +x_15 = 1; +x_16 = x_3 + x_15; x_3 = x_16; -x_4 = x_15; -x_7 = x_14; +x_4 = x_14; +x_7 = x_13; goto _start; } else @@ -863,20 +864,19 @@ else uint8_t x_18; lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); -x_18 = !lean_is_exclusive(x_12); +x_18 = !lean_is_exclusive(x_11); if (x_18 == 0) { -return x_12; +return x_11; } else { lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_12, 0); -x_20 = lean_ctor_get(x_12, 1); +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); lean_inc(x_20); lean_inc(x_19); -lean_dec(x_12); +lean_dec(x_11); x_21 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -889,14 +889,59 @@ return x_21; lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_5 = l_Lean_Syntax_getArgs(x_1); -x_6 = lean_unsigned_to_nat(2u); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_empty___closed__1; -x_9 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(x_6, x_5, x_7, x_8, x_2, x_3, x_4); +lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Syntax_getSepArgs(x_1); +x_6 = lean_array_get_size(x_5); +x_7 = lean_usize_of_nat(x_6); +lean_dec(x_6); +x_8 = 0; +x_9 = l_Array_empty___closed__1; +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(x_5, x_7, x_8, x_9, x_2, x_3, x_4); lean_dec(x_5); -return x_9; +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} } } lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -7102,15 +7147,18 @@ lean_dec(x_1); return x_5; } } -lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_Structure_2__expandCtor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; -x_8 = l_Array_foldlStepMAux___main___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_2); lean_dec(x_2); +x_9 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_2__expandCtor___spec__5(x_1, x_8, x_9, x_4, x_5, x_6, x_7); +lean_dec(x_6); lean_dec(x_1); -return x_8; +return x_10; } } lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_2__expandCtor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { diff --git a/stage0/stdlib/Lean/Elab/Syntax.c b/stage0/stdlib/Lean/Elab/Syntax.c index 58e0061585..f42012b920 100644 --- a/stage0/stdlib/Lean/Elab/Syntax.c +++ b/stage0/stdlib/Lean/Elab/Syntax.c @@ -13,100 +13,107 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___main___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__45; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; lean_object* l_List_reverse___rarg(lean_object*); uint8_t l_Lean_Syntax_isQuot(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__11; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__34; lean_object* l_Lean_Elab_Command_expandElab___closed__43; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__95; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; lean_object* l_Lean_Elab_Command_expandMixfix___closed__28; lean_object* l_Lean_Elab_Command_expandMixfix___closed__18; lean_object* l_Lean_Elab_Command_expandMixfix___closed__15; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__6; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__9; lean_object* l_Lean_Elab_Command_expandMixfix___closed__5; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29; lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__5; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__79; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__116; +size_t l_USize_add(size_t, size_t); +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___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_logTrace___at_Lean_Elab_Command_elabSyntax___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__124; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__25; -lean_object* l___private_Lean_Elab_Syntax_4__withoutLeftRec___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__12; -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__7; lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__2; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__134; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__8; lean_object* l_Lean_Elab_Command_mkFreshKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; +lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__3; lean_object* l_Lean_Elab_Command_elabSyntax___closed__19; -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main___closed__2; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__128; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__58; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__9; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__156; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__127; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__22; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__52; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__161; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__18; extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__148; lean_object* l_Lean_Elab_Command_expandMixfix___closed__29; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__114; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__75; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__148; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__15; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__2; +lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__58; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__3; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_notFollowedByFn___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__26; lean_object* l_Lean_Elab_Command_expandMixfix___closed__14; lean_object* l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__7; -lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4; -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__75; extern lean_object* l_Lean_nullKind; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__26; lean_object* l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem___closed__2; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__35; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__114; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__46; +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabSyntax___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_leadPrec; lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__3; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__134; +lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev_match__1___rarg(lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(lean_object*); extern lean_object* l_Lean_identKind___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__92; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__144; -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__3; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__14; +lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__28; lean_object* lean_io_error_to_string(lean_object*); extern lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__7; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__128; lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1; lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__36; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__116; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__12; lean_object* l_Array_filterSepElemsM___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__171; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__1; lean_object* l_Lean_Elab_Command_expandMixfix___closed__25; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__30; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__36; -lean_object* l___private_Lean_Elab_Syntax_1__mkParserSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_regBuiltinCommandParserAttr___closed__4; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__90; +lean_object* l_Lean_Elab_Command_elabMacroRulesAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__5; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; extern lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__102; lean_object* l_Lean_Elab_Command_expandElab___closed__12; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__169; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; lean_object* l_Lean_Elab_Command_Macro_mkFreshKind(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__6; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__104; -lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__43; extern lean_object* l_Lean_Elab_Command_commandElabAttribute; lean_object* l___private_Init_LeanInit_16__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__33; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__120; lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules(lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__32; lean_object* l_Lean_Elab_Command_expandElab___closed__10; @@ -114,718 +121,804 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2; lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_identKind___closed__2; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__13; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__1(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__13; extern lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__6; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__145; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__21; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__38; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__173; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__32; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__73; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__23; lean_object* l_Lean_Elab_Command_elabSyntax___closed__7; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__168; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__20; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__98; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__20; lean_object* l_Lean_Elab_Command_expandMacroArgIntoPattern(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_interpolatedStrNoAntiquot___closed__1; lean_object* l_Lean_Elab_Command_withExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__30; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__101; lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro___closed__1; -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; extern lean_object* l_Array_empty___closed__1; lean_object* lean_environment_find(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_unquotedSymbolFn___closed__1; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__3; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__46; lean_object* l_Lean_Elab_Command_expandMixfix___closed__24; -lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15; uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__15; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__154; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__81; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__172; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; lean_object* l_Lean_Elab_Command_expandElab___closed__45; lean_object* lean_st_ref_get(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__5; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__165; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__77; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__6; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__56; extern lean_object* l___kind_term____x40_Init_Data_ToString_Macro___hyg_2____closed__12; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__117; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__149; lean_object* l_Lean_Elab_Command_expandElab___closed__35; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__19; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__66; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22; lean_object* l_Lean_Elab_Command_expandElab___closed__4; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__92; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__6(lean_object*); lean_object* l_Lean_Elab_Term_checkLeftRec___closed__9; lean_object* l___private_Init_LeanInit_16__filterSepElemsMAux___main___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__140; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__52; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__16; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__151; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__118; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__39; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29; +lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabSyntax___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__5; +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_registerUnsupportedSyntaxId___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_checkLeftRec___closed__8; lean_object* lean_array_get_size(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__51; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__160; extern lean_object* l_Lean_charLitKind___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__146; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__5; lean_object* l_Lean_Elab_Command_withExpectedType___closed__3; extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__17; lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__44; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__167; +lean_object* l_Lean_MessageData_ofList(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__10; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__174; lean_object* l_Lean_Elab_Command_elabSyntax___closed__20; -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__3; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; +lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_myMacro____x40_Init_Data_Array_Macros___hyg_301____closed__4; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__1; +extern lean_object* l_String_splitAux___main___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__3; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__9; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__9; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__2(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandElab(lean_object*); lean_object* l_Lean_Elab_Term_toParserDescrAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__81; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__47; -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser___boxed(lean_object*); -lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__6; lean_object* l_Lean_Elab_Command_expandMacro___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__101; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__27; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__124; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__79; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__1; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__95; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__3(lean_object*, lean_object*); extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__6; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__73; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__98; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__25; lean_object* lean_string_utf8_byte_size(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__4; lean_object* l_Lean_Elab_Command_expandElab___closed__36; lean_object* l_Lean_Elab_Command_expandMixfix___closed__30; lean_object* l_Lean_mkAtom(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__20; lean_object* l_Lean_Elab_Command_strLitToPattern(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_strLitToPattern_match__1(lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; lean_object* l_Lean_Elab_Command_expandMixfix___closed__22; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__10; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__174; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__32; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__108; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses___closed__1; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__133; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__10; lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); +uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__29; lean_object* l_Lean_Elab_Command_expandElab___closed__17; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__43; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__46; -lean_object* l_Lean_Elab_Term_checkLeftRec___closed__11; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__120; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__126; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_26__elabCDot___spec__1___rarg(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__8; extern lean_object* l_Std_Range___kind_term____x40_Init_Data_Range___hyg_111____closed__2; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__49; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__42; lean_object* l_Lean_Elab_Command_expandMixfix___closed__13; lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__5; -lean_object* l___private_Lean_Elab_Syntax_3__withNotFirst(lean_object*); +lean_object* l_Lean_Elab_Command_elabSyntax_match__2(lean_object*); lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__169; extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTacticQuot___closed__2; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__103; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__132; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__55; extern lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__9; lean_object* l_Array_filterSepElemsM___at_Lean_Elab_Command_elabNoKindMacroRulesAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__28; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3; lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__21; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; lean_object* l_Lean_Elab_Command_expandElab___closed__28; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; lean_object* l_Lean_Elab_Command_expandElab___closed__14; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__184; extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__123; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__30; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__37; lean_object* l_Lean_Elab_Term_checkLeftRec___closed__1; lean_object* l_Lean_Elab_Term_checkLeftRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Parser_leadingIdentAsSymbol(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__6; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__16; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__49; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__105; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__53; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__115; +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__1; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__48; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__10; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__85; lean_object* l_Lean_Elab_Command_expandElab___closed__3; lean_object* l_Lean_Elab_Term_expandOptPrecedence___boxed(lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__15; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_Lean_AddMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__115; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__105; lean_object* l_Lean_Elab_Term_expandOptPrecedence___closed__1; +lean_object* l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__1; lean_object* l___regBuiltin_Lean_Elab_Command_expandNotation(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__23; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__85; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__186; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__34; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__16; lean_object* l_Lean_Elab_Command_expandMacro(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__100; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_checkLeftRec___closed__4; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__53; -lean_object* l___private_Lean_Elab_Syntax_5__getCatSuffix(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__71; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__63; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMacroHeadIntoPattern(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__42; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__161; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__112; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__136; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__49; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__164; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__123; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__7; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__156; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__127; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__106; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__158; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__50; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__19; lean_object* l___regBuiltin_Lean_Elab_Command_expandElab___closed__2; lean_object* l_Lean_Elab_Command_expandElab___closed__49; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__61; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__7; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__177; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__24; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__138; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51; lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__9; lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__100; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind; lean_object* l_Lean_Elab_Command_expandElab___closed__33; extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__103; extern lean_object* l_Lean_Parser_categoryParserFnImpl___closed__1; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__132; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__121; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__2; extern lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__7; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__91; lean_object* l_Lean_Elab_Command_expandElab___closed__22; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__78; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__153; lean_object* l_Lean_Elab_Command_expandMixfix___closed__2; extern lean_object* l_Lean_Expr_isSyntheticSorry___closed__1; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__143; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__87; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__93; extern lean_object* l_Lean_Elab_Tactic_mkTacticAttribute___closed__7; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__22; extern lean_object* l_Lean_strLitKind; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__68; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__5; lean_object* l_Lean_Elab_Command_expandMixfix___closed__27; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__3; +lean_object* l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__6; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; lean_object* l_Lean_Elab_Command_expandMacroArgIntoPattern___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__14; lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandNotationItemIntoPattern(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__14; lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__9; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__52; extern lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabTermQuot___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__40; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__175; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__67; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__83; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__33; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__2; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__84; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_addMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_regTermParserAttribute___closed__1; -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__9; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__130; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__62; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__137; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__54; extern lean_object* l_Lean_Elab_Attribute_hasFormat___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__129; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__7; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__147; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__5___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind___closed__1; lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabSyntax_match__2___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_strLitKind___closed__1; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__3; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__176; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__125; lean_object* l_Lean_Elab_Command_expandElab___closed__26; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__32; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__10; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__167; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_withExpectedType_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabMacroRules___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__160; -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__181; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__166; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__142; lean_object* l_Lean_Elab_Command_strLitToPattern___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; lean_object* l_Lean_Elab_Command_expandElab___closed__20; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__5; extern lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__6; -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__54; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__163; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__3; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_strLitKind___closed__2; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__20; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__5; extern lean_object* l_Lean_Parser_mkParserOfConstantUnsafe___closed__4; -lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__8; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__56; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__15; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__18; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__66; extern lean_object* l_Lean_Parser_categoryParserFnImpl___closed__4; lean_object* l_Nat_repr(lean_object*); extern lean_object* l_Char_HasRepr___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45; lean_object* l_Lean_Elab_Command_withExpectedType___closed__1; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__181; lean_object* l_Lean_Elab_Command_expandElab___closed__42; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__33; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__76; lean_object* l_Lean_Elab_Command_elabMacroRules(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__55; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__37; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__5; +lean_object* l_Lean_Elab_Command_elabSyntax_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__4; lean_object* l_Lean_Elab_Command_expandElab___closed__5; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__22; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__18; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1; lean_object* l_Lean_Elab_Command_expandElab___closed__30; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__14; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__28; +lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_mkParserAttributeImpl___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__137; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__33; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__154; extern lean_object* l_Lean_Parser_maxPrec; +lean_object* l_Lean_Elab_Command_elabSyntax___closed__22; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__16; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__57; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__80; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__6; extern lean_object* l_Lean_Parser_regTermParserAttribute___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_expandMacro(lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2; -lean_object* l___private_Lean_Elab_Syntax_11__regTraceClasses(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__182; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__155; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__2(lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_checkLeftRec___closed__2; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__91; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__78; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__22; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__24; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__30; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__8; lean_object* l_Lean_Elab_Command_withExpectedType___closed__2; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__93; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__99; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax_match__1(lean_object*); extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__5; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__121; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__153; -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__4; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_expandMixfix___closed__1; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; extern lean_object* l_Lean_mkAppStx___closed__6; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__72; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__141; extern lean_object* l_Lean_Elab_Term_expandArrayLit___closed__9; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__26; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__89; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__47; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__5; -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__111; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__14; lean_object* l_Nat_pred(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__18; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; lean_object* l_Lean_Elab_Command_elabCommand___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__34; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__5; lean_object* l_Lean_Elab_Command_elabSyntax___closed__15; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__162; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__6; -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__178; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__86; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__48; uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__3; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__25; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__3; lean_object* l_Lean_Elab_Command_elabSyntax___closed__3; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__29; extern lean_object* l_Lean_Elab_Term_expandArrayLit___closed__8; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__152; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__119; extern lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__9; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__1; extern lean_object* l_Lean_throwUnknownConstant___rarg___closed__3; lean_object* l_Lean_Elab_Command_expandElab___closed__23; -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; lean_object* l_Lean_Elab_Command_expandMixfix___closed__19; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__42; +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__52; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10; lean_object* l_Lean_Elab_Command_expandMixfix___closed__11; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__25; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__37; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__6; extern lean_object* l_Lean_quotedSymbolKind; -lean_object* l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___boxed(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__53; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__34; +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_expandMacro___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_expandMacro___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__1; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__50; +lean_object* l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__11; +size_t lean_usize_of_nat(lean_object*); +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; lean_object* l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__86; lean_object* l_Lean_ConstantInfo_type(lean_object*); -uint8_t l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__117; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__55; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2___rarg(lean_object*); extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__21; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__149; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__185; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__77; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__6; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__178; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__172; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__165; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__46; lean_object* l_Lean_Elab_Command_expandElab___closed__46; lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntaxAbbrev___closed__3; lean_object* l_Lean_Elab_Term_checkLeftRec___closed__5; -lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__5; extern lean_object* l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__1; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__110; lean_object* l_Lean_Elab_Command_expandElab___closed__25; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__12; lean_object* l_Lean_Elab_Term_checkLeftRec___closed__6; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__60; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__47; lean_object* l_Lean_Elab_Command_expandElab___closed__1; -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__4; extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_Elab_Command_expandMixfix(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__41; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__7; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__74; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__89; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__157; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__43; +lean_object* l_Lean_Elab_Term_expandOptPrecedence_match__1(lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabSyntax___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__133; lean_object* l_Lean_Syntax_getHeadInfo___main(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__108; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__7; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__71; extern lean_object* l_Lean_mkAppStx___closed__3; lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__2; lean_object* l_Lean_Elab_Command_expandElab___closed__13; lean_object* l_Lean_Elab_Command_expandMixfix___closed__12; extern lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__9; lean_object* l_Lean_Elab_Command_expandMixfix___closed__31; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__126; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__64; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_hasMacroScopes___main(lean_object*); lean_object* l_Lean_Parser_registerParserCategory(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__63; -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__4; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__157; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__97; lean_object* l_Lean_Elab_Command_elabSyntax___closed__9; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__150; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__57; lean_object* l_Lean_Elab_Command_expandMixfix___closed__8; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__51; extern lean_object* l_Bool_HasRepr___closed__1; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__171; extern lean_object* l_Lean_Syntax_inhabited; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__5; +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___main___at_Lean_resolveGlobalConst___spec__1(lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__16; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__102; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__1; +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__24; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__144; lean_object* l_Lean_Elab_Command_elabSyntax___closed__4; +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabDeclareSyntaxCat___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__15; +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__6___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__14; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__44; lean_object* l_Lean_Elab_Command_expandElab___closed__37; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__18; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__19; extern lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__90; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__76; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__176; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31; extern lean_object* l_Lean_Elab_macroAttribute; lean_object* l___regBuiltin_Lean_Elab_Command_expandMixfix(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__17; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__142; +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1(lean_object*); lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__13; lean_object* l_Lean_Elab_Command_expandElab___closed__16; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__39; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__18; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__180; lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__3; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__3; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax___boxed(lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__41; uint8_t l_Lean_Syntax_hasArgs(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__166; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__23; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__17; -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__88; uint8_t l_Lean_Parser_isParserCategory(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__6; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__125; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__2___rarg(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__163; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__3(lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__31; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__96; lean_object* l___regBuiltin_Lean_Elab_Command_expandElab___closed__1; lean_object* l_Lean_Elab_Command_expandElab___closed__7; lean_object* l_Lean_Elab_Command_elabSyntax___closed__8; extern lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__7; +lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__56; lean_object* l___regBuiltin_Lean_Elab_Command_expandNotation___closed__1; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__7; lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Elab_Term_checkLeftRec___closed__3; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__170; lean_object* l_Lean_Elab_Command_expandElab___closed__34; extern lean_object* l_Lean_Parser_categoryParserFnImpl___closed__3; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__179; lean_object* l_Lean_Syntax_getKind(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__107; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__24; -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__21; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__38; lean_object* l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__48; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__48; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__162; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__1; lean_object* l_Lean_Elab_Term_checkLeftRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__111; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__32; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__97; +lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandElab___closed__21; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_expandMacro___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; lean_object* l_Lean_Elab_Command_expandElab___closed__38; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__2; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__145; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__83; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__7; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__64; lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__150; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__43; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax___closed__2; lean_object* l_Lean_Elab_Command_inferMacroRulesAltKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__2; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26; lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__168; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__173; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_toParserDescr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__26; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__104; +lean_object* l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(lean_object*); extern lean_object* l_Lean_Elab_Tactic_evalOrelse___closed__1; lean_object* l_Lean_Elab_Command_mkKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__74; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__60; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1___rarg(lean_object*); lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__110; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__80; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__39; +lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser(lean_object*); +lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_evalIntro___closed__5; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__42; lean_object* l_Lean_Elab_Command_expandElab___closed__11; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__135; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; -lean_object* l_List_toString___at_Lean_OpenDecl_HasToString___spec__2(lean_object*); +extern lean_object* l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__7; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__9; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__36; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__4(lean_object*); lean_object* l_Lean_Elab_Command_elabSyntax(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__69; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; +lean_object* l_Lean_Elab_Command_elabSyntax___closed__21; lean_object* l_Lean_Elab_Command_expandNotationItemIntoPattern___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__57; extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l___private_Lean_Elab_Command_4__getVarDecls(lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__10; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__35; lean_object* l_Lean_Elab_Command_expandMixfix___closed__32; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__70; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__35; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__4; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__65; +lean_object* l_Lean_Elab_Command_withExpectedType_match__1(lean_object*); extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__12; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__17; -lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Elab_Command_elabNoKindMacroRulesAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__131; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__27; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__17; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__109; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__183; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__139; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses(lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withoutLeftRec___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__8; +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__21; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__53; extern lean_object* l_Lean_mkOptionalNode___closed__1; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__16; lean_object* l_Lean_Elab_Command_elabSyntax___closed__13; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Macro_expandMacro_x3fImp(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__57; lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___closed__4; extern lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__22; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__9; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__122; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__139; -lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___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___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withoutLeftRec(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__94; +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___rarg(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__17; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__122; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__131; lean_object* l_Lean_Elab_Term_expandOptPrecedence(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__94; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__8; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__65; -lean_object* l___private_Lean_Elab_Syntax_11__regTraceClasses___closed__1; -lean_object* l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main___boxed(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__109; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__4; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; lean_object* l___private_Init_LeanInit_13__quoteName___main(lean_object*); -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__6; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__62; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__54; -lean_object* l___private_Lean_Elab_Syntax_5__getCatSuffix___boxed(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__119; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__1; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__152; -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__29; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabSyntax___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; extern lean_object* l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__4; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__147; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__2; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__27; lean_object* l_Lean_Elab_Command_expandElab___closed__9; -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__84; -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__67; +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__40; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__175; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__140; lean_object* l_Lean_Elab_Command_expandElab(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_9__antiquote(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__55; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__129; lean_object* l_Lean_Elab_Command_expandElab___closed__40; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__141; lean_object* l_Lean_Elab_Command_expandElab___closed__27; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__45; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__3; lean_object* l_Lean_Elab_Command_expandMixfix___closed__7; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__4; extern lean_object* l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; lean_object* l_Lean_Elab_Term_checkLeftRec___closed__7; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__155; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__182; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__130; lean_object* l_Lean_Elab_Command_expandElab___closed__31; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__135; +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__1(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_syntax_ident(lean_object*); lean_object* l_Lean_mkStxLit(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__50; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__113; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Syntax_toNat(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__11; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__9; lean_object* l_Lean_Elab_Command_elabMacroRulesAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__6; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__1; extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Elab_Command_expandElab___closed__19; lean_object* l_List_map___main___at_Lean_resolveGlobalConst___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__19; lean_object* l_Lean_Elab_Command_expandElab___closed__44; lean_object* lean_nat_mod(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__99; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__31; lean_object* l_Lean_Elab_Command_expandElab___closed__8; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__159; lean_object* l_Lean_Elab_Command_expandMixfix___closed__20; -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__11; -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__59; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabDeclareSyntaxCat___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__2; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__177; lean_object* l_Lean_Elab_Command_expandElab___closed__6; +lean_object* l_Lean_Elab_Command_strLitToPattern_match__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23; +lean_object* l_Lean_Elab_Term_expandOptPrecedence_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1; lean_object* l_Lean_Elab_Command_mkFreshKind(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Syntax_4__withoutLeftRec(lean_object*); +lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_checkLeftRec___closed__10; extern lean_object* l_Lean_Meta_registerHygienicIntro___closed__2; lean_object* l_Lean_Elab_Command_mkKind(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_dirName___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__2___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkKindName(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__164; +lean_object* l_Lean_Elab_Command_elabSyntax_match__1(lean_object*); lean_object* l_Lean_Elab_Command_expandMacroHeadIntoSyntaxItem(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_mkAntiquot___closed__8; uint8_t l_List_isEmpty___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_3__withNotFirst___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__170; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__61; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__1; lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__106; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__158; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__24; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__21; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__38; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__136; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; lean_object* l_Lean_Elab_Command_elabSyntax___closed__12; -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__88; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__179; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__107; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__5(lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1(lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__56; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__118; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___boxed(lean_object*); lean_object* l_Lean_Elab_Command_expandMacroHeadIntoPattern___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__72; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__41; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__13; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__96; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__13; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__41; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__51; +lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__112; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux_match__1(lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__19; extern lean_object* l_Lean_mkAppStx___closed__2; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__146; lean_object* l_Lean_Elab_Command_expandElab___closed__2; extern lean_object* l_String_Inhabited; lean_object* l_Lean_Elab_Command_expandElab___closed__47; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__180; extern lean_object* l_Lean_Parser_mkParserOfConstantUnsafe___closed__3; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__23; -lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMixfix___closed__26; -lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__4___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_mkParserOfConstantUnsafe___closed__5; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__2; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_List_head_x21___at_Lean_Elab_Command_Lean_MonadOptions___spec__1(lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__44; -lean_object* l___private_Lean_Elab_Syntax_1__mkParserSeq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__1; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__24; lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__35; extern lean_object* l_Lean_Syntax_isQuot___closed__1; extern lean_object* l_Lean___kind_term____x40_Lean_Exception___hyg_3____closed__1; +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem___closed__1; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__151; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__2; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__69; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__12; extern lean_object* l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__31; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__183; +lean_object* l_Lean_Elab_Command_elabMacroRulesAux_match__1(lean_object*); +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1___rarg(lean_object*); lean_object* l_Lean_Elab_Command_expandMacroArgIntoSyntaxItem___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__1; lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_mkMacroAttributeUnsafe___closed__8; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__70; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__82; lean_object* l___regBuiltin_Lean_Elab_Command_expandElab___closed__3; -lean_object* l_Lean_Elab_Term_checkLeftRec___closed__12; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__11; lean_object* l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat(lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__17; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__159; lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__4; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__187; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__113; +extern lean_object* l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; +lean_object* l___private_Init_Util_2__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__138; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; lean_object* l_Lean_Elab_Command_expandNotation(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__143; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__68; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Command_expandMacro___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__31; +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7; lean_object* l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1; lean_object* l_Lean_Elab_Command_expandElab___closed__29; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__3(lean_object*, lean_object*); +lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabMacroRulesAux___closed__8; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__40; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__9; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__59; -lean_object* l_Lean_Elab_Term_toParserDescrAux___main___closed__82; +lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__45; lean_object* l_Lean_Elab_Command_expandElab___closed__39; extern lean_object* l_Lean_Parser_mkAntiquot___closed__1; +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +lean_object* l_Lean_Elab_Term_toParserDescrAux___closed__87; +lean_object* l_Lean_Elab_Term_expandOptPrecedence_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Term_expandOptPrecedence_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_expandOptPrecedence_match__1___rarg), 3, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Elab_Term_expandOptPrecedence___closed__1() { _start: { @@ -860,14 +953,29 @@ return x_9; } else { +uint8_t x_10; +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ return x_8; } +else +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +lean_dec(x_8); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_11); +return x_12; +} +} } else { -lean_object* x_10; -x_10 = lean_box(0); -return x_10; +lean_object* x_13; +x_13 = lean_box(0); +return x_13; } } } @@ -880,7 +988,7 @@ lean_dec(x_1); return x_2; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__1() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__1() { _start: { lean_object* x_1; @@ -888,22 +996,22 @@ x_1 = lean_mk_string("ParserDescr.andthen"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__2() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__1; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__3() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__1; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__2; +x_3 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -911,7 +1019,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -921,7 +1029,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__5() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5() { _start: { lean_object* x_1; @@ -929,17 +1037,17 @@ x_1 = lean_mk_string("andthen"); return x_1; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__6() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__5; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -949,106 +1057,122 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__5; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__9() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8; +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__10() { +static lean_object* _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__9; +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__9; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; uint8_t x_13; -x_12 = lean_array_get_size(x_2); -x_13 = lean_nat_dec_lt(x_3, x_12); -lean_dec(x_12); -if (x_13 == 0) +uint8_t x_12; +x_12 = x_3 < x_2; +if (x_12 == 0) { -lean_object* x_14; -lean_dec(x_3); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_4); -lean_ctor_set(x_14, 1, x_11); -return x_14; +lean_object* x_13; +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_4); +lean_ctor_set(x_13, 1, x_11); +return x_13; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_15 = lean_array_fget(x_2, x_3); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_3, x_16); -lean_dec(x_3); -x_18 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_11); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; +x_14 = lean_ctor_get(x_1, 0); +x_15 = lean_array_uget(x_14, x_3); +x_16 = l_Lean_Elab_Term_getCurrMacroScope(x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_18); +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Elab_Term_getMainModule___rarg(x_10, x_20); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__6; -x_25 = l_Lean_addMacroScope(x_22, x_24, x_19); -x_26 = l_Lean_SourceInfo_inhabited___closed__1; -x_27 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__3; -x_28 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__10; -x_29 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_29, 0, x_26); -lean_ctor_set(x_29, 1, x_27); -lean_ctor_set(x_29, 2, x_25); -lean_ctor_set(x_29, 3, x_28); -x_30 = l_Array_empty___closed__1; -x_31 = lean_array_push(x_30, x_29); -x_32 = lean_array_push(x_30, x_4); -x_33 = lean_array_push(x_32, x_15); -x_34 = l_Lean_nullKind___closed__2; -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = lean_array_push(x_31, x_35); -x_37 = l_Lean_mkAppStx___closed__8; -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -x_3 = x_17; -x_4 = x_38; -x_11 = x_23; +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6; +x_23 = l_Lean_addMacroScope(x_20, x_22, x_17); +x_24 = l_Lean_SourceInfo_inhabited___closed__1; +x_25 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3; +x_26 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10; +x_27 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_25); +lean_ctor_set(x_27, 2, x_23); +lean_ctor_set(x_27, 3, x_26); +x_28 = l_Array_empty___closed__1; +x_29 = lean_array_push(x_28, x_27); +x_30 = lean_array_push(x_28, x_4); +x_31 = lean_array_push(x_30, x_15); +x_32 = l_Lean_nullKind___closed__2; +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_31); +x_34 = lean_array_push(x_29, x_33); +x_35 = l_Lean_mkAppStx___closed__8; +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = 1; +x_38 = x_3 + x_37; +x_3 = x_38; +x_4 = x_36; +x_11 = x_21; goto _start; } } } -lean_object* l___private_Lean_Elab_Syntax_1__mkParserSeq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2___rarg), 1, 0); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -1060,67 +1184,112 @@ if (x_11 == 0) lean_object* x_12; uint8_t x_13; x_12 = lean_unsigned_to_nat(1u); x_13 = lean_nat_dec_eq(x_9, x_12); -lean_dec(x_9); if (x_13 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; size_t x_18; lean_object* x_19; size_t x_20; lean_object* x_21; uint8_t x_22; x_14 = l_Lean_Syntax_inhabited; x_15 = lean_array_get(x_14, x_1, x_10); -x_16 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1(x_1, x_1, x_12, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_16; +x_16 = l_Array_toSubarray___rarg(x_1, x_12, x_9); +x_17 = lean_ctor_get(x_16, 2); +lean_inc(x_17); +x_18 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +x_20 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_21 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1(x_16, x_18, x_20, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_16); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +return x_21; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = l_Lean_Syntax_inhabited; -x_18 = lean_array_get(x_17, x_1, x_10); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_8); -return x_19; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_21, 0); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } } else { -lean_object* x_20; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_dec(x_9); -x_20 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__2___rarg(x_8); -return x_20; +x_26 = l_Lean_Syntax_inhabited; +x_27 = lean_array_get(x_26, x_1, x_10); +lean_dec(x_1); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_8); +return x_28; +} +} +else +{ +lean_object* x_29; +lean_dec(x_9); +lean_dec(x_1); +x_29 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2___rarg(x_8); +return x_29; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; -x_12 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_2); lean_dec(x_1); -return x_12; +return x_14; } } -lean_object* l___private_Lean_Elab_Syntax_1__mkParserSeq___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_9; -x_9 = l___private_Lean_Elab_Syntax_1__mkParserSeq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_7); +lean_object* x_7; +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); return x_9; } } -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser___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* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___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: { uint8_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -1147,19 +1316,19 @@ return x_15; } } } -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_2__markAsTrailingParser___rarg___boxed), 8, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___rarg___boxed), 8, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser___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* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___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_9; -x_9 = l___private_Lean_Elab_Syntax_2__markAsTrailingParser___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -1170,16 +1339,16 @@ lean_dec(x_1); return x_9; } } -lean_object* l___private_Lean_Elab_Syntax_2__markAsTrailingParser___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_Syntax_2__markAsTrailingParser(x_1); +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Syntax_3__withNotFirst___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -1211,15 +1380,15 @@ return x_19; } } } -lean_object* l___private_Lean_Elab_Syntax_3__withNotFirst(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_3__withNotFirst___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withNotFirst___rarg), 10, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Syntax_4__withoutLeftRec___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withoutLeftRec___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; @@ -1251,11 +1420,11 @@ return x_19; } } } -lean_object* l___private_Lean_Elab_Syntax_4__withoutLeftRec(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withoutLeftRec(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_4__withoutLeftRec___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_withoutLeftRec___rarg), 10, 0); return x_2; } } @@ -1365,29 +1534,29 @@ return x_2; static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__4; -x_2 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("invalid occurrence of ':' modifier in head"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("cat"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_checkLeftRec___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__4() { @@ -1403,82 +1572,80 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Term_checkLeftRec___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__6() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__7() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("', parser algorithm does not allow this form of left recursion"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__8() { +static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__6; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } +static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__4; +x_2 = l___private_Lean_Elab_Util_0__Lean_Elab_evalSyntaxConstantUnsafe___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("cat"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__10() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("invalid occurrence of ':' modifier in head"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__10; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_checkLeftRec___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__11; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_checkLeftRec___closed__9; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* l_Lean_Elab_Term_checkLeftRec(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_11; -x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +uint8_t x_11; uint8_t x_60; +x_60 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +if (x_60 == 0) +{ +uint8_t x_61; +x_61 = 0; +x_11 = x_61; +goto block_59; +} +else +{ +lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_inc(x_1); +x_62 = l_Lean_Syntax_getKind(x_1); +x_63 = l_Lean_Elab_Term_checkLeftRec___closed__10; +x_64 = lean_name_eq(x_62, x_63); +lean_dec(x_62); +x_11 = x_64; +goto block_59; +} +block_59: +{ if (x_11 == 0) { uint8_t x_12; lean_object* x_13; lean_object* x_14; @@ -1493,153 +1660,152 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -lean_inc(x_1); -x_15 = l_Lean_Syntax_getKind(x_1); -x_16 = l_Lean_Elab_Term_checkLeftRec___closed__3; -x_17 = lean_name_eq(x_15, x_16); -lean_dec(x_15); -if (x_17 == 0) +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Lean_Syntax_getArg(x_1, x_15); +x_17 = l_Lean_Syntax_getId(x_16); +lean_dec(x_16); +x_18 = l_Lean_Name_eraseMacroScopes(x_17); +lean_dec(x_17); +x_19 = lean_ctor_get(x_2, 0); +x_20 = lean_name_eq(x_18, x_19); +if (x_20 == 0) { -uint8_t x_18; lean_object* x_19; lean_object* x_20; +uint8_t x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_18); lean_dec(x_8); lean_dec(x_1); -x_18 = 0; -x_19 = lean_box(x_18); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_10); -return x_20; +x_21 = 0; +x_22 = lean_box(x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_10); +return x_23; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Lean_Syntax_getIdAt(x_1, x_21); -x_23 = l_Lean_Name_eraseMacroScopes(x_22); -lean_dec(x_22); -x_24 = lean_ctor_get(x_2, 0); -x_25 = lean_name_eq(x_23, x_24); -if (x_25 == 0) +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_unsigned_to_nat(1u); +x_25 = l_Lean_Syntax_getArg(x_1, x_24); +x_26 = l_Lean_Elab_Term_expandOptPrecedence(x_25); +if (lean_obj_tag(x_26) == 0) { -uint8_t x_26; lean_object* x_27; lean_object* x_28; -lean_dec(x_23); -lean_dec(x_8); -lean_dec(x_1); -x_26 = 0; -x_27 = lean_box(x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_10); -return x_28; +uint8_t x_57; +x_57 = 1; +x_27 = x_57; +goto block_56; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_unsigned_to_nat(1u); -x_30 = l_Lean_Syntax_getArg(x_1, x_29); -x_31 = l_Lean_Elab_Term_expandOptPrecedence(x_30); -if (lean_obj_tag(x_31) == 0) +uint8_t x_58; +lean_dec(x_26); +x_58 = 0; +x_27 = x_58; +goto block_56; +} +block_56: { -uint8_t x_32; -lean_dec(x_30); -x_32 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 1); -if (x_32 == 0) +if (x_27 == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_33 = lean_unsigned_to_nat(3u); -x_34 = l_Lean_Syntax_getArg(x_1, x_33); +lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_dec(x_18); lean_dec(x_1); -x_35 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_35, 0, x_23); -x_36 = l_Lean_Elab_Term_checkLeftRec___closed__6; -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -x_38 = l_Lean_Elab_Term_checkLeftRec___closed__9; +x_28 = l_Lean_Elab_Term_checkLeftRec___closed__3; +x_29 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_25, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_25); +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +return x_29; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_29); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; +} +} +else +{ +uint8_t x_34; +lean_dec(x_25); +x_34 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 1); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_35 = lean_unsigned_to_nat(3u); +x_36 = l_Lean_Syntax_getArg(x_1, x_35); +lean_dec(x_1); +x_37 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_37, 0, x_18); +x_38 = l_Lean_Elab_Term_checkLeftRec___closed__5; x_39 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -x_40 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_34, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_34); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Lean_Elab_Term_checkLeftRec___closed__7; +x_41 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_36, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_36); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) { -return x_40; +return x_42; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 0); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +x_45 = lean_ctor_get(x_42, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_42); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } else { -lean_object* x_45; uint8_t x_46; -lean_dec(x_23); +lean_object* x_47; uint8_t x_48; +lean_dec(x_18); lean_dec(x_1); -x_45 = l___private_Lean_Elab_Syntax_2__markAsTrailingParser___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_47 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_markAsTrailingParser___rarg(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); -x_46 = !lean_is_exclusive(x_45); -if (x_46 == 0) +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) { -lean_object* x_47; uint8_t x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_45, 0); +lean_object* x_49; uint8_t x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +x_50 = 1; +x_51 = lean_box(x_50); +lean_ctor_set(x_47, 0, x_51); +return x_47; +} +else +{ +lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_47, 1); +lean_inc(x_52); lean_dec(x_47); -x_48 = 1; -x_49 = lean_box(x_48); -lean_ctor_set(x_45, 0, x_49); -return x_45; -} -else -{ -lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; -x_50 = lean_ctor_get(x_45, 1); -lean_inc(x_50); -lean_dec(x_45); -x_51 = 1; -x_52 = lean_box(x_51); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_50); -return x_53; -} -} -} -else -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; -lean_dec(x_31); -lean_dec(x_23); -lean_dec(x_1); -x_54 = l_Lean_Elab_Term_checkLeftRec___closed__12; -x_55 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_30, x_54, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_30); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) -{ +x_53 = 1; +x_54 = lean_box(x_53); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_52); return x_55; } -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_55, 0); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_55); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +} } } } @@ -1694,7 +1860,1272 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1___rarg(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +if (lean_obj_tag(x_1) == 4) +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_1, 0); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 1) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 1) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +switch (lean_obj_tag(x_9)) { +case 0: +{ +lean_object* x_10; uint8_t x_11; +lean_dec(x_3); +lean_dec(x_2); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = !lean_is_exclusive(x_7); +if (x_11 == 0) +{ +uint64_t x_12; lean_object* x_13; size_t x_14; lean_object* x_15; uint8_t x_16; +x_12 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_13 = lean_ctor_get(x_7, 1); +x_14 = lean_ctor_get_usize(x_7, 2); +x_15 = lean_ctor_get(x_7, 0); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_8); +if (x_16 == 0) +{ +lean_object* x_17; size_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_8, 1); +x_18 = lean_ctor_get_usize(x_8, 2); +x_19 = lean_ctor_get(x_8, 0); +lean_dec(x_19); +x_20 = l_Lean_mkAppStx___closed__1; +x_21 = lean_string_dec_eq(x_17, x_20); +lean_dec(x_17); +if (x_21 == 0) +{ +lean_object* x_22; +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +x_22 = lean_apply_1(x_6, x_1); +return x_22; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_1); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_1, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_1, 0); +lean_dec(x_25); +x_26 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__3; +x_27 = lean_string_dec_eq(x_13, x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +lean_dec(x_4); +x_28 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__4; +x_29 = lean_string_dec_eq(x_13, x_28); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_5); +lean_ctor_set(x_8, 1, x_20); +x_30 = lean_apply_1(x_6, x_1); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_free_object(x_1); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +x_31 = lean_box_uint64(x_12); +x_32 = lean_box_usize(x_18); +x_33 = lean_box_usize(x_14); +x_34 = lean_apply_4(x_5, x_10, x_31, x_32, x_33); +return x_34; +} +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_free_object(x_1); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +x_35 = lean_box_uint64(x_12); +x_36 = lean_box_usize(x_18); +x_37 = lean_box_usize(x_14); +x_38 = lean_apply_4(x_4, x_10, x_35, x_36, x_37); +return x_38; +} +} +else +{ +lean_object* x_39; uint8_t x_40; +lean_dec(x_1); +x_39 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__3; +x_40 = lean_string_dec_eq(x_13, x_39); +if (x_40 == 0) +{ +lean_object* x_41; uint8_t x_42; +lean_dec(x_4); +x_41 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__4; +x_42 = lean_string_dec_eq(x_13, x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_5); +lean_ctor_set(x_8, 1, x_20); +x_43 = lean_alloc_ctor(4, 2, 8); +lean_ctor_set(x_43, 0, x_7); +lean_ctor_set(x_43, 1, x_10); +lean_ctor_set_uint64(x_43, sizeof(void*)*2, x_12); +x_44 = lean_apply_1(x_6, x_43); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +x_45 = lean_box_uint64(x_12); +x_46 = lean_box_usize(x_18); +x_47 = lean_box_usize(x_14); +x_48 = lean_apply_4(x_5, x_10, x_45, x_46, x_47); +return x_48; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +x_49 = lean_box_uint64(x_12); +x_50 = lean_box_usize(x_18); +x_51 = lean_box_usize(x_14); +x_52 = lean_apply_4(x_4, x_10, x_49, x_50, x_51); +return x_52; +} +} +} +} +else +{ +lean_object* x_53; size_t x_54; lean_object* x_55; uint8_t x_56; +x_53 = lean_ctor_get(x_8, 1); +x_54 = lean_ctor_get_usize(x_8, 2); +lean_inc(x_53); +lean_dec(x_8); +x_55 = l_Lean_mkAppStx___closed__1; +x_56 = lean_string_dec_eq(x_53, x_55); +lean_dec(x_53); +if (x_56 == 0) +{ +lean_object* x_57; +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +x_57 = lean_apply_1(x_6, x_1); +return x_57; +} +else +{ +lean_object* x_58; lean_object* x_59; uint8_t x_60; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_58 = x_1; +} else { + lean_dec_ref(x_1); + x_58 = lean_box(0); +} +x_59 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__3; +x_60 = lean_string_dec_eq(x_13, x_59); +if (x_60 == 0) +{ +lean_object* x_61; uint8_t x_62; +lean_dec(x_4); +x_61 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__4; +x_62 = lean_string_dec_eq(x_13, x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_5); +x_63 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_63, 0, x_9); +lean_ctor_set(x_63, 1, x_55); +lean_ctor_set_usize(x_63, 2, x_54); +lean_ctor_set(x_7, 0, x_63); +if (lean_is_scalar(x_58)) { + x_64 = lean_alloc_ctor(4, 2, 8); +} else { + x_64 = x_58; +} +lean_ctor_set(x_64, 0, x_7); +lean_ctor_set(x_64, 1, x_10); +lean_ctor_set_uint64(x_64, sizeof(void*)*2, x_12); +x_65 = lean_apply_1(x_6, x_64); +return x_65; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_58); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +x_66 = lean_box_uint64(x_12); +x_67 = lean_box_usize(x_54); +x_68 = lean_box_usize(x_14); +x_69 = lean_apply_4(x_5, x_10, x_66, x_67, x_68); +return x_69; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_58); +lean_free_object(x_7); +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_5); +x_70 = lean_box_uint64(x_12); +x_71 = lean_box_usize(x_54); +x_72 = lean_box_usize(x_14); +x_73 = lean_apply_4(x_4, x_10, x_70, x_71, x_72); +return x_73; +} +} +} +} +else +{ +uint64_t x_74; lean_object* x_75; size_t x_76; lean_object* x_77; size_t x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_74 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_75 = lean_ctor_get(x_7, 1); +x_76 = lean_ctor_get_usize(x_7, 2); +lean_inc(x_75); +lean_dec(x_7); +x_77 = lean_ctor_get(x_8, 1); +lean_inc(x_77); +x_78 = lean_ctor_get_usize(x_8, 2); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_79 = x_8; +} else { + lean_dec_ref(x_8); + x_79 = lean_box(0); +} +x_80 = l_Lean_mkAppStx___closed__1; +x_81 = lean_string_dec_eq(x_77, x_80); +lean_dec(x_77); +if (x_81 == 0) +{ +lean_object* x_82; +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +x_82 = lean_apply_1(x_6, x_1); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; uint8_t x_85; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_83 = x_1; +} else { + lean_dec_ref(x_1); + x_83 = lean_box(0); +} +x_84 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__3; +x_85 = lean_string_dec_eq(x_75, x_84); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; +lean_dec(x_4); +x_86 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__4; +x_87 = lean_string_dec_eq(x_75, x_86); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_5); +if (lean_is_scalar(x_79)) { + x_88 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_88 = x_79; +} +lean_ctor_set(x_88, 0, x_9); +lean_ctor_set(x_88, 1, x_80); +lean_ctor_set_usize(x_88, 2, x_78); +x_89 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_75); +lean_ctor_set_usize(x_89, 2, x_76); +if (lean_is_scalar(x_83)) { + x_90 = lean_alloc_ctor(4, 2, 8); +} else { + x_90 = x_83; +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_10); +lean_ctor_set_uint64(x_90, sizeof(void*)*2, x_74); +x_91 = lean_apply_1(x_6, x_90); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_6); +x_92 = lean_box_uint64(x_74); +x_93 = lean_box_usize(x_78); +x_94 = lean_box_usize(x_76); +x_95 = lean_apply_4(x_5, x_10, x_92, x_93, x_94); +return x_95; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_83); +lean_dec(x_79); +lean_dec(x_75); +lean_dec(x_6); +lean_dec(x_5); +x_96 = lean_box_uint64(x_74); +x_97 = lean_box_usize(x_78); +x_98 = lean_box_usize(x_76); +x_99 = lean_apply_4(x_4, x_10, x_96, x_97, x_98); +return x_99; +} +} +} +} +case 1: +{ +lean_object* x_100; +lean_dec(x_5); +lean_dec(x_4); +x_100 = lean_ctor_get(x_9, 0); +lean_inc(x_100); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; uint8_t x_102; +x_101 = lean_ctor_get(x_1, 1); +lean_inc(x_101); +x_102 = !lean_is_exclusive(x_7); +if (x_102 == 0) +{ +uint64_t x_103; lean_object* x_104; size_t x_105; lean_object* x_106; uint8_t x_107; +x_103 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_104 = lean_ctor_get(x_7, 1); +x_105 = lean_ctor_get_usize(x_7, 2); +x_106 = lean_ctor_get(x_7, 0); +lean_dec(x_106); +x_107 = !lean_is_exclusive(x_8); +if (x_107 == 0) +{ +lean_object* x_108; size_t x_109; lean_object* x_110; uint8_t x_111; +x_108 = lean_ctor_get(x_8, 1); +x_109 = lean_ctor_get_usize(x_8, 2); +x_110 = lean_ctor_get(x_8, 0); +lean_dec(x_110); +x_111 = !lean_is_exclusive(x_9); +if (x_111 == 0) +{ +lean_object* x_112; size_t x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_112 = lean_ctor_get(x_9, 1); +x_113 = lean_ctor_get_usize(x_9, 2); +x_114 = lean_ctor_get(x_9, 0); +lean_dec(x_114); +x_115 = l_Lean_mkAppStx___closed__1; +x_116 = lean_string_dec_eq(x_112, x_115); +lean_dec(x_112); +if (x_116 == 0) +{ +lean_object* x_117; +lean_free_object(x_9); +lean_free_object(x_8); +lean_dec(x_108); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_101); +lean_dec(x_3); +lean_dec(x_2); +x_117 = lean_apply_1(x_6, x_1); +return x_117; +} +else +{ +uint8_t x_118; +x_118 = !lean_is_exclusive(x_1); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; +x_119 = lean_ctor_get(x_1, 1); +lean_dec(x_119); +x_120 = lean_ctor_get(x_1, 0); +lean_dec(x_120); +x_121 = l_Lean_mkAppStx___closed__3; +x_122 = lean_string_dec_eq(x_108, x_121); +if (x_122 == 0) +{ +lean_object* x_123; +lean_dec(x_3); +lean_dec(x_2); +lean_ctor_set(x_9, 1, x_115); +x_123 = lean_apply_1(x_6, x_1); +return x_123; +} +else +{ +lean_object* x_124; uint8_t x_125; +lean_dec(x_108); +x_124 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__5; +x_125 = lean_string_dec_eq(x_104, x_124); +if (x_125 == 0) +{ +uint8_t x_126; +lean_dec(x_2); +x_126 = lean_string_dec_eq(x_104, x_121); +if (x_126 == 0) +{ +lean_object* x_127; +lean_dec(x_3); +lean_ctor_set(x_9, 1, x_115); +lean_ctor_set(x_8, 1, x_121); +x_127 = lean_apply_1(x_6, x_1); +return x_127; +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_free_object(x_1); +lean_free_object(x_9); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +x_128 = lean_box_uint64(x_103); +x_129 = lean_box_usize(x_113); +x_130 = lean_box_usize(x_109); +x_131 = lean_box_usize(x_105); +x_132 = lean_apply_5(x_3, x_101, x_128, x_129, x_130, x_131); +return x_132; +} +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +lean_free_object(x_1); +lean_free_object(x_9); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +lean_dec(x_3); +x_133 = lean_box_uint64(x_103); +x_134 = lean_box_usize(x_113); +x_135 = lean_box_usize(x_109); +x_136 = lean_box_usize(x_105); +x_137 = lean_apply_5(x_2, x_101, x_133, x_134, x_135, x_136); +return x_137; +} +} +} +else +{ +lean_object* x_138; uint8_t x_139; +lean_dec(x_1); +x_138 = l_Lean_mkAppStx___closed__3; +x_139 = lean_string_dec_eq(x_108, x_138); +if (x_139 == 0) +{ +lean_object* x_140; lean_object* x_141; +lean_dec(x_3); +lean_dec(x_2); +lean_ctor_set(x_9, 1, x_115); +x_140 = lean_alloc_ctor(4, 2, 8); +lean_ctor_set(x_140, 0, x_7); +lean_ctor_set(x_140, 1, x_101); +lean_ctor_set_uint64(x_140, sizeof(void*)*2, x_103); +x_141 = lean_apply_1(x_6, x_140); +return x_141; +} +else +{ +lean_object* x_142; uint8_t x_143; +lean_dec(x_108); +x_142 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__5; +x_143 = lean_string_dec_eq(x_104, x_142); +if (x_143 == 0) +{ +uint8_t x_144; +lean_dec(x_2); +x_144 = lean_string_dec_eq(x_104, x_138); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_3); +lean_ctor_set(x_9, 1, x_115); +lean_ctor_set(x_8, 1, x_138); +x_145 = lean_alloc_ctor(4, 2, 8); +lean_ctor_set(x_145, 0, x_7); +lean_ctor_set(x_145, 1, x_101); +lean_ctor_set_uint64(x_145, sizeof(void*)*2, x_103); +x_146 = lean_apply_1(x_6, x_145); +return x_146; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_free_object(x_9); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +x_147 = lean_box_uint64(x_103); +x_148 = lean_box_usize(x_113); +x_149 = lean_box_usize(x_109); +x_150 = lean_box_usize(x_105); +x_151 = lean_apply_5(x_3, x_101, x_147, x_148, x_149, x_150); +return x_151; +} +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_free_object(x_9); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +lean_dec(x_3); +x_152 = lean_box_uint64(x_103); +x_153 = lean_box_usize(x_113); +x_154 = lean_box_usize(x_109); +x_155 = lean_box_usize(x_105); +x_156 = lean_apply_5(x_2, x_101, x_152, x_153, x_154, x_155); +return x_156; +} +} +} +} +} +else +{ +lean_object* x_157; size_t x_158; lean_object* x_159; uint8_t x_160; +x_157 = lean_ctor_get(x_9, 1); +x_158 = lean_ctor_get_usize(x_9, 2); +lean_inc(x_157); +lean_dec(x_9); +x_159 = l_Lean_mkAppStx___closed__1; +x_160 = lean_string_dec_eq(x_157, x_159); +lean_dec(x_157); +if (x_160 == 0) +{ +lean_object* x_161; +lean_free_object(x_8); +lean_dec(x_108); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_101); +lean_dec(x_3); +lean_dec(x_2); +x_161 = lean_apply_1(x_6, x_1); +return x_161; +} +else +{ +lean_object* x_162; lean_object* x_163; uint8_t x_164; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_162 = x_1; +} else { + lean_dec_ref(x_1); + x_162 = lean_box(0); +} +x_163 = l_Lean_mkAppStx___closed__3; +x_164 = lean_string_dec_eq(x_108, x_163); +if (x_164 == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_3); +lean_dec(x_2); +x_165 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_165, 0, x_100); +lean_ctor_set(x_165, 1, x_159); +lean_ctor_set_usize(x_165, 2, x_158); +lean_ctor_set(x_8, 0, x_165); +if (lean_is_scalar(x_162)) { + x_166 = lean_alloc_ctor(4, 2, 8); +} else { + x_166 = x_162; +} +lean_ctor_set(x_166, 0, x_7); +lean_ctor_set(x_166, 1, x_101); +lean_ctor_set_uint64(x_166, sizeof(void*)*2, x_103); +x_167 = lean_apply_1(x_6, x_166); +return x_167; +} +else +{ +lean_object* x_168; uint8_t x_169; +lean_dec(x_108); +x_168 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__5; +x_169 = lean_string_dec_eq(x_104, x_168); +if (x_169 == 0) +{ +uint8_t x_170; +lean_dec(x_2); +x_170 = lean_string_dec_eq(x_104, x_163); +if (x_170 == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +lean_dec(x_3); +x_171 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_171, 0, x_100); +lean_ctor_set(x_171, 1, x_159); +lean_ctor_set_usize(x_171, 2, x_158); +lean_ctor_set(x_8, 1, x_163); +lean_ctor_set(x_8, 0, x_171); +if (lean_is_scalar(x_162)) { + x_172 = lean_alloc_ctor(4, 2, 8); +} else { + x_172 = x_162; +} +lean_ctor_set(x_172, 0, x_7); +lean_ctor_set(x_172, 1, x_101); +lean_ctor_set_uint64(x_172, sizeof(void*)*2, x_103); +x_173 = lean_apply_1(x_6, x_172); +return x_173; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +lean_dec(x_162); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +x_174 = lean_box_uint64(x_103); +x_175 = lean_box_usize(x_158); +x_176 = lean_box_usize(x_109); +x_177 = lean_box_usize(x_105); +x_178 = lean_apply_5(x_3, x_101, x_174, x_175, x_176, x_177); +return x_178; +} +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +lean_dec(x_162); +lean_free_object(x_8); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +lean_dec(x_3); +x_179 = lean_box_uint64(x_103); +x_180 = lean_box_usize(x_158); +x_181 = lean_box_usize(x_109); +x_182 = lean_box_usize(x_105); +x_183 = lean_apply_5(x_2, x_101, x_179, x_180, x_181, x_182); +return x_183; +} +} +} +} +} +else +{ +lean_object* x_184; size_t x_185; lean_object* x_186; size_t x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; +x_184 = lean_ctor_get(x_8, 1); +x_185 = lean_ctor_get_usize(x_8, 2); +lean_inc(x_184); +lean_dec(x_8); +x_186 = lean_ctor_get(x_9, 1); +lean_inc(x_186); +x_187 = lean_ctor_get_usize(x_9, 2); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + x_188 = x_9; +} else { + lean_dec_ref(x_9); + x_188 = lean_box(0); +} +x_189 = l_Lean_mkAppStx___closed__1; +x_190 = lean_string_dec_eq(x_186, x_189); +lean_dec(x_186); +if (x_190 == 0) +{ +lean_object* x_191; +lean_dec(x_188); +lean_dec(x_184); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_101); +lean_dec(x_3); +lean_dec(x_2); +x_191 = lean_apply_1(x_6, x_1); +return x_191; +} +else +{ +lean_object* x_192; lean_object* x_193; uint8_t x_194; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_192 = x_1; +} else { + lean_dec_ref(x_1); + x_192 = lean_box(0); +} +x_193 = l_Lean_mkAppStx___closed__3; +x_194 = lean_string_dec_eq(x_184, x_193); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_188)) { + x_195 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_195 = x_188; +} +lean_ctor_set(x_195, 0, x_100); +lean_ctor_set(x_195, 1, x_189); +lean_ctor_set_usize(x_195, 2, x_187); +x_196 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_184); +lean_ctor_set_usize(x_196, 2, x_185); +lean_ctor_set(x_7, 0, x_196); +if (lean_is_scalar(x_192)) { + x_197 = lean_alloc_ctor(4, 2, 8); +} else { + x_197 = x_192; +} +lean_ctor_set(x_197, 0, x_7); +lean_ctor_set(x_197, 1, x_101); +lean_ctor_set_uint64(x_197, sizeof(void*)*2, x_103); +x_198 = lean_apply_1(x_6, x_197); +return x_198; +} +else +{ +lean_object* x_199; uint8_t x_200; +lean_dec(x_184); +x_199 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__5; +x_200 = lean_string_dec_eq(x_104, x_199); +if (x_200 == 0) +{ +uint8_t x_201; +lean_dec(x_2); +x_201 = lean_string_dec_eq(x_104, x_193); +if (x_201 == 0) +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_3); +if (lean_is_scalar(x_188)) { + x_202 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_202 = x_188; +} +lean_ctor_set(x_202, 0, x_100); +lean_ctor_set(x_202, 1, x_189); +lean_ctor_set_usize(x_202, 2, x_187); +x_203 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_193); +lean_ctor_set_usize(x_203, 2, x_185); +lean_ctor_set(x_7, 0, x_203); +if (lean_is_scalar(x_192)) { + x_204 = lean_alloc_ctor(4, 2, 8); +} else { + x_204 = x_192; +} +lean_ctor_set(x_204, 0, x_7); +lean_ctor_set(x_204, 1, x_101); +lean_ctor_set_uint64(x_204, sizeof(void*)*2, x_103); +x_205 = lean_apply_1(x_6, x_204); +return x_205; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +lean_dec(x_192); +lean_dec(x_188); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +x_206 = lean_box_uint64(x_103); +x_207 = lean_box_usize(x_187); +x_208 = lean_box_usize(x_185); +x_209 = lean_box_usize(x_105); +x_210 = lean_apply_5(x_3, x_101, x_206, x_207, x_208, x_209); +return x_210; +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_192); +lean_dec(x_188); +lean_free_object(x_7); +lean_dec(x_104); +lean_dec(x_6); +lean_dec(x_3); +x_211 = lean_box_uint64(x_103); +x_212 = lean_box_usize(x_187); +x_213 = lean_box_usize(x_185); +x_214 = lean_box_usize(x_105); +x_215 = lean_apply_5(x_2, x_101, x_211, x_212, x_213, x_214); +return x_215; +} +} +} +} +} +else +{ +uint64_t x_216; lean_object* x_217; size_t x_218; lean_object* x_219; size_t x_220; lean_object* x_221; lean_object* x_222; size_t x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; +x_216 = lean_ctor_get_uint64(x_1, sizeof(void*)*2); +x_217 = lean_ctor_get(x_7, 1); +x_218 = lean_ctor_get_usize(x_7, 2); +lean_inc(x_217); +lean_dec(x_7); +x_219 = lean_ctor_get(x_8, 1); +lean_inc(x_219); +x_220 = lean_ctor_get_usize(x_8, 2); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_221 = x_8; +} else { + lean_dec_ref(x_8); + x_221 = lean_box(0); +} +x_222 = lean_ctor_get(x_9, 1); +lean_inc(x_222); +x_223 = lean_ctor_get_usize(x_9, 2); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + x_224 = x_9; +} else { + lean_dec_ref(x_9); + x_224 = lean_box(0); +} +x_225 = l_Lean_mkAppStx___closed__1; +x_226 = lean_string_dec_eq(x_222, x_225); +lean_dec(x_222); +if (x_226 == 0) +{ +lean_object* x_227; +lean_dec(x_224); +lean_dec(x_221); +lean_dec(x_219); +lean_dec(x_217); +lean_dec(x_101); +lean_dec(x_3); +lean_dec(x_2); +x_227 = lean_apply_1(x_6, x_1); +return x_227; +} +else +{ +lean_object* x_228; lean_object* x_229; uint8_t x_230; +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_228 = x_1; +} else { + lean_dec_ref(x_1); + x_228 = lean_box(0); +} +x_229 = l_Lean_mkAppStx___closed__3; +x_230 = lean_string_dec_eq(x_219, x_229); +if (x_230 == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_3); +lean_dec(x_2); +if (lean_is_scalar(x_224)) { + x_231 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_231 = x_224; +} +lean_ctor_set(x_231, 0, x_100); +lean_ctor_set(x_231, 1, x_225); +lean_ctor_set_usize(x_231, 2, x_223); +if (lean_is_scalar(x_221)) { + x_232 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_232 = x_221; +} +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_219); +lean_ctor_set_usize(x_232, 2, x_220); +x_233 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_217); +lean_ctor_set_usize(x_233, 2, x_218); +if (lean_is_scalar(x_228)) { + x_234 = lean_alloc_ctor(4, 2, 8); +} else { + x_234 = x_228; +} +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_101); +lean_ctor_set_uint64(x_234, sizeof(void*)*2, x_216); +x_235 = lean_apply_1(x_6, x_234); +return x_235; +} +else +{ +lean_object* x_236; uint8_t x_237; +lean_dec(x_219); +x_236 = l_Lean_Parser_mkParserOfConstantUnsafe___closed__5; +x_237 = lean_string_dec_eq(x_217, x_236); +if (x_237 == 0) +{ +uint8_t x_238; +lean_dec(x_2); +x_238 = lean_string_dec_eq(x_217, x_229); +if (x_238 == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +lean_dec(x_3); +if (lean_is_scalar(x_224)) { + x_239 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_239 = x_224; +} +lean_ctor_set(x_239, 0, x_100); +lean_ctor_set(x_239, 1, x_225); +lean_ctor_set_usize(x_239, 2, x_223); +if (lean_is_scalar(x_221)) { + x_240 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_240 = x_221; +} +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_229); +lean_ctor_set_usize(x_240, 2, x_220); +x_241 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_217); +lean_ctor_set_usize(x_241, 2, x_218); +if (lean_is_scalar(x_228)) { + x_242 = lean_alloc_ctor(4, 2, 8); +} else { + x_242 = x_228; +} +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_101); +lean_ctor_set_uint64(x_242, sizeof(void*)*2, x_216); +x_243 = lean_apply_1(x_6, x_242); +return x_243; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +lean_dec(x_228); +lean_dec(x_224); +lean_dec(x_221); +lean_dec(x_217); +lean_dec(x_6); +x_244 = lean_box_uint64(x_216); +x_245 = lean_box_usize(x_223); +x_246 = lean_box_usize(x_220); +x_247 = lean_box_usize(x_218); +x_248 = lean_apply_5(x_3, x_101, x_244, x_245, x_246, x_247); +return x_248; +} +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +lean_dec(x_228); +lean_dec(x_224); +lean_dec(x_221); +lean_dec(x_217); +lean_dec(x_6); +lean_dec(x_3); +x_249 = lean_box_uint64(x_216); +x_250 = lean_box_usize(x_223); +x_251 = lean_box_usize(x_220); +x_252 = lean_box_usize(x_218); +x_253 = lean_apply_5(x_2, x_101, x_249, x_250, x_251, x_252); +return x_253; +} +} +} +} +} +else +{ +lean_object* x_254; +lean_dec(x_100); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +x_254 = lean_apply_1(x_6, x_1); +return x_254; +} +} +default: +{ +lean_object* x_255; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_255 = lean_apply_1(x_6, x_1); +return x_255; +} +} +} +else +{ +lean_object* x_256; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_256 = lean_apply_1(x_6, x_1); +return x_256; +} +} +else +{ +lean_object* x_257; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_257 = lean_apply_1(x_6, x_1); +return x_257; +} +} +else +{ +lean_object* x_258; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_258 = lean_apply_1(x_6, x_1); +return x_258; +} +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_toParserDescrAux_match__1___rarg), 6, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_toParserDescrAux_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__3___rarg(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_dec(x_4); +lean_dec(x_3); +x_5 = lean_box(0); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_7); +lean_dec(x_3); +x_10 = lean_apply_1(x_4, x_1); +return x_10; +} +} +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_toParserDescrAux_match__3___rarg), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_toParserDescrAux_match__4___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_toParserDescrAux_match__5___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__6___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Term_toParserDescrAux_match__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_toParserDescrAux_match__6___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1___rarg(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -1705,15 +3136,15 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1___rarg), 1, 0); +x_9 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1___rarg), 1, 0); return x_9; } } -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -1761,7 +3192,7 @@ return x_24; } } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___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* x_10) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___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* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -1781,21 +3212,21 @@ x_18 = l_Lean_throwError___at_Lean_Elab_Term_checkLeftRec___spec__2___rarg(x_17, return x_18; } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4(lean_object* x_1) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4___rarg___boxed), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4___rarg___boxed), 10, 0); return x_2; } } -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; lean_inc(x_4); lean_inc(x_1); -x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); x_12 = !lean_is_exclusive(x_11); if (x_12 == 0) { @@ -1819,7 +3250,7 @@ else lean_object* x_19; uint8_t x_20; lean_dec(x_16); lean_free_object(x_11); -x_19 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_19 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); lean_dec(x_4); x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) @@ -1867,7 +3298,7 @@ else { lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_27); -x_31 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); +x_31 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_25); lean_dec(x_4); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); @@ -1893,7 +3324,7 @@ return x_35; } } } -lean_object* l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -2386,7 +3817,51 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(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(4, 1, 0); +lean_ctor_set(x_6, 0, x_4); +x_7 = l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(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(4, 1, 0); +lean_ctor_set(x_10, 0, x_8); +x_11 = l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(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_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -2434,7 +3909,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_25 = l_Lean_Elab_Term_toParserDescrAux___main(x_19, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_25 = l_Lean_Elab_Term_toParserDescrAux(x_19, x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_25) == 0) { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -2487,27 +3962,27 @@ return x_36; } } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; x_2 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; x_2 = l___private_Lean_Elab_Quotation_2__quoteSyntax___main___closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__3() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__3() { _start: { lean_object* x_1; @@ -2515,17 +3990,17 @@ x_1 = lean_mk_string("num"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__4() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__3; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__5() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__5() { _start: { lean_object* x_1; @@ -2533,17 +4008,17 @@ x_1 = lean_mk_string("str"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__6() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__5; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__7() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__7() { _start: { lean_object* x_1; @@ -2551,27 +4026,27 @@ x_1 = lean_mk_string("char"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__8() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__7; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__9() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; x_2 = l_Lean_identKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__10() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__10() { _start: { lean_object* x_1; @@ -2579,17 +4054,17 @@ x_1 = lean_mk_string("noWs"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__11() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__10; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__12() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__12() { _start: { lean_object* x_1; @@ -2597,27 +4072,27 @@ x_1 = lean_mk_string("try"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__13() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__12; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__14() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; x_2 = l_Lean_Parser_notFollowedByFn___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__15() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__15() { _start: { lean_object* x_1; @@ -2625,27 +4100,27 @@ x_1 = lean_mk_string("lookahead"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__16() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__15; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__15; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__17() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; x_2 = l_Lean_Parser_interpolatedStrNoAntiquot___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__18() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__18() { _start: { lean_object* x_1; @@ -2653,17 +4128,17 @@ x_1 = lean_mk_string("sepBy"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__19() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__18; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__18; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__20() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__20() { _start: { lean_object* x_1; @@ -2671,17 +4146,17 @@ x_1 = lean_mk_string("sepBy1"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__21() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__20; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__22() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__22() { _start: { lean_object* x_1; @@ -2689,17 +4164,17 @@ x_1 = lean_mk_string("many"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__23() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__22; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__24() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__24() { _start: { lean_object* x_1; @@ -2707,17 +4182,17 @@ x_1 = lean_mk_string("many1"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__25() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__24; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__26() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__26() { _start: { lean_object* x_1; @@ -2725,27 +4200,27 @@ x_1 = lean_mk_string("optional"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__27() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__26; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__26; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__28() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_checkLeftRec___closed__1; +x_1 = l_Lean_Elab_Term_checkLeftRec___closed__8; x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__29() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__29() { _start: { lean_object* x_1; @@ -2753,27 +4228,16 @@ x_1 = lean_mk_string("unexpected syntax kind of category `syntax`: "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__30() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__30() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__29; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__29; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__31() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__30; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__32() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__31() { _start: { lean_object* x_1; @@ -2781,22 +4245,22 @@ x_1 = lean_mk_string("ParserDescr.orelse"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__33() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__32() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__32; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__31; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__34() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__33() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__32; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__31; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__33; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__32; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2804,51 +4268,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__35() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__34() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__36() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__35() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_Elab_Tactic_evalOrelse___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__37() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__36() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__36; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__35; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__38() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__37() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__37; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__36; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__39() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__38() { _start: { lean_object* x_1; @@ -2856,22 +4320,22 @@ x_1 = lean_mk_string("ParserDescr.optional"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__40() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__39() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__39; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__38; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__41() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__40() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__39; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__38; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__40; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__39; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2879,51 +4343,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__42() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__41() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__26; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__26; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__43() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__42() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__26; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__26; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__44() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__43() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__43; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__42; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__45() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__44() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__44; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__43; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__46() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__45() { _start: { lean_object* x_1; @@ -2931,22 +4395,22 @@ x_1 = lean_mk_string("ParserDescr.many1"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__47() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__46() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__46; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__45; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__48() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__47() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__46; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__45; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__47; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__46; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2954,51 +4418,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__49() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__48() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__24; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__50() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__49() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__24; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__51() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__50() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__50; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__49; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__52() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__51() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__51; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__50; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__53() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__52() { _start: { lean_object* x_1; @@ -3006,22 +4470,22 @@ x_1 = lean_mk_string("ParserDescr.many"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__54() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__53() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__53; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__52; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__55() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__54() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__53; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__52; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__54; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__53; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3029,51 +4493,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__56() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__55() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__22; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__57() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__56() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__22; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__58() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__57() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__57; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__56; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__59() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__58() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__58; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__57; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__60() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__59() { _start: { lean_object* x_1; @@ -3081,22 +4545,22 @@ x_1 = lean_mk_string("ParserDescr.sepBy1"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__61() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__60() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__60; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__59; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__62() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__61() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__60; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__59; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__61; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__60; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3104,51 +4568,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__63() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__62() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__20; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__64() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__63() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__20; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__65() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__64() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__64; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__63; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__66() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__65() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__65; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__64; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__67() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__66() { _start: { lean_object* x_1; @@ -3156,22 +4620,22 @@ x_1 = lean_mk_string("ParserDescr.sepBy"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__68() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__67() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__67; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__66; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__69() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__68() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__67; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__66; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__68; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__67; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3179,51 +4643,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__70() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__69() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__18; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__18; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__71() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__70() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__18; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__18; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__72() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__71() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__71; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__70; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__73() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__72() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__72; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__71; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__74() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__73() { _start: { lean_object* x_1; @@ -3231,22 +4695,22 @@ x_1 = lean_mk_string("ParserDescr.interpolatedStr"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__75() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__74() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__74; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__73; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__76() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__75() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__74; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__73; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__75; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__74; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3254,51 +4718,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__77() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__76() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Parser_interpolatedStrNoAntiquot___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__78() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__77() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_Parser_interpolatedStrNoAntiquot___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__79() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__78() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__78; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__77; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__80() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__79() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__79; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__78; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__81() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__80() { _start: { lean_object* x_1; @@ -3306,22 +4770,22 @@ x_1 = lean_mk_string("ParserDescr.lookahead"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__82() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__81() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__81; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__80; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__83() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__82() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__81; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__80; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__82; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__81; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3329,51 +4793,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__84() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__83() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__15; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__15; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__85() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__84() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__15; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__15; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__86() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__85() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__85; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__84; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__87() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__86() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__86; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__85; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__88() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__87() { _start: { lean_object* x_1; @@ -3381,22 +4845,22 @@ x_1 = lean_mk_string("ParserDescr.notFollowedBy"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__89() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__88() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__88; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__87; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__90() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__89() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__88; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__87; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__89; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__88; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3404,51 +4868,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__91() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__90() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Parser_notFollowedByFn___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__92() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__91() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_Parser_notFollowedByFn___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__93() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__92() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__92; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__91; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__94() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__93() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__93; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__92; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__95() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__94() { _start: { lean_object* x_1; @@ -3456,22 +4920,22 @@ x_1 = lean_mk_string("ParserDescr.try"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__96() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__95() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__95; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__94; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__97() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__96() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__95; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__94; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__96; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__95; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3479,51 +4943,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__98() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__97() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__12; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__99() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__98() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__12; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__100() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__99() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__99; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__98; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__101() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__100() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__100; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__99; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__102() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__101() { _start: { lean_object* x_1; @@ -3531,22 +4995,22 @@ x_1 = lean_mk_string("ParserDescr.noWs"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__103() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__102() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__102; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__101; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__104() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__103() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__102; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__101; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__103; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__102; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3554,51 +5018,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__105() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__104() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__10; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__106() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__105() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__10; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__107() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__106() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__106; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__105; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__108() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__107() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__107; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__106; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__109() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__108() { _start: { lean_object* x_1; @@ -3606,22 +5070,22 @@ x_1 = lean_mk_string("ParserDescr.ident"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__110() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__109() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__109; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__108; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__111() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__110() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__109; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__108; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__110; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__109; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3629,51 +5093,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__112() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__111() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_identKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__113() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__112() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_identKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__114() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__113() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__113; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__112; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__115() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__114() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__114; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__113; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__116() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__115() { _start: { lean_object* x_1; @@ -3681,22 +5145,22 @@ x_1 = lean_mk_string("ParserDescr.charLit"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__117() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__116() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__116; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__115; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__118() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__117() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__116; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__115; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__117; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__116; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3704,51 +5168,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__119() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__118() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_charLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__120() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__119() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_charLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__121() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__120() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__120; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__119; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__122() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__121() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__121; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__120; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__123() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__122() { _start: { lean_object* x_1; @@ -3756,22 +5220,22 @@ x_1 = lean_mk_string("ParserDescr.strLit"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__124() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__123() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__123; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__122; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__125() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__124() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__123; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__122; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__124; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__123; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3779,51 +5243,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__126() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__125() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_strLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__127() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__126() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_strLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__128() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__127() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__127; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__126; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__129() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__128() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__128; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__127; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__130() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__129() { _start: { lean_object* x_1; @@ -3831,22 +5295,22 @@ x_1 = lean_mk_string("ParserDescr.numLit"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__131() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__130() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__130; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__129; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__132() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__131() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__130; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__129; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__131; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__130; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3854,51 +5318,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__133() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__132() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_numLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__134() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__133() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_numLitKind___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__135() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__134() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__134; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__133; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__136() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__135() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__135; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__134; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__137() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__136() { _start: { lean_object* x_1; @@ -3906,22 +5370,22 @@ x_1 = lean_mk_string("ParserDescr.symbol"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__138() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__137() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__137; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__136; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__139() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__138() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__137; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__136; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__138; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__137; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3929,51 +5393,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__140() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__139() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Parser_unquotedSymbolFn___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__141() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__140() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_Parser_unquotedSymbolFn___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__142() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__141() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__141; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__140; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__143() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__142() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__142; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__141; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__144() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__143() { _start: { lean_object* x_1; @@ -3981,22 +5445,22 @@ x_1 = lean_mk_string("ParserDescr.nonReservedSymbol"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__145() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__144() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__144; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__143; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__146() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__145() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__144; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__143; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__145; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__144; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4004,7 +5468,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__147() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__146() { _start: { lean_object* x_1; @@ -4012,51 +5476,51 @@ x_1 = lean_mk_string("nonReservedSymbol"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__148() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__147() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__147; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__146; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__149() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__148() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__147; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__146; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__150() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__149() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__149; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__148; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__151() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__150() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__150; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__149; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__152() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__151() { _start: { lean_object* x_1; lean_object* x_2; @@ -4065,13 +5529,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__153() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__152() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Bool_HasRepr___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__152; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__151; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4079,7 +5543,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__154() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__153() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4089,7 +5553,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__155() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__154() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4099,41 +5563,41 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__156() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__155() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__155; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__154; x_2 = l_Bool_HasRepr___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__157() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__156() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__156; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__155; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__158() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__157() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__157; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__156; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__159() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__158() { _start: { lean_object* x_1; @@ -4141,22 +5605,22 @@ x_1 = lean_mk_string("ParserDescr.cat"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__160() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__159() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__159; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__158; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__161() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__160() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__159; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__158; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__160; +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__159; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4164,51 +5628,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__162() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__161() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Term_checkLeftRec___closed__2; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Elab_Term_checkLeftRec___closed__9; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__163() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__162() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Term_checkLeftRec___closed__2; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Term_checkLeftRec___closed__9; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__164() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__163() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__163; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__162; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__165() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__164() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__164; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__163; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__166() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__165() { _start: { lean_object* x_1; @@ -4216,27 +5680,16 @@ x_1 = lean_mk_string("unknown category '"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__167() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__166() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__166; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__165; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__168() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__167; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__169() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__167() { _start: { lean_object* x_1; @@ -4244,102 +5697,16 @@ x_1 = lean_mk_string("' or parser declaration"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__170() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__168() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__169; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__167; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__171() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__170; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__172() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("ParserDescr.parser"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__173() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__172; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__174() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__172; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_toParserDescrAux___main___closed__173; -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; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__175() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Parser_mkParserAttributeImpl___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__176() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Parser_mkParserAttributeImpl___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__177() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__176; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__178() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__177; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__179() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__169() { _start: { lean_object* x_1; @@ -4347,27 +5714,102 @@ x_1 = lean_mk_string("unexpected precedence"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__180() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__170() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__179; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__169; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__181() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__171() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__180; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__170; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__182() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__172() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ParserDescr.parser"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__173() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__172; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__174() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__172; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Term_toParserDescrAux___closed__173; +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__175() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; +x_2 = l_Lean_Parser_mkParserAttributeImpl___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__176() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Parser_mkParserAttributeImpl___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__177() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__176; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__178() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__177; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__179() { _start: { lean_object* x_1; @@ -4375,27 +5817,16 @@ x_1 = lean_mk_string("ambiguous parser declaration "); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__183() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__180() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__182; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__179; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__184() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__183; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__185() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__181() { _start: { lean_object* x_1; @@ -4403,27 +5834,27 @@ x_1 = lean_mk_string("invalid atomic left recursive syntax"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__186() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__182() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__185; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__181; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__187() { +static lean_object* _init_l_Lean_Elab_Term_toParserDescrAux___closed__183() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_toParserDescrAux___main___closed__186; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__182; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_toParserDescrAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_Elab_Term_toParserDescrAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -4439,279 +5870,283 @@ 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_Elab_Term_toParserDescrAux___main___closed__1; +x_16 = l_Lean_Elab_Term_toParserDescrAux___closed__1; 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_Elab_Term_checkLeftRec___closed__3; +x_18 = l_Lean_Elab_Term_checkLeftRec___closed__10; x_19 = lean_name_eq(x_11, x_18); if (x_19 == 0) { lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_20 = l_Lean_Elab_Term_toParserDescrAux___closed__2; x_21 = lean_name_eq(x_11, x_20); if (x_21 == 0) { lean_object* x_22; uint8_t x_23; -x_22 = l_Lean_Elab_Term_toParserDescrAux___main___closed__4; +x_22 = l_Lean_Elab_Term_toParserDescrAux___closed__4; x_23 = lean_name_eq(x_11, x_22); if (x_23 == 0) { lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Elab_Term_toParserDescrAux___main___closed__6; +x_24 = l_Lean_Elab_Term_toParserDescrAux___closed__6; x_25 = lean_name_eq(x_11, x_24); if (x_25 == 0) { lean_object* x_26; uint8_t x_27; -x_26 = l_Lean_Elab_Term_toParserDescrAux___main___closed__8; +x_26 = l_Lean_Elab_Term_toParserDescrAux___closed__8; x_27 = lean_name_eq(x_11, x_26); if (x_27 == 0) { lean_object* x_28; uint8_t x_29; -x_28 = l_Lean_Elab_Term_toParserDescrAux___main___closed__9; +x_28 = l_Lean_Elab_Term_toParserDescrAux___closed__9; x_29 = lean_name_eq(x_11, x_28); if (x_29 == 0) { lean_object* x_30; uint8_t x_31; -x_30 = l_Lean_Elab_Term_toParserDescrAux___main___closed__11; +x_30 = l_Lean_Elab_Term_toParserDescrAux___closed__11; x_31 = lean_name_eq(x_11, x_30); if (x_31 == 0) { lean_object* x_32; uint8_t x_33; -x_32 = l_Lean_Elab_Term_toParserDescrAux___main___closed__13; +x_32 = l_Lean_Elab_Term_toParserDescrAux___closed__13; x_33 = lean_name_eq(x_11, x_32); if (x_33 == 0) { lean_object* x_34; uint8_t x_35; -x_34 = l_Lean_Elab_Term_toParserDescrAux___main___closed__14; +x_34 = l_Lean_Elab_Term_toParserDescrAux___closed__14; x_35 = lean_name_eq(x_11, x_34); if (x_35 == 0) { lean_object* x_36; uint8_t x_37; -x_36 = l_Lean_Elab_Term_toParserDescrAux___main___closed__16; +x_36 = l_Lean_Elab_Term_toParserDescrAux___closed__16; x_37 = lean_name_eq(x_11, x_36); if (x_37 == 0) { lean_object* x_38; uint8_t x_39; -x_38 = l_Lean_Elab_Term_toParserDescrAux___main___closed__17; +x_38 = l_Lean_Elab_Term_toParserDescrAux___closed__17; x_39 = lean_name_eq(x_11, x_38); if (x_39 == 0) { lean_object* x_40; uint8_t x_41; -x_40 = l_Lean_Elab_Term_toParserDescrAux___main___closed__19; +x_40 = l_Lean_Elab_Term_toParserDescrAux___closed__19; x_41 = lean_name_eq(x_11, x_40); if (x_41 == 0) { lean_object* x_42; uint8_t x_43; -x_42 = l_Lean_Elab_Term_toParserDescrAux___main___closed__21; +x_42 = l_Lean_Elab_Term_toParserDescrAux___closed__21; x_43 = lean_name_eq(x_11, x_42); if (x_43 == 0) { lean_object* x_44; uint8_t x_45; -x_44 = l_Lean_Elab_Term_toParserDescrAux___main___closed__23; +x_44 = l_Lean_Elab_Term_toParserDescrAux___closed__23; x_45 = lean_name_eq(x_11, x_44); if (x_45 == 0) { lean_object* x_46; uint8_t x_47; -x_46 = l_Lean_Elab_Term_toParserDescrAux___main___closed__25; +x_46 = l_Lean_Elab_Term_toParserDescrAux___closed__25; x_47 = lean_name_eq(x_11, x_46); if (x_47 == 0) { lean_object* x_48; uint8_t x_49; -x_48 = l_Lean_Elab_Term_toParserDescrAux___main___closed__27; +x_48 = l_Lean_Elab_Term_toParserDescrAux___closed__27; x_49 = lean_name_eq(x_11, x_48); if (x_49 == 0) { lean_object* x_50; uint8_t x_51; -x_50 = l_Lean_Elab_Term_toParserDescrAux___main___closed__28; +x_50 = l_Lean_Elab_Term_toParserDescrAux___closed__28; x_51 = lean_name_eq(x_11, x_50); if (x_51 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_61 = lean_st_ref_get(x_9, x_10); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec(x_61); -x_64 = lean_ctor_get(x_62, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_63 = lean_st_ref_get(x_9, x_10); +x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); -lean_dec(x_62); -x_65 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_63); -x_66 = lean_ctor_get(x_65, 0); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = lean_ctor_get(x_64, 0); lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec(x_65); -x_68 = lean_ctor_get(x_8, 1); +lean_dec(x_64); +x_67 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_65); +x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -x_69 = lean_ctor_get(x_8, 2); +x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); -x_70 = lean_st_ref_get(x_9, x_67); -x_71 = lean_ctor_get(x_70, 0); +lean_dec(x_67); +x_70 = lean_ctor_get(x_8, 1); +lean_inc(x_70); +x_71 = lean_ctor_get(x_8, 2); lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_ctor_get(x_71, 1); +x_72 = lean_st_ref_get(x_9, x_69); +x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); -lean_dec(x_71); -lean_inc(x_64); -x_74 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); -lean_closure_set(x_74, 0, x_64); -x_75 = x_74; -x_76 = lean_environment_main_module(x_64); -x_77 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_77, 2, x_66); -lean_ctor_set(x_77, 3, x_68); -lean_ctor_set(x_77, 4, x_69); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +lean_inc(x_66); +x_76 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1); +lean_closure_set(x_76, 0, x_66); +x_77 = x_76; +x_78 = lean_environment_main_module(x_66); +x_79 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +lean_ctor_set(x_79, 2, x_68); +lean_ctor_set(x_79, 3, x_70); +lean_ctor_set(x_79, 4, x_71); lean_inc(x_1); -x_78 = l_Lean_Macro_expandMacro_x3fImp(x_1, x_77, x_73); -if (lean_obj_tag(x_78) == 0) +x_80 = l_Lean_Macro_expandMacro_x3fImp(x_1, x_79, x_75); +if (lean_obj_tag(x_80) == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = lean_st_ref_take(x_9, x_72); -x_82 = lean_ctor_get(x_81, 0); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_dec(x_81); -x_84 = !lean_is_exclusive(x_82); -if (x_84 == 0) +lean_dec(x_80); +x_83 = lean_st_ref_take(x_9, x_74); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = !lean_is_exclusive(x_84); +if (x_86 == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_82, 1); -lean_dec(x_85); -lean_ctor_set(x_82, 1, x_80); -x_86 = lean_st_ref_set(x_9, x_82, x_83); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -lean_dec(x_86); -x_52 = x_79; -x_53 = x_87; -goto block_60; -} -else -{ -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_88 = lean_ctor_get(x_82, 0); -x_89 = lean_ctor_get(x_82, 2); -x_90 = lean_ctor_get(x_82, 3); -lean_inc(x_90); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_84, 1); +lean_dec(x_87); +lean_ctor_set(x_84, 1, x_82); +x_88 = lean_st_ref_set(x_9, x_84, x_85); +x_89 = lean_ctor_get(x_88, 1); lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_82); -x_91 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_80); -lean_ctor_set(x_91, 2, x_89); -lean_ctor_set(x_91, 3, x_90); -x_92 = lean_st_ref_set(x_9, x_91, x_83); -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -lean_dec(x_92); -x_52 = x_79; -x_53 = x_93; -goto block_60; +lean_dec(x_88); +x_52 = x_81; +x_53 = x_89; +goto block_62; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_90 = lean_ctor_get(x_84, 0); +x_91 = lean_ctor_get(x_84, 2); +x_92 = lean_ctor_get(x_84, 3); +lean_inc(x_92); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_84); +x_93 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_82); +lean_ctor_set(x_93, 2, x_91); +lean_ctor_set(x_93, 3, x_92); +x_94 = lean_st_ref_set(x_9, x_93, x_85); +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +lean_dec(x_94); +x_52 = x_81; +x_53 = x_95; +goto block_62; } } else { -lean_object* x_94; +lean_object* x_96; lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_94 = lean_ctor_get(x_78, 0); -lean_inc(x_94); -lean_dec(x_78); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); +x_96 = lean_ctor_get(x_80, 0); lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_97, 0, x_96); -x_98 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_98, 0, x_97); -x_99 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_95, x_98, x_4, x_5, x_6, x_7, x_8, x_9, x_72); +lean_dec(x_80); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +x_99 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_99, 0, x_98); +x_100 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_100, 0, x_99); +x_101 = l_Lean_throwErrorAt___at___private_Lean_Elab_Term_21__elabTermAux___main___spec__1___rarg(x_97, x_100, x_4, x_5, x_6, x_7, x_8, x_9, x_74); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_95); -x_100 = !lean_is_exclusive(x_99); -if (x_100 == 0) +lean_dec(x_97); +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) { -return x_99; +return x_101; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_99, 0); -x_102 = lean_ctor_get(x_99, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_99); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_101, 0); +x_104 = lean_ctor_get(x_101, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_101); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +return x_105; } } else { -lean_object* x_104; uint8_t x_105; +lean_object* x_106; uint8_t x_107; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_104 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_26__elabCDot___spec__1___rarg(x_72); -x_105 = !lean_is_exclusive(x_104); -if (x_105 == 0) +x_106 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_26__elabCDot___spec__1___rarg(x_74); +x_107 = !lean_is_exclusive(x_106); +if (x_107 == 0) { -return x_104; +return x_106; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_104, 0); -x_107 = lean_ctor_get(x_104, 1); -lean_inc(x_107); -lean_inc(x_106); -lean_dec(x_104); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_106, 0); +x_109 = lean_ctor_get(x_106, 1); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_106); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +return x_110; } } } -block_60: +block_62: { if (lean_obj_tag(x_52) == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; x_54 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_54, 0, x_11); -x_55 = l_Lean_Elab_Term_toParserDescrAux___main___closed__31; +x_55 = l_Lean_Elab_Term_toParserDescrAux___closed__30; x_56 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_56, 0, x_55); lean_ctor_set(x_56, 1, x_54); -x_57 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_56, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_53); +x_57 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_58, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_53); lean_dec(x_9); lean_dec(x_7); lean_dec(x_6); @@ -4720,17 +6155,17 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -return x_57; +return x_59; } else { -lean_object* x_58; +lean_object* x_60; lean_dec(x_11); lean_dec(x_1); -x_58 = lean_ctor_get(x_52, 0); -lean_inc(x_58); +x_60 = lean_ctor_get(x_52, 0); +lean_inc(x_60); lean_dec(x_52); -x_1 = x_58; +x_1 = x_60; x_10 = x_53; goto _start; } @@ -4738,16 +6173,16 @@ goto _start; } else { -lean_object* x_109; lean_object* x_110; uint8_t x_111; +lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_dec(x_11); -x_109 = lean_unsigned_to_nat(0u); -x_110 = l_Lean_Syntax_getArg(x_1, x_109); -x_111 = !lean_is_exclusive(x_2); -if (x_111 == 0) +x_111 = lean_unsigned_to_nat(0u); +x_112 = l_Lean_Syntax_getArg(x_1, x_111); +x_113 = !lean_is_exclusive(x_2); +if (x_113 == 0) { -uint8_t x_112; lean_object* x_113; -x_112 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_112); +uint8_t x_114; lean_object* x_115; +x_114 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_114); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -4756,17 +6191,17 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_113 = l_Lean_Elab_Term_toParserDescrAux___main(x_110, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_113) == 0) +x_115 = l_Lean_Elab_Term_toParserDescrAux(x_112, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_115) == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_116 = lean_unsigned_to_nat(2u); -x_117 = l_Lean_Syntax_getArg(x_1, x_116); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +lean_dec(x_115); +x_118 = lean_unsigned_to_nat(2u); +x_119 = l_Lean_Syntax_getArg(x_1, x_118); lean_dec(x_1); lean_inc(x_9); lean_inc(x_8); @@ -4774,129 +6209,129 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_118 = l_Lean_Elab_Term_toParserDescrAux___main(x_117, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_115); -if (lean_obj_tag(x_118) == 0) +x_120 = l_Lean_Elab_Term_toParserDescrAux(x_119, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_117); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_121 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_120); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_122 = lean_ctor_get(x_121, 0); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; uint8_t x_127; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_124 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_123); +lean_dec(x_120); +x_123 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_122); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_125); lean_dec(x_9); -x_125 = !lean_is_exclusive(x_124); -if (x_125 == 0) +x_127 = !lean_is_exclusive(x_126); +if (x_127 == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_126 = lean_ctor_get(x_124, 0); -x_127 = l_Lean_Elab_Term_toParserDescrAux___main___closed__35; -x_128 = l_Lean_addMacroScope(x_126, x_127, x_122); -x_129 = l_Lean_SourceInfo_inhabited___closed__1; -x_130 = l_Lean_Elab_Term_toParserDescrAux___main___closed__34; -x_131 = l_Lean_Elab_Term_toParserDescrAux___main___closed__38; -x_132 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_130); -lean_ctor_set(x_132, 2, x_128); -lean_ctor_set(x_132, 3, x_131); -x_133 = l_Array_empty___closed__1; -x_134 = lean_array_push(x_133, x_132); -x_135 = lean_array_push(x_133, x_114); -x_136 = lean_array_push(x_135, x_119); -x_137 = l_Lean_nullKind___closed__2; -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_136); -x_139 = lean_array_push(x_134, x_138); -x_140 = l_Lean_mkAppStx___closed__8; -x_141 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_139); -lean_ctor_set(x_124, 0, x_141); -return x_124; +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_128 = lean_ctor_get(x_126, 0); +x_129 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_130 = l_Lean_addMacroScope(x_128, x_129, x_124); +x_131 = l_Lean_SourceInfo_inhabited___closed__1; +x_132 = l_Lean_Elab_Term_toParserDescrAux___closed__33; +x_133 = l_Lean_Elab_Term_toParserDescrAux___closed__37; +x_134 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +lean_ctor_set(x_134, 2, x_130); +lean_ctor_set(x_134, 3, x_133); +x_135 = l_Array_empty___closed__1; +x_136 = lean_array_push(x_135, x_134); +x_137 = lean_array_push(x_135, x_116); +x_138 = lean_array_push(x_137, x_121); +x_139 = l_Lean_nullKind___closed__2; +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_138); +x_141 = lean_array_push(x_136, x_140); +x_142 = l_Lean_mkAppStx___closed__8; +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +lean_ctor_set(x_126, 0, x_143); +return x_126; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_142 = lean_ctor_get(x_124, 0); -x_143 = lean_ctor_get(x_124, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_124); -x_144 = l_Lean_Elab_Term_toParserDescrAux___main___closed__35; -x_145 = l_Lean_addMacroScope(x_142, x_144, x_122); -x_146 = l_Lean_SourceInfo_inhabited___closed__1; -x_147 = l_Lean_Elab_Term_toParserDescrAux___main___closed__34; -x_148 = l_Lean_Elab_Term_toParserDescrAux___main___closed__38; -x_149 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -lean_ctor_set(x_149, 2, x_145); -lean_ctor_set(x_149, 3, x_148); -x_150 = l_Array_empty___closed__1; -x_151 = lean_array_push(x_150, x_149); -x_152 = lean_array_push(x_150, x_114); -x_153 = lean_array_push(x_152, x_119); -x_154 = l_Lean_nullKind___closed__2; -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_153); -x_156 = lean_array_push(x_151, x_155); -x_157 = l_Lean_mkAppStx___closed__8; -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_157); -lean_ctor_set(x_158, 1, x_156); -x_159 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_159, 0, x_158); -lean_ctor_set(x_159, 1, x_143); -return x_159; +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_144 = lean_ctor_get(x_126, 0); +x_145 = lean_ctor_get(x_126, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_126); +x_146 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_147 = l_Lean_addMacroScope(x_144, x_146, x_124); +x_148 = l_Lean_SourceInfo_inhabited___closed__1; +x_149 = l_Lean_Elab_Term_toParserDescrAux___closed__33; +x_150 = l_Lean_Elab_Term_toParserDescrAux___closed__37; +x_151 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_151, 0, x_148); +lean_ctor_set(x_151, 1, x_149); +lean_ctor_set(x_151, 2, x_147); +lean_ctor_set(x_151, 3, x_150); +x_152 = l_Array_empty___closed__1; +x_153 = lean_array_push(x_152, x_151); +x_154 = lean_array_push(x_152, x_116); +x_155 = lean_array_push(x_154, x_121); +x_156 = l_Lean_nullKind___closed__2; +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_155); +x_158 = lean_array_push(x_153, x_157); +x_159 = l_Lean_mkAppStx___closed__8; +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_145); +return x_161; } } else { -uint8_t x_160; -lean_dec(x_114); +uint8_t x_162; +lean_dec(x_116); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_160 = !lean_is_exclusive(x_118); -if (x_160 == 0) +x_162 = !lean_is_exclusive(x_120); +if (x_162 == 0) { -return x_118; +return x_120; } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_161 = lean_ctor_get(x_118, 0); -x_162 = lean_ctor_get(x_118, 1); -lean_inc(x_162); -lean_inc(x_161); -lean_dec(x_118); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_120, 0); +x_164 = lean_ctor_get(x_120, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_120); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +return x_165; } } } else { -uint8_t x_164; +uint8_t x_166; lean_dec(x_2); lean_dec(x_9); lean_dec(x_8); @@ -4906,40 +6341,40 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_164 = !lean_is_exclusive(x_113); -if (x_164 == 0) +x_166 = !lean_is_exclusive(x_115); +if (x_166 == 0) { -return x_113; +return x_115; } else { -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_113, 0); -x_166 = lean_ctor_get(x_113, 1); -lean_inc(x_166); -lean_inc(x_165); -lean_dec(x_113); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_165); -lean_ctor_set(x_167, 1, x_166); -return x_167; -} -} -} -else -{ -lean_object* x_168; uint8_t x_169; uint8_t x_170; uint8_t x_171; lean_object* x_172; lean_object* x_173; -x_168 = lean_ctor_get(x_2, 0); -x_169 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_170 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_115, 0); +x_168 = lean_ctor_get(x_115, 1); lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_115); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; +} +} +} +else +{ +lean_object* x_170; uint8_t x_171; uint8_t x_172; uint8_t x_173; lean_object* x_174; lean_object* x_175; +x_170 = lean_ctor_get(x_2, 0); +x_171 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_172 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_170); lean_dec(x_2); -x_171 = 0; -x_172 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_172, 0, x_168); -lean_ctor_set_uint8(x_172, sizeof(void*)*1, x_169); -lean_ctor_set_uint8(x_172, sizeof(void*)*1 + 1, x_171); -lean_ctor_set_uint8(x_172, sizeof(void*)*1 + 2, x_170); +x_173 = 0; +x_174 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_174, 0, x_170); +lean_ctor_set_uint8(x_174, sizeof(void*)*1, x_171); +lean_ctor_set_uint8(x_174, sizeof(void*)*1 + 1, x_173); +lean_ctor_set_uint8(x_174, sizeof(void*)*1 + 2, x_172); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -4947,18 +6382,18 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_172); -x_173 = l_Lean_Elab_Term_toParserDescrAux___main(x_110, x_172, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_173) == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_174 = lean_ctor_get(x_173, 0); lean_inc(x_174); -x_175 = lean_ctor_get(x_173, 1); -lean_inc(x_175); -lean_dec(x_173); -x_176 = lean_unsigned_to_nat(2u); -x_177 = l_Lean_Syntax_getArg(x_1, x_176); +x_175 = l_Lean_Elab_Term_toParserDescrAux(x_112, x_174, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_175) == 0) +{ +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_175, 1); +lean_inc(x_177); +lean_dec(x_175); +x_178 = lean_unsigned_to_nat(2u); +x_179 = l_Lean_Syntax_getArg(x_1, x_178); lean_dec(x_1); lean_inc(x_9); lean_inc(x_8); @@ -4966,75 +6401,107 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_178 = l_Lean_Elab_Term_toParserDescrAux___main(x_177, x_172, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_175); -if (lean_obj_tag(x_178) == 0) +x_180 = l_Lean_Elab_Term_toParserDescrAux(x_179, x_174, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_177); +if (lean_obj_tag(x_180) == 0) { -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -lean_dec(x_178); -x_181 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_180); +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_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; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +x_183 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_182); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); -lean_inc(x_183); -lean_dec(x_181); -x_184 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_183); -lean_dec(x_9); -x_185 = lean_ctor_get(x_184, 0); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_187 = x_184; +lean_dec(x_183); +x_186 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_185); +lean_dec(x_9); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +if (lean_is_exclusive(x_186)) { + lean_ctor_release(x_186, 0); + lean_ctor_release(x_186, 1); + x_189 = x_186; } else { - lean_dec_ref(x_184); - x_187 = lean_box(0); + lean_dec_ref(x_186); + x_189 = lean_box(0); } -x_188 = l_Lean_Elab_Term_toParserDescrAux___main___closed__35; -x_189 = l_Lean_addMacroScope(x_185, x_188, x_182); -x_190 = l_Lean_SourceInfo_inhabited___closed__1; -x_191 = l_Lean_Elab_Term_toParserDescrAux___main___closed__34; -x_192 = l_Lean_Elab_Term_toParserDescrAux___main___closed__38; -x_193 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_193, 0, x_190); -lean_ctor_set(x_193, 1, x_191); -lean_ctor_set(x_193, 2, x_189); -lean_ctor_set(x_193, 3, x_192); -x_194 = l_Array_empty___closed__1; -x_195 = lean_array_push(x_194, x_193); -x_196 = lean_array_push(x_194, x_174); -x_197 = lean_array_push(x_196, x_179); -x_198 = l_Lean_nullKind___closed__2; -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_199, 1, x_197); -x_200 = lean_array_push(x_195, x_199); -x_201 = l_Lean_mkAppStx___closed__8; -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_200); -if (lean_is_scalar(x_187)) { - x_203 = lean_alloc_ctor(0, 2, 0); +x_190 = l_Lean_Elab_Term_toParserDescrAux___closed__34; +x_191 = l_Lean_addMacroScope(x_187, x_190, x_184); +x_192 = l_Lean_SourceInfo_inhabited___closed__1; +x_193 = l_Lean_Elab_Term_toParserDescrAux___closed__33; +x_194 = l_Lean_Elab_Term_toParserDescrAux___closed__37; +x_195 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_195, 0, x_192); +lean_ctor_set(x_195, 1, x_193); +lean_ctor_set(x_195, 2, x_191); +lean_ctor_set(x_195, 3, x_194); +x_196 = l_Array_empty___closed__1; +x_197 = lean_array_push(x_196, x_195); +x_198 = lean_array_push(x_196, x_176); +x_199 = lean_array_push(x_198, x_181); +x_200 = l_Lean_nullKind___closed__2; +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_199); +x_202 = lean_array_push(x_197, x_201); +x_203 = l_Lean_mkAppStx___closed__8; +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_202); +if (lean_is_scalar(x_189)) { + x_205 = lean_alloc_ctor(0, 2, 0); } else { - x_203 = x_187; + x_205 = x_189; } -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_186); -return x_203; +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_188); +return x_205; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +lean_dec(x_176); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_206 = lean_ctor_get(x_180, 0); +lean_inc(x_206); +x_207 = lean_ctor_get(x_180, 1); +lean_inc(x_207); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_208 = x_180; +} else { + lean_dec_ref(x_180); + x_208 = lean_box(0); +} +if (lean_is_scalar(x_208)) { + x_209 = lean_alloc_ctor(1, 2, 0); +} else { + x_209 = x_208; +} +lean_ctor_set(x_209, 0, x_206); +lean_ctor_set(x_209, 1, x_207); +return x_209; +} +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_dec(x_174); lean_dec(x_9); lean_dec(x_8); @@ -5042,838 +6509,806 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_204 = lean_ctor_get(x_178, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_178, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_206 = x_178; -} else { - lean_dec_ref(x_178); - x_206 = lean_box(0); -} -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(1, 2, 0); -} else { - x_207 = x_206; -} -lean_ctor_set(x_207, 0, x_204); -lean_ctor_set(x_207, 1, x_205); -return x_207; -} -} -else -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -lean_dec(x_172); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_208 = lean_ctor_get(x_173, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_173, 1); -lean_inc(x_209); -if (lean_is_exclusive(x_173)) { - lean_ctor_release(x_173, 0); - lean_ctor_release(x_173, 1); - x_210 = x_173; +x_210 = lean_ctor_get(x_175, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_175, 1); +lean_inc(x_211); +if (lean_is_exclusive(x_175)) { + lean_ctor_release(x_175, 0); + lean_ctor_release(x_175, 1); + x_212 = x_175; } else { - lean_dec_ref(x_173); - x_210 = lean_box(0); + lean_dec_ref(x_175); + x_212 = lean_box(0); } -if (lean_is_scalar(x_210)) { - x_211 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_212)) { + x_213 = lean_alloc_ctor(1, 2, 0); } else { - x_211 = x_210; + x_213 = x_212; } -lean_ctor_set(x_211, 0, x_208); -lean_ctor_set(x_211, 1, x_209); -return x_211; +lean_ctor_set(x_213, 0, x_210); +lean_ctor_set(x_213, 1, x_211); +return x_213; } } } } else { -lean_object* x_212; lean_object* x_213; uint8_t x_214; +lean_object* x_214; lean_object* x_215; uint8_t x_216; lean_dec(x_11); -x_212 = lean_unsigned_to_nat(0u); -x_213 = l_Lean_Syntax_getArg(x_1, x_212); +x_214 = lean_unsigned_to_nat(0u); +x_215 = l_Lean_Syntax_getArg(x_1, x_214); lean_dec(x_1); -x_214 = !lean_is_exclusive(x_2); -if (x_214 == 0) +x_216 = !lean_is_exclusive(x_2); +if (x_216 == 0) { -uint8_t x_215; lean_object* x_216; -x_215 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_215); +uint8_t x_217; lean_object* x_218; +x_217 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_217); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_216 = l_Lean_Elab_Term_toParserDescrAux___main(x_213, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_216) == 0) +x_218 = l_Lean_Elab_Term_toParserDescrAux(x_215, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_218) == 0) { -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -lean_dec(x_216); -x_219 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_218); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_220 = lean_ctor_get(x_219, 0); +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_218, 1); lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -lean_inc(x_221); -lean_dec(x_219); -x_222 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_221); +lean_dec(x_218); +x_221 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_220); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +x_223 = lean_ctor_get(x_221, 1); +lean_inc(x_223); +lean_dec(x_221); +x_224 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_223); lean_dec(x_9); -x_223 = !lean_is_exclusive(x_222); -if (x_223 == 0) +x_225 = !lean_is_exclusive(x_224); +if (x_225 == 0) { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_224 = lean_ctor_get(x_222, 0); -x_225 = l_Lean_Elab_Term_toParserDescrAux___main___closed__42; -x_226 = l_Lean_addMacroScope(x_224, x_225, x_220); -x_227 = l_Lean_SourceInfo_inhabited___closed__1; -x_228 = l_Lean_Elab_Term_toParserDescrAux___main___closed__41; -x_229 = l_Lean_Elab_Term_toParserDescrAux___main___closed__45; -x_230 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_230, 0, x_227); -lean_ctor_set(x_230, 1, x_228); -lean_ctor_set(x_230, 2, x_226); -lean_ctor_set(x_230, 3, x_229); -x_231 = l_Array_empty___closed__1; -x_232 = lean_array_push(x_231, x_230); -x_233 = lean_array_push(x_231, x_217); -x_234 = l_Lean_nullKind___closed__2; -x_235 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_233); -x_236 = lean_array_push(x_232, x_235); -x_237 = l_Lean_mkAppStx___closed__8; -x_238 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_238, 0, x_237); -lean_ctor_set(x_238, 1, x_236); -lean_ctor_set(x_222, 0, x_238); -return x_222; +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_226 = lean_ctor_get(x_224, 0); +x_227 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_228 = l_Lean_addMacroScope(x_226, x_227, x_222); +x_229 = l_Lean_SourceInfo_inhabited___closed__1; +x_230 = l_Lean_Elab_Term_toParserDescrAux___closed__40; +x_231 = l_Lean_Elab_Term_toParserDescrAux___closed__44; +x_232 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +lean_ctor_set(x_232, 2, x_228); +lean_ctor_set(x_232, 3, x_231); +x_233 = l_Array_empty___closed__1; +x_234 = lean_array_push(x_233, x_232); +x_235 = lean_array_push(x_233, x_219); +x_236 = l_Lean_nullKind___closed__2; +x_237 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_235); +x_238 = lean_array_push(x_234, x_237); +x_239 = l_Lean_mkAppStx___closed__8; +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_238); +lean_ctor_set(x_224, 0, x_240); +return x_224; } else { -lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; -x_239 = lean_ctor_get(x_222, 0); -x_240 = lean_ctor_get(x_222, 1); -lean_inc(x_240); -lean_inc(x_239); -lean_dec(x_222); -x_241 = l_Lean_Elab_Term_toParserDescrAux___main___closed__42; -x_242 = l_Lean_addMacroScope(x_239, x_241, x_220); -x_243 = l_Lean_SourceInfo_inhabited___closed__1; -x_244 = l_Lean_Elab_Term_toParserDescrAux___main___closed__41; -x_245 = l_Lean_Elab_Term_toParserDescrAux___main___closed__45; -x_246 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_246, 0, x_243); -lean_ctor_set(x_246, 1, x_244); -lean_ctor_set(x_246, 2, x_242); -lean_ctor_set(x_246, 3, x_245); -x_247 = l_Array_empty___closed__1; -x_248 = lean_array_push(x_247, x_246); -x_249 = lean_array_push(x_247, x_217); -x_250 = l_Lean_nullKind___closed__2; -x_251 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_251, 0, x_250); -lean_ctor_set(x_251, 1, x_249); -x_252 = lean_array_push(x_248, x_251); -x_253 = l_Lean_mkAppStx___closed__8; -x_254 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_252); -x_255 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_240); -return x_255; +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_241 = lean_ctor_get(x_224, 0); +x_242 = lean_ctor_get(x_224, 1); +lean_inc(x_242); +lean_inc(x_241); +lean_dec(x_224); +x_243 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_244 = l_Lean_addMacroScope(x_241, x_243, x_222); +x_245 = l_Lean_SourceInfo_inhabited___closed__1; +x_246 = l_Lean_Elab_Term_toParserDescrAux___closed__40; +x_247 = l_Lean_Elab_Term_toParserDescrAux___closed__44; +x_248 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_248, 0, x_245); +lean_ctor_set(x_248, 1, x_246); +lean_ctor_set(x_248, 2, x_244); +lean_ctor_set(x_248, 3, x_247); +x_249 = l_Array_empty___closed__1; +x_250 = lean_array_push(x_249, x_248); +x_251 = lean_array_push(x_249, x_219); +x_252 = l_Lean_nullKind___closed__2; +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_252); +lean_ctor_set(x_253, 1, x_251); +x_254 = lean_array_push(x_250, x_253); +x_255 = l_Lean_mkAppStx___closed__8; +x_256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_254); +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_256); +lean_ctor_set(x_257, 1, x_242); +return x_257; } } else { -uint8_t x_256; +uint8_t x_258; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_256 = !lean_is_exclusive(x_216); -if (x_256 == 0) +x_258 = !lean_is_exclusive(x_218); +if (x_258 == 0) { -return x_216; +return x_218; } else { -lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_257 = lean_ctor_get(x_216, 0); -x_258 = lean_ctor_get(x_216, 1); -lean_inc(x_258); -lean_inc(x_257); -lean_dec(x_216); -x_259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_259, 0, x_257); -lean_ctor_set(x_259, 1, x_258); -return x_259; -} -} -} -else -{ -lean_object* x_260; uint8_t x_261; uint8_t x_262; uint8_t x_263; lean_object* x_264; lean_object* x_265; -x_260 = lean_ctor_get(x_2, 0); -x_261 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_262 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_218, 0); +x_260 = lean_ctor_get(x_218, 1); lean_inc(x_260); +lean_inc(x_259); +lean_dec(x_218); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_259); +lean_ctor_set(x_261, 1, x_260); +return x_261; +} +} +} +else +{ +lean_object* x_262; uint8_t x_263; uint8_t x_264; uint8_t x_265; lean_object* x_266; lean_object* x_267; +x_262 = lean_ctor_get(x_2, 0); +x_263 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_264 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_262); lean_dec(x_2); -x_263 = 0; -x_264 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_264, 0, x_260); -lean_ctor_set_uint8(x_264, sizeof(void*)*1, x_261); -lean_ctor_set_uint8(x_264, sizeof(void*)*1 + 1, x_263); -lean_ctor_set_uint8(x_264, sizeof(void*)*1 + 2, x_262); +x_265 = 0; +x_266 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_266, 0, x_262); +lean_ctor_set_uint8(x_266, sizeof(void*)*1, x_263); +lean_ctor_set_uint8(x_266, sizeof(void*)*1 + 1, x_265); +lean_ctor_set_uint8(x_266, sizeof(void*)*1 + 2, x_264); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_265 = l_Lean_Elab_Term_toParserDescrAux___main(x_213, x_264, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_265) == 0) +x_267 = l_Lean_Elab_Term_toParserDescrAux(x_215, x_266, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_267) == 0) { -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_266 = lean_ctor_get(x_265, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_265, 1); -lean_inc(x_267); -lean_dec(x_265); -x_268 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_267); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_269 = lean_ctor_get(x_268, 0); +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 1); lean_inc(x_269); -x_270 = lean_ctor_get(x_268, 1); -lean_inc(x_270); -lean_dec(x_268); -x_271 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_270); -lean_dec(x_9); -x_272 = lean_ctor_get(x_271, 0); +lean_dec(x_267); +x_270 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_269); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +x_272 = lean_ctor_get(x_270, 1); lean_inc(x_272); -x_273 = lean_ctor_get(x_271, 1); -lean_inc(x_273); -if (lean_is_exclusive(x_271)) { - lean_ctor_release(x_271, 0); - lean_ctor_release(x_271, 1); - x_274 = x_271; +lean_dec(x_270); +x_273 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_272); +lean_dec(x_9); +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_276 = x_273; } else { - lean_dec_ref(x_271); - x_274 = lean_box(0); + lean_dec_ref(x_273); + x_276 = lean_box(0); } -x_275 = l_Lean_Elab_Term_toParserDescrAux___main___closed__42; -x_276 = l_Lean_addMacroScope(x_272, x_275, x_269); -x_277 = l_Lean_SourceInfo_inhabited___closed__1; -x_278 = l_Lean_Elab_Term_toParserDescrAux___main___closed__41; -x_279 = l_Lean_Elab_Term_toParserDescrAux___main___closed__45; -x_280 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_280, 0, x_277); -lean_ctor_set(x_280, 1, x_278); -lean_ctor_set(x_280, 2, x_276); -lean_ctor_set(x_280, 3, x_279); -x_281 = l_Array_empty___closed__1; -x_282 = lean_array_push(x_281, x_280); -x_283 = lean_array_push(x_281, x_266); -x_284 = l_Lean_nullKind___closed__2; -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_284); -lean_ctor_set(x_285, 1, x_283); -x_286 = lean_array_push(x_282, x_285); -x_287 = l_Lean_mkAppStx___closed__8; -x_288 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_288, 0, x_287); -lean_ctor_set(x_288, 1, x_286); -if (lean_is_scalar(x_274)) { - x_289 = lean_alloc_ctor(0, 2, 0); +x_277 = l_Lean_Elab_Term_toParserDescrAux___closed__41; +x_278 = l_Lean_addMacroScope(x_274, x_277, x_271); +x_279 = l_Lean_SourceInfo_inhabited___closed__1; +x_280 = l_Lean_Elab_Term_toParserDescrAux___closed__40; +x_281 = l_Lean_Elab_Term_toParserDescrAux___closed__44; +x_282 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_282, 0, x_279); +lean_ctor_set(x_282, 1, x_280); +lean_ctor_set(x_282, 2, x_278); +lean_ctor_set(x_282, 3, x_281); +x_283 = l_Array_empty___closed__1; +x_284 = lean_array_push(x_283, x_282); +x_285 = lean_array_push(x_283, x_268); +x_286 = l_Lean_nullKind___closed__2; +x_287 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_287, 0, x_286); +lean_ctor_set(x_287, 1, x_285); +x_288 = lean_array_push(x_284, x_287); +x_289 = l_Lean_mkAppStx___closed__8; +x_290 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_290, 0, x_289); +lean_ctor_set(x_290, 1, x_288); +if (lean_is_scalar(x_276)) { + x_291 = lean_alloc_ctor(0, 2, 0); } else { - x_289 = x_274; + x_291 = x_276; } -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_273); -return x_289; +lean_ctor_set(x_291, 0, x_290); +lean_ctor_set(x_291, 1, x_275); +return x_291; } else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_290 = lean_ctor_get(x_265, 0); -lean_inc(x_290); -x_291 = lean_ctor_get(x_265, 1); -lean_inc(x_291); -if (lean_is_exclusive(x_265)) { - lean_ctor_release(x_265, 0); - lean_ctor_release(x_265, 1); - x_292 = x_265; +x_292 = lean_ctor_get(x_267, 0); +lean_inc(x_292); +x_293 = lean_ctor_get(x_267, 1); +lean_inc(x_293); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_294 = x_267; } else { - lean_dec_ref(x_265); - x_292 = lean_box(0); + lean_dec_ref(x_267); + x_294 = lean_box(0); } -if (lean_is_scalar(x_292)) { - x_293 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_294)) { + x_295 = lean_alloc_ctor(1, 2, 0); } else { - x_293 = x_292; + x_295 = x_294; } -lean_ctor_set(x_293, 0, x_290); -lean_ctor_set(x_293, 1, x_291); -return x_293; +lean_ctor_set(x_295, 0, x_292); +lean_ctor_set(x_295, 1, x_293); +return x_295; } } } } else { -lean_object* x_294; lean_object* x_295; uint8_t x_296; +lean_object* x_296; lean_object* x_297; uint8_t x_298; lean_dec(x_11); -x_294 = lean_unsigned_to_nat(0u); -x_295 = l_Lean_Syntax_getArg(x_1, x_294); +x_296 = lean_unsigned_to_nat(0u); +x_297 = l_Lean_Syntax_getArg(x_1, x_296); lean_dec(x_1); -x_296 = !lean_is_exclusive(x_2); -if (x_296 == 0) +x_298 = !lean_is_exclusive(x_2); +if (x_298 == 0) { -uint8_t x_297; lean_object* x_298; -x_297 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_297); +uint8_t x_299; lean_object* x_300; +x_299 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_299); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_298 = l_Lean_Elab_Term_toParserDescrAux___main(x_295, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_298) == 0) +x_300 = l_Lean_Elab_Term_toParserDescrAux(x_297, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_300) == 0) { -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -lean_dec(x_298); -x_301 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_300); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_302 = lean_ctor_get(x_301, 0); +lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; +x_301 = lean_ctor_get(x_300, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_300, 1); lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec(x_301); -x_304 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_303); +lean_dec(x_300); +x_303 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_302); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_305); lean_dec(x_9); -x_305 = !lean_is_exclusive(x_304); -if (x_305 == 0) +x_307 = !lean_is_exclusive(x_306); +if (x_307 == 0) { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_306 = lean_ctor_get(x_304, 0); -x_307 = l_Lean_Elab_Term_toParserDescrAux___main___closed__49; -x_308 = l_Lean_addMacroScope(x_306, x_307, x_302); -x_309 = l_Lean_SourceInfo_inhabited___closed__1; -x_310 = l_Lean_Elab_Term_toParserDescrAux___main___closed__48; -x_311 = l_Lean_Elab_Term_toParserDescrAux___main___closed__52; -x_312 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_312, 0, x_309); -lean_ctor_set(x_312, 1, x_310); -lean_ctor_set(x_312, 2, x_308); -lean_ctor_set(x_312, 3, x_311); -x_313 = l_Array_empty___closed__1; -x_314 = lean_array_push(x_313, x_312); -x_315 = lean_array_push(x_313, x_299); -x_316 = l_Lean_nullKind___closed__2; -x_317 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_317, 0, x_316); -lean_ctor_set(x_317, 1, x_315); -x_318 = lean_array_push(x_314, x_317); -x_319 = l_Lean_mkAppStx___closed__8; -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_318); -lean_ctor_set(x_304, 0, x_320); -return x_304; +lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; +x_308 = lean_ctor_get(x_306, 0); +x_309 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_310 = l_Lean_addMacroScope(x_308, x_309, x_304); +x_311 = l_Lean_SourceInfo_inhabited___closed__1; +x_312 = l_Lean_Elab_Term_toParserDescrAux___closed__47; +x_313 = l_Lean_Elab_Term_toParserDescrAux___closed__51; +x_314 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_314, 0, x_311); +lean_ctor_set(x_314, 1, x_312); +lean_ctor_set(x_314, 2, x_310); +lean_ctor_set(x_314, 3, x_313); +x_315 = l_Array_empty___closed__1; +x_316 = lean_array_push(x_315, x_314); +x_317 = lean_array_push(x_315, x_301); +x_318 = l_Lean_nullKind___closed__2; +x_319 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_317); +x_320 = lean_array_push(x_316, x_319); +x_321 = l_Lean_mkAppStx___closed__8; +x_322 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_322, 0, x_321); +lean_ctor_set(x_322, 1, x_320); +lean_ctor_set(x_306, 0, x_322); +return x_306; } else { -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; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_321 = lean_ctor_get(x_304, 0); -x_322 = lean_ctor_get(x_304, 1); -lean_inc(x_322); -lean_inc(x_321); -lean_dec(x_304); -x_323 = l_Lean_Elab_Term_toParserDescrAux___main___closed__49; -x_324 = l_Lean_addMacroScope(x_321, x_323, x_302); -x_325 = l_Lean_SourceInfo_inhabited___closed__1; -x_326 = l_Lean_Elab_Term_toParserDescrAux___main___closed__48; -x_327 = l_Lean_Elab_Term_toParserDescrAux___main___closed__52; -x_328 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_328, 0, x_325); -lean_ctor_set(x_328, 1, x_326); -lean_ctor_set(x_328, 2, x_324); -lean_ctor_set(x_328, 3, x_327); -x_329 = l_Array_empty___closed__1; -x_330 = lean_array_push(x_329, x_328); -x_331 = lean_array_push(x_329, x_299); -x_332 = l_Lean_nullKind___closed__2; -x_333 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_333, 0, x_332); -lean_ctor_set(x_333, 1, x_331); -x_334 = lean_array_push(x_330, x_333); -x_335 = l_Lean_mkAppStx___closed__8; -x_336 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_336, 0, x_335); -lean_ctor_set(x_336, 1, x_334); -x_337 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_337, 0, x_336); -lean_ctor_set(x_337, 1, x_322); -return x_337; +lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_323 = lean_ctor_get(x_306, 0); +x_324 = lean_ctor_get(x_306, 1); +lean_inc(x_324); +lean_inc(x_323); +lean_dec(x_306); +x_325 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_326 = l_Lean_addMacroScope(x_323, x_325, x_304); +x_327 = l_Lean_SourceInfo_inhabited___closed__1; +x_328 = l_Lean_Elab_Term_toParserDescrAux___closed__47; +x_329 = l_Lean_Elab_Term_toParserDescrAux___closed__51; +x_330 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_330, 0, x_327); +lean_ctor_set(x_330, 1, x_328); +lean_ctor_set(x_330, 2, x_326); +lean_ctor_set(x_330, 3, x_329); +x_331 = l_Array_empty___closed__1; +x_332 = lean_array_push(x_331, x_330); +x_333 = lean_array_push(x_331, x_301); +x_334 = l_Lean_nullKind___closed__2; +x_335 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_335, 0, x_334); +lean_ctor_set(x_335, 1, x_333); +x_336 = lean_array_push(x_332, x_335); +x_337 = l_Lean_mkAppStx___closed__8; +x_338 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_338, 0, x_337); +lean_ctor_set(x_338, 1, x_336); +x_339 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_339, 0, x_338); +lean_ctor_set(x_339, 1, x_324); +return x_339; } } else { -uint8_t x_338; +uint8_t x_340; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_338 = !lean_is_exclusive(x_298); -if (x_338 == 0) +x_340 = !lean_is_exclusive(x_300); +if (x_340 == 0) { -return x_298; +return x_300; } else { -lean_object* x_339; lean_object* x_340; lean_object* x_341; -x_339 = lean_ctor_get(x_298, 0); -x_340 = lean_ctor_get(x_298, 1); -lean_inc(x_340); -lean_inc(x_339); -lean_dec(x_298); -x_341 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_341, 0, x_339); -lean_ctor_set(x_341, 1, x_340); -return x_341; -} -} -} -else -{ -lean_object* x_342; uint8_t x_343; uint8_t x_344; uint8_t x_345; lean_object* x_346; lean_object* x_347; -x_342 = lean_ctor_get(x_2, 0); -x_343 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_344 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_341 = lean_ctor_get(x_300, 0); +x_342 = lean_ctor_get(x_300, 1); lean_inc(x_342); +lean_inc(x_341); +lean_dec(x_300); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_341); +lean_ctor_set(x_343, 1, x_342); +return x_343; +} +} +} +else +{ +lean_object* x_344; uint8_t x_345; uint8_t x_346; uint8_t x_347; lean_object* x_348; lean_object* x_349; +x_344 = lean_ctor_get(x_2, 0); +x_345 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_346 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_344); lean_dec(x_2); -x_345 = 0; -x_346 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_346, 0, x_342); -lean_ctor_set_uint8(x_346, sizeof(void*)*1, x_343); -lean_ctor_set_uint8(x_346, sizeof(void*)*1 + 1, x_345); -lean_ctor_set_uint8(x_346, sizeof(void*)*1 + 2, x_344); +x_347 = 0; +x_348 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_348, 0, x_344); +lean_ctor_set_uint8(x_348, sizeof(void*)*1, x_345); +lean_ctor_set_uint8(x_348, sizeof(void*)*1 + 1, x_347); +lean_ctor_set_uint8(x_348, sizeof(void*)*1 + 2, x_346); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_347 = l_Lean_Elab_Term_toParserDescrAux___main(x_295, x_346, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_347) == 0) +x_349 = l_Lean_Elab_Term_toParserDescrAux(x_297, x_348, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_349) == 0) { -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_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_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_350 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_349); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_351 = lean_ctor_get(x_350, 0); +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_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; +x_350 = lean_ctor_get(x_349, 0); +lean_inc(x_350); +x_351 = lean_ctor_get(x_349, 1); lean_inc(x_351); -x_352 = lean_ctor_get(x_350, 1); -lean_inc(x_352); -lean_dec(x_350); -x_353 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_352); -lean_dec(x_9); -x_354 = lean_ctor_get(x_353, 0); +lean_dec(x_349); +x_352 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_351); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_353 = lean_ctor_get(x_352, 0); +lean_inc(x_353); +x_354 = lean_ctor_get(x_352, 1); lean_inc(x_354); -x_355 = lean_ctor_get(x_353, 1); -lean_inc(x_355); -if (lean_is_exclusive(x_353)) { - lean_ctor_release(x_353, 0); - lean_ctor_release(x_353, 1); - x_356 = x_353; +lean_dec(x_352); +x_355 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_354); +lean_dec(x_9); +x_356 = lean_ctor_get(x_355, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_355, 1); +lean_inc(x_357); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_358 = x_355; } else { - lean_dec_ref(x_353); - x_356 = lean_box(0); + lean_dec_ref(x_355); + x_358 = lean_box(0); } -x_357 = l_Lean_Elab_Term_toParserDescrAux___main___closed__49; -x_358 = l_Lean_addMacroScope(x_354, x_357, x_351); -x_359 = l_Lean_SourceInfo_inhabited___closed__1; -x_360 = l_Lean_Elab_Term_toParserDescrAux___main___closed__48; -x_361 = l_Lean_Elab_Term_toParserDescrAux___main___closed__52; -x_362 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_362, 0, x_359); -lean_ctor_set(x_362, 1, x_360); -lean_ctor_set(x_362, 2, x_358); -lean_ctor_set(x_362, 3, x_361); -x_363 = l_Array_empty___closed__1; -x_364 = lean_array_push(x_363, x_362); -x_365 = lean_array_push(x_363, x_348); -x_366 = l_Lean_nullKind___closed__2; -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_366); -lean_ctor_set(x_367, 1, x_365); -x_368 = lean_array_push(x_364, x_367); -x_369 = l_Lean_mkAppStx___closed__8; -x_370 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_370, 0, x_369); -lean_ctor_set(x_370, 1, x_368); -if (lean_is_scalar(x_356)) { - x_371 = lean_alloc_ctor(0, 2, 0); +x_359 = l_Lean_Elab_Term_toParserDescrAux___closed__48; +x_360 = l_Lean_addMacroScope(x_356, x_359, x_353); +x_361 = l_Lean_SourceInfo_inhabited___closed__1; +x_362 = l_Lean_Elab_Term_toParserDescrAux___closed__47; +x_363 = l_Lean_Elab_Term_toParserDescrAux___closed__51; +x_364 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_364, 0, x_361); +lean_ctor_set(x_364, 1, x_362); +lean_ctor_set(x_364, 2, x_360); +lean_ctor_set(x_364, 3, x_363); +x_365 = l_Array_empty___closed__1; +x_366 = lean_array_push(x_365, x_364); +x_367 = lean_array_push(x_365, x_350); +x_368 = l_Lean_nullKind___closed__2; +x_369 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_367); +x_370 = lean_array_push(x_366, x_369); +x_371 = l_Lean_mkAppStx___closed__8; +x_372 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_372, 0, x_371); +lean_ctor_set(x_372, 1, x_370); +if (lean_is_scalar(x_358)) { + x_373 = lean_alloc_ctor(0, 2, 0); } else { - x_371 = x_356; + x_373 = x_358; } -lean_ctor_set(x_371, 0, x_370); -lean_ctor_set(x_371, 1, x_355); -return x_371; +lean_ctor_set(x_373, 0, x_372); +lean_ctor_set(x_373, 1, x_357); +return x_373; } else { -lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; +lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_372 = lean_ctor_get(x_347, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_347, 1); -lean_inc(x_373); -if (lean_is_exclusive(x_347)) { - lean_ctor_release(x_347, 0); - lean_ctor_release(x_347, 1); - x_374 = x_347; +x_374 = lean_ctor_get(x_349, 0); +lean_inc(x_374); +x_375 = lean_ctor_get(x_349, 1); +lean_inc(x_375); +if (lean_is_exclusive(x_349)) { + lean_ctor_release(x_349, 0); + lean_ctor_release(x_349, 1); + x_376 = x_349; } else { - lean_dec_ref(x_347); - x_374 = lean_box(0); + lean_dec_ref(x_349); + x_376 = lean_box(0); } -if (lean_is_scalar(x_374)) { - x_375 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_376)) { + x_377 = lean_alloc_ctor(1, 2, 0); } else { - x_375 = x_374; + x_377 = x_376; } -lean_ctor_set(x_375, 0, x_372); -lean_ctor_set(x_375, 1, x_373); -return x_375; +lean_ctor_set(x_377, 0, x_374); +lean_ctor_set(x_377, 1, x_375); +return x_377; } } } } else { -lean_object* x_376; lean_object* x_377; uint8_t x_378; +lean_object* x_378; lean_object* x_379; uint8_t x_380; lean_dec(x_11); -x_376 = lean_unsigned_to_nat(0u); -x_377 = l_Lean_Syntax_getArg(x_1, x_376); +x_378 = lean_unsigned_to_nat(0u); +x_379 = l_Lean_Syntax_getArg(x_1, x_378); lean_dec(x_1); -x_378 = !lean_is_exclusive(x_2); -if (x_378 == 0) +x_380 = !lean_is_exclusive(x_2); +if (x_380 == 0) { -uint8_t x_379; lean_object* x_380; -x_379 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_379); +uint8_t x_381; lean_object* x_382; +x_381 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_381); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_380 = l_Lean_Elab_Term_toParserDescrAux___main(x_377, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_380) == 0) +x_382 = l_Lean_Elab_Term_toParserDescrAux(x_379, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_382) == 0) { -lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; uint8_t x_387; -x_381 = lean_ctor_get(x_380, 0); -lean_inc(x_381); -x_382 = lean_ctor_get(x_380, 1); -lean_inc(x_382); -lean_dec(x_380); -x_383 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_382); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_384 = lean_ctor_get(x_383, 0); +lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; uint8_t x_389; +x_383 = lean_ctor_get(x_382, 0); +lean_inc(x_383); +x_384 = lean_ctor_get(x_382, 1); lean_inc(x_384); -x_385 = lean_ctor_get(x_383, 1); -lean_inc(x_385); -lean_dec(x_383); -x_386 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_385); +lean_dec(x_382); +x_385 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_384); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_386 = lean_ctor_get(x_385, 0); +lean_inc(x_386); +x_387 = lean_ctor_get(x_385, 1); +lean_inc(x_387); +lean_dec(x_385); +x_388 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_387); lean_dec(x_9); -x_387 = !lean_is_exclusive(x_386); -if (x_387 == 0) +x_389 = !lean_is_exclusive(x_388); +if (x_389 == 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; -x_388 = lean_ctor_get(x_386, 0); -x_389 = l_Lean_Elab_Term_toParserDescrAux___main___closed__56; -x_390 = l_Lean_addMacroScope(x_388, x_389, x_384); -x_391 = l_Lean_SourceInfo_inhabited___closed__1; -x_392 = l_Lean_Elab_Term_toParserDescrAux___main___closed__55; -x_393 = l_Lean_Elab_Term_toParserDescrAux___main___closed__59; -x_394 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_394, 0, x_391); -lean_ctor_set(x_394, 1, x_392); -lean_ctor_set(x_394, 2, x_390); -lean_ctor_set(x_394, 3, x_393); -x_395 = l_Array_empty___closed__1; -x_396 = lean_array_push(x_395, x_394); -x_397 = lean_array_push(x_395, x_381); -x_398 = l_Lean_nullKind___closed__2; -x_399 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_399, 0, x_398); -lean_ctor_set(x_399, 1, x_397); -x_400 = lean_array_push(x_396, x_399); -x_401 = l_Lean_mkAppStx___closed__8; -x_402 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_402, 0, x_401); -lean_ctor_set(x_402, 1, x_400); -lean_ctor_set(x_386, 0, x_402); -return x_386; +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_390 = lean_ctor_get(x_388, 0); +x_391 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_392 = l_Lean_addMacroScope(x_390, x_391, x_386); +x_393 = l_Lean_SourceInfo_inhabited___closed__1; +x_394 = l_Lean_Elab_Term_toParserDescrAux___closed__54; +x_395 = l_Lean_Elab_Term_toParserDescrAux___closed__58; +x_396 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_396, 0, x_393); +lean_ctor_set(x_396, 1, x_394); +lean_ctor_set(x_396, 2, x_392); +lean_ctor_set(x_396, 3, x_395); +x_397 = l_Array_empty___closed__1; +x_398 = lean_array_push(x_397, x_396); +x_399 = lean_array_push(x_397, x_383); +x_400 = l_Lean_nullKind___closed__2; +x_401 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_399); +x_402 = lean_array_push(x_398, x_401); +x_403 = l_Lean_mkAppStx___closed__8; +x_404 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_404, 0, x_403); +lean_ctor_set(x_404, 1, x_402); +lean_ctor_set(x_388, 0, x_404); +return x_388; } else { -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; -x_403 = lean_ctor_get(x_386, 0); -x_404 = lean_ctor_get(x_386, 1); -lean_inc(x_404); -lean_inc(x_403); -lean_dec(x_386); -x_405 = l_Lean_Elab_Term_toParserDescrAux___main___closed__56; -x_406 = l_Lean_addMacroScope(x_403, x_405, x_384); -x_407 = l_Lean_SourceInfo_inhabited___closed__1; -x_408 = l_Lean_Elab_Term_toParserDescrAux___main___closed__55; -x_409 = l_Lean_Elab_Term_toParserDescrAux___main___closed__59; -x_410 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_410, 0, x_407); -lean_ctor_set(x_410, 1, x_408); -lean_ctor_set(x_410, 2, x_406); -lean_ctor_set(x_410, 3, x_409); -x_411 = l_Array_empty___closed__1; -x_412 = lean_array_push(x_411, x_410); -x_413 = lean_array_push(x_411, x_381); -x_414 = l_Lean_nullKind___closed__2; -x_415 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_415, 0, x_414); -lean_ctor_set(x_415, 1, x_413); -x_416 = lean_array_push(x_412, x_415); -x_417 = l_Lean_mkAppStx___closed__8; -x_418 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_418, 0, x_417); -lean_ctor_set(x_418, 1, x_416); -x_419 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_419, 0, x_418); -lean_ctor_set(x_419, 1, x_404); -return x_419; +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; +x_405 = lean_ctor_get(x_388, 0); +x_406 = lean_ctor_get(x_388, 1); +lean_inc(x_406); +lean_inc(x_405); +lean_dec(x_388); +x_407 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_408 = l_Lean_addMacroScope(x_405, x_407, x_386); +x_409 = l_Lean_SourceInfo_inhabited___closed__1; +x_410 = l_Lean_Elab_Term_toParserDescrAux___closed__54; +x_411 = l_Lean_Elab_Term_toParserDescrAux___closed__58; +x_412 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_412, 0, x_409); +lean_ctor_set(x_412, 1, x_410); +lean_ctor_set(x_412, 2, x_408); +lean_ctor_set(x_412, 3, x_411); +x_413 = l_Array_empty___closed__1; +x_414 = lean_array_push(x_413, x_412); +x_415 = lean_array_push(x_413, x_383); +x_416 = l_Lean_nullKind___closed__2; +x_417 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_417, 0, x_416); +lean_ctor_set(x_417, 1, x_415); +x_418 = lean_array_push(x_414, x_417); +x_419 = l_Lean_mkAppStx___closed__8; +x_420 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_420, 0, x_419); +lean_ctor_set(x_420, 1, x_418); +x_421 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_421, 0, x_420); +lean_ctor_set(x_421, 1, x_406); +return x_421; } } else { -uint8_t x_420; +uint8_t x_422; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_420 = !lean_is_exclusive(x_380); -if (x_420 == 0) +x_422 = !lean_is_exclusive(x_382); +if (x_422 == 0) { -return x_380; +return x_382; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; -x_421 = lean_ctor_get(x_380, 0); -x_422 = lean_ctor_get(x_380, 1); -lean_inc(x_422); -lean_inc(x_421); -lean_dec(x_380); -x_423 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_423, 0, x_421); -lean_ctor_set(x_423, 1, x_422); -return x_423; -} -} -} -else -{ -lean_object* x_424; uint8_t x_425; uint8_t x_426; uint8_t x_427; lean_object* x_428; lean_object* x_429; -x_424 = lean_ctor_get(x_2, 0); -x_425 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_426 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_423; lean_object* x_424; lean_object* x_425; +x_423 = lean_ctor_get(x_382, 0); +x_424 = lean_ctor_get(x_382, 1); lean_inc(x_424); +lean_inc(x_423); +lean_dec(x_382); +x_425 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_425, 0, x_423); +lean_ctor_set(x_425, 1, x_424); +return x_425; +} +} +} +else +{ +lean_object* x_426; uint8_t x_427; uint8_t x_428; uint8_t x_429; lean_object* x_430; lean_object* x_431; +x_426 = lean_ctor_get(x_2, 0); +x_427 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_428 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_426); lean_dec(x_2); -x_427 = 0; -x_428 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_428, 0, x_424); -lean_ctor_set_uint8(x_428, sizeof(void*)*1, x_425); -lean_ctor_set_uint8(x_428, sizeof(void*)*1 + 1, x_427); -lean_ctor_set_uint8(x_428, sizeof(void*)*1 + 2, x_426); +x_429 = 0; +x_430 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_430, 0, x_426); +lean_ctor_set_uint8(x_430, sizeof(void*)*1, x_427); +lean_ctor_set_uint8(x_430, sizeof(void*)*1 + 1, x_429); +lean_ctor_set_uint8(x_430, sizeof(void*)*1 + 2, x_428); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_429 = l_Lean_Elab_Term_toParserDescrAux___main(x_377, x_428, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_429) == 0) +x_431 = l_Lean_Elab_Term_toParserDescrAux(x_379, x_430, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_431) == 0) { -lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; -x_430 = lean_ctor_get(x_429, 0); -lean_inc(x_430); -x_431 = lean_ctor_get(x_429, 1); -lean_inc(x_431); -lean_dec(x_429); -x_432 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_431); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_433 = lean_ctor_get(x_432, 0); +lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; +x_432 = lean_ctor_get(x_431, 0); +lean_inc(x_432); +x_433 = lean_ctor_get(x_431, 1); lean_inc(x_433); -x_434 = lean_ctor_get(x_432, 1); -lean_inc(x_434); -lean_dec(x_432); -x_435 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_434); -lean_dec(x_9); -x_436 = lean_ctor_get(x_435, 0); +lean_dec(x_431); +x_434 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_433); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_435 = lean_ctor_get(x_434, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_434, 1); lean_inc(x_436); -x_437 = lean_ctor_get(x_435, 1); -lean_inc(x_437); -if (lean_is_exclusive(x_435)) { - lean_ctor_release(x_435, 0); - lean_ctor_release(x_435, 1); - x_438 = x_435; +lean_dec(x_434); +x_437 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_436); +lean_dec(x_9); +x_438 = lean_ctor_get(x_437, 0); +lean_inc(x_438); +x_439 = lean_ctor_get(x_437, 1); +lean_inc(x_439); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + x_440 = x_437; } else { - lean_dec_ref(x_435); - x_438 = lean_box(0); + lean_dec_ref(x_437); + x_440 = lean_box(0); } -x_439 = l_Lean_Elab_Term_toParserDescrAux___main___closed__56; -x_440 = l_Lean_addMacroScope(x_436, x_439, x_433); -x_441 = l_Lean_SourceInfo_inhabited___closed__1; -x_442 = l_Lean_Elab_Term_toParserDescrAux___main___closed__55; -x_443 = l_Lean_Elab_Term_toParserDescrAux___main___closed__59; -x_444 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_444, 0, x_441); -lean_ctor_set(x_444, 1, x_442); -lean_ctor_set(x_444, 2, x_440); -lean_ctor_set(x_444, 3, x_443); -x_445 = l_Array_empty___closed__1; -x_446 = lean_array_push(x_445, x_444); -x_447 = lean_array_push(x_445, x_430); -x_448 = l_Lean_nullKind___closed__2; -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_448); -lean_ctor_set(x_449, 1, x_447); -x_450 = lean_array_push(x_446, x_449); -x_451 = l_Lean_mkAppStx___closed__8; -x_452 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_452, 0, x_451); -lean_ctor_set(x_452, 1, x_450); -if (lean_is_scalar(x_438)) { - x_453 = lean_alloc_ctor(0, 2, 0); +x_441 = l_Lean_Elab_Term_toParserDescrAux___closed__55; +x_442 = l_Lean_addMacroScope(x_438, x_441, x_435); +x_443 = l_Lean_SourceInfo_inhabited___closed__1; +x_444 = l_Lean_Elab_Term_toParserDescrAux___closed__54; +x_445 = l_Lean_Elab_Term_toParserDescrAux___closed__58; +x_446 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_446, 0, x_443); +lean_ctor_set(x_446, 1, x_444); +lean_ctor_set(x_446, 2, x_442); +lean_ctor_set(x_446, 3, x_445); +x_447 = l_Array_empty___closed__1; +x_448 = lean_array_push(x_447, x_446); +x_449 = lean_array_push(x_447, x_432); +x_450 = l_Lean_nullKind___closed__2; +x_451 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_451, 0, x_450); +lean_ctor_set(x_451, 1, x_449); +x_452 = lean_array_push(x_448, x_451); +x_453 = l_Lean_mkAppStx___closed__8; +x_454 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_454, 0, x_453); +lean_ctor_set(x_454, 1, x_452); +if (lean_is_scalar(x_440)) { + x_455 = lean_alloc_ctor(0, 2, 0); } else { - x_453 = x_438; + x_455 = x_440; } -lean_ctor_set(x_453, 0, x_452); -lean_ctor_set(x_453, 1, x_437); -return x_453; +lean_ctor_set(x_455, 0, x_454); +lean_ctor_set(x_455, 1, x_439); +return x_455; } else { -lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; +lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_454 = lean_ctor_get(x_429, 0); -lean_inc(x_454); -x_455 = lean_ctor_get(x_429, 1); -lean_inc(x_455); -if (lean_is_exclusive(x_429)) { - lean_ctor_release(x_429, 0); - lean_ctor_release(x_429, 1); - x_456 = x_429; +x_456 = lean_ctor_get(x_431, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_431, 1); +lean_inc(x_457); +if (lean_is_exclusive(x_431)) { + lean_ctor_release(x_431, 0); + lean_ctor_release(x_431, 1); + x_458 = x_431; } else { - lean_dec_ref(x_429); - x_456 = lean_box(0); + lean_dec_ref(x_431); + x_458 = lean_box(0); } -if (lean_is_scalar(x_456)) { - x_457 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_458)) { + x_459 = lean_alloc_ctor(1, 2, 0); } else { - x_457 = x_456; + x_459 = x_458; } -lean_ctor_set(x_457, 0, x_454); -lean_ctor_set(x_457, 1, x_455); -return x_457; +lean_ctor_set(x_459, 0, x_456); +lean_ctor_set(x_459, 1, x_457); +return x_459; } } } } else { -lean_object* x_458; lean_object* x_459; uint8_t x_460; +lean_object* x_460; lean_object* x_461; uint8_t x_462; lean_dec(x_11); -x_458 = lean_unsigned_to_nat(1u); -x_459 = l_Lean_Syntax_getArg(x_1, x_458); -x_460 = !lean_is_exclusive(x_2); -if (x_460 == 0) +x_460 = lean_unsigned_to_nat(1u); +x_461 = l_Lean_Syntax_getArg(x_1, x_460); +x_462 = !lean_is_exclusive(x_2); +if (x_462 == 0) { -uint8_t x_461; lean_object* x_462; -x_461 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_461); +uint8_t x_463; lean_object* x_464; +x_463 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_463); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -5882,17 +7317,17 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_462 = l_Lean_Elab_Term_toParserDescrAux___main(x_459, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_462) == 0) +x_464 = l_Lean_Elab_Term_toParserDescrAux(x_461, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_464) == 0) { -lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; -x_463 = lean_ctor_get(x_462, 0); -lean_inc(x_463); -x_464 = lean_ctor_get(x_462, 1); -lean_inc(x_464); -lean_dec(x_462); -x_465 = lean_unsigned_to_nat(2u); -x_466 = l_Lean_Syntax_getArg(x_1, x_465); +lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; +x_465 = lean_ctor_get(x_464, 0); +lean_inc(x_465); +x_466 = lean_ctor_get(x_464, 1); +lean_inc(x_466); +lean_dec(x_464); +x_467 = lean_unsigned_to_nat(2u); +x_468 = l_Lean_Syntax_getArg(x_1, x_467); lean_dec(x_1); lean_inc(x_9); lean_inc(x_8); @@ -5900,129 +7335,129 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_467 = l_Lean_Elab_Term_toParserDescrAux___main(x_466, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_464); -if (lean_obj_tag(x_467) == 0) +x_469 = l_Lean_Elab_Term_toParserDescrAux(x_468, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_466); +if (lean_obj_tag(x_469) == 0) { -lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; uint8_t x_474; -x_468 = lean_ctor_get(x_467, 0); -lean_inc(x_468); -x_469 = lean_ctor_get(x_467, 1); -lean_inc(x_469); -lean_dec(x_467); -x_470 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_469); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_471 = lean_ctor_get(x_470, 0); +lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; uint8_t x_476; +x_470 = lean_ctor_get(x_469, 0); +lean_inc(x_470); +x_471 = lean_ctor_get(x_469, 1); lean_inc(x_471); -x_472 = lean_ctor_get(x_470, 1); -lean_inc(x_472); -lean_dec(x_470); -x_473 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_472); +lean_dec(x_469); +x_472 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_471); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_473 = lean_ctor_get(x_472, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_472, 1); +lean_inc(x_474); +lean_dec(x_472); +x_475 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_474); lean_dec(x_9); -x_474 = !lean_is_exclusive(x_473); -if (x_474 == 0) +x_476 = !lean_is_exclusive(x_475); +if (x_476 == 0) { -lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; -x_475 = lean_ctor_get(x_473, 0); -x_476 = l_Lean_Elab_Term_toParserDescrAux___main___closed__63; -x_477 = l_Lean_addMacroScope(x_475, x_476, x_471); -x_478 = l_Lean_SourceInfo_inhabited___closed__1; -x_479 = l_Lean_Elab_Term_toParserDescrAux___main___closed__62; -x_480 = l_Lean_Elab_Term_toParserDescrAux___main___closed__66; -x_481 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_481, 0, x_478); -lean_ctor_set(x_481, 1, x_479); -lean_ctor_set(x_481, 2, x_477); -lean_ctor_set(x_481, 3, x_480); -x_482 = l_Array_empty___closed__1; -x_483 = lean_array_push(x_482, x_481); -x_484 = lean_array_push(x_482, x_463); -x_485 = lean_array_push(x_484, x_468); -x_486 = l_Lean_nullKind___closed__2; -x_487 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_487, 0, x_486); -lean_ctor_set(x_487, 1, x_485); -x_488 = lean_array_push(x_483, x_487); -x_489 = l_Lean_mkAppStx___closed__8; -x_490 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_490, 0, x_489); -lean_ctor_set(x_490, 1, x_488); -lean_ctor_set(x_473, 0, x_490); -return x_473; +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; +x_477 = lean_ctor_get(x_475, 0); +x_478 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_479 = l_Lean_addMacroScope(x_477, x_478, x_473); +x_480 = l_Lean_SourceInfo_inhabited___closed__1; +x_481 = l_Lean_Elab_Term_toParserDescrAux___closed__61; +x_482 = l_Lean_Elab_Term_toParserDescrAux___closed__65; +x_483 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_483, 0, x_480); +lean_ctor_set(x_483, 1, x_481); +lean_ctor_set(x_483, 2, x_479); +lean_ctor_set(x_483, 3, x_482); +x_484 = l_Array_empty___closed__1; +x_485 = lean_array_push(x_484, x_483); +x_486 = lean_array_push(x_484, x_465); +x_487 = lean_array_push(x_486, x_470); +x_488 = l_Lean_nullKind___closed__2; +x_489 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_489, 0, x_488); +lean_ctor_set(x_489, 1, x_487); +x_490 = lean_array_push(x_485, x_489); +x_491 = l_Lean_mkAppStx___closed__8; +x_492 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_492, 0, x_491); +lean_ctor_set(x_492, 1, x_490); +lean_ctor_set(x_475, 0, x_492); +return x_475; } else { -lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; -x_491 = lean_ctor_get(x_473, 0); -x_492 = lean_ctor_get(x_473, 1); -lean_inc(x_492); -lean_inc(x_491); -lean_dec(x_473); -x_493 = l_Lean_Elab_Term_toParserDescrAux___main___closed__63; -x_494 = l_Lean_addMacroScope(x_491, x_493, x_471); -x_495 = l_Lean_SourceInfo_inhabited___closed__1; -x_496 = l_Lean_Elab_Term_toParserDescrAux___main___closed__62; -x_497 = l_Lean_Elab_Term_toParserDescrAux___main___closed__66; -x_498 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_498, 0, x_495); -lean_ctor_set(x_498, 1, x_496); -lean_ctor_set(x_498, 2, x_494); -lean_ctor_set(x_498, 3, x_497); -x_499 = l_Array_empty___closed__1; -x_500 = lean_array_push(x_499, x_498); -x_501 = lean_array_push(x_499, x_463); -x_502 = lean_array_push(x_501, x_468); -x_503 = l_Lean_nullKind___closed__2; -x_504 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_504, 0, x_503); -lean_ctor_set(x_504, 1, x_502); -x_505 = lean_array_push(x_500, x_504); -x_506 = l_Lean_mkAppStx___closed__8; -x_507 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_507, 0, x_506); -lean_ctor_set(x_507, 1, x_505); -x_508 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_508, 0, x_507); -lean_ctor_set(x_508, 1, x_492); -return x_508; +lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_493 = lean_ctor_get(x_475, 0); +x_494 = lean_ctor_get(x_475, 1); +lean_inc(x_494); +lean_inc(x_493); +lean_dec(x_475); +x_495 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_496 = l_Lean_addMacroScope(x_493, x_495, x_473); +x_497 = l_Lean_SourceInfo_inhabited___closed__1; +x_498 = l_Lean_Elab_Term_toParserDescrAux___closed__61; +x_499 = l_Lean_Elab_Term_toParserDescrAux___closed__65; +x_500 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_500, 0, x_497); +lean_ctor_set(x_500, 1, x_498); +lean_ctor_set(x_500, 2, x_496); +lean_ctor_set(x_500, 3, x_499); +x_501 = l_Array_empty___closed__1; +x_502 = lean_array_push(x_501, x_500); +x_503 = lean_array_push(x_501, x_465); +x_504 = lean_array_push(x_503, x_470); +x_505 = l_Lean_nullKind___closed__2; +x_506 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_506, 0, x_505); +lean_ctor_set(x_506, 1, x_504); +x_507 = lean_array_push(x_502, x_506); +x_508 = l_Lean_mkAppStx___closed__8; +x_509 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_509, 0, x_508); +lean_ctor_set(x_509, 1, x_507); +x_510 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_510, 0, x_509); +lean_ctor_set(x_510, 1, x_494); +return x_510; } } else { -uint8_t x_509; -lean_dec(x_463); +uint8_t x_511; +lean_dec(x_465); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_509 = !lean_is_exclusive(x_467); -if (x_509 == 0) +x_511 = !lean_is_exclusive(x_469); +if (x_511 == 0) { -return x_467; +return x_469; } else { -lean_object* x_510; lean_object* x_511; lean_object* x_512; -x_510 = lean_ctor_get(x_467, 0); -x_511 = lean_ctor_get(x_467, 1); -lean_inc(x_511); -lean_inc(x_510); -lean_dec(x_467); -x_512 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_512, 0, x_510); -lean_ctor_set(x_512, 1, x_511); -return x_512; +lean_object* x_512; lean_object* x_513; lean_object* x_514; +x_512 = lean_ctor_get(x_469, 0); +x_513 = lean_ctor_get(x_469, 1); +lean_inc(x_513); +lean_inc(x_512); +lean_dec(x_469); +x_514 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_514, 0, x_512); +lean_ctor_set(x_514, 1, x_513); +return x_514; } } } else { -uint8_t x_513; +uint8_t x_515; lean_dec(x_2); lean_dec(x_9); lean_dec(x_8); @@ -6032,40 +7467,40 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_513 = !lean_is_exclusive(x_462); -if (x_513 == 0) +x_515 = !lean_is_exclusive(x_464); +if (x_515 == 0) { -return x_462; +return x_464; } else { -lean_object* x_514; lean_object* x_515; lean_object* x_516; -x_514 = lean_ctor_get(x_462, 0); -x_515 = lean_ctor_get(x_462, 1); -lean_inc(x_515); -lean_inc(x_514); -lean_dec(x_462); -x_516 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_516, 0, x_514); -lean_ctor_set(x_516, 1, x_515); -return x_516; -} -} -} -else -{ -lean_object* x_517; uint8_t x_518; uint8_t x_519; uint8_t x_520; lean_object* x_521; lean_object* x_522; -x_517 = lean_ctor_get(x_2, 0); -x_518 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_519 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_516; lean_object* x_517; lean_object* x_518; +x_516 = lean_ctor_get(x_464, 0); +x_517 = lean_ctor_get(x_464, 1); lean_inc(x_517); +lean_inc(x_516); +lean_dec(x_464); +x_518 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_518, 0, x_516); +lean_ctor_set(x_518, 1, x_517); +return x_518; +} +} +} +else +{ +lean_object* x_519; uint8_t x_520; uint8_t x_521; uint8_t x_522; lean_object* x_523; lean_object* x_524; +x_519 = lean_ctor_get(x_2, 0); +x_520 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_521 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_519); lean_dec(x_2); -x_520 = 0; -x_521 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_521, 0, x_517); -lean_ctor_set_uint8(x_521, sizeof(void*)*1, x_518); -lean_ctor_set_uint8(x_521, sizeof(void*)*1 + 1, x_520); -lean_ctor_set_uint8(x_521, sizeof(void*)*1 + 2, x_519); +x_522 = 0; +x_523 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_523, 0, x_519); +lean_ctor_set_uint8(x_523, sizeof(void*)*1, x_520); +lean_ctor_set_uint8(x_523, sizeof(void*)*1 + 1, x_522); +lean_ctor_set_uint8(x_523, sizeof(void*)*1 + 2, x_521); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -6073,18 +7508,18 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_521); -x_522 = l_Lean_Elab_Term_toParserDescrAux___main(x_459, x_521, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_522) == 0) -{ -lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_523 = lean_ctor_get(x_522, 0); lean_inc(x_523); -x_524 = lean_ctor_get(x_522, 1); -lean_inc(x_524); -lean_dec(x_522); -x_525 = lean_unsigned_to_nat(2u); -x_526 = l_Lean_Syntax_getArg(x_1, x_525); +x_524 = l_Lean_Elab_Term_toParserDescrAux(x_461, x_523, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_524) == 0) +{ +lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_525 = lean_ctor_get(x_524, 0); +lean_inc(x_525); +x_526 = lean_ctor_get(x_524, 1); +lean_inc(x_526); +lean_dec(x_524); +x_527 = lean_unsigned_to_nat(2u); +x_528 = l_Lean_Syntax_getArg(x_1, x_527); lean_dec(x_1); lean_inc(x_9); lean_inc(x_8); @@ -6092,75 +7527,107 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_527 = l_Lean_Elab_Term_toParserDescrAux___main(x_526, x_521, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_524); -if (lean_obj_tag(x_527) == 0) +x_529 = l_Lean_Elab_Term_toParserDescrAux(x_528, x_523, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_526); +if (lean_obj_tag(x_529) == 0) { -lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; -x_528 = lean_ctor_get(x_527, 0); -lean_inc(x_528); -x_529 = lean_ctor_get(x_527, 1); -lean_inc(x_529); -lean_dec(x_527); -x_530 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_529); +lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; +x_530 = lean_ctor_get(x_529, 0); +lean_inc(x_530); +x_531 = lean_ctor_get(x_529, 1); +lean_inc(x_531); +lean_dec(x_529); +x_532 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_531); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_531 = lean_ctor_get(x_530, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_530, 1); -lean_inc(x_532); -lean_dec(x_530); -x_533 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_532); -lean_dec(x_9); -x_534 = lean_ctor_get(x_533, 0); +x_533 = lean_ctor_get(x_532, 0); +lean_inc(x_533); +x_534 = lean_ctor_get(x_532, 1); lean_inc(x_534); -x_535 = lean_ctor_get(x_533, 1); -lean_inc(x_535); -if (lean_is_exclusive(x_533)) { - lean_ctor_release(x_533, 0); - lean_ctor_release(x_533, 1); - x_536 = x_533; +lean_dec(x_532); +x_535 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_534); +lean_dec(x_9); +x_536 = lean_ctor_get(x_535, 0); +lean_inc(x_536); +x_537 = lean_ctor_get(x_535, 1); +lean_inc(x_537); +if (lean_is_exclusive(x_535)) { + lean_ctor_release(x_535, 0); + lean_ctor_release(x_535, 1); + x_538 = x_535; } else { - lean_dec_ref(x_533); - x_536 = lean_box(0); + lean_dec_ref(x_535); + x_538 = lean_box(0); } -x_537 = l_Lean_Elab_Term_toParserDescrAux___main___closed__63; -x_538 = l_Lean_addMacroScope(x_534, x_537, x_531); -x_539 = l_Lean_SourceInfo_inhabited___closed__1; -x_540 = l_Lean_Elab_Term_toParserDescrAux___main___closed__62; -x_541 = l_Lean_Elab_Term_toParserDescrAux___main___closed__66; -x_542 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_542, 0, x_539); -lean_ctor_set(x_542, 1, x_540); -lean_ctor_set(x_542, 2, x_538); -lean_ctor_set(x_542, 3, x_541); -x_543 = l_Array_empty___closed__1; -x_544 = lean_array_push(x_543, x_542); -x_545 = lean_array_push(x_543, x_523); -x_546 = lean_array_push(x_545, x_528); -x_547 = l_Lean_nullKind___closed__2; -x_548 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_548, 0, x_547); -lean_ctor_set(x_548, 1, x_546); -x_549 = lean_array_push(x_544, x_548); -x_550 = l_Lean_mkAppStx___closed__8; -x_551 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_551, 0, x_550); -lean_ctor_set(x_551, 1, x_549); -if (lean_is_scalar(x_536)) { - x_552 = lean_alloc_ctor(0, 2, 0); +x_539 = l_Lean_Elab_Term_toParserDescrAux___closed__62; +x_540 = l_Lean_addMacroScope(x_536, x_539, x_533); +x_541 = l_Lean_SourceInfo_inhabited___closed__1; +x_542 = l_Lean_Elab_Term_toParserDescrAux___closed__61; +x_543 = l_Lean_Elab_Term_toParserDescrAux___closed__65; +x_544 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_544, 0, x_541); +lean_ctor_set(x_544, 1, x_542); +lean_ctor_set(x_544, 2, x_540); +lean_ctor_set(x_544, 3, x_543); +x_545 = l_Array_empty___closed__1; +x_546 = lean_array_push(x_545, x_544); +x_547 = lean_array_push(x_545, x_525); +x_548 = lean_array_push(x_547, x_530); +x_549 = l_Lean_nullKind___closed__2; +x_550 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_550, 0, x_549); +lean_ctor_set(x_550, 1, x_548); +x_551 = lean_array_push(x_546, x_550); +x_552 = l_Lean_mkAppStx___closed__8; +x_553 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_553, 0, x_552); +lean_ctor_set(x_553, 1, x_551); +if (lean_is_scalar(x_538)) { + x_554 = lean_alloc_ctor(0, 2, 0); } else { - x_552 = x_536; + x_554 = x_538; } -lean_ctor_set(x_552, 0, x_551); -lean_ctor_set(x_552, 1, x_535); -return x_552; +lean_ctor_set(x_554, 0, x_553); +lean_ctor_set(x_554, 1, x_537); +return x_554; } else { -lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; +lean_dec(x_525); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_555 = lean_ctor_get(x_529, 0); +lean_inc(x_555); +x_556 = lean_ctor_get(x_529, 1); +lean_inc(x_556); +if (lean_is_exclusive(x_529)) { + lean_ctor_release(x_529, 0); + lean_ctor_release(x_529, 1); + x_557 = x_529; +} else { + lean_dec_ref(x_529); + x_557 = lean_box(0); +} +if (lean_is_scalar(x_557)) { + x_558 = lean_alloc_ctor(1, 2, 0); +} else { + x_558 = x_557; +} +lean_ctor_set(x_558, 0, x_555); +lean_ctor_set(x_558, 1, x_556); +return x_558; +} +} +else +{ +lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_dec(x_523); lean_dec(x_9); lean_dec(x_8); @@ -6168,76 +7635,44 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_553 = lean_ctor_get(x_527, 0); -lean_inc(x_553); -x_554 = lean_ctor_get(x_527, 1); -lean_inc(x_554); -if (lean_is_exclusive(x_527)) { - lean_ctor_release(x_527, 0); - lean_ctor_release(x_527, 1); - x_555 = x_527; -} else { - lean_dec_ref(x_527); - x_555 = lean_box(0); -} -if (lean_is_scalar(x_555)) { - x_556 = lean_alloc_ctor(1, 2, 0); -} else { - x_556 = x_555; -} -lean_ctor_set(x_556, 0, x_553); -lean_ctor_set(x_556, 1, x_554); -return x_556; -} -} -else -{ -lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; -lean_dec(x_521); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_557 = lean_ctor_get(x_522, 0); -lean_inc(x_557); -x_558 = lean_ctor_get(x_522, 1); -lean_inc(x_558); -if (lean_is_exclusive(x_522)) { - lean_ctor_release(x_522, 0); - lean_ctor_release(x_522, 1); - x_559 = x_522; +x_559 = lean_ctor_get(x_524, 0); +lean_inc(x_559); +x_560 = lean_ctor_get(x_524, 1); +lean_inc(x_560); +if (lean_is_exclusive(x_524)) { + lean_ctor_release(x_524, 0); + lean_ctor_release(x_524, 1); + x_561 = x_524; } else { - lean_dec_ref(x_522); - x_559 = lean_box(0); + lean_dec_ref(x_524); + x_561 = lean_box(0); } -if (lean_is_scalar(x_559)) { - x_560 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_561)) { + x_562 = lean_alloc_ctor(1, 2, 0); } else { - x_560 = x_559; + x_562 = x_561; } -lean_ctor_set(x_560, 0, x_557); -lean_ctor_set(x_560, 1, x_558); -return x_560; +lean_ctor_set(x_562, 0, x_559); +lean_ctor_set(x_562, 1, x_560); +return x_562; } } } } else { -lean_object* x_561; lean_object* x_562; uint8_t x_563; +lean_object* x_563; lean_object* x_564; uint8_t x_565; lean_dec(x_11); -x_561 = lean_unsigned_to_nat(1u); -x_562 = l_Lean_Syntax_getArg(x_1, x_561); -x_563 = !lean_is_exclusive(x_2); -if (x_563 == 0) +x_563 = lean_unsigned_to_nat(1u); +x_564 = l_Lean_Syntax_getArg(x_1, x_563); +x_565 = !lean_is_exclusive(x_2); +if (x_565 == 0) { -uint8_t x_564; lean_object* x_565; -x_564 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_564); +uint8_t x_566; lean_object* x_567; +x_566 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_566); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -6246,17 +7681,17 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_565 = l_Lean_Elab_Term_toParserDescrAux___main(x_562, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_565) == 0) +x_567 = l_Lean_Elab_Term_toParserDescrAux(x_564, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_567) == 0) { -lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; -x_566 = lean_ctor_get(x_565, 0); -lean_inc(x_566); -x_567 = lean_ctor_get(x_565, 1); -lean_inc(x_567); -lean_dec(x_565); -x_568 = lean_unsigned_to_nat(2u); -x_569 = l_Lean_Syntax_getArg(x_1, x_568); +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; +x_568 = lean_ctor_get(x_567, 0); +lean_inc(x_568); +x_569 = lean_ctor_get(x_567, 1); +lean_inc(x_569); +lean_dec(x_567); +x_570 = lean_unsigned_to_nat(2u); +x_571 = l_Lean_Syntax_getArg(x_1, x_570); lean_dec(x_1); lean_inc(x_9); lean_inc(x_8); @@ -6264,129 +7699,129 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_570 = l_Lean_Elab_Term_toParserDescrAux___main(x_569, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_567); -if (lean_obj_tag(x_570) == 0) +x_572 = l_Lean_Elab_Term_toParserDescrAux(x_571, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_569); +if (lean_obj_tag(x_572) == 0) { -lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; uint8_t x_577; -x_571 = lean_ctor_get(x_570, 0); -lean_inc(x_571); -x_572 = lean_ctor_get(x_570, 1); -lean_inc(x_572); -lean_dec(x_570); -x_573 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_572); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_574 = lean_ctor_get(x_573, 0); +lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; uint8_t x_579; +x_573 = lean_ctor_get(x_572, 0); +lean_inc(x_573); +x_574 = lean_ctor_get(x_572, 1); lean_inc(x_574); -x_575 = lean_ctor_get(x_573, 1); -lean_inc(x_575); -lean_dec(x_573); -x_576 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_575); +lean_dec(x_572); +x_575 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_574); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_576 = lean_ctor_get(x_575, 0); +lean_inc(x_576); +x_577 = lean_ctor_get(x_575, 1); +lean_inc(x_577); +lean_dec(x_575); +x_578 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_577); lean_dec(x_9); -x_577 = !lean_is_exclusive(x_576); -if (x_577 == 0) +x_579 = !lean_is_exclusive(x_578); +if (x_579 == 0) { -lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; -x_578 = lean_ctor_get(x_576, 0); -x_579 = l_Lean_Elab_Term_toParserDescrAux___main___closed__70; -x_580 = l_Lean_addMacroScope(x_578, x_579, x_574); -x_581 = l_Lean_SourceInfo_inhabited___closed__1; -x_582 = l_Lean_Elab_Term_toParserDescrAux___main___closed__69; -x_583 = l_Lean_Elab_Term_toParserDescrAux___main___closed__73; -x_584 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_584, 0, x_581); -lean_ctor_set(x_584, 1, x_582); -lean_ctor_set(x_584, 2, x_580); -lean_ctor_set(x_584, 3, x_583); -x_585 = l_Array_empty___closed__1; -x_586 = lean_array_push(x_585, x_584); -x_587 = lean_array_push(x_585, x_566); -x_588 = lean_array_push(x_587, x_571); -x_589 = l_Lean_nullKind___closed__2; -x_590 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_590, 0, x_589); -lean_ctor_set(x_590, 1, x_588); -x_591 = lean_array_push(x_586, x_590); -x_592 = l_Lean_mkAppStx___closed__8; -x_593 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_593, 0, x_592); -lean_ctor_set(x_593, 1, x_591); -lean_ctor_set(x_576, 0, x_593); -return x_576; +lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; +x_580 = lean_ctor_get(x_578, 0); +x_581 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_582 = l_Lean_addMacroScope(x_580, x_581, x_576); +x_583 = l_Lean_SourceInfo_inhabited___closed__1; +x_584 = l_Lean_Elab_Term_toParserDescrAux___closed__68; +x_585 = l_Lean_Elab_Term_toParserDescrAux___closed__72; +x_586 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_586, 0, x_583); +lean_ctor_set(x_586, 1, x_584); +lean_ctor_set(x_586, 2, x_582); +lean_ctor_set(x_586, 3, x_585); +x_587 = l_Array_empty___closed__1; +x_588 = lean_array_push(x_587, x_586); +x_589 = lean_array_push(x_587, x_568); +x_590 = lean_array_push(x_589, x_573); +x_591 = l_Lean_nullKind___closed__2; +x_592 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_592, 0, x_591); +lean_ctor_set(x_592, 1, x_590); +x_593 = lean_array_push(x_588, x_592); +x_594 = l_Lean_mkAppStx___closed__8; +x_595 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_595, 0, x_594); +lean_ctor_set(x_595, 1, x_593); +lean_ctor_set(x_578, 0, x_595); +return x_578; } else { -lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; -x_594 = lean_ctor_get(x_576, 0); -x_595 = lean_ctor_get(x_576, 1); -lean_inc(x_595); -lean_inc(x_594); -lean_dec(x_576); -x_596 = l_Lean_Elab_Term_toParserDescrAux___main___closed__70; -x_597 = l_Lean_addMacroScope(x_594, x_596, x_574); -x_598 = l_Lean_SourceInfo_inhabited___closed__1; -x_599 = l_Lean_Elab_Term_toParserDescrAux___main___closed__69; -x_600 = l_Lean_Elab_Term_toParserDescrAux___main___closed__73; -x_601 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_601, 0, x_598); -lean_ctor_set(x_601, 1, x_599); -lean_ctor_set(x_601, 2, x_597); -lean_ctor_set(x_601, 3, x_600); -x_602 = l_Array_empty___closed__1; -x_603 = lean_array_push(x_602, x_601); -x_604 = lean_array_push(x_602, x_566); -x_605 = lean_array_push(x_604, x_571); -x_606 = l_Lean_nullKind___closed__2; -x_607 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_607, 0, x_606); -lean_ctor_set(x_607, 1, x_605); -x_608 = lean_array_push(x_603, x_607); -x_609 = l_Lean_mkAppStx___closed__8; -x_610 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_610, 0, x_609); -lean_ctor_set(x_610, 1, x_608); -x_611 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_611, 0, x_610); -lean_ctor_set(x_611, 1, x_595); -return x_611; +lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; +x_596 = lean_ctor_get(x_578, 0); +x_597 = lean_ctor_get(x_578, 1); +lean_inc(x_597); +lean_inc(x_596); +lean_dec(x_578); +x_598 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_599 = l_Lean_addMacroScope(x_596, x_598, x_576); +x_600 = l_Lean_SourceInfo_inhabited___closed__1; +x_601 = l_Lean_Elab_Term_toParserDescrAux___closed__68; +x_602 = l_Lean_Elab_Term_toParserDescrAux___closed__72; +x_603 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_603, 0, x_600); +lean_ctor_set(x_603, 1, x_601); +lean_ctor_set(x_603, 2, x_599); +lean_ctor_set(x_603, 3, x_602); +x_604 = l_Array_empty___closed__1; +x_605 = lean_array_push(x_604, x_603); +x_606 = lean_array_push(x_604, x_568); +x_607 = lean_array_push(x_606, x_573); +x_608 = l_Lean_nullKind___closed__2; +x_609 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_609, 0, x_608); +lean_ctor_set(x_609, 1, x_607); +x_610 = lean_array_push(x_605, x_609); +x_611 = l_Lean_mkAppStx___closed__8; +x_612 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_612, 0, x_611); +lean_ctor_set(x_612, 1, x_610); +x_613 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_613, 0, x_612); +lean_ctor_set(x_613, 1, x_597); +return x_613; } } else { -uint8_t x_612; -lean_dec(x_566); +uint8_t x_614; +lean_dec(x_568); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_612 = !lean_is_exclusive(x_570); -if (x_612 == 0) +x_614 = !lean_is_exclusive(x_572); +if (x_614 == 0) { -return x_570; +return x_572; } else { -lean_object* x_613; lean_object* x_614; lean_object* x_615; -x_613 = lean_ctor_get(x_570, 0); -x_614 = lean_ctor_get(x_570, 1); -lean_inc(x_614); -lean_inc(x_613); -lean_dec(x_570); -x_615 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_615, 0, x_613); -lean_ctor_set(x_615, 1, x_614); -return x_615; +lean_object* x_615; lean_object* x_616; lean_object* x_617; +x_615 = lean_ctor_get(x_572, 0); +x_616 = lean_ctor_get(x_572, 1); +lean_inc(x_616); +lean_inc(x_615); +lean_dec(x_572); +x_617 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_617, 0, x_615); +lean_ctor_set(x_617, 1, x_616); +return x_617; } } } else { -uint8_t x_616; +uint8_t x_618; lean_dec(x_2); lean_dec(x_9); lean_dec(x_8); @@ -6396,40 +7831,40 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_616 = !lean_is_exclusive(x_565); -if (x_616 == 0) +x_618 = !lean_is_exclusive(x_567); +if (x_618 == 0) { -return x_565; +return x_567; } else { -lean_object* x_617; lean_object* x_618; lean_object* x_619; -x_617 = lean_ctor_get(x_565, 0); -x_618 = lean_ctor_get(x_565, 1); -lean_inc(x_618); -lean_inc(x_617); -lean_dec(x_565); -x_619 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_619, 0, x_617); -lean_ctor_set(x_619, 1, x_618); -return x_619; -} -} -} -else -{ -lean_object* x_620; uint8_t x_621; uint8_t x_622; uint8_t x_623; lean_object* x_624; lean_object* x_625; -x_620 = lean_ctor_get(x_2, 0); -x_621 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_622 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_619; lean_object* x_620; lean_object* x_621; +x_619 = lean_ctor_get(x_567, 0); +x_620 = lean_ctor_get(x_567, 1); lean_inc(x_620); +lean_inc(x_619); +lean_dec(x_567); +x_621 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_621, 0, x_619); +lean_ctor_set(x_621, 1, x_620); +return x_621; +} +} +} +else +{ +lean_object* x_622; uint8_t x_623; uint8_t x_624; uint8_t x_625; lean_object* x_626; lean_object* x_627; +x_622 = lean_ctor_get(x_2, 0); +x_623 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_624 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_622); lean_dec(x_2); -x_623 = 0; -x_624 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_624, 0, x_620); -lean_ctor_set_uint8(x_624, sizeof(void*)*1, x_621); -lean_ctor_set_uint8(x_624, sizeof(void*)*1 + 1, x_623); -lean_ctor_set_uint8(x_624, sizeof(void*)*1 + 2, x_622); +x_625 = 0; +x_626 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_626, 0, x_622); +lean_ctor_set_uint8(x_626, sizeof(void*)*1, x_623); +lean_ctor_set_uint8(x_626, sizeof(void*)*1 + 1, x_625); +lean_ctor_set_uint8(x_626, sizeof(void*)*1 + 2, x_624); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -6437,18 +7872,18 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_624); -x_625 = l_Lean_Elab_Term_toParserDescrAux___main(x_562, x_624, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_625) == 0) -{ -lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; -x_626 = lean_ctor_get(x_625, 0); lean_inc(x_626); -x_627 = lean_ctor_get(x_625, 1); -lean_inc(x_627); -lean_dec(x_625); -x_628 = lean_unsigned_to_nat(2u); -x_629 = l_Lean_Syntax_getArg(x_1, x_628); +x_627 = l_Lean_Elab_Term_toParserDescrAux(x_564, x_626, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_627) == 0) +{ +lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; +x_628 = lean_ctor_get(x_627, 0); +lean_inc(x_628); +x_629 = lean_ctor_get(x_627, 1); +lean_inc(x_629); +lean_dec(x_627); +x_630 = lean_unsigned_to_nat(2u); +x_631 = l_Lean_Syntax_getArg(x_1, x_630); lean_dec(x_1); lean_inc(x_9); lean_inc(x_8); @@ -6456,75 +7891,107 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_630 = l_Lean_Elab_Term_toParserDescrAux___main(x_629, x_624, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_627); -if (lean_obj_tag(x_630) == 0) +x_632 = l_Lean_Elab_Term_toParserDescrAux(x_631, x_626, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_629); +if (lean_obj_tag(x_632) == 0) { -lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; -x_631 = lean_ctor_get(x_630, 0); -lean_inc(x_631); -x_632 = lean_ctor_get(x_630, 1); -lean_inc(x_632); -lean_dec(x_630); -x_633 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_632); +lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; +x_633 = lean_ctor_get(x_632, 0); +lean_inc(x_633); +x_634 = lean_ctor_get(x_632, 1); +lean_inc(x_634); +lean_dec(x_632); +x_635 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_634); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_634 = lean_ctor_get(x_633, 0); -lean_inc(x_634); -x_635 = lean_ctor_get(x_633, 1); -lean_inc(x_635); -lean_dec(x_633); -x_636 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_635); -lean_dec(x_9); -x_637 = lean_ctor_get(x_636, 0); +x_636 = lean_ctor_get(x_635, 0); +lean_inc(x_636); +x_637 = lean_ctor_get(x_635, 1); lean_inc(x_637); -x_638 = lean_ctor_get(x_636, 1); -lean_inc(x_638); -if (lean_is_exclusive(x_636)) { - lean_ctor_release(x_636, 0); - lean_ctor_release(x_636, 1); - x_639 = x_636; +lean_dec(x_635); +x_638 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_637); +lean_dec(x_9); +x_639 = lean_ctor_get(x_638, 0); +lean_inc(x_639); +x_640 = lean_ctor_get(x_638, 1); +lean_inc(x_640); +if (lean_is_exclusive(x_638)) { + lean_ctor_release(x_638, 0); + lean_ctor_release(x_638, 1); + x_641 = x_638; } else { - lean_dec_ref(x_636); - x_639 = lean_box(0); + lean_dec_ref(x_638); + x_641 = lean_box(0); } -x_640 = l_Lean_Elab_Term_toParserDescrAux___main___closed__70; -x_641 = l_Lean_addMacroScope(x_637, x_640, x_634); -x_642 = l_Lean_SourceInfo_inhabited___closed__1; -x_643 = l_Lean_Elab_Term_toParserDescrAux___main___closed__69; -x_644 = l_Lean_Elab_Term_toParserDescrAux___main___closed__73; -x_645 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_645, 0, x_642); -lean_ctor_set(x_645, 1, x_643); -lean_ctor_set(x_645, 2, x_641); -lean_ctor_set(x_645, 3, x_644); -x_646 = l_Array_empty___closed__1; -x_647 = lean_array_push(x_646, x_645); -x_648 = lean_array_push(x_646, x_626); -x_649 = lean_array_push(x_648, x_631); -x_650 = l_Lean_nullKind___closed__2; -x_651 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_651, 0, x_650); -lean_ctor_set(x_651, 1, x_649); -x_652 = lean_array_push(x_647, x_651); -x_653 = l_Lean_mkAppStx___closed__8; -x_654 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_654, 0, x_653); -lean_ctor_set(x_654, 1, x_652); -if (lean_is_scalar(x_639)) { - x_655 = lean_alloc_ctor(0, 2, 0); +x_642 = l_Lean_Elab_Term_toParserDescrAux___closed__69; +x_643 = l_Lean_addMacroScope(x_639, x_642, x_636); +x_644 = l_Lean_SourceInfo_inhabited___closed__1; +x_645 = l_Lean_Elab_Term_toParserDescrAux___closed__68; +x_646 = l_Lean_Elab_Term_toParserDescrAux___closed__72; +x_647 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_647, 0, x_644); +lean_ctor_set(x_647, 1, x_645); +lean_ctor_set(x_647, 2, x_643); +lean_ctor_set(x_647, 3, x_646); +x_648 = l_Array_empty___closed__1; +x_649 = lean_array_push(x_648, x_647); +x_650 = lean_array_push(x_648, x_628); +x_651 = lean_array_push(x_650, x_633); +x_652 = l_Lean_nullKind___closed__2; +x_653 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_653, 0, x_652); +lean_ctor_set(x_653, 1, x_651); +x_654 = lean_array_push(x_649, x_653); +x_655 = l_Lean_mkAppStx___closed__8; +x_656 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_656, 0, x_655); +lean_ctor_set(x_656, 1, x_654); +if (lean_is_scalar(x_641)) { + x_657 = lean_alloc_ctor(0, 2, 0); } else { - x_655 = x_639; + x_657 = x_641; } -lean_ctor_set(x_655, 0, x_654); -lean_ctor_set(x_655, 1, x_638); -return x_655; +lean_ctor_set(x_657, 0, x_656); +lean_ctor_set(x_657, 1, x_640); +return x_657; } else { -lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; +lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; +lean_dec(x_628); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_658 = lean_ctor_get(x_632, 0); +lean_inc(x_658); +x_659 = lean_ctor_get(x_632, 1); +lean_inc(x_659); +if (lean_is_exclusive(x_632)) { + lean_ctor_release(x_632, 0); + lean_ctor_release(x_632, 1); + x_660 = x_632; +} else { + lean_dec_ref(x_632); + x_660 = lean_box(0); +} +if (lean_is_scalar(x_660)) { + x_661 = lean_alloc_ctor(1, 2, 0); +} else { + x_661 = x_660; +} +lean_ctor_set(x_661, 0, x_658); +lean_ctor_set(x_661, 1, x_659); +return x_661; +} +} +else +{ +lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_dec(x_626); lean_dec(x_9); lean_dec(x_8); @@ -6532,1408 +7999,1376 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_656 = lean_ctor_get(x_630, 0); -lean_inc(x_656); -x_657 = lean_ctor_get(x_630, 1); -lean_inc(x_657); -if (lean_is_exclusive(x_630)) { - lean_ctor_release(x_630, 0); - lean_ctor_release(x_630, 1); - x_658 = x_630; -} else { - lean_dec_ref(x_630); - x_658 = lean_box(0); -} -if (lean_is_scalar(x_658)) { - x_659 = lean_alloc_ctor(1, 2, 0); -} else { - x_659 = x_658; -} -lean_ctor_set(x_659, 0, x_656); -lean_ctor_set(x_659, 1, x_657); -return x_659; -} -} -else -{ -lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; -lean_dec(x_624); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_660 = lean_ctor_get(x_625, 0); -lean_inc(x_660); -x_661 = lean_ctor_get(x_625, 1); -lean_inc(x_661); -if (lean_is_exclusive(x_625)) { - lean_ctor_release(x_625, 0); - lean_ctor_release(x_625, 1); - x_662 = x_625; +x_662 = lean_ctor_get(x_627, 0); +lean_inc(x_662); +x_663 = lean_ctor_get(x_627, 1); +lean_inc(x_663); +if (lean_is_exclusive(x_627)) { + lean_ctor_release(x_627, 0); + lean_ctor_release(x_627, 1); + x_664 = x_627; } else { - lean_dec_ref(x_625); - x_662 = lean_box(0); + lean_dec_ref(x_627); + x_664 = lean_box(0); } -if (lean_is_scalar(x_662)) { - x_663 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_664)) { + x_665 = lean_alloc_ctor(1, 2, 0); } else { - x_663 = x_662; + x_665 = x_664; } -lean_ctor_set(x_663, 0, x_660); -lean_ctor_set(x_663, 1, x_661); -return x_663; +lean_ctor_set(x_665, 0, x_662); +lean_ctor_set(x_665, 1, x_663); +return x_665; } } } } else { -lean_object* x_664; lean_object* x_665; uint8_t x_666; +lean_object* x_666; lean_object* x_667; uint8_t x_668; lean_dec(x_11); -x_664 = lean_unsigned_to_nat(1u); -x_665 = l_Lean_Syntax_getArg(x_1, x_664); +x_666 = lean_unsigned_to_nat(1u); +x_667 = l_Lean_Syntax_getArg(x_1, x_666); lean_dec(x_1); -x_666 = !lean_is_exclusive(x_2); -if (x_666 == 0) +x_668 = !lean_is_exclusive(x_2); +if (x_668 == 0) { -uint8_t x_667; lean_object* x_668; -x_667 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_667); +uint8_t x_669; lean_object* x_670; +x_669 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_669); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_668 = l_Lean_Elab_Term_toParserDescrAux___main(x_665, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_668) == 0) +x_670 = l_Lean_Elab_Term_toParserDescrAux(x_667, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_670) == 0) { -lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; uint8_t x_675; -x_669 = lean_ctor_get(x_668, 0); -lean_inc(x_669); -x_670 = lean_ctor_get(x_668, 1); -lean_inc(x_670); -lean_dec(x_668); -x_671 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_670); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_672 = lean_ctor_get(x_671, 0); +lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; uint8_t x_677; +x_671 = lean_ctor_get(x_670, 0); +lean_inc(x_671); +x_672 = lean_ctor_get(x_670, 1); lean_inc(x_672); -x_673 = lean_ctor_get(x_671, 1); -lean_inc(x_673); -lean_dec(x_671); -x_674 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_673); +lean_dec(x_670); +x_673 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_672); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_674 = lean_ctor_get(x_673, 0); +lean_inc(x_674); +x_675 = lean_ctor_get(x_673, 1); +lean_inc(x_675); +lean_dec(x_673); +x_676 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_675); lean_dec(x_9); -x_675 = !lean_is_exclusive(x_674); -if (x_675 == 0) +x_677 = !lean_is_exclusive(x_676); +if (x_677 == 0) { -lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; -x_676 = lean_ctor_get(x_674, 0); -x_677 = l_Lean_Elab_Term_toParserDescrAux___main___closed__77; -x_678 = l_Lean_addMacroScope(x_676, x_677, x_672); -x_679 = l_Lean_SourceInfo_inhabited___closed__1; -x_680 = l_Lean_Elab_Term_toParserDescrAux___main___closed__76; -x_681 = l_Lean_Elab_Term_toParserDescrAux___main___closed__80; -x_682 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_682, 0, x_679); -lean_ctor_set(x_682, 1, x_680); -lean_ctor_set(x_682, 2, x_678); -lean_ctor_set(x_682, 3, x_681); -x_683 = l_Array_empty___closed__1; -x_684 = lean_array_push(x_683, x_682); -x_685 = lean_array_push(x_683, x_669); -x_686 = l_Lean_nullKind___closed__2; -x_687 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_687, 0, x_686); -lean_ctor_set(x_687, 1, x_685); -x_688 = lean_array_push(x_684, x_687); -x_689 = l_Lean_mkAppStx___closed__8; -x_690 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_690, 0, x_689); -lean_ctor_set(x_690, 1, x_688); -lean_ctor_set(x_674, 0, x_690); -return x_674; +lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; +x_678 = lean_ctor_get(x_676, 0); +x_679 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_680 = l_Lean_addMacroScope(x_678, x_679, x_674); +x_681 = l_Lean_SourceInfo_inhabited___closed__1; +x_682 = l_Lean_Elab_Term_toParserDescrAux___closed__75; +x_683 = l_Lean_Elab_Term_toParserDescrAux___closed__79; +x_684 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_684, 0, x_681); +lean_ctor_set(x_684, 1, x_682); +lean_ctor_set(x_684, 2, x_680); +lean_ctor_set(x_684, 3, x_683); +x_685 = l_Array_empty___closed__1; +x_686 = lean_array_push(x_685, x_684); +x_687 = lean_array_push(x_685, x_671); +x_688 = l_Lean_nullKind___closed__2; +x_689 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_689, 0, x_688); +lean_ctor_set(x_689, 1, x_687); +x_690 = lean_array_push(x_686, x_689); +x_691 = l_Lean_mkAppStx___closed__8; +x_692 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_692, 0, x_691); +lean_ctor_set(x_692, 1, x_690); +lean_ctor_set(x_676, 0, x_692); +return x_676; } else { -lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; -x_691 = lean_ctor_get(x_674, 0); -x_692 = lean_ctor_get(x_674, 1); -lean_inc(x_692); -lean_inc(x_691); -lean_dec(x_674); -x_693 = l_Lean_Elab_Term_toParserDescrAux___main___closed__77; -x_694 = l_Lean_addMacroScope(x_691, x_693, x_672); -x_695 = l_Lean_SourceInfo_inhabited___closed__1; -x_696 = l_Lean_Elab_Term_toParserDescrAux___main___closed__76; -x_697 = l_Lean_Elab_Term_toParserDescrAux___main___closed__80; -x_698 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_698, 0, x_695); -lean_ctor_set(x_698, 1, x_696); -lean_ctor_set(x_698, 2, x_694); -lean_ctor_set(x_698, 3, x_697); -x_699 = l_Array_empty___closed__1; -x_700 = lean_array_push(x_699, x_698); -x_701 = lean_array_push(x_699, x_669); -x_702 = l_Lean_nullKind___closed__2; -x_703 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_703, 0, x_702); -lean_ctor_set(x_703, 1, x_701); -x_704 = lean_array_push(x_700, x_703); -x_705 = l_Lean_mkAppStx___closed__8; -x_706 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_706, 0, x_705); -lean_ctor_set(x_706, 1, x_704); -x_707 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_707, 0, x_706); -lean_ctor_set(x_707, 1, x_692); -return x_707; +lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; +x_693 = lean_ctor_get(x_676, 0); +x_694 = lean_ctor_get(x_676, 1); +lean_inc(x_694); +lean_inc(x_693); +lean_dec(x_676); +x_695 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_696 = l_Lean_addMacroScope(x_693, x_695, x_674); +x_697 = l_Lean_SourceInfo_inhabited___closed__1; +x_698 = l_Lean_Elab_Term_toParserDescrAux___closed__75; +x_699 = l_Lean_Elab_Term_toParserDescrAux___closed__79; +x_700 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_700, 0, x_697); +lean_ctor_set(x_700, 1, x_698); +lean_ctor_set(x_700, 2, x_696); +lean_ctor_set(x_700, 3, x_699); +x_701 = l_Array_empty___closed__1; +x_702 = lean_array_push(x_701, x_700); +x_703 = lean_array_push(x_701, x_671); +x_704 = l_Lean_nullKind___closed__2; +x_705 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_705, 0, x_704); +lean_ctor_set(x_705, 1, x_703); +x_706 = lean_array_push(x_702, x_705); +x_707 = l_Lean_mkAppStx___closed__8; +x_708 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_708, 0, x_707); +lean_ctor_set(x_708, 1, x_706); +x_709 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_709, 0, x_708); +lean_ctor_set(x_709, 1, x_694); +return x_709; } } else { -uint8_t x_708; +uint8_t x_710; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_708 = !lean_is_exclusive(x_668); -if (x_708 == 0) +x_710 = !lean_is_exclusive(x_670); +if (x_710 == 0) { -return x_668; +return x_670; } else { -lean_object* x_709; lean_object* x_710; lean_object* x_711; -x_709 = lean_ctor_get(x_668, 0); -x_710 = lean_ctor_get(x_668, 1); -lean_inc(x_710); -lean_inc(x_709); -lean_dec(x_668); -x_711 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_711, 0, x_709); -lean_ctor_set(x_711, 1, x_710); -return x_711; -} -} -} -else -{ -lean_object* x_712; uint8_t x_713; uint8_t x_714; uint8_t x_715; lean_object* x_716; lean_object* x_717; -x_712 = lean_ctor_get(x_2, 0); -x_713 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_714 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_711; lean_object* x_712; lean_object* x_713; +x_711 = lean_ctor_get(x_670, 0); +x_712 = lean_ctor_get(x_670, 1); lean_inc(x_712); +lean_inc(x_711); +lean_dec(x_670); +x_713 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_713, 0, x_711); +lean_ctor_set(x_713, 1, x_712); +return x_713; +} +} +} +else +{ +lean_object* x_714; uint8_t x_715; uint8_t x_716; uint8_t x_717; lean_object* x_718; lean_object* x_719; +x_714 = lean_ctor_get(x_2, 0); +x_715 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_716 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_714); lean_dec(x_2); -x_715 = 0; -x_716 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_716, 0, x_712); -lean_ctor_set_uint8(x_716, sizeof(void*)*1, x_713); -lean_ctor_set_uint8(x_716, sizeof(void*)*1 + 1, x_715); -lean_ctor_set_uint8(x_716, sizeof(void*)*1 + 2, x_714); +x_717 = 0; +x_718 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_718, 0, x_714); +lean_ctor_set_uint8(x_718, sizeof(void*)*1, x_715); +lean_ctor_set_uint8(x_718, sizeof(void*)*1 + 1, x_717); +lean_ctor_set_uint8(x_718, sizeof(void*)*1 + 2, x_716); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_717 = l_Lean_Elab_Term_toParserDescrAux___main(x_665, x_716, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_717) == 0) +x_719 = l_Lean_Elab_Term_toParserDescrAux(x_667, x_718, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_719) == 0) { -lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; -x_718 = lean_ctor_get(x_717, 0); -lean_inc(x_718); -x_719 = lean_ctor_get(x_717, 1); -lean_inc(x_719); -lean_dec(x_717); -x_720 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_719); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_721 = lean_ctor_get(x_720, 0); +lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; +x_720 = lean_ctor_get(x_719, 0); +lean_inc(x_720); +x_721 = lean_ctor_get(x_719, 1); lean_inc(x_721); -x_722 = lean_ctor_get(x_720, 1); -lean_inc(x_722); -lean_dec(x_720); -x_723 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_722); -lean_dec(x_9); -x_724 = lean_ctor_get(x_723, 0); +lean_dec(x_719); +x_722 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_721); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_723 = lean_ctor_get(x_722, 0); +lean_inc(x_723); +x_724 = lean_ctor_get(x_722, 1); lean_inc(x_724); -x_725 = lean_ctor_get(x_723, 1); -lean_inc(x_725); -if (lean_is_exclusive(x_723)) { - lean_ctor_release(x_723, 0); - lean_ctor_release(x_723, 1); - x_726 = x_723; +lean_dec(x_722); +x_725 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_724); +lean_dec(x_9); +x_726 = lean_ctor_get(x_725, 0); +lean_inc(x_726); +x_727 = lean_ctor_get(x_725, 1); +lean_inc(x_727); +if (lean_is_exclusive(x_725)) { + lean_ctor_release(x_725, 0); + lean_ctor_release(x_725, 1); + x_728 = x_725; } else { - lean_dec_ref(x_723); - x_726 = lean_box(0); + lean_dec_ref(x_725); + x_728 = lean_box(0); } -x_727 = l_Lean_Elab_Term_toParserDescrAux___main___closed__77; -x_728 = l_Lean_addMacroScope(x_724, x_727, x_721); -x_729 = l_Lean_SourceInfo_inhabited___closed__1; -x_730 = l_Lean_Elab_Term_toParserDescrAux___main___closed__76; -x_731 = l_Lean_Elab_Term_toParserDescrAux___main___closed__80; -x_732 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_732, 0, x_729); -lean_ctor_set(x_732, 1, x_730); -lean_ctor_set(x_732, 2, x_728); -lean_ctor_set(x_732, 3, x_731); -x_733 = l_Array_empty___closed__1; -x_734 = lean_array_push(x_733, x_732); -x_735 = lean_array_push(x_733, x_718); -x_736 = l_Lean_nullKind___closed__2; -x_737 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_737, 0, x_736); -lean_ctor_set(x_737, 1, x_735); -x_738 = lean_array_push(x_734, x_737); -x_739 = l_Lean_mkAppStx___closed__8; -x_740 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_740, 0, x_739); -lean_ctor_set(x_740, 1, x_738); -if (lean_is_scalar(x_726)) { - x_741 = lean_alloc_ctor(0, 2, 0); +x_729 = l_Lean_Elab_Term_toParserDescrAux___closed__76; +x_730 = l_Lean_addMacroScope(x_726, x_729, x_723); +x_731 = l_Lean_SourceInfo_inhabited___closed__1; +x_732 = l_Lean_Elab_Term_toParserDescrAux___closed__75; +x_733 = l_Lean_Elab_Term_toParserDescrAux___closed__79; +x_734 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_734, 0, x_731); +lean_ctor_set(x_734, 1, x_732); +lean_ctor_set(x_734, 2, x_730); +lean_ctor_set(x_734, 3, x_733); +x_735 = l_Array_empty___closed__1; +x_736 = lean_array_push(x_735, x_734); +x_737 = lean_array_push(x_735, x_720); +x_738 = l_Lean_nullKind___closed__2; +x_739 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_739, 0, x_738); +lean_ctor_set(x_739, 1, x_737); +x_740 = lean_array_push(x_736, x_739); +x_741 = l_Lean_mkAppStx___closed__8; +x_742 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_742, 0, x_741); +lean_ctor_set(x_742, 1, x_740); +if (lean_is_scalar(x_728)) { + x_743 = lean_alloc_ctor(0, 2, 0); } else { - x_741 = x_726; + x_743 = x_728; } -lean_ctor_set(x_741, 0, x_740); -lean_ctor_set(x_741, 1, x_725); -return x_741; +lean_ctor_set(x_743, 0, x_742); +lean_ctor_set(x_743, 1, x_727); +return x_743; } else { -lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; +lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_742 = lean_ctor_get(x_717, 0); -lean_inc(x_742); -x_743 = lean_ctor_get(x_717, 1); -lean_inc(x_743); -if (lean_is_exclusive(x_717)) { - lean_ctor_release(x_717, 0); - lean_ctor_release(x_717, 1); - x_744 = x_717; +x_744 = lean_ctor_get(x_719, 0); +lean_inc(x_744); +x_745 = lean_ctor_get(x_719, 1); +lean_inc(x_745); +if (lean_is_exclusive(x_719)) { + lean_ctor_release(x_719, 0); + lean_ctor_release(x_719, 1); + x_746 = x_719; } else { - lean_dec_ref(x_717); - x_744 = lean_box(0); + lean_dec_ref(x_719); + x_746 = lean_box(0); } -if (lean_is_scalar(x_744)) { - x_745 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_746)) { + x_747 = lean_alloc_ctor(1, 2, 0); } else { - x_745 = x_744; + x_747 = x_746; } -lean_ctor_set(x_745, 0, x_742); -lean_ctor_set(x_745, 1, x_743); -return x_745; +lean_ctor_set(x_747, 0, x_744); +lean_ctor_set(x_747, 1, x_745); +return x_747; } } } } else { -lean_object* x_746; lean_object* x_747; uint8_t x_748; +lean_object* x_748; lean_object* x_749; uint8_t x_750; lean_dec(x_11); -x_746 = lean_unsigned_to_nat(1u); -x_747 = l_Lean_Syntax_getArg(x_1, x_746); +x_748 = lean_unsigned_to_nat(1u); +x_749 = l_Lean_Syntax_getArg(x_1, x_748); lean_dec(x_1); -x_748 = !lean_is_exclusive(x_2); -if (x_748 == 0) +x_750 = !lean_is_exclusive(x_2); +if (x_750 == 0) { -uint8_t x_749; lean_object* x_750; -x_749 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_749); +uint8_t x_751; lean_object* x_752; +x_751 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_751); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_750 = l_Lean_Elab_Term_toParserDescrAux___main(x_747, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_750) == 0) +x_752 = l_Lean_Elab_Term_toParserDescrAux(x_749, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_752) == 0) { -lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; uint8_t x_757; -x_751 = lean_ctor_get(x_750, 0); -lean_inc(x_751); -x_752 = lean_ctor_get(x_750, 1); -lean_inc(x_752); -lean_dec(x_750); -x_753 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_752); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_754 = lean_ctor_get(x_753, 0); +lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; uint8_t x_759; +x_753 = lean_ctor_get(x_752, 0); +lean_inc(x_753); +x_754 = lean_ctor_get(x_752, 1); lean_inc(x_754); -x_755 = lean_ctor_get(x_753, 1); -lean_inc(x_755); -lean_dec(x_753); -x_756 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_755); +lean_dec(x_752); +x_755 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_754); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_756 = lean_ctor_get(x_755, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_755, 1); +lean_inc(x_757); +lean_dec(x_755); +x_758 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_757); lean_dec(x_9); -x_757 = !lean_is_exclusive(x_756); -if (x_757 == 0) +x_759 = !lean_is_exclusive(x_758); +if (x_759 == 0) { -lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; -x_758 = lean_ctor_get(x_756, 0); -x_759 = l_Lean_Elab_Term_toParserDescrAux___main___closed__84; -x_760 = l_Lean_addMacroScope(x_758, x_759, x_754); -x_761 = l_Lean_SourceInfo_inhabited___closed__1; -x_762 = l_Lean_Elab_Term_toParserDescrAux___main___closed__83; -x_763 = l_Lean_Elab_Term_toParserDescrAux___main___closed__87; -x_764 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_764, 0, x_761); -lean_ctor_set(x_764, 1, x_762); -lean_ctor_set(x_764, 2, x_760); -lean_ctor_set(x_764, 3, x_763); -x_765 = l_Array_empty___closed__1; -x_766 = lean_array_push(x_765, x_764); -x_767 = lean_array_push(x_765, x_751); -x_768 = l_Lean_nullKind___closed__2; -x_769 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_769, 0, x_768); -lean_ctor_set(x_769, 1, x_767); -x_770 = lean_array_push(x_766, x_769); -x_771 = l_Lean_mkAppStx___closed__8; -x_772 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_772, 0, x_771); -lean_ctor_set(x_772, 1, x_770); -lean_ctor_set(x_756, 0, x_772); -return x_756; +lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; +x_760 = lean_ctor_get(x_758, 0); +x_761 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_762 = l_Lean_addMacroScope(x_760, x_761, x_756); +x_763 = l_Lean_SourceInfo_inhabited___closed__1; +x_764 = l_Lean_Elab_Term_toParserDescrAux___closed__82; +x_765 = l_Lean_Elab_Term_toParserDescrAux___closed__86; +x_766 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_766, 0, x_763); +lean_ctor_set(x_766, 1, x_764); +lean_ctor_set(x_766, 2, x_762); +lean_ctor_set(x_766, 3, x_765); +x_767 = l_Array_empty___closed__1; +x_768 = lean_array_push(x_767, x_766); +x_769 = lean_array_push(x_767, x_753); +x_770 = l_Lean_nullKind___closed__2; +x_771 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_771, 0, x_770); +lean_ctor_set(x_771, 1, x_769); +x_772 = lean_array_push(x_768, x_771); +x_773 = l_Lean_mkAppStx___closed__8; +x_774 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_774, 0, x_773); +lean_ctor_set(x_774, 1, x_772); +lean_ctor_set(x_758, 0, x_774); +return x_758; } else { -lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; -x_773 = lean_ctor_get(x_756, 0); -x_774 = lean_ctor_get(x_756, 1); -lean_inc(x_774); -lean_inc(x_773); -lean_dec(x_756); -x_775 = l_Lean_Elab_Term_toParserDescrAux___main___closed__84; -x_776 = l_Lean_addMacroScope(x_773, x_775, x_754); -x_777 = l_Lean_SourceInfo_inhabited___closed__1; -x_778 = l_Lean_Elab_Term_toParserDescrAux___main___closed__83; -x_779 = l_Lean_Elab_Term_toParserDescrAux___main___closed__87; -x_780 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_780, 0, x_777); -lean_ctor_set(x_780, 1, x_778); -lean_ctor_set(x_780, 2, x_776); -lean_ctor_set(x_780, 3, x_779); -x_781 = l_Array_empty___closed__1; -x_782 = lean_array_push(x_781, x_780); -x_783 = lean_array_push(x_781, x_751); -x_784 = l_Lean_nullKind___closed__2; -x_785 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_785, 0, x_784); -lean_ctor_set(x_785, 1, x_783); -x_786 = lean_array_push(x_782, x_785); -x_787 = l_Lean_mkAppStx___closed__8; -x_788 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_788, 0, x_787); -lean_ctor_set(x_788, 1, x_786); -x_789 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_789, 0, x_788); -lean_ctor_set(x_789, 1, x_774); -return x_789; +lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; +x_775 = lean_ctor_get(x_758, 0); +x_776 = lean_ctor_get(x_758, 1); +lean_inc(x_776); +lean_inc(x_775); +lean_dec(x_758); +x_777 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_778 = l_Lean_addMacroScope(x_775, x_777, x_756); +x_779 = l_Lean_SourceInfo_inhabited___closed__1; +x_780 = l_Lean_Elab_Term_toParserDescrAux___closed__82; +x_781 = l_Lean_Elab_Term_toParserDescrAux___closed__86; +x_782 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_782, 0, x_779); +lean_ctor_set(x_782, 1, x_780); +lean_ctor_set(x_782, 2, x_778); +lean_ctor_set(x_782, 3, x_781); +x_783 = l_Array_empty___closed__1; +x_784 = lean_array_push(x_783, x_782); +x_785 = lean_array_push(x_783, x_753); +x_786 = l_Lean_nullKind___closed__2; +x_787 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_787, 0, x_786); +lean_ctor_set(x_787, 1, x_785); +x_788 = lean_array_push(x_784, x_787); +x_789 = l_Lean_mkAppStx___closed__8; +x_790 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_790, 0, x_789); +lean_ctor_set(x_790, 1, x_788); +x_791 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_791, 0, x_790); +lean_ctor_set(x_791, 1, x_776); +return x_791; } } else { -uint8_t x_790; +uint8_t x_792; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_790 = !lean_is_exclusive(x_750); -if (x_790 == 0) +x_792 = !lean_is_exclusive(x_752); +if (x_792 == 0) { -return x_750; +return x_752; } else { -lean_object* x_791; lean_object* x_792; lean_object* x_793; -x_791 = lean_ctor_get(x_750, 0); -x_792 = lean_ctor_get(x_750, 1); -lean_inc(x_792); -lean_inc(x_791); -lean_dec(x_750); -x_793 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_793, 0, x_791); -lean_ctor_set(x_793, 1, x_792); -return x_793; -} -} -} -else -{ -lean_object* x_794; uint8_t x_795; uint8_t x_796; uint8_t x_797; lean_object* x_798; lean_object* x_799; -x_794 = lean_ctor_get(x_2, 0); -x_795 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_796 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_793; lean_object* x_794; lean_object* x_795; +x_793 = lean_ctor_get(x_752, 0); +x_794 = lean_ctor_get(x_752, 1); lean_inc(x_794); +lean_inc(x_793); +lean_dec(x_752); +x_795 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_795, 0, x_793); +lean_ctor_set(x_795, 1, x_794); +return x_795; +} +} +} +else +{ +lean_object* x_796; uint8_t x_797; uint8_t x_798; uint8_t x_799; lean_object* x_800; lean_object* x_801; +x_796 = lean_ctor_get(x_2, 0); +x_797 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_798 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_796); lean_dec(x_2); -x_797 = 0; -x_798 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_798, 0, x_794); -lean_ctor_set_uint8(x_798, sizeof(void*)*1, x_795); -lean_ctor_set_uint8(x_798, sizeof(void*)*1 + 1, x_797); -lean_ctor_set_uint8(x_798, sizeof(void*)*1 + 2, x_796); +x_799 = 0; +x_800 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_800, 0, x_796); +lean_ctor_set_uint8(x_800, sizeof(void*)*1, x_797); +lean_ctor_set_uint8(x_800, sizeof(void*)*1 + 1, x_799); +lean_ctor_set_uint8(x_800, sizeof(void*)*1 + 2, x_798); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_799 = l_Lean_Elab_Term_toParserDescrAux___main(x_747, x_798, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_799) == 0) +x_801 = l_Lean_Elab_Term_toParserDescrAux(x_749, x_800, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_801) == 0) { -lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; -x_800 = lean_ctor_get(x_799, 0); -lean_inc(x_800); -x_801 = lean_ctor_get(x_799, 1); -lean_inc(x_801); -lean_dec(x_799); -x_802 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_801); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_803 = lean_ctor_get(x_802, 0); +lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; +x_802 = lean_ctor_get(x_801, 0); +lean_inc(x_802); +x_803 = lean_ctor_get(x_801, 1); lean_inc(x_803); -x_804 = lean_ctor_get(x_802, 1); -lean_inc(x_804); -lean_dec(x_802); -x_805 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_804); -lean_dec(x_9); -x_806 = lean_ctor_get(x_805, 0); +lean_dec(x_801); +x_804 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_803); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_805 = lean_ctor_get(x_804, 0); +lean_inc(x_805); +x_806 = lean_ctor_get(x_804, 1); lean_inc(x_806); -x_807 = lean_ctor_get(x_805, 1); -lean_inc(x_807); -if (lean_is_exclusive(x_805)) { - lean_ctor_release(x_805, 0); - lean_ctor_release(x_805, 1); - x_808 = x_805; +lean_dec(x_804); +x_807 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_806); +lean_dec(x_9); +x_808 = lean_ctor_get(x_807, 0); +lean_inc(x_808); +x_809 = lean_ctor_get(x_807, 1); +lean_inc(x_809); +if (lean_is_exclusive(x_807)) { + lean_ctor_release(x_807, 0); + lean_ctor_release(x_807, 1); + x_810 = x_807; } else { - lean_dec_ref(x_805); - x_808 = lean_box(0); + lean_dec_ref(x_807); + x_810 = lean_box(0); } -x_809 = l_Lean_Elab_Term_toParserDescrAux___main___closed__84; -x_810 = l_Lean_addMacroScope(x_806, x_809, x_803); -x_811 = l_Lean_SourceInfo_inhabited___closed__1; -x_812 = l_Lean_Elab_Term_toParserDescrAux___main___closed__83; -x_813 = l_Lean_Elab_Term_toParserDescrAux___main___closed__87; -x_814 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_814, 0, x_811); -lean_ctor_set(x_814, 1, x_812); -lean_ctor_set(x_814, 2, x_810); -lean_ctor_set(x_814, 3, x_813); -x_815 = l_Array_empty___closed__1; -x_816 = lean_array_push(x_815, x_814); -x_817 = lean_array_push(x_815, x_800); -x_818 = l_Lean_nullKind___closed__2; -x_819 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_819, 0, x_818); -lean_ctor_set(x_819, 1, x_817); -x_820 = lean_array_push(x_816, x_819); -x_821 = l_Lean_mkAppStx___closed__8; -x_822 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_822, 0, x_821); -lean_ctor_set(x_822, 1, x_820); -if (lean_is_scalar(x_808)) { - x_823 = lean_alloc_ctor(0, 2, 0); +x_811 = l_Lean_Elab_Term_toParserDescrAux___closed__83; +x_812 = l_Lean_addMacroScope(x_808, x_811, x_805); +x_813 = l_Lean_SourceInfo_inhabited___closed__1; +x_814 = l_Lean_Elab_Term_toParserDescrAux___closed__82; +x_815 = l_Lean_Elab_Term_toParserDescrAux___closed__86; +x_816 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_816, 0, x_813); +lean_ctor_set(x_816, 1, x_814); +lean_ctor_set(x_816, 2, x_812); +lean_ctor_set(x_816, 3, x_815); +x_817 = l_Array_empty___closed__1; +x_818 = lean_array_push(x_817, x_816); +x_819 = lean_array_push(x_817, x_802); +x_820 = l_Lean_nullKind___closed__2; +x_821 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_821, 0, x_820); +lean_ctor_set(x_821, 1, x_819); +x_822 = lean_array_push(x_818, x_821); +x_823 = l_Lean_mkAppStx___closed__8; +x_824 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_824, 0, x_823); +lean_ctor_set(x_824, 1, x_822); +if (lean_is_scalar(x_810)) { + x_825 = lean_alloc_ctor(0, 2, 0); } else { - x_823 = x_808; + x_825 = x_810; } -lean_ctor_set(x_823, 0, x_822); -lean_ctor_set(x_823, 1, x_807); -return x_823; +lean_ctor_set(x_825, 0, x_824); +lean_ctor_set(x_825, 1, x_809); +return x_825; } else { -lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; +lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_824 = lean_ctor_get(x_799, 0); -lean_inc(x_824); -x_825 = lean_ctor_get(x_799, 1); -lean_inc(x_825); -if (lean_is_exclusive(x_799)) { - lean_ctor_release(x_799, 0); - lean_ctor_release(x_799, 1); - x_826 = x_799; +x_826 = lean_ctor_get(x_801, 0); +lean_inc(x_826); +x_827 = lean_ctor_get(x_801, 1); +lean_inc(x_827); +if (lean_is_exclusive(x_801)) { + lean_ctor_release(x_801, 0); + lean_ctor_release(x_801, 1); + x_828 = x_801; } else { - lean_dec_ref(x_799); - x_826 = lean_box(0); + lean_dec_ref(x_801); + x_828 = lean_box(0); } -if (lean_is_scalar(x_826)) { - x_827 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_828)) { + x_829 = lean_alloc_ctor(1, 2, 0); } else { - x_827 = x_826; + x_829 = x_828; } -lean_ctor_set(x_827, 0, x_824); -lean_ctor_set(x_827, 1, x_825); -return x_827; +lean_ctor_set(x_829, 0, x_826); +lean_ctor_set(x_829, 1, x_827); +return x_829; } } } } else { -lean_object* x_828; lean_object* x_829; uint8_t x_830; +lean_object* x_830; lean_object* x_831; uint8_t x_832; lean_dec(x_11); -x_828 = lean_unsigned_to_nat(1u); -x_829 = l_Lean_Syntax_getArg(x_1, x_828); +x_830 = lean_unsigned_to_nat(1u); +x_831 = l_Lean_Syntax_getArg(x_1, x_830); lean_dec(x_1); -x_830 = !lean_is_exclusive(x_2); -if (x_830 == 0) +x_832 = !lean_is_exclusive(x_2); +if (x_832 == 0) { -uint8_t x_831; lean_object* x_832; -x_831 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_831); +uint8_t x_833; lean_object* x_834; +x_833 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_833); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_832 = l_Lean_Elab_Term_toParserDescrAux___main(x_829, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_832) == 0) +x_834 = l_Lean_Elab_Term_toParserDescrAux(x_831, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_834) == 0) { -lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; uint8_t x_839; -x_833 = lean_ctor_get(x_832, 0); -lean_inc(x_833); -x_834 = lean_ctor_get(x_832, 1); -lean_inc(x_834); -lean_dec(x_832); -x_835 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_834); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_836 = lean_ctor_get(x_835, 0); +lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; uint8_t x_841; +x_835 = lean_ctor_get(x_834, 0); +lean_inc(x_835); +x_836 = lean_ctor_get(x_834, 1); lean_inc(x_836); -x_837 = lean_ctor_get(x_835, 1); -lean_inc(x_837); -lean_dec(x_835); -x_838 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_837); +lean_dec(x_834); +x_837 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_836); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_838 = lean_ctor_get(x_837, 0); +lean_inc(x_838); +x_839 = lean_ctor_get(x_837, 1); +lean_inc(x_839); +lean_dec(x_837); +x_840 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_839); lean_dec(x_9); -x_839 = !lean_is_exclusive(x_838); -if (x_839 == 0) +x_841 = !lean_is_exclusive(x_840); +if (x_841 == 0) { -lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; -x_840 = lean_ctor_get(x_838, 0); -x_841 = l_Lean_Elab_Term_toParserDescrAux___main___closed__91; -x_842 = l_Lean_addMacroScope(x_840, x_841, x_836); -x_843 = l_Lean_SourceInfo_inhabited___closed__1; -x_844 = l_Lean_Elab_Term_toParserDescrAux___main___closed__90; -x_845 = l_Lean_Elab_Term_toParserDescrAux___main___closed__94; -x_846 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_846, 0, x_843); -lean_ctor_set(x_846, 1, x_844); -lean_ctor_set(x_846, 2, x_842); -lean_ctor_set(x_846, 3, x_845); -x_847 = l_Array_empty___closed__1; -x_848 = lean_array_push(x_847, x_846); -x_849 = lean_array_push(x_847, x_833); -x_850 = l_Lean_nullKind___closed__2; -x_851 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_851, 0, x_850); -lean_ctor_set(x_851, 1, x_849); -x_852 = lean_array_push(x_848, x_851); -x_853 = l_Lean_mkAppStx___closed__8; -x_854 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_854, 0, x_853); -lean_ctor_set(x_854, 1, x_852); -lean_ctor_set(x_838, 0, x_854); -return x_838; +lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; +x_842 = lean_ctor_get(x_840, 0); +x_843 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_844 = l_Lean_addMacroScope(x_842, x_843, x_838); +x_845 = l_Lean_SourceInfo_inhabited___closed__1; +x_846 = l_Lean_Elab_Term_toParserDescrAux___closed__89; +x_847 = l_Lean_Elab_Term_toParserDescrAux___closed__93; +x_848 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_848, 0, x_845); +lean_ctor_set(x_848, 1, x_846); +lean_ctor_set(x_848, 2, x_844); +lean_ctor_set(x_848, 3, x_847); +x_849 = l_Array_empty___closed__1; +x_850 = lean_array_push(x_849, x_848); +x_851 = lean_array_push(x_849, x_835); +x_852 = l_Lean_nullKind___closed__2; +x_853 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_853, 0, x_852); +lean_ctor_set(x_853, 1, x_851); +x_854 = lean_array_push(x_850, x_853); +x_855 = l_Lean_mkAppStx___closed__8; +x_856 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_856, 0, x_855); +lean_ctor_set(x_856, 1, x_854); +lean_ctor_set(x_840, 0, x_856); +return x_840; } else { -lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; -x_855 = lean_ctor_get(x_838, 0); -x_856 = lean_ctor_get(x_838, 1); -lean_inc(x_856); -lean_inc(x_855); -lean_dec(x_838); -x_857 = l_Lean_Elab_Term_toParserDescrAux___main___closed__91; -x_858 = l_Lean_addMacroScope(x_855, x_857, x_836); -x_859 = l_Lean_SourceInfo_inhabited___closed__1; -x_860 = l_Lean_Elab_Term_toParserDescrAux___main___closed__90; -x_861 = l_Lean_Elab_Term_toParserDescrAux___main___closed__94; -x_862 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_862, 0, x_859); -lean_ctor_set(x_862, 1, x_860); -lean_ctor_set(x_862, 2, x_858); -lean_ctor_set(x_862, 3, x_861); -x_863 = l_Array_empty___closed__1; -x_864 = lean_array_push(x_863, x_862); -x_865 = lean_array_push(x_863, x_833); -x_866 = l_Lean_nullKind___closed__2; -x_867 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_867, 0, x_866); -lean_ctor_set(x_867, 1, x_865); -x_868 = lean_array_push(x_864, x_867); -x_869 = l_Lean_mkAppStx___closed__8; -x_870 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_870, 0, x_869); -lean_ctor_set(x_870, 1, x_868); -x_871 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_871, 0, x_870); -lean_ctor_set(x_871, 1, x_856); -return x_871; +lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; +x_857 = lean_ctor_get(x_840, 0); +x_858 = lean_ctor_get(x_840, 1); +lean_inc(x_858); +lean_inc(x_857); +lean_dec(x_840); +x_859 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_860 = l_Lean_addMacroScope(x_857, x_859, x_838); +x_861 = l_Lean_SourceInfo_inhabited___closed__1; +x_862 = l_Lean_Elab_Term_toParserDescrAux___closed__89; +x_863 = l_Lean_Elab_Term_toParserDescrAux___closed__93; +x_864 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_864, 0, x_861); +lean_ctor_set(x_864, 1, x_862); +lean_ctor_set(x_864, 2, x_860); +lean_ctor_set(x_864, 3, x_863); +x_865 = l_Array_empty___closed__1; +x_866 = lean_array_push(x_865, x_864); +x_867 = lean_array_push(x_865, x_835); +x_868 = l_Lean_nullKind___closed__2; +x_869 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_869, 0, x_868); +lean_ctor_set(x_869, 1, x_867); +x_870 = lean_array_push(x_866, x_869); +x_871 = l_Lean_mkAppStx___closed__8; +x_872 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_872, 0, x_871); +lean_ctor_set(x_872, 1, x_870); +x_873 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_873, 0, x_872); +lean_ctor_set(x_873, 1, x_858); +return x_873; } } else { -uint8_t x_872; +uint8_t x_874; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_872 = !lean_is_exclusive(x_832); -if (x_872 == 0) +x_874 = !lean_is_exclusive(x_834); +if (x_874 == 0) { -return x_832; +return x_834; } else { -lean_object* x_873; lean_object* x_874; lean_object* x_875; -x_873 = lean_ctor_get(x_832, 0); -x_874 = lean_ctor_get(x_832, 1); -lean_inc(x_874); -lean_inc(x_873); -lean_dec(x_832); -x_875 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_875, 0, x_873); -lean_ctor_set(x_875, 1, x_874); -return x_875; -} -} -} -else -{ -lean_object* x_876; uint8_t x_877; uint8_t x_878; uint8_t x_879; lean_object* x_880; lean_object* x_881; -x_876 = lean_ctor_get(x_2, 0); -x_877 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_878 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_875; lean_object* x_876; lean_object* x_877; +x_875 = lean_ctor_get(x_834, 0); +x_876 = lean_ctor_get(x_834, 1); lean_inc(x_876); +lean_inc(x_875); +lean_dec(x_834); +x_877 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_877, 0, x_875); +lean_ctor_set(x_877, 1, x_876); +return x_877; +} +} +} +else +{ +lean_object* x_878; uint8_t x_879; uint8_t x_880; uint8_t x_881; lean_object* x_882; lean_object* x_883; +x_878 = lean_ctor_get(x_2, 0); +x_879 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_880 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_878); lean_dec(x_2); -x_879 = 0; -x_880 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_880, 0, x_876); -lean_ctor_set_uint8(x_880, sizeof(void*)*1, x_877); -lean_ctor_set_uint8(x_880, sizeof(void*)*1 + 1, x_879); -lean_ctor_set_uint8(x_880, sizeof(void*)*1 + 2, x_878); +x_881 = 0; +x_882 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_882, 0, x_878); +lean_ctor_set_uint8(x_882, sizeof(void*)*1, x_879); +lean_ctor_set_uint8(x_882, sizeof(void*)*1 + 1, x_881); +lean_ctor_set_uint8(x_882, sizeof(void*)*1 + 2, x_880); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_881 = l_Lean_Elab_Term_toParserDescrAux___main(x_829, x_880, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_881) == 0) +x_883 = l_Lean_Elab_Term_toParserDescrAux(x_831, x_882, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_883) == 0) { -lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; -x_882 = lean_ctor_get(x_881, 0); -lean_inc(x_882); -x_883 = lean_ctor_get(x_881, 1); -lean_inc(x_883); -lean_dec(x_881); -x_884 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_883); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_885 = lean_ctor_get(x_884, 0); +lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; +x_884 = lean_ctor_get(x_883, 0); +lean_inc(x_884); +x_885 = lean_ctor_get(x_883, 1); lean_inc(x_885); -x_886 = lean_ctor_get(x_884, 1); -lean_inc(x_886); -lean_dec(x_884); -x_887 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_886); -lean_dec(x_9); -x_888 = lean_ctor_get(x_887, 0); +lean_dec(x_883); +x_886 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_885); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_887 = lean_ctor_get(x_886, 0); +lean_inc(x_887); +x_888 = lean_ctor_get(x_886, 1); lean_inc(x_888); -x_889 = lean_ctor_get(x_887, 1); -lean_inc(x_889); -if (lean_is_exclusive(x_887)) { - lean_ctor_release(x_887, 0); - lean_ctor_release(x_887, 1); - x_890 = x_887; +lean_dec(x_886); +x_889 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_888); +lean_dec(x_9); +x_890 = lean_ctor_get(x_889, 0); +lean_inc(x_890); +x_891 = lean_ctor_get(x_889, 1); +lean_inc(x_891); +if (lean_is_exclusive(x_889)) { + lean_ctor_release(x_889, 0); + lean_ctor_release(x_889, 1); + x_892 = x_889; } else { - lean_dec_ref(x_887); - x_890 = lean_box(0); + lean_dec_ref(x_889); + x_892 = lean_box(0); } -x_891 = l_Lean_Elab_Term_toParserDescrAux___main___closed__91; -x_892 = l_Lean_addMacroScope(x_888, x_891, x_885); -x_893 = l_Lean_SourceInfo_inhabited___closed__1; -x_894 = l_Lean_Elab_Term_toParserDescrAux___main___closed__90; -x_895 = l_Lean_Elab_Term_toParserDescrAux___main___closed__94; -x_896 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_896, 0, x_893); -lean_ctor_set(x_896, 1, x_894); -lean_ctor_set(x_896, 2, x_892); -lean_ctor_set(x_896, 3, x_895); -x_897 = l_Array_empty___closed__1; -x_898 = lean_array_push(x_897, x_896); -x_899 = lean_array_push(x_897, x_882); -x_900 = l_Lean_nullKind___closed__2; -x_901 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_901, 0, x_900); -lean_ctor_set(x_901, 1, x_899); -x_902 = lean_array_push(x_898, x_901); -x_903 = l_Lean_mkAppStx___closed__8; -x_904 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_904, 0, x_903); -lean_ctor_set(x_904, 1, x_902); -if (lean_is_scalar(x_890)) { - x_905 = lean_alloc_ctor(0, 2, 0); +x_893 = l_Lean_Elab_Term_toParserDescrAux___closed__90; +x_894 = l_Lean_addMacroScope(x_890, x_893, x_887); +x_895 = l_Lean_SourceInfo_inhabited___closed__1; +x_896 = l_Lean_Elab_Term_toParserDescrAux___closed__89; +x_897 = l_Lean_Elab_Term_toParserDescrAux___closed__93; +x_898 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_898, 0, x_895); +lean_ctor_set(x_898, 1, x_896); +lean_ctor_set(x_898, 2, x_894); +lean_ctor_set(x_898, 3, x_897); +x_899 = l_Array_empty___closed__1; +x_900 = lean_array_push(x_899, x_898); +x_901 = lean_array_push(x_899, x_884); +x_902 = l_Lean_nullKind___closed__2; +x_903 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_903, 0, x_902); +lean_ctor_set(x_903, 1, x_901); +x_904 = lean_array_push(x_900, x_903); +x_905 = l_Lean_mkAppStx___closed__8; +x_906 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_906, 0, x_905); +lean_ctor_set(x_906, 1, x_904); +if (lean_is_scalar(x_892)) { + x_907 = lean_alloc_ctor(0, 2, 0); } else { - x_905 = x_890; + x_907 = x_892; } -lean_ctor_set(x_905, 0, x_904); -lean_ctor_set(x_905, 1, x_889); -return x_905; +lean_ctor_set(x_907, 0, x_906); +lean_ctor_set(x_907, 1, x_891); +return x_907; } else { -lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; +lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_906 = lean_ctor_get(x_881, 0); -lean_inc(x_906); -x_907 = lean_ctor_get(x_881, 1); -lean_inc(x_907); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - x_908 = x_881; +x_908 = lean_ctor_get(x_883, 0); +lean_inc(x_908); +x_909 = lean_ctor_get(x_883, 1); +lean_inc(x_909); +if (lean_is_exclusive(x_883)) { + lean_ctor_release(x_883, 0); + lean_ctor_release(x_883, 1); + x_910 = x_883; } else { - lean_dec_ref(x_881); - x_908 = lean_box(0); + lean_dec_ref(x_883); + x_910 = lean_box(0); } -if (lean_is_scalar(x_908)) { - x_909 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_910)) { + x_911 = lean_alloc_ctor(1, 2, 0); } else { - x_909 = x_908; + x_911 = x_910; } -lean_ctor_set(x_909, 0, x_906); -lean_ctor_set(x_909, 1, x_907); -return x_909; +lean_ctor_set(x_911, 0, x_908); +lean_ctor_set(x_911, 1, x_909); +return x_911; } } } } else { -lean_object* x_910; lean_object* x_911; uint8_t x_912; +lean_object* x_912; lean_object* x_913; uint8_t x_914; lean_dec(x_11); -x_910 = lean_unsigned_to_nat(1u); -x_911 = l_Lean_Syntax_getArg(x_1, x_910); +x_912 = lean_unsigned_to_nat(1u); +x_913 = l_Lean_Syntax_getArg(x_1, x_912); lean_dec(x_1); -x_912 = !lean_is_exclusive(x_2); -if (x_912 == 0) +x_914 = !lean_is_exclusive(x_2); +if (x_914 == 0) { -uint8_t x_913; lean_object* x_914; -x_913 = 0; -lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_913); +uint8_t x_915; lean_object* x_916; +x_915 = 0; +lean_ctor_set_uint8(x_2, sizeof(void*)*1 + 1, x_915); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_914 = l_Lean_Elab_Term_toParserDescrAux___main(x_911, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_914) == 0) +x_916 = l_Lean_Elab_Term_toParserDescrAux(x_913, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_916) == 0) { -lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; uint8_t x_921; -x_915 = lean_ctor_get(x_914, 0); -lean_inc(x_915); -x_916 = lean_ctor_get(x_914, 1); -lean_inc(x_916); -lean_dec(x_914); -x_917 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_916); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_918 = lean_ctor_get(x_917, 0); +lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; uint8_t x_923; +x_917 = lean_ctor_get(x_916, 0); +lean_inc(x_917); +x_918 = lean_ctor_get(x_916, 1); lean_inc(x_918); -x_919 = lean_ctor_get(x_917, 1); -lean_inc(x_919); -lean_dec(x_917); -x_920 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_919); +lean_dec(x_916); +x_919 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_918); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_920 = lean_ctor_get(x_919, 0); +lean_inc(x_920); +x_921 = lean_ctor_get(x_919, 1); +lean_inc(x_921); +lean_dec(x_919); +x_922 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_921); lean_dec(x_9); -x_921 = !lean_is_exclusive(x_920); -if (x_921 == 0) +x_923 = !lean_is_exclusive(x_922); +if (x_923 == 0) { -lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; -x_922 = lean_ctor_get(x_920, 0); -x_923 = l_Lean_Elab_Term_toParserDescrAux___main___closed__98; -x_924 = l_Lean_addMacroScope(x_922, x_923, x_918); -x_925 = l_Lean_SourceInfo_inhabited___closed__1; -x_926 = l_Lean_Elab_Term_toParserDescrAux___main___closed__97; -x_927 = l_Lean_Elab_Term_toParserDescrAux___main___closed__101; -x_928 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_928, 0, x_925); -lean_ctor_set(x_928, 1, x_926); -lean_ctor_set(x_928, 2, x_924); -lean_ctor_set(x_928, 3, x_927); -x_929 = l_Array_empty___closed__1; -x_930 = lean_array_push(x_929, x_928); -x_931 = lean_array_push(x_929, x_915); -x_932 = l_Lean_nullKind___closed__2; -x_933 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_933, 0, x_932); -lean_ctor_set(x_933, 1, x_931); -x_934 = lean_array_push(x_930, x_933); -x_935 = l_Lean_mkAppStx___closed__8; -x_936 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_936, 0, x_935); -lean_ctor_set(x_936, 1, x_934); -lean_ctor_set(x_920, 0, x_936); -return x_920; +lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; +x_924 = lean_ctor_get(x_922, 0); +x_925 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_926 = l_Lean_addMacroScope(x_924, x_925, x_920); +x_927 = l_Lean_SourceInfo_inhabited___closed__1; +x_928 = l_Lean_Elab_Term_toParserDescrAux___closed__96; +x_929 = l_Lean_Elab_Term_toParserDescrAux___closed__100; +x_930 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_930, 0, x_927); +lean_ctor_set(x_930, 1, x_928); +lean_ctor_set(x_930, 2, x_926); +lean_ctor_set(x_930, 3, x_929); +x_931 = l_Array_empty___closed__1; +x_932 = lean_array_push(x_931, x_930); +x_933 = lean_array_push(x_931, x_917); +x_934 = l_Lean_nullKind___closed__2; +x_935 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_935, 0, x_934); +lean_ctor_set(x_935, 1, x_933); +x_936 = lean_array_push(x_932, x_935); +x_937 = l_Lean_mkAppStx___closed__8; +x_938 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_938, 0, x_937); +lean_ctor_set(x_938, 1, x_936); +lean_ctor_set(x_922, 0, x_938); +return x_922; } else { -lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; -x_937 = lean_ctor_get(x_920, 0); -x_938 = lean_ctor_get(x_920, 1); -lean_inc(x_938); -lean_inc(x_937); -lean_dec(x_920); -x_939 = l_Lean_Elab_Term_toParserDescrAux___main___closed__98; -x_940 = l_Lean_addMacroScope(x_937, x_939, x_918); -x_941 = l_Lean_SourceInfo_inhabited___closed__1; -x_942 = l_Lean_Elab_Term_toParserDescrAux___main___closed__97; -x_943 = l_Lean_Elab_Term_toParserDescrAux___main___closed__101; -x_944 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_944, 0, x_941); -lean_ctor_set(x_944, 1, x_942); -lean_ctor_set(x_944, 2, x_940); -lean_ctor_set(x_944, 3, x_943); -x_945 = l_Array_empty___closed__1; -x_946 = lean_array_push(x_945, x_944); -x_947 = lean_array_push(x_945, x_915); -x_948 = l_Lean_nullKind___closed__2; -x_949 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_949, 0, x_948); -lean_ctor_set(x_949, 1, x_947); -x_950 = lean_array_push(x_946, x_949); -x_951 = l_Lean_mkAppStx___closed__8; -x_952 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_952, 0, x_951); -lean_ctor_set(x_952, 1, x_950); -x_953 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_953, 0, x_952); -lean_ctor_set(x_953, 1, x_938); -return x_953; +lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; +x_939 = lean_ctor_get(x_922, 0); +x_940 = lean_ctor_get(x_922, 1); +lean_inc(x_940); +lean_inc(x_939); +lean_dec(x_922); +x_941 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_942 = l_Lean_addMacroScope(x_939, x_941, x_920); +x_943 = l_Lean_SourceInfo_inhabited___closed__1; +x_944 = l_Lean_Elab_Term_toParserDescrAux___closed__96; +x_945 = l_Lean_Elab_Term_toParserDescrAux___closed__100; +x_946 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_946, 0, x_943); +lean_ctor_set(x_946, 1, x_944); +lean_ctor_set(x_946, 2, x_942); +lean_ctor_set(x_946, 3, x_945); +x_947 = l_Array_empty___closed__1; +x_948 = lean_array_push(x_947, x_946); +x_949 = lean_array_push(x_947, x_917); +x_950 = l_Lean_nullKind___closed__2; +x_951 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_951, 0, x_950); +lean_ctor_set(x_951, 1, x_949); +x_952 = lean_array_push(x_948, x_951); +x_953 = l_Lean_mkAppStx___closed__8; +x_954 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_954, 0, x_953); +lean_ctor_set(x_954, 1, x_952); +x_955 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_955, 0, x_954); +lean_ctor_set(x_955, 1, x_940); +return x_955; } } else { -uint8_t x_954; +uint8_t x_956; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_954 = !lean_is_exclusive(x_914); -if (x_954 == 0) +x_956 = !lean_is_exclusive(x_916); +if (x_956 == 0) { -return x_914; +return x_916; } else { -lean_object* x_955; lean_object* x_956; lean_object* x_957; -x_955 = lean_ctor_get(x_914, 0); -x_956 = lean_ctor_get(x_914, 1); -lean_inc(x_956); -lean_inc(x_955); -lean_dec(x_914); -x_957 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_957, 0, x_955); -lean_ctor_set(x_957, 1, x_956); -return x_957; -} -} -} -else -{ -lean_object* x_958; uint8_t x_959; uint8_t x_960; uint8_t x_961; lean_object* x_962; lean_object* x_963; -x_958 = lean_ctor_get(x_2, 0); -x_959 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -x_960 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_object* x_957; lean_object* x_958; lean_object* x_959; +x_957 = lean_ctor_get(x_916, 0); +x_958 = lean_ctor_get(x_916, 1); lean_inc(x_958); +lean_inc(x_957); +lean_dec(x_916); +x_959 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_959, 0, x_957); +lean_ctor_set(x_959, 1, x_958); +return x_959; +} +} +} +else +{ +lean_object* x_960; uint8_t x_961; uint8_t x_962; uint8_t x_963; lean_object* x_964; lean_object* x_965; +x_960 = lean_ctor_get(x_2, 0); +x_961 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +x_962 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +lean_inc(x_960); lean_dec(x_2); -x_961 = 0; -x_962 = lean_alloc_ctor(0, 1, 3); -lean_ctor_set(x_962, 0, x_958); -lean_ctor_set_uint8(x_962, sizeof(void*)*1, x_959); -lean_ctor_set_uint8(x_962, sizeof(void*)*1 + 1, x_961); -lean_ctor_set_uint8(x_962, sizeof(void*)*1 + 2, x_960); +x_963 = 0; +x_964 = lean_alloc_ctor(0, 1, 3); +lean_ctor_set(x_964, 0, x_960); +lean_ctor_set_uint8(x_964, sizeof(void*)*1, x_961); +lean_ctor_set_uint8(x_964, sizeof(void*)*1 + 1, x_963); +lean_ctor_set_uint8(x_964, sizeof(void*)*1 + 2, x_962); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_963 = l_Lean_Elab_Term_toParserDescrAux___main(x_911, x_962, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_963) == 0) +x_965 = l_Lean_Elab_Term_toParserDescrAux(x_913, x_964, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_965) == 0) { -lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; -x_964 = lean_ctor_get(x_963, 0); -lean_inc(x_964); -x_965 = lean_ctor_get(x_963, 1); -lean_inc(x_965); -lean_dec(x_963); -x_966 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_965); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_967 = lean_ctor_get(x_966, 0); +lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; +x_966 = lean_ctor_get(x_965, 0); +lean_inc(x_966); +x_967 = lean_ctor_get(x_965, 1); lean_inc(x_967); -x_968 = lean_ctor_get(x_966, 1); -lean_inc(x_968); -lean_dec(x_966); -x_969 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_968); -lean_dec(x_9); -x_970 = lean_ctor_get(x_969, 0); +lean_dec(x_965); +x_968 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_967); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_969 = lean_ctor_get(x_968, 0); +lean_inc(x_969); +x_970 = lean_ctor_get(x_968, 1); lean_inc(x_970); -x_971 = lean_ctor_get(x_969, 1); -lean_inc(x_971); -if (lean_is_exclusive(x_969)) { - lean_ctor_release(x_969, 0); - lean_ctor_release(x_969, 1); - x_972 = x_969; +lean_dec(x_968); +x_971 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_970); +lean_dec(x_9); +x_972 = lean_ctor_get(x_971, 0); +lean_inc(x_972); +x_973 = lean_ctor_get(x_971, 1); +lean_inc(x_973); +if (lean_is_exclusive(x_971)) { + lean_ctor_release(x_971, 0); + lean_ctor_release(x_971, 1); + x_974 = x_971; } else { - lean_dec_ref(x_969); - x_972 = lean_box(0); + lean_dec_ref(x_971); + x_974 = lean_box(0); } -x_973 = l_Lean_Elab_Term_toParserDescrAux___main___closed__98; -x_974 = l_Lean_addMacroScope(x_970, x_973, x_967); -x_975 = l_Lean_SourceInfo_inhabited___closed__1; -x_976 = l_Lean_Elab_Term_toParserDescrAux___main___closed__97; -x_977 = l_Lean_Elab_Term_toParserDescrAux___main___closed__101; -x_978 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_978, 0, x_975); -lean_ctor_set(x_978, 1, x_976); -lean_ctor_set(x_978, 2, x_974); -lean_ctor_set(x_978, 3, x_977); -x_979 = l_Array_empty___closed__1; -x_980 = lean_array_push(x_979, x_978); -x_981 = lean_array_push(x_979, x_964); -x_982 = l_Lean_nullKind___closed__2; -x_983 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_983, 0, x_982); -lean_ctor_set(x_983, 1, x_981); -x_984 = lean_array_push(x_980, x_983); -x_985 = l_Lean_mkAppStx___closed__8; -x_986 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_986, 0, x_985); -lean_ctor_set(x_986, 1, x_984); -if (lean_is_scalar(x_972)) { - x_987 = lean_alloc_ctor(0, 2, 0); +x_975 = l_Lean_Elab_Term_toParserDescrAux___closed__97; +x_976 = l_Lean_addMacroScope(x_972, x_975, x_969); +x_977 = l_Lean_SourceInfo_inhabited___closed__1; +x_978 = l_Lean_Elab_Term_toParserDescrAux___closed__96; +x_979 = l_Lean_Elab_Term_toParserDescrAux___closed__100; +x_980 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_980, 0, x_977); +lean_ctor_set(x_980, 1, x_978); +lean_ctor_set(x_980, 2, x_976); +lean_ctor_set(x_980, 3, x_979); +x_981 = l_Array_empty___closed__1; +x_982 = lean_array_push(x_981, x_980); +x_983 = lean_array_push(x_981, x_966); +x_984 = l_Lean_nullKind___closed__2; +x_985 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_985, 0, x_984); +lean_ctor_set(x_985, 1, x_983); +x_986 = lean_array_push(x_982, x_985); +x_987 = l_Lean_mkAppStx___closed__8; +x_988 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_988, 0, x_987); +lean_ctor_set(x_988, 1, x_986); +if (lean_is_scalar(x_974)) { + x_989 = lean_alloc_ctor(0, 2, 0); } else { - x_987 = x_972; + x_989 = x_974; } -lean_ctor_set(x_987, 0, x_986); -lean_ctor_set(x_987, 1, x_971); -return x_987; +lean_ctor_set(x_989, 0, x_988); +lean_ctor_set(x_989, 1, x_973); +return x_989; } else { -lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; +lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_988 = lean_ctor_get(x_963, 0); -lean_inc(x_988); -x_989 = lean_ctor_get(x_963, 1); -lean_inc(x_989); -if (lean_is_exclusive(x_963)) { - lean_ctor_release(x_963, 0); - lean_ctor_release(x_963, 1); - x_990 = x_963; +x_990 = lean_ctor_get(x_965, 0); +lean_inc(x_990); +x_991 = lean_ctor_get(x_965, 1); +lean_inc(x_991); +if (lean_is_exclusive(x_965)) { + lean_ctor_release(x_965, 0); + lean_ctor_release(x_965, 1); + x_992 = x_965; } else { - lean_dec_ref(x_963); - x_990 = lean_box(0); + lean_dec_ref(x_965); + x_992 = lean_box(0); } -if (lean_is_scalar(x_990)) { - x_991 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_992)) { + x_993 = lean_alloc_ctor(1, 2, 0); } else { - x_991 = x_990; + x_993 = x_992; } -lean_ctor_set(x_991, 0, x_988); -lean_ctor_set(x_991, 1, x_989); -return x_991; +lean_ctor_set(x_993, 0, x_990); +lean_ctor_set(x_993, 1, x_991); +return x_993; } } } } else { -lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; uint8_t x_996; +lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; uint8_t x_998; lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_992 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_994 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_993 = lean_ctor_get(x_992, 0); -lean_inc(x_993); -x_994 = lean_ctor_get(x_992, 1); -lean_inc(x_994); -lean_dec(x_992); -x_995 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_994); +x_995 = lean_ctor_get(x_994, 0); +lean_inc(x_995); +x_996 = lean_ctor_get(x_994, 1); +lean_inc(x_996); +lean_dec(x_994); +x_997 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_996); lean_dec(x_9); -x_996 = !lean_is_exclusive(x_995); -if (x_996 == 0) +x_998 = !lean_is_exclusive(x_997); +if (x_998 == 0) { -lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; -x_997 = lean_ctor_get(x_995, 0); -x_998 = l_Lean_Elab_Term_toParserDescrAux___main___closed__105; -x_999 = l_Lean_addMacroScope(x_997, x_998, x_993); -x_1000 = l_Lean_SourceInfo_inhabited___closed__1; -x_1001 = l_Lean_Elab_Term_toParserDescrAux___main___closed__104; -x_1002 = l_Lean_Elab_Term_toParserDescrAux___main___closed__108; -x_1003 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1003, 0, x_1000); -lean_ctor_set(x_1003, 1, x_1001); -lean_ctor_set(x_1003, 2, x_999); -lean_ctor_set(x_1003, 3, x_1002); -lean_ctor_set(x_995, 0, x_1003); -return x_995; +lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; +x_999 = lean_ctor_get(x_997, 0); +x_1000 = l_Lean_Elab_Term_toParserDescrAux___closed__104; +x_1001 = l_Lean_addMacroScope(x_999, x_1000, x_995); +x_1002 = l_Lean_SourceInfo_inhabited___closed__1; +x_1003 = l_Lean_Elab_Term_toParserDescrAux___closed__103; +x_1004 = l_Lean_Elab_Term_toParserDescrAux___closed__107; +x_1005 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1005, 0, x_1002); +lean_ctor_set(x_1005, 1, x_1003); +lean_ctor_set(x_1005, 2, x_1001); +lean_ctor_set(x_1005, 3, x_1004); +lean_ctor_set(x_997, 0, x_1005); +return x_997; } else { -lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; -x_1004 = lean_ctor_get(x_995, 0); -x_1005 = lean_ctor_get(x_995, 1); -lean_inc(x_1005); -lean_inc(x_1004); -lean_dec(x_995); -x_1006 = l_Lean_Elab_Term_toParserDescrAux___main___closed__105; -x_1007 = l_Lean_addMacroScope(x_1004, x_1006, x_993); -x_1008 = l_Lean_SourceInfo_inhabited___closed__1; -x_1009 = l_Lean_Elab_Term_toParserDescrAux___main___closed__104; -x_1010 = l_Lean_Elab_Term_toParserDescrAux___main___closed__108; -x_1011 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1011, 0, x_1008); -lean_ctor_set(x_1011, 1, x_1009); -lean_ctor_set(x_1011, 2, x_1007); -lean_ctor_set(x_1011, 3, x_1010); -x_1012 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1012, 0, x_1011); -lean_ctor_set(x_1012, 1, x_1005); -return x_1012; +lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; +x_1006 = lean_ctor_get(x_997, 0); +x_1007 = lean_ctor_get(x_997, 1); +lean_inc(x_1007); +lean_inc(x_1006); +lean_dec(x_997); +x_1008 = l_Lean_Elab_Term_toParserDescrAux___closed__104; +x_1009 = l_Lean_addMacroScope(x_1006, x_1008, x_995); +x_1010 = l_Lean_SourceInfo_inhabited___closed__1; +x_1011 = l_Lean_Elab_Term_toParserDescrAux___closed__103; +x_1012 = l_Lean_Elab_Term_toParserDescrAux___closed__107; +x_1013 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1013, 0, x_1010); +lean_ctor_set(x_1013, 1, x_1011); +lean_ctor_set(x_1013, 2, x_1009); +lean_ctor_set(x_1013, 3, x_1012); +x_1014 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1014, 0, x_1013); +lean_ctor_set(x_1014, 1, x_1007); +return x_1014; } } } else { -lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; uint8_t x_1017; +lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; uint8_t x_1019; lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_1013 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_1015 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_1014 = lean_ctor_get(x_1013, 0); -lean_inc(x_1014); -x_1015 = lean_ctor_get(x_1013, 1); -lean_inc(x_1015); -lean_dec(x_1013); -x_1016 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1015); +x_1016 = lean_ctor_get(x_1015, 0); +lean_inc(x_1016); +x_1017 = lean_ctor_get(x_1015, 1); +lean_inc(x_1017); +lean_dec(x_1015); +x_1018 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1017); lean_dec(x_9); -x_1017 = !lean_is_exclusive(x_1016); -if (x_1017 == 0) +x_1019 = !lean_is_exclusive(x_1018); +if (x_1019 == 0) { -lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; -x_1018 = lean_ctor_get(x_1016, 0); -x_1019 = l_Lean_Elab_Term_toParserDescrAux___main___closed__112; -x_1020 = l_Lean_addMacroScope(x_1018, x_1019, x_1014); -x_1021 = l_Lean_SourceInfo_inhabited___closed__1; -x_1022 = l_Lean_Elab_Term_toParserDescrAux___main___closed__111; -x_1023 = l_Lean_Elab_Term_toParserDescrAux___main___closed__115; -x_1024 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1024, 0, x_1021); -lean_ctor_set(x_1024, 1, x_1022); -lean_ctor_set(x_1024, 2, x_1020); -lean_ctor_set(x_1024, 3, x_1023); -lean_ctor_set(x_1016, 0, x_1024); -return x_1016; +lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; +x_1020 = lean_ctor_get(x_1018, 0); +x_1021 = l_Lean_Elab_Term_toParserDescrAux___closed__111; +x_1022 = l_Lean_addMacroScope(x_1020, x_1021, x_1016); +x_1023 = l_Lean_SourceInfo_inhabited___closed__1; +x_1024 = l_Lean_Elab_Term_toParserDescrAux___closed__110; +x_1025 = l_Lean_Elab_Term_toParserDescrAux___closed__114; +x_1026 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1026, 0, x_1023); +lean_ctor_set(x_1026, 1, x_1024); +lean_ctor_set(x_1026, 2, x_1022); +lean_ctor_set(x_1026, 3, x_1025); +lean_ctor_set(x_1018, 0, x_1026); +return x_1018; } else { -lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; -x_1025 = lean_ctor_get(x_1016, 0); -x_1026 = lean_ctor_get(x_1016, 1); -lean_inc(x_1026); -lean_inc(x_1025); -lean_dec(x_1016); -x_1027 = l_Lean_Elab_Term_toParserDescrAux___main___closed__112; -x_1028 = l_Lean_addMacroScope(x_1025, x_1027, x_1014); -x_1029 = l_Lean_SourceInfo_inhabited___closed__1; -x_1030 = l_Lean_Elab_Term_toParserDescrAux___main___closed__111; -x_1031 = l_Lean_Elab_Term_toParserDescrAux___main___closed__115; -x_1032 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1032, 0, x_1029); -lean_ctor_set(x_1032, 1, x_1030); -lean_ctor_set(x_1032, 2, x_1028); -lean_ctor_set(x_1032, 3, x_1031); -x_1033 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1033, 0, x_1032); -lean_ctor_set(x_1033, 1, x_1026); -return x_1033; +lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; +x_1027 = lean_ctor_get(x_1018, 0); +x_1028 = lean_ctor_get(x_1018, 1); +lean_inc(x_1028); +lean_inc(x_1027); +lean_dec(x_1018); +x_1029 = l_Lean_Elab_Term_toParserDescrAux___closed__111; +x_1030 = l_Lean_addMacroScope(x_1027, x_1029, x_1016); +x_1031 = l_Lean_SourceInfo_inhabited___closed__1; +x_1032 = l_Lean_Elab_Term_toParserDescrAux___closed__110; +x_1033 = l_Lean_Elab_Term_toParserDescrAux___closed__114; +x_1034 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1034, 0, x_1031); +lean_ctor_set(x_1034, 1, x_1032); +lean_ctor_set(x_1034, 2, x_1030); +lean_ctor_set(x_1034, 3, x_1033); +x_1035 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1035, 0, x_1034); +lean_ctor_set(x_1035, 1, x_1028); +return x_1035; } } } else { -lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; uint8_t x_1038; +lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; uint8_t x_1040; lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_1034 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_1036 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_1035 = lean_ctor_get(x_1034, 0); -lean_inc(x_1035); -x_1036 = lean_ctor_get(x_1034, 1); -lean_inc(x_1036); -lean_dec(x_1034); -x_1037 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1036); +x_1037 = lean_ctor_get(x_1036, 0); +lean_inc(x_1037); +x_1038 = lean_ctor_get(x_1036, 1); +lean_inc(x_1038); +lean_dec(x_1036); +x_1039 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1038); lean_dec(x_9); -x_1038 = !lean_is_exclusive(x_1037); -if (x_1038 == 0) +x_1040 = !lean_is_exclusive(x_1039); +if (x_1040 == 0) { -lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; -x_1039 = lean_ctor_get(x_1037, 0); -x_1040 = l_Lean_Elab_Term_toParserDescrAux___main___closed__119; -x_1041 = l_Lean_addMacroScope(x_1039, x_1040, x_1035); -x_1042 = l_Lean_SourceInfo_inhabited___closed__1; -x_1043 = l_Lean_Elab_Term_toParserDescrAux___main___closed__118; -x_1044 = l_Lean_Elab_Term_toParserDescrAux___main___closed__122; -x_1045 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1045, 0, x_1042); -lean_ctor_set(x_1045, 1, x_1043); -lean_ctor_set(x_1045, 2, x_1041); -lean_ctor_set(x_1045, 3, x_1044); -lean_ctor_set(x_1037, 0, x_1045); -return x_1037; +lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; +x_1041 = lean_ctor_get(x_1039, 0); +x_1042 = l_Lean_Elab_Term_toParserDescrAux___closed__118; +x_1043 = l_Lean_addMacroScope(x_1041, x_1042, x_1037); +x_1044 = l_Lean_SourceInfo_inhabited___closed__1; +x_1045 = l_Lean_Elab_Term_toParserDescrAux___closed__117; +x_1046 = l_Lean_Elab_Term_toParserDescrAux___closed__121; +x_1047 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1047, 0, x_1044); +lean_ctor_set(x_1047, 1, x_1045); +lean_ctor_set(x_1047, 2, x_1043); +lean_ctor_set(x_1047, 3, x_1046); +lean_ctor_set(x_1039, 0, x_1047); +return x_1039; } else { -lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; -x_1046 = lean_ctor_get(x_1037, 0); -x_1047 = lean_ctor_get(x_1037, 1); -lean_inc(x_1047); -lean_inc(x_1046); -lean_dec(x_1037); -x_1048 = l_Lean_Elab_Term_toParserDescrAux___main___closed__119; -x_1049 = l_Lean_addMacroScope(x_1046, x_1048, x_1035); -x_1050 = l_Lean_SourceInfo_inhabited___closed__1; -x_1051 = l_Lean_Elab_Term_toParserDescrAux___main___closed__118; -x_1052 = l_Lean_Elab_Term_toParserDescrAux___main___closed__122; -x_1053 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1053, 0, x_1050); -lean_ctor_set(x_1053, 1, x_1051); -lean_ctor_set(x_1053, 2, x_1049); -lean_ctor_set(x_1053, 3, x_1052); -x_1054 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1054, 0, x_1053); -lean_ctor_set(x_1054, 1, x_1047); -return x_1054; +lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; +x_1048 = lean_ctor_get(x_1039, 0); +x_1049 = lean_ctor_get(x_1039, 1); +lean_inc(x_1049); +lean_inc(x_1048); +lean_dec(x_1039); +x_1050 = l_Lean_Elab_Term_toParserDescrAux___closed__118; +x_1051 = l_Lean_addMacroScope(x_1048, x_1050, x_1037); +x_1052 = l_Lean_SourceInfo_inhabited___closed__1; +x_1053 = l_Lean_Elab_Term_toParserDescrAux___closed__117; +x_1054 = l_Lean_Elab_Term_toParserDescrAux___closed__121; +x_1055 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1055, 0, x_1052); +lean_ctor_set(x_1055, 1, x_1053); +lean_ctor_set(x_1055, 2, x_1051); +lean_ctor_set(x_1055, 3, x_1054); +x_1056 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1056, 0, x_1055); +lean_ctor_set(x_1056, 1, x_1049); +return x_1056; } } } else { -lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; uint8_t x_1059; +lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; uint8_t x_1061; lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_1055 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_1057 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_1056 = lean_ctor_get(x_1055, 0); -lean_inc(x_1056); -x_1057 = lean_ctor_get(x_1055, 1); -lean_inc(x_1057); -lean_dec(x_1055); -x_1058 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1057); +x_1058 = lean_ctor_get(x_1057, 0); +lean_inc(x_1058); +x_1059 = lean_ctor_get(x_1057, 1); +lean_inc(x_1059); +lean_dec(x_1057); +x_1060 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1059); lean_dec(x_9); -x_1059 = !lean_is_exclusive(x_1058); -if (x_1059 == 0) +x_1061 = !lean_is_exclusive(x_1060); +if (x_1061 == 0) { -lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; -x_1060 = lean_ctor_get(x_1058, 0); -x_1061 = l_Lean_Elab_Term_toParserDescrAux___main___closed__126; -x_1062 = l_Lean_addMacroScope(x_1060, x_1061, x_1056); -x_1063 = l_Lean_SourceInfo_inhabited___closed__1; -x_1064 = l_Lean_Elab_Term_toParserDescrAux___main___closed__125; -x_1065 = l_Lean_Elab_Term_toParserDescrAux___main___closed__129; -x_1066 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1066, 0, x_1063); -lean_ctor_set(x_1066, 1, x_1064); -lean_ctor_set(x_1066, 2, x_1062); -lean_ctor_set(x_1066, 3, x_1065); -lean_ctor_set(x_1058, 0, x_1066); -return x_1058; +lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; +x_1062 = lean_ctor_get(x_1060, 0); +x_1063 = l_Lean_Elab_Term_toParserDescrAux___closed__125; +x_1064 = l_Lean_addMacroScope(x_1062, x_1063, x_1058); +x_1065 = l_Lean_SourceInfo_inhabited___closed__1; +x_1066 = l_Lean_Elab_Term_toParserDescrAux___closed__124; +x_1067 = l_Lean_Elab_Term_toParserDescrAux___closed__128; +x_1068 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1068, 0, x_1065); +lean_ctor_set(x_1068, 1, x_1066); +lean_ctor_set(x_1068, 2, x_1064); +lean_ctor_set(x_1068, 3, x_1067); +lean_ctor_set(x_1060, 0, x_1068); +return x_1060; } else { -lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; -x_1067 = lean_ctor_get(x_1058, 0); -x_1068 = lean_ctor_get(x_1058, 1); -lean_inc(x_1068); -lean_inc(x_1067); -lean_dec(x_1058); -x_1069 = l_Lean_Elab_Term_toParserDescrAux___main___closed__126; -x_1070 = l_Lean_addMacroScope(x_1067, x_1069, x_1056); -x_1071 = l_Lean_SourceInfo_inhabited___closed__1; -x_1072 = l_Lean_Elab_Term_toParserDescrAux___main___closed__125; -x_1073 = l_Lean_Elab_Term_toParserDescrAux___main___closed__129; -x_1074 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1074, 0, x_1071); -lean_ctor_set(x_1074, 1, x_1072); -lean_ctor_set(x_1074, 2, x_1070); -lean_ctor_set(x_1074, 3, x_1073); -x_1075 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1075, 0, x_1074); -lean_ctor_set(x_1075, 1, x_1068); -return x_1075; +lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; +x_1069 = lean_ctor_get(x_1060, 0); +x_1070 = lean_ctor_get(x_1060, 1); +lean_inc(x_1070); +lean_inc(x_1069); +lean_dec(x_1060); +x_1071 = l_Lean_Elab_Term_toParserDescrAux___closed__125; +x_1072 = l_Lean_addMacroScope(x_1069, x_1071, x_1058); +x_1073 = l_Lean_SourceInfo_inhabited___closed__1; +x_1074 = l_Lean_Elab_Term_toParserDescrAux___closed__124; +x_1075 = l_Lean_Elab_Term_toParserDescrAux___closed__128; +x_1076 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1076, 0, x_1073); +lean_ctor_set(x_1076, 1, x_1074); +lean_ctor_set(x_1076, 2, x_1072); +lean_ctor_set(x_1076, 3, x_1075); +x_1077 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1077, 0, x_1076); +lean_ctor_set(x_1077, 1, x_1070); +return x_1077; } } } else { -lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; uint8_t x_1080; +lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; uint8_t x_1082; lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_1076 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_1078 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_1077 = lean_ctor_get(x_1076, 0); -lean_inc(x_1077); -x_1078 = lean_ctor_get(x_1076, 1); -lean_inc(x_1078); -lean_dec(x_1076); -x_1079 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1078); +x_1079 = lean_ctor_get(x_1078, 0); +lean_inc(x_1079); +x_1080 = lean_ctor_get(x_1078, 1); +lean_inc(x_1080); +lean_dec(x_1078); +x_1081 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1080); lean_dec(x_9); -x_1080 = !lean_is_exclusive(x_1079); -if (x_1080 == 0) +x_1082 = !lean_is_exclusive(x_1081); +if (x_1082 == 0) { -lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; -x_1081 = lean_ctor_get(x_1079, 0); -x_1082 = l_Lean_Elab_Term_toParserDescrAux___main___closed__133; -x_1083 = l_Lean_addMacroScope(x_1081, x_1082, x_1077); -x_1084 = l_Lean_SourceInfo_inhabited___closed__1; -x_1085 = l_Lean_Elab_Term_toParserDescrAux___main___closed__132; -x_1086 = l_Lean_Elab_Term_toParserDescrAux___main___closed__136; -x_1087 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1087, 0, x_1084); -lean_ctor_set(x_1087, 1, x_1085); -lean_ctor_set(x_1087, 2, x_1083); -lean_ctor_set(x_1087, 3, x_1086); -lean_ctor_set(x_1079, 0, x_1087); -return x_1079; +lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; +x_1083 = lean_ctor_get(x_1081, 0); +x_1084 = l_Lean_Elab_Term_toParserDescrAux___closed__132; +x_1085 = l_Lean_addMacroScope(x_1083, x_1084, x_1079); +x_1086 = l_Lean_SourceInfo_inhabited___closed__1; +x_1087 = l_Lean_Elab_Term_toParserDescrAux___closed__131; +x_1088 = l_Lean_Elab_Term_toParserDescrAux___closed__135; +x_1089 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1089, 0, x_1086); +lean_ctor_set(x_1089, 1, x_1087); +lean_ctor_set(x_1089, 2, x_1085); +lean_ctor_set(x_1089, 3, x_1088); +lean_ctor_set(x_1081, 0, x_1089); +return x_1081; } else { -lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; -x_1088 = lean_ctor_get(x_1079, 0); -x_1089 = lean_ctor_get(x_1079, 1); -lean_inc(x_1089); -lean_inc(x_1088); -lean_dec(x_1079); -x_1090 = l_Lean_Elab_Term_toParserDescrAux___main___closed__133; -x_1091 = l_Lean_addMacroScope(x_1088, x_1090, x_1077); -x_1092 = l_Lean_SourceInfo_inhabited___closed__1; -x_1093 = l_Lean_Elab_Term_toParserDescrAux___main___closed__132; -x_1094 = l_Lean_Elab_Term_toParserDescrAux___main___closed__136; -x_1095 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1095, 0, x_1092); -lean_ctor_set(x_1095, 1, x_1093); -lean_ctor_set(x_1095, 2, x_1091); -lean_ctor_set(x_1095, 3, x_1094); -x_1096 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1096, 0, x_1095); -lean_ctor_set(x_1096, 1, x_1089); -return x_1096; +lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; +x_1090 = lean_ctor_get(x_1081, 0); +x_1091 = lean_ctor_get(x_1081, 1); +lean_inc(x_1091); +lean_inc(x_1090); +lean_dec(x_1081); +x_1092 = l_Lean_Elab_Term_toParserDescrAux___closed__132; +x_1093 = l_Lean_addMacroScope(x_1090, x_1092, x_1079); +x_1094 = l_Lean_SourceInfo_inhabited___closed__1; +x_1095 = l_Lean_Elab_Term_toParserDescrAux___closed__131; +x_1096 = l_Lean_Elab_Term_toParserDescrAux___closed__135; +x_1097 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1097, 0, x_1094); +lean_ctor_set(x_1097, 1, x_1095); +lean_ctor_set(x_1097, 2, x_1093); +lean_ctor_set(x_1097, 3, x_1096); +x_1098 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1098, 0, x_1097); +lean_ctor_set(x_1098, 1, x_1091); +return x_1098; } } } else { -lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; +lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_dec(x_11); lean_dec(x_3); -x_1097 = lean_unsigned_to_nat(0u); -x_1098 = l_Lean_Syntax_getArg(x_1, x_1097); +x_1099 = lean_unsigned_to_nat(0u); +x_1100 = l_Lean_Syntax_getArg(x_1, x_1099); lean_dec(x_1); -x_1099 = l_Lean_Syntax_isStrLit_x3f(x_1098); -lean_dec(x_1098); -if (lean_obj_tag(x_1099) == 0) +x_1101 = l_Lean_Syntax_isStrLit_x3f(x_1100); +lean_dec(x_1100); +if (lean_obj_tag(x_1101) == 0) { -lean_object* x_1100; +lean_object* x_1102; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7941,210 +9376,210 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_1100 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1___rarg(x_10); -return x_1100; +x_1102 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1___rarg(x_10); +return x_1102; } else { -uint8_t x_1101; -x_1101 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); +uint8_t x_1103; +x_1103 = lean_ctor_get_uint8(x_2, sizeof(void*)*1 + 2); lean_dec(x_2); -if (x_1101 == 0) +if (x_1103 == 0) { -lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; uint8_t x_1107; -x_1102 = lean_ctor_get(x_1099, 0); -lean_inc(x_1102); -lean_dec(x_1099); -x_1103 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_1104 = lean_ctor_get(x_1103, 0); +lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; uint8_t x_1109; +x_1104 = lean_ctor_get(x_1101, 0); lean_inc(x_1104); -x_1105 = lean_ctor_get(x_1103, 1); -lean_inc(x_1105); -lean_dec(x_1103); -x_1106 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1105); -lean_dec(x_9); -x_1107 = !lean_is_exclusive(x_1106); -if (x_1107 == 0) -{ -lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; -x_1108 = lean_ctor_get(x_1106, 0); -x_1109 = l_Lean_Elab_Term_toParserDescrAux___main___closed__140; -x_1110 = l_Lean_addMacroScope(x_1108, x_1109, x_1104); -x_1111 = l_Lean_SourceInfo_inhabited___closed__1; -x_1112 = l_Lean_Elab_Term_toParserDescrAux___main___closed__139; -x_1113 = l_Lean_Elab_Term_toParserDescrAux___main___closed__143; -x_1114 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1114, 0, x_1111); -lean_ctor_set(x_1114, 1, x_1112); -lean_ctor_set(x_1114, 2, x_1110); -lean_ctor_set(x_1114, 3, x_1113); -x_1115 = l_Array_empty___closed__1; -x_1116 = lean_array_push(x_1115, x_1114); -x_1117 = l_Lean_mkStxStrLit(x_1102, x_1111); -x_1118 = lean_array_push(x_1115, x_1117); -x_1119 = l_Lean_nullKind___closed__2; -x_1120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1120, 0, x_1119); -lean_ctor_set(x_1120, 1, x_1118); -x_1121 = lean_array_push(x_1116, x_1120); -x_1122 = l_Lean_mkAppStx___closed__8; -x_1123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1123, 0, x_1122); -lean_ctor_set(x_1123, 1, x_1121); -lean_ctor_set(x_1106, 0, x_1123); -return x_1106; -} -else -{ -lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; -x_1124 = lean_ctor_get(x_1106, 0); -x_1125 = lean_ctor_get(x_1106, 1); -lean_inc(x_1125); -lean_inc(x_1124); -lean_dec(x_1106); -x_1126 = l_Lean_Elab_Term_toParserDescrAux___main___closed__140; -x_1127 = l_Lean_addMacroScope(x_1124, x_1126, x_1104); -x_1128 = l_Lean_SourceInfo_inhabited___closed__1; -x_1129 = l_Lean_Elab_Term_toParserDescrAux___main___closed__139; -x_1130 = l_Lean_Elab_Term_toParserDescrAux___main___closed__143; -x_1131 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1131, 0, x_1128); -lean_ctor_set(x_1131, 1, x_1129); -lean_ctor_set(x_1131, 2, x_1127); -lean_ctor_set(x_1131, 3, x_1130); -x_1132 = l_Array_empty___closed__1; -x_1133 = lean_array_push(x_1132, x_1131); -x_1134 = l_Lean_mkStxStrLit(x_1102, x_1128); -x_1135 = lean_array_push(x_1132, x_1134); -x_1136 = l_Lean_nullKind___closed__2; -x_1137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1137, 0, x_1136); -lean_ctor_set(x_1137, 1, x_1135); -x_1138 = lean_array_push(x_1133, x_1137); -x_1139 = l_Lean_mkAppStx___closed__8; -x_1140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1140, 0, x_1139); -lean_ctor_set(x_1140, 1, x_1138); -x_1141 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1141, 0, x_1140); -lean_ctor_set(x_1141, 1, x_1125); -return x_1141; -} -} -else -{ -lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; uint8_t x_1147; -x_1142 = lean_ctor_get(x_1099, 0); -lean_inc(x_1142); -lean_dec(x_1099); -x_1143 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1101); +x_1105 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_1144 = lean_ctor_get(x_1143, 0); -lean_inc(x_1144); -x_1145 = lean_ctor_get(x_1143, 1); -lean_inc(x_1145); -lean_dec(x_1143); -x_1146 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1145); +x_1106 = lean_ctor_get(x_1105, 0); +lean_inc(x_1106); +x_1107 = lean_ctor_get(x_1105, 1); +lean_inc(x_1107); +lean_dec(x_1105); +x_1108 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1107); lean_dec(x_9); -x_1147 = !lean_is_exclusive(x_1146); -if (x_1147 == 0) +x_1109 = !lean_is_exclusive(x_1108); +if (x_1109 == 0) { -lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; -x_1148 = lean_ctor_get(x_1146, 0); -x_1149 = l_Lean_Elab_Term_toParserDescrAux___main___closed__148; -lean_inc(x_1144); -lean_inc(x_1148); -x_1150 = l_Lean_addMacroScope(x_1148, x_1149, x_1144); -x_1151 = l_Lean_SourceInfo_inhabited___closed__1; -x_1152 = l_Lean_Elab_Term_toParserDescrAux___main___closed__146; -x_1153 = l_Lean_Elab_Term_toParserDescrAux___main___closed__151; -x_1154 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1154, 0, x_1151); -lean_ctor_set(x_1154, 1, x_1152); -lean_ctor_set(x_1154, 2, x_1150); -lean_ctor_set(x_1154, 3, x_1153); -x_1155 = l_Array_empty___closed__1; -x_1156 = lean_array_push(x_1155, x_1154); -x_1157 = l_Lean_mkStxStrLit(x_1142, x_1151); -x_1158 = lean_array_push(x_1155, x_1157); -x_1159 = l_Lean_Elab_Term_toParserDescrAux___main___closed__154; -x_1160 = l_Lean_addMacroScope(x_1148, x_1159, x_1144); -x_1161 = l_Lean_Elab_Term_toParserDescrAux___main___closed__153; -x_1162 = l_Lean_Elab_Term_toParserDescrAux___main___closed__158; -x_1163 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1163, 0, x_1151); -lean_ctor_set(x_1163, 1, x_1161); -lean_ctor_set(x_1163, 2, x_1160); -lean_ctor_set(x_1163, 3, x_1162); -x_1164 = lean_array_push(x_1158, x_1163); -x_1165 = l_Lean_nullKind___closed__2; -x_1166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1166, 0, x_1165); -lean_ctor_set(x_1166, 1, x_1164); -x_1167 = lean_array_push(x_1156, x_1166); -x_1168 = l_Lean_mkAppStx___closed__8; -x_1169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1169, 0, x_1168); -lean_ctor_set(x_1169, 1, x_1167); -lean_ctor_set(x_1146, 0, x_1169); -return x_1146; +lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; +x_1110 = lean_ctor_get(x_1108, 0); +x_1111 = l_Lean_Elab_Term_toParserDescrAux___closed__139; +x_1112 = l_Lean_addMacroScope(x_1110, x_1111, x_1106); +x_1113 = l_Lean_SourceInfo_inhabited___closed__1; +x_1114 = l_Lean_Elab_Term_toParserDescrAux___closed__138; +x_1115 = l_Lean_Elab_Term_toParserDescrAux___closed__142; +x_1116 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1116, 0, x_1113); +lean_ctor_set(x_1116, 1, x_1114); +lean_ctor_set(x_1116, 2, x_1112); +lean_ctor_set(x_1116, 3, x_1115); +x_1117 = l_Array_empty___closed__1; +x_1118 = lean_array_push(x_1117, x_1116); +x_1119 = l_Lean_mkStxStrLit(x_1104, x_1113); +x_1120 = lean_array_push(x_1117, x_1119); +x_1121 = l_Lean_nullKind___closed__2; +x_1122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1122, 0, x_1121); +lean_ctor_set(x_1122, 1, x_1120); +x_1123 = lean_array_push(x_1118, x_1122); +x_1124 = l_Lean_mkAppStx___closed__8; +x_1125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1125, 0, x_1124); +lean_ctor_set(x_1125, 1, x_1123); +lean_ctor_set(x_1108, 0, x_1125); +return x_1108; } else { -lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; -x_1170 = lean_ctor_get(x_1146, 0); -x_1171 = lean_ctor_get(x_1146, 1); -lean_inc(x_1171); -lean_inc(x_1170); -lean_dec(x_1146); -x_1172 = l_Lean_Elab_Term_toParserDescrAux___main___closed__148; +lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; +x_1126 = lean_ctor_get(x_1108, 0); +x_1127 = lean_ctor_get(x_1108, 1); +lean_inc(x_1127); +lean_inc(x_1126); +lean_dec(x_1108); +x_1128 = l_Lean_Elab_Term_toParserDescrAux___closed__139; +x_1129 = l_Lean_addMacroScope(x_1126, x_1128, x_1106); +x_1130 = l_Lean_SourceInfo_inhabited___closed__1; +x_1131 = l_Lean_Elab_Term_toParserDescrAux___closed__138; +x_1132 = l_Lean_Elab_Term_toParserDescrAux___closed__142; +x_1133 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1133, 0, x_1130); +lean_ctor_set(x_1133, 1, x_1131); +lean_ctor_set(x_1133, 2, x_1129); +lean_ctor_set(x_1133, 3, x_1132); +x_1134 = l_Array_empty___closed__1; +x_1135 = lean_array_push(x_1134, x_1133); +x_1136 = l_Lean_mkStxStrLit(x_1104, x_1130); +x_1137 = lean_array_push(x_1134, x_1136); +x_1138 = l_Lean_nullKind___closed__2; +x_1139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1139, 0, x_1138); +lean_ctor_set(x_1139, 1, x_1137); +x_1140 = lean_array_push(x_1135, x_1139); +x_1141 = l_Lean_mkAppStx___closed__8; +x_1142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1142, 0, x_1141); +lean_ctor_set(x_1142, 1, x_1140); +x_1143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1143, 0, x_1142); +lean_ctor_set(x_1143, 1, x_1127); +return x_1143; +} +} +else +{ +lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; uint8_t x_1149; +x_1144 = lean_ctor_get(x_1101, 0); lean_inc(x_1144); -lean_inc(x_1170); -x_1173 = l_Lean_addMacroScope(x_1170, x_1172, x_1144); -x_1174 = l_Lean_SourceInfo_inhabited___closed__1; -x_1175 = l_Lean_Elab_Term_toParserDescrAux___main___closed__146; -x_1176 = l_Lean_Elab_Term_toParserDescrAux___main___closed__151; -x_1177 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1177, 0, x_1174); -lean_ctor_set(x_1177, 1, x_1175); -lean_ctor_set(x_1177, 2, x_1173); -lean_ctor_set(x_1177, 3, x_1176); -x_1178 = l_Array_empty___closed__1; -x_1179 = lean_array_push(x_1178, x_1177); -x_1180 = l_Lean_mkStxStrLit(x_1142, x_1174); -x_1181 = lean_array_push(x_1178, x_1180); -x_1182 = l_Lean_Elab_Term_toParserDescrAux___main___closed__154; -x_1183 = l_Lean_addMacroScope(x_1170, x_1182, x_1144); -x_1184 = l_Lean_Elab_Term_toParserDescrAux___main___closed__153; -x_1185 = l_Lean_Elab_Term_toParserDescrAux___main___closed__158; -x_1186 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1186, 0, x_1174); -lean_ctor_set(x_1186, 1, x_1184); -lean_ctor_set(x_1186, 2, x_1183); -lean_ctor_set(x_1186, 3, x_1185); -x_1187 = lean_array_push(x_1181, x_1186); -x_1188 = l_Lean_nullKind___closed__2; -x_1189 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1189, 0, x_1188); -lean_ctor_set(x_1189, 1, x_1187); -x_1190 = lean_array_push(x_1179, x_1189); -x_1191 = l_Lean_mkAppStx___closed__8; -x_1192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1192, 0, x_1191); -lean_ctor_set(x_1192, 1, x_1190); -x_1193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1193, 0, x_1192); -lean_ctor_set(x_1193, 1, x_1171); -return x_1193; +lean_dec(x_1101); +x_1145 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_1146 = lean_ctor_get(x_1145, 0); +lean_inc(x_1146); +x_1147 = lean_ctor_get(x_1145, 1); +lean_inc(x_1147); +lean_dec(x_1145); +x_1148 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1147); +lean_dec(x_9); +x_1149 = !lean_is_exclusive(x_1148); +if (x_1149 == 0) +{ +lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; +x_1150 = lean_ctor_get(x_1148, 0); +x_1151 = l_Lean_Elab_Term_toParserDescrAux___closed__147; +lean_inc(x_1146); +lean_inc(x_1150); +x_1152 = l_Lean_addMacroScope(x_1150, x_1151, x_1146); +x_1153 = l_Lean_SourceInfo_inhabited___closed__1; +x_1154 = l_Lean_Elab_Term_toParserDescrAux___closed__145; +x_1155 = l_Lean_Elab_Term_toParserDescrAux___closed__150; +x_1156 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1156, 0, x_1153); +lean_ctor_set(x_1156, 1, x_1154); +lean_ctor_set(x_1156, 2, x_1152); +lean_ctor_set(x_1156, 3, x_1155); +x_1157 = l_Array_empty___closed__1; +x_1158 = lean_array_push(x_1157, x_1156); +x_1159 = l_Lean_mkStxStrLit(x_1144, x_1153); +x_1160 = lean_array_push(x_1157, x_1159); +x_1161 = l_Lean_Elab_Term_toParserDescrAux___closed__153; +x_1162 = l_Lean_addMacroScope(x_1150, x_1161, x_1146); +x_1163 = l_Lean_Elab_Term_toParserDescrAux___closed__152; +x_1164 = l_Lean_Elab_Term_toParserDescrAux___closed__157; +x_1165 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1165, 0, x_1153); +lean_ctor_set(x_1165, 1, x_1163); +lean_ctor_set(x_1165, 2, x_1162); +lean_ctor_set(x_1165, 3, x_1164); +x_1166 = lean_array_push(x_1160, x_1165); +x_1167 = l_Lean_nullKind___closed__2; +x_1168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1168, 0, x_1167); +lean_ctor_set(x_1168, 1, x_1166); +x_1169 = lean_array_push(x_1158, x_1168); +x_1170 = l_Lean_mkAppStx___closed__8; +x_1171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1171, 0, x_1170); +lean_ctor_set(x_1171, 1, x_1169); +lean_ctor_set(x_1148, 0, x_1171); +return x_1148; +} +else +{ +lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; +x_1172 = lean_ctor_get(x_1148, 0); +x_1173 = lean_ctor_get(x_1148, 1); +lean_inc(x_1173); +lean_inc(x_1172); +lean_dec(x_1148); +x_1174 = l_Lean_Elab_Term_toParserDescrAux___closed__147; +lean_inc(x_1146); +lean_inc(x_1172); +x_1175 = l_Lean_addMacroScope(x_1172, x_1174, x_1146); +x_1176 = l_Lean_SourceInfo_inhabited___closed__1; +x_1177 = l_Lean_Elab_Term_toParserDescrAux___closed__145; +x_1178 = l_Lean_Elab_Term_toParserDescrAux___closed__150; +x_1179 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1179, 0, x_1176); +lean_ctor_set(x_1179, 1, x_1177); +lean_ctor_set(x_1179, 2, x_1175); +lean_ctor_set(x_1179, 3, x_1178); +x_1180 = l_Array_empty___closed__1; +x_1181 = lean_array_push(x_1180, x_1179); +x_1182 = l_Lean_mkStxStrLit(x_1144, x_1176); +x_1183 = lean_array_push(x_1180, x_1182); +x_1184 = l_Lean_Elab_Term_toParserDescrAux___closed__153; +x_1185 = l_Lean_addMacroScope(x_1172, x_1184, x_1146); +x_1186 = l_Lean_Elab_Term_toParserDescrAux___closed__152; +x_1187 = l_Lean_Elab_Term_toParserDescrAux___closed__157; +x_1188 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1188, 0, x_1176); +lean_ctor_set(x_1188, 1, x_1186); +lean_ctor_set(x_1188, 2, x_1185); +lean_ctor_set(x_1188, 3, x_1187); +x_1189 = lean_array_push(x_1183, x_1188); +x_1190 = l_Lean_nullKind___closed__2; +x_1191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1191, 0, x_1190); +lean_ctor_set(x_1191, 1, x_1189); +x_1192 = lean_array_push(x_1181, x_1191); +x_1193 = l_Lean_mkAppStx___closed__8; +x_1194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1194, 0, x_1193); +lean_ctor_set(x_1194, 1, x_1192); +x_1195 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1195, 0, x_1194); +lean_ctor_set(x_1195, 1, x_1173); +return x_1195; } } } @@ -8152,683 +9587,700 @@ return x_1193; } else { -lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; uint8_t x_1331; +lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; uint8_t x_1200; uint8_t x_1341; lean_dec(x_11); -x_1194 = lean_unsigned_to_nat(0u); -x_1195 = l_Lean_Syntax_getIdAt(x_1, x_1194); -x_1196 = l_Lean_Name_eraseMacroScopes(x_1195); -lean_dec(x_1195); -x_1331 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); -if (x_1331 == 0) -{ -lean_object* x_1332; -x_1332 = lean_box(0); -x_1197 = x_1332; -goto block_1330; -} -else -{ -lean_object* x_1333; uint8_t x_1334; -x_1333 = lean_ctor_get(x_2, 0); -lean_inc(x_1333); -x_1334 = lean_name_eq(x_1196, x_1333); -lean_dec(x_1333); -if (x_1334 == 0) -{ -lean_object* x_1335; -x_1335 = lean_box(0); -x_1197 = x_1335; -goto block_1330; -} -else -{ -lean_object* x_1336; lean_object* x_1337; -lean_dec(x_1196); -x_1336 = l_Lean_Elab_Term_toParserDescrAux___main___closed__187; -x_1337 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_1336, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_1337; -} -} -block_1330: -{ -lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; uint8_t x_1254; +x_1196 = lean_unsigned_to_nat(0u); +x_1197 = l_Lean_Syntax_getArg(x_1, x_1196); +x_1198 = l_Lean_Syntax_getId(x_1197); lean_dec(x_1197); -x_1198 = lean_unsigned_to_nat(1u); -x_1199 = l_Lean_Syntax_getArg(x_1, x_1198); -x_1200 = l_Lean_Elab_Term_expandOptPrecedence(x_1199); -lean_dec(x_1199); -x_1201 = lean_st_ref_get(x_9, x_10); -x_1202 = lean_ctor_get(x_1201, 0); -lean_inc(x_1202); -x_1203 = lean_ctor_get(x_1201, 1); -lean_inc(x_1203); -lean_dec(x_1201); -x_1204 = lean_ctor_get(x_1202, 0); -lean_inc(x_1204); +x_1199 = l_Lean_Name_eraseMacroScopes(x_1198); +lean_dec(x_1198); +x_1341 = lean_ctor_get_uint8(x_2, sizeof(void*)*1); +if (x_1341 == 0) +{ +uint8_t x_1342; +x_1342 = 0; +x_1200 = x_1342; +goto block_1340; +} +else +{ +lean_object* x_1343; uint8_t x_1344; +x_1343 = lean_ctor_get(x_2, 0); +lean_inc(x_1343); +x_1344 = lean_name_eq(x_1199, x_1343); +lean_dec(x_1343); +x_1200 = x_1344; +goto block_1340; +} +block_1340: +{ +if (x_1200 == 0) +{ +lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; uint8_t x_1257; +x_1201 = lean_unsigned_to_nat(1u); +x_1202 = l_Lean_Syntax_getArg(x_1, x_1201); +x_1203 = l_Lean_Elab_Term_expandOptPrecedence(x_1202); lean_dec(x_1202); -x_1254 = l_Lean_Parser_isParserCategory(x_1204, x_1196); -if (x_1254 == 0) -{ -lean_object* x_1255; -lean_inc(x_4); -lean_inc(x_1196); -x_1255 = l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___main___spec__2(x_1196, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1203); -if (lean_obj_tag(x_1255) == 0) -{ -lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; -x_1256 = lean_ctor_get(x_1255, 0); -lean_inc(x_1256); -x_1257 = lean_ctor_get(x_1255, 1); -lean_inc(x_1257); -lean_dec(x_1255); -x_1258 = lean_box(0); -x_1259 = l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__5(x_1204, x_1256, x_1258); -if (lean_obj_tag(x_1259) == 0) -{ -lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; -lean_dec(x_1200); -x_1260 = lean_unsigned_to_nat(3u); -x_1261 = l_Lean_Syntax_getArg(x_1, x_1260); -lean_dec(x_1); -x_1262 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_1262, 0, x_1196); -x_1263 = l_Lean_Elab_Term_toParserDescrAux___main___closed__168; -x_1264 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1264, 0, x_1263); -lean_ctor_set(x_1264, 1, x_1262); -x_1265 = l_Lean_Elab_Term_toParserDescrAux___main___closed__171; -x_1266 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1266, 0, x_1264); -lean_ctor_set(x_1266, 1, x_1265); -x_1267 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1261, x_1266, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1257); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1261); -return x_1267; -} -else -{ -lean_object* x_1268; -lean_dec(x_1196); -x_1268 = lean_ctor_get(x_1259, 1); -lean_inc(x_1268); -if (lean_obj_tag(x_1268) == 0) -{ -if (lean_obj_tag(x_1200) == 0) -{ -lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; uint8_t x_1274; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_1269 = lean_ctor_get(x_1259, 0); -lean_inc(x_1269); -lean_dec(x_1259); -x_1270 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1257); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_1271 = lean_ctor_get(x_1270, 0); -lean_inc(x_1271); -x_1272 = lean_ctor_get(x_1270, 1); -lean_inc(x_1272); -lean_dec(x_1270); -x_1273 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1272); -lean_dec(x_9); -x_1274 = !lean_is_exclusive(x_1273); -if (x_1274 == 0) -{ -lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; -x_1275 = lean_ctor_get(x_1273, 0); -x_1276 = l_Lean_Elab_Term_toParserDescrAux___main___closed__175; -x_1277 = l_Lean_addMacroScope(x_1275, x_1276, x_1271); -x_1278 = l_Lean_SourceInfo_inhabited___closed__1; -x_1279 = l_Lean_Elab_Term_toParserDescrAux___main___closed__174; -x_1280 = l_Lean_Elab_Term_toParserDescrAux___main___closed__178; -x_1281 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1281, 0, x_1278); -lean_ctor_set(x_1281, 1, x_1279); -lean_ctor_set(x_1281, 2, x_1277); -lean_ctor_set(x_1281, 3, x_1280); -x_1282 = l_Array_empty___closed__1; -x_1283 = lean_array_push(x_1282, x_1281); -x_1284 = l___private_Init_LeanInit_13__quoteName___main(x_1269); -x_1285 = lean_array_push(x_1282, x_1284); -x_1286 = l_Lean_nullKind___closed__2; -x_1287 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1287, 0, x_1286); -lean_ctor_set(x_1287, 1, x_1285); -x_1288 = lean_array_push(x_1283, x_1287); -x_1289 = l_Lean_mkAppStx___closed__8; -x_1290 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1290, 0, x_1289); -lean_ctor_set(x_1290, 1, x_1288); -lean_ctor_set(x_1273, 0, x_1290); -return x_1273; -} -else -{ -lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; -x_1291 = lean_ctor_get(x_1273, 0); -x_1292 = lean_ctor_get(x_1273, 1); -lean_inc(x_1292); -lean_inc(x_1291); -lean_dec(x_1273); -x_1293 = l_Lean_Elab_Term_toParserDescrAux___main___closed__175; -x_1294 = l_Lean_addMacroScope(x_1291, x_1293, x_1271); -x_1295 = l_Lean_SourceInfo_inhabited___closed__1; -x_1296 = l_Lean_Elab_Term_toParserDescrAux___main___closed__174; -x_1297 = l_Lean_Elab_Term_toParserDescrAux___main___closed__178; -x_1298 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1298, 0, x_1295); -lean_ctor_set(x_1298, 1, x_1296); -lean_ctor_set(x_1298, 2, x_1294); -lean_ctor_set(x_1298, 3, x_1297); -x_1299 = l_Array_empty___closed__1; -x_1300 = lean_array_push(x_1299, x_1298); -x_1301 = l___private_Init_LeanInit_13__quoteName___main(x_1269); -x_1302 = lean_array_push(x_1299, x_1301); -x_1303 = l_Lean_nullKind___closed__2; -x_1304 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1304, 0, x_1303); -lean_ctor_set(x_1304, 1, x_1302); -x_1305 = lean_array_push(x_1300, x_1304); -x_1306 = l_Lean_mkAppStx___closed__8; -x_1307 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1307, 0, x_1306); -lean_ctor_set(x_1307, 1, x_1305); -x_1308 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1308, 0, x_1307); -lean_ctor_set(x_1308, 1, x_1292); -return x_1308; -} -} -else -{ -lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; uint8_t x_1313; -lean_dec(x_1259); -lean_dec(x_1200); -x_1309 = lean_unsigned_to_nat(3u); -x_1310 = l_Lean_Syntax_getArg(x_1, x_1309); -lean_dec(x_1); -x_1311 = l_Lean_Elab_Term_toParserDescrAux___main___closed__181; -x_1312 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1310, x_1311, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1257); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1310); -x_1313 = !lean_is_exclusive(x_1312); -if (x_1313 == 0) -{ -return x_1312; -} -else -{ -lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; -x_1314 = lean_ctor_get(x_1312, 0); -x_1315 = lean_ctor_get(x_1312, 1); -lean_inc(x_1315); -lean_inc(x_1314); -lean_dec(x_1312); -x_1316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1316, 0, x_1314); -lean_ctor_set(x_1316, 1, x_1315); -return x_1316; -} -} -} -else -{ -lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; -lean_dec(x_1268); -lean_dec(x_1200); -x_1317 = lean_unsigned_to_nat(3u); -x_1318 = l_Lean_Syntax_getArg(x_1, x_1317); -lean_dec(x_1); -x_1319 = l_List_toString___at_Lean_OpenDecl_HasToString___spec__2(x_1259); -x_1320 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1320, 0, x_1319); -x_1321 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1321, 0, x_1320); -x_1322 = l_Lean_Elab_Term_toParserDescrAux___main___closed__184; -x_1323 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_1323, 0, x_1322); -lean_ctor_set(x_1323, 1, x_1321); -x_1324 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1318, x_1323, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1257); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1318); -return x_1324; -} -} -} -else -{ -uint8_t x_1325; +x_1204 = lean_st_ref_get(x_9, x_10); +x_1205 = lean_ctor_get(x_1204, 0); +lean_inc(x_1205); +x_1206 = lean_ctor_get(x_1204, 1); +lean_inc(x_1206); lean_dec(x_1204); -lean_dec(x_1200); -lean_dec(x_1196); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_1325 = !lean_is_exclusive(x_1255); -if (x_1325 == 0) -{ -return x_1255; -} -else -{ -lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; -x_1326 = lean_ctor_get(x_1255, 0); -x_1327 = lean_ctor_get(x_1255, 1); -lean_inc(x_1327); -lean_inc(x_1326); -lean_dec(x_1255); -x_1328 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1328, 0, x_1326); -lean_ctor_set(x_1328, 1, x_1327); -return x_1328; -} -} -} -else -{ -lean_dec(x_1204); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -if (lean_obj_tag(x_1200) == 0) -{ -x_1205 = x_1194; -goto block_1253; -} -else -{ -lean_object* x_1329; -x_1329 = lean_ctor_get(x_1200, 0); -lean_inc(x_1329); -lean_dec(x_1200); -x_1205 = x_1329; -goto block_1253; -} -} -block_1253: -{ -lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; uint8_t x_1210; -x_1206 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1203); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_1207 = lean_ctor_get(x_1206, 0); +x_1207 = lean_ctor_get(x_1205, 0); lean_inc(x_1207); -x_1208 = lean_ctor_get(x_1206, 1); -lean_inc(x_1208); -lean_dec(x_1206); -x_1209 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1208); -lean_dec(x_9); -x_1210 = !lean_is_exclusive(x_1209); -if (x_1210 == 0) +lean_dec(x_1205); +x_1257 = l_Lean_Parser_isParserCategory(x_1207, x_1199); +if (x_1257 == 0) { -lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; -x_1211 = lean_ctor_get(x_1209, 0); -x_1212 = l_Lean_Elab_Term_toParserDescrAux___main___closed__162; -x_1213 = l_Lean_addMacroScope(x_1211, x_1212, x_1207); -x_1214 = l_Lean_SourceInfo_inhabited___closed__1; -x_1215 = l_Lean_Elab_Term_toParserDescrAux___main___closed__161; -x_1216 = l_Lean_Elab_Term_toParserDescrAux___main___closed__165; -x_1217 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1217, 0, x_1214); -lean_ctor_set(x_1217, 1, x_1215); -lean_ctor_set(x_1217, 2, x_1213); -lean_ctor_set(x_1217, 3, x_1216); -x_1218 = l_Array_empty___closed__1; -x_1219 = lean_array_push(x_1218, x_1217); -x_1220 = l___private_Init_LeanInit_13__quoteName___main(x_1196); -x_1221 = lean_array_push(x_1218, x_1220); -x_1222 = l_Nat_repr(x_1205); -x_1223 = l_Lean_numLitKind; -x_1224 = l_Lean_mkStxLit(x_1223, x_1222, x_1214); -x_1225 = lean_array_push(x_1221, x_1224); -x_1226 = l_Lean_nullKind___closed__2; -x_1227 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1227, 0, x_1226); -lean_ctor_set(x_1227, 1, x_1225); -x_1228 = lean_array_push(x_1219, x_1227); -x_1229 = l_Lean_mkAppStx___closed__8; +lean_object* x_1258; +lean_inc(x_4); +lean_inc(x_1199); +x_1258 = l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___spec__2(x_1199, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1206); +if (lean_obj_tag(x_1258) == 0) +{ +lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; +x_1259 = lean_ctor_get(x_1258, 0); +lean_inc(x_1259); +x_1260 = lean_ctor_get(x_1258, 1); +lean_inc(x_1260); +lean_dec(x_1258); +x_1261 = lean_box(0); +x_1262 = l_List_filterAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__5(x_1207, x_1259, x_1261); +if (lean_obj_tag(x_1262) == 0) +{ +lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; +lean_dec(x_1203); +x_1263 = lean_unsigned_to_nat(3u); +x_1264 = l_Lean_Syntax_getArg(x_1, x_1263); +lean_dec(x_1); +x_1265 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_1265, 0, x_1199); +x_1266 = l_Lean_Elab_Term_toParserDescrAux___closed__166; +x_1267 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1267, 0, x_1266); +lean_ctor_set(x_1267, 1, x_1265); +x_1268 = l_Lean_Elab_Term_toParserDescrAux___closed__168; +x_1269 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1269, 0, x_1267); +lean_ctor_set(x_1269, 1, x_1268); +x_1270 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1264, x_1269, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1260); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1264); +return x_1270; +} +else +{ +lean_object* x_1271; lean_object* x_1272; uint8_t x_1273; +lean_dec(x_1199); +x_1271 = lean_ctor_get(x_1262, 0); +lean_inc(x_1271); +x_1272 = lean_ctor_get(x_1262, 1); +lean_inc(x_1272); +if (lean_obj_tag(x_1272) == 0) +{ +lean_dec(x_1262); +if (lean_obj_tag(x_1203) == 0) +{ +uint8_t x_1322; +x_1322 = 1; +x_1273 = x_1322; +goto block_1321; +} +else +{ +uint8_t x_1323; +lean_dec(x_1203); +x_1323 = 0; +x_1273 = x_1323; +goto block_1321; +} +} +else +{ +lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; +lean_dec(x_1272); +lean_dec(x_1271); +lean_dec(x_1203); +x_1324 = lean_unsigned_to_nat(3u); +x_1325 = l_Lean_Syntax_getArg(x_1, x_1324); +lean_dec(x_1); +x_1326 = l_List_map___main___at_Lean_Elab_Term_toParserDescrAux___spec__6(x_1262); +x_1327 = l_Lean_MessageData_ofList(x_1326); +lean_dec(x_1326); +x_1328 = l_Lean_Elab_Term_toParserDescrAux___closed__180; +x_1329 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1329, 0, x_1328); +lean_ctor_set(x_1329, 1, x_1327); +x_1330 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__13; +x_1331 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_1331, 0, x_1329); +lean_ctor_set(x_1331, 1, x_1330); +x_1332 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1325, x_1331, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1260); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1325); +return x_1332; +} +block_1321: +{ +if (x_1273 == 0) +{ +lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; uint8_t x_1278; +lean_dec(x_1271); +x_1274 = lean_unsigned_to_nat(3u); +x_1275 = l_Lean_Syntax_getArg(x_1, x_1274); +lean_dec(x_1); +x_1276 = l_Lean_Elab_Term_toParserDescrAux___closed__171; +x_1277 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1275, x_1276, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1260); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1275); +x_1278 = !lean_is_exclusive(x_1277); +if (x_1278 == 0) +{ +return x_1277; +} +else +{ +lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; +x_1279 = lean_ctor_get(x_1277, 0); +x_1280 = lean_ctor_get(x_1277, 1); +lean_inc(x_1280); +lean_inc(x_1279); +lean_dec(x_1277); +x_1281 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1281, 0, x_1279); +lean_ctor_set(x_1281, 1, x_1280); +return x_1281; +} +} +else +{ +lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; uint8_t x_1286; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1282 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1260); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_1283 = lean_ctor_get(x_1282, 0); +lean_inc(x_1283); +x_1284 = lean_ctor_get(x_1282, 1); +lean_inc(x_1284); +lean_dec(x_1282); +x_1285 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1284); +lean_dec(x_9); +x_1286 = !lean_is_exclusive(x_1285); +if (x_1286 == 0) +{ +lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; +x_1287 = lean_ctor_get(x_1285, 0); +x_1288 = l_Lean_Elab_Term_toParserDescrAux___closed__175; +x_1289 = l_Lean_addMacroScope(x_1287, x_1288, x_1283); +x_1290 = l_Lean_SourceInfo_inhabited___closed__1; +x_1291 = l_Lean_Elab_Term_toParserDescrAux___closed__174; +x_1292 = l_Lean_Elab_Term_toParserDescrAux___closed__178; +x_1293 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1293, 0, x_1290); +lean_ctor_set(x_1293, 1, x_1291); +lean_ctor_set(x_1293, 2, x_1289); +lean_ctor_set(x_1293, 3, x_1292); +x_1294 = l_Array_empty___closed__1; +x_1295 = lean_array_push(x_1294, x_1293); +x_1296 = l___private_Init_LeanInit_13__quoteName___main(x_1271); +x_1297 = lean_array_push(x_1294, x_1296); +x_1298 = l_Lean_nullKind___closed__2; +x_1299 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1299, 0, x_1298); +lean_ctor_set(x_1299, 1, x_1297); +x_1300 = lean_array_push(x_1295, x_1299); +x_1301 = l_Lean_mkAppStx___closed__8; +x_1302 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1302, 0, x_1301); +lean_ctor_set(x_1302, 1, x_1300); +lean_ctor_set(x_1285, 0, x_1302); +return x_1285; +} +else +{ +lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; +x_1303 = lean_ctor_get(x_1285, 0); +x_1304 = lean_ctor_get(x_1285, 1); +lean_inc(x_1304); +lean_inc(x_1303); +lean_dec(x_1285); +x_1305 = l_Lean_Elab_Term_toParserDescrAux___closed__175; +x_1306 = l_Lean_addMacroScope(x_1303, x_1305, x_1283); +x_1307 = l_Lean_SourceInfo_inhabited___closed__1; +x_1308 = l_Lean_Elab_Term_toParserDescrAux___closed__174; +x_1309 = l_Lean_Elab_Term_toParserDescrAux___closed__178; +x_1310 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1310, 0, x_1307); +lean_ctor_set(x_1310, 1, x_1308); +lean_ctor_set(x_1310, 2, x_1306); +lean_ctor_set(x_1310, 3, x_1309); +x_1311 = l_Array_empty___closed__1; +x_1312 = lean_array_push(x_1311, x_1310); +x_1313 = l___private_Init_LeanInit_13__quoteName___main(x_1271); +x_1314 = lean_array_push(x_1311, x_1313); +x_1315 = l_Lean_nullKind___closed__2; +x_1316 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1316, 0, x_1315); +lean_ctor_set(x_1316, 1, x_1314); +x_1317 = lean_array_push(x_1312, x_1316); +x_1318 = l_Lean_mkAppStx___closed__8; +x_1319 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1319, 0, x_1318); +lean_ctor_set(x_1319, 1, x_1317); +x_1320 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1320, 0, x_1319); +lean_ctor_set(x_1320, 1, x_1304); +return x_1320; +} +} +} +} +} +else +{ +uint8_t x_1333; +lean_dec(x_1207); +lean_dec(x_1203); +lean_dec(x_1199); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1333 = !lean_is_exclusive(x_1258); +if (x_1333 == 0) +{ +return x_1258; +} +else +{ +lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; +x_1334 = lean_ctor_get(x_1258, 0); +x_1335 = lean_ctor_get(x_1258, 1); +lean_inc(x_1335); +lean_inc(x_1334); +lean_dec(x_1258); +x_1336 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1336, 0, x_1334); +lean_ctor_set(x_1336, 1, x_1335); +return x_1336; +} +} +} +else +{ +lean_dec(x_1207); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +if (lean_obj_tag(x_1203) == 0) +{ +x_1208 = x_1196; +goto block_1256; +} +else +{ +lean_object* x_1337; +x_1337 = lean_ctor_get(x_1203, 0); +lean_inc(x_1337); +lean_dec(x_1203); +x_1208 = x_1337; +goto block_1256; +} +} +block_1256: +{ +lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; uint8_t x_1213; +x_1209 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5, x_6, x_7, x_8, x_9, x_1206); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_1210 = lean_ctor_get(x_1209, 0); +lean_inc(x_1210); +x_1211 = lean_ctor_get(x_1209, 1); +lean_inc(x_1211); +lean_dec(x_1209); +x_1212 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_1211); +lean_dec(x_9); +x_1213 = !lean_is_exclusive(x_1212); +if (x_1213 == 0) +{ +lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; +x_1214 = lean_ctor_get(x_1212, 0); +x_1215 = l_Lean_Elab_Term_toParserDescrAux___closed__161; +x_1216 = l_Lean_addMacroScope(x_1214, x_1215, x_1210); +x_1217 = l_Lean_SourceInfo_inhabited___closed__1; +x_1218 = l_Lean_Elab_Term_toParserDescrAux___closed__160; +x_1219 = l_Lean_Elab_Term_toParserDescrAux___closed__164; +x_1220 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1220, 0, x_1217); +lean_ctor_set(x_1220, 1, x_1218); +lean_ctor_set(x_1220, 2, x_1216); +lean_ctor_set(x_1220, 3, x_1219); +x_1221 = l_Array_empty___closed__1; +x_1222 = lean_array_push(x_1221, x_1220); +x_1223 = l___private_Init_LeanInit_13__quoteName___main(x_1199); +x_1224 = lean_array_push(x_1221, x_1223); +x_1225 = l_Nat_repr(x_1208); +x_1226 = l_Lean_numLitKind; +x_1227 = l_Lean_mkStxLit(x_1226, x_1225, x_1217); +x_1228 = lean_array_push(x_1224, x_1227); +x_1229 = l_Lean_nullKind___closed__2; x_1230 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1230, 0, x_1229); lean_ctor_set(x_1230, 1, x_1228); -lean_ctor_set(x_1209, 0, x_1230); -return x_1209; +x_1231 = lean_array_push(x_1222, x_1230); +x_1232 = l_Lean_mkAppStx___closed__8; +x_1233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1233, 0, x_1232); +lean_ctor_set(x_1233, 1, x_1231); +lean_ctor_set(x_1212, 0, x_1233); +return x_1212; } else { -lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; -x_1231 = lean_ctor_get(x_1209, 0); -x_1232 = lean_ctor_get(x_1209, 1); -lean_inc(x_1232); -lean_inc(x_1231); -lean_dec(x_1209); -x_1233 = l_Lean_Elab_Term_toParserDescrAux___main___closed__162; -x_1234 = l_Lean_addMacroScope(x_1231, x_1233, x_1207); -x_1235 = l_Lean_SourceInfo_inhabited___closed__1; -x_1236 = l_Lean_Elab_Term_toParserDescrAux___main___closed__161; -x_1237 = l_Lean_Elab_Term_toParserDescrAux___main___closed__165; -x_1238 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1238, 0, x_1235); -lean_ctor_set(x_1238, 1, x_1236); -lean_ctor_set(x_1238, 2, x_1234); -lean_ctor_set(x_1238, 3, x_1237); -x_1239 = l_Array_empty___closed__1; -x_1240 = lean_array_push(x_1239, x_1238); -x_1241 = l___private_Init_LeanInit_13__quoteName___main(x_1196); -x_1242 = lean_array_push(x_1239, x_1241); -x_1243 = l_Nat_repr(x_1205); -x_1244 = l_Lean_numLitKind; -x_1245 = l_Lean_mkStxLit(x_1244, x_1243, x_1235); -x_1246 = lean_array_push(x_1242, x_1245); -x_1247 = l_Lean_nullKind___closed__2; -x_1248 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1248, 0, x_1247); -lean_ctor_set(x_1248, 1, x_1246); -x_1249 = lean_array_push(x_1240, x_1248); -x_1250 = l_Lean_mkAppStx___closed__8; +lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; +x_1234 = lean_ctor_get(x_1212, 0); +x_1235 = lean_ctor_get(x_1212, 1); +lean_inc(x_1235); +lean_inc(x_1234); +lean_dec(x_1212); +x_1236 = l_Lean_Elab_Term_toParserDescrAux___closed__161; +x_1237 = l_Lean_addMacroScope(x_1234, x_1236, x_1210); +x_1238 = l_Lean_SourceInfo_inhabited___closed__1; +x_1239 = l_Lean_Elab_Term_toParserDescrAux___closed__160; +x_1240 = l_Lean_Elab_Term_toParserDescrAux___closed__164; +x_1241 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1241, 0, x_1238); +lean_ctor_set(x_1241, 1, x_1239); +lean_ctor_set(x_1241, 2, x_1237); +lean_ctor_set(x_1241, 3, x_1240); +x_1242 = l_Array_empty___closed__1; +x_1243 = lean_array_push(x_1242, x_1241); +x_1244 = l___private_Init_LeanInit_13__quoteName___main(x_1199); +x_1245 = lean_array_push(x_1242, x_1244); +x_1246 = l_Nat_repr(x_1208); +x_1247 = l_Lean_numLitKind; +x_1248 = l_Lean_mkStxLit(x_1247, x_1246, x_1238); +x_1249 = lean_array_push(x_1245, x_1248); +x_1250 = l_Lean_nullKind___closed__2; x_1251 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1251, 0, x_1250); lean_ctor_set(x_1251, 1, x_1249); -x_1252 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1252, 0, x_1251); -lean_ctor_set(x_1252, 1, x_1232); -return x_1252; -} -} +x_1252 = lean_array_push(x_1243, x_1251); +x_1253 = l_Lean_mkAppStx___closed__8; +x_1254 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1254, 0, x_1253); +lean_ctor_set(x_1254, 1, x_1252); +x_1255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1255, 0, x_1254); +lean_ctor_set(x_1255, 1, x_1235); +return x_1255; } } } else { lean_object* x_1338; lean_object* x_1339; -lean_dec(x_11); -x_1338 = lean_unsigned_to_nat(1u); -x_1339 = l_Lean_Syntax_getArg(x_1, x_1338); +lean_dec(x_1199); +x_1338 = l_Lean_Elab_Term_toParserDescrAux___closed__183; +x_1339 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_1338, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_1 = x_1339; -goto _start; +return x_1339; +} +} } } else { -lean_object* x_1341; lean_object* x_1342; +lean_object* x_1345; lean_object* x_1346; lean_dec(x_11); -x_1341 = lean_unsigned_to_nat(0u); -x_1342 = l_Lean_Syntax_getArg(x_1, x_1341); -lean_dec(x_1); -x_1 = x_1342; -goto _start; -} -} -else -{ -lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; -lean_dec(x_11); -x_1344 = l_Lean_Syntax_getArgs(x_1); -x_1345 = lean_unsigned_to_nat(0u); +x_1345 = lean_unsigned_to_nat(1u); x_1346 = l_Lean_Syntax_getArg(x_1, x_1345); -lean_inc(x_8); -x_1347 = l_Lean_Elab_Term_checkLeftRec(x_1346, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_1347) == 0) -{ -lean_object* x_1348; uint8_t x_1349; -x_1348 = lean_ctor_get(x_1347, 0); -lean_inc(x_1348); -x_1349 = lean_unbox(x_1348); -lean_dec(x_1348); -if (x_1349 == 0) -{ -lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_dec(x_1); -x_1350 = lean_ctor_get(x_1347, 1); -lean_inc(x_1350); -lean_dec(x_1347); -x_1351 = x_1344; -x_1352 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__6___boxed), 11, 2); -lean_closure_set(x_1352, 0, x_1345); -lean_closure_set(x_1352, 1, x_1351); -x_1353 = x_1352; +x_1 = x_1346; +goto _start; +} +} +else +{ +lean_object* x_1348; lean_object* x_1349; +lean_dec(x_11); +x_1348 = lean_unsigned_to_nat(0u); +x_1349 = l_Lean_Syntax_getArg(x_1, x_1348); +lean_dec(x_1); +x_1 = x_1349; +goto _start; +} +} +else +{ +lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; +lean_dec(x_11); +x_1351 = l_Lean_Syntax_getArgs(x_1); +x_1352 = lean_unsigned_to_nat(0u); +x_1353 = l_Lean_Syntax_getArg(x_1, x_1352); +lean_inc(x_8); +x_1354 = l_Lean_Elab_Term_checkLeftRec(x_1353, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_1354) == 0) +{ +lean_object* x_1355; uint8_t x_1356; +x_1355 = lean_ctor_get(x_1354, 0); +lean_inc(x_1355); +x_1356 = lean_unbox(x_1355); +lean_dec(x_1355); +if (x_1356 == 0) +{ +lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; +lean_dec(x_1); +x_1357 = lean_ctor_get(x_1354, 1); +lean_inc(x_1357); +lean_dec(x_1354); +x_1358 = x_1351; +x_1359 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__7___boxed), 11, 2); +lean_closure_set(x_1359, 0, x_1352); +lean_closure_set(x_1359, 1, x_1358); +x_1360 = x_1359; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_1354 = lean_apply_9(x_1353, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1350); -if (lean_obj_tag(x_1354) == 0) +x_1361 = lean_apply_9(x_1360, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1357); +if (lean_obj_tag(x_1361) == 0) { -lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; -x_1355 = lean_ctor_get(x_1354, 0); -lean_inc(x_1355); -x_1356 = lean_ctor_get(x_1354, 1); -lean_inc(x_1356); -lean_dec(x_1354); -x_1357 = l___private_Lean_Elab_Syntax_1__mkParserSeq(x_1355, x_4, x_5, x_6, x_7, x_8, x_9, x_1356); +lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; +x_1362 = lean_ctor_get(x_1361, 0); +lean_inc(x_1362); +x_1363 = lean_ctor_get(x_1361, 1); +lean_inc(x_1363); +lean_dec(x_1361); +x_1364 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq(x_1362, x_4, x_5, x_6, x_7, x_8, x_9, x_1363); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_1355); -return x_1357; +return x_1364; } else { -uint8_t x_1358; +uint8_t x_1365; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_1358 = !lean_is_exclusive(x_1354); -if (x_1358 == 0) +x_1365 = !lean_is_exclusive(x_1361); +if (x_1365 == 0) +{ +return x_1361; +} +else +{ +lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; +x_1366 = lean_ctor_get(x_1361, 0); +x_1367 = lean_ctor_get(x_1361, 1); +lean_inc(x_1367); +lean_inc(x_1366); +lean_dec(x_1361); +x_1368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1368, 0, x_1366); +lean_ctor_set(x_1368, 1, x_1367); +return x_1368; +} +} +} +else +{ +lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; uint8_t x_1372; +x_1369 = lean_ctor_get(x_1354, 1); +lean_inc(x_1369); +lean_dec(x_1354); +x_1370 = lean_array_get_size(x_1351); +x_1371 = lean_unsigned_to_nat(1u); +x_1372 = lean_nat_dec_eq(x_1370, x_1371); +lean_dec(x_1370); +if (x_1372 == 0) +{ +lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; +lean_dec(x_1); +x_1373 = l_Array_eraseIdx___rarg(x_1351, x_1352); +x_1374 = x_1373; +x_1375 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__7___boxed), 11, 2); +lean_closure_set(x_1375, 0, x_1352); +lean_closure_set(x_1375, 1, x_1374); +x_1376 = x_1375; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_1377 = lean_apply_9(x_1376, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1369); +if (lean_obj_tag(x_1377) == 0) +{ +lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; +x_1378 = lean_ctor_get(x_1377, 0); +lean_inc(x_1378); +x_1379 = lean_ctor_get(x_1377, 1); +lean_inc(x_1379); +lean_dec(x_1377); +x_1380 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq(x_1378, x_4, x_5, x_6, x_7, x_8, x_9, x_1379); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_1380; +} +else +{ +uint8_t x_1381; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_1381 = !lean_is_exclusive(x_1377); +if (x_1381 == 0) +{ +return x_1377; +} +else +{ +lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; +x_1382 = lean_ctor_get(x_1377, 0); +x_1383 = lean_ctor_get(x_1377, 1); +lean_inc(x_1383); +lean_inc(x_1382); +lean_dec(x_1377); +x_1384 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1384, 0, x_1382); +lean_ctor_set(x_1384, 1, x_1383); +return x_1384; +} +} +} +else +{ +lean_object* x_1385; lean_object* x_1386; uint8_t x_1387; +lean_dec(x_1351); +x_1385 = l_Lean_Elab_Term_toParserDescrAux___closed__183; +x_1386 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_1385, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1369); +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1387 = !lean_is_exclusive(x_1386); +if (x_1387 == 0) +{ +return x_1386; +} +else +{ +lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; +x_1388 = lean_ctor_get(x_1386, 0); +x_1389 = lean_ctor_get(x_1386, 1); +lean_inc(x_1389); +lean_inc(x_1388); +lean_dec(x_1386); +x_1390 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1390, 0, x_1388); +lean_ctor_set(x_1390, 1, x_1389); +return x_1390; +} +} +} +} +else +{ +uint8_t x_1391; +lean_dec(x_1351); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1391 = !lean_is_exclusive(x_1354); +if (x_1391 == 0) { return x_1354; } else { -lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; -x_1359 = lean_ctor_get(x_1354, 0); -x_1360 = lean_ctor_get(x_1354, 1); -lean_inc(x_1360); -lean_inc(x_1359); +lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; +x_1392 = lean_ctor_get(x_1354, 0); +x_1393 = lean_ctor_get(x_1354, 1); +lean_inc(x_1393); +lean_inc(x_1392); lean_dec(x_1354); -x_1361 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1361, 0, x_1359); -lean_ctor_set(x_1361, 1, x_1360); -return x_1361; -} -} -} -else -{ -lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; uint8_t x_1365; -x_1362 = lean_ctor_get(x_1347, 1); -lean_inc(x_1362); -lean_dec(x_1347); -x_1363 = lean_array_get_size(x_1344); -x_1364 = lean_unsigned_to_nat(1u); -x_1365 = lean_nat_dec_eq(x_1363, x_1364); -lean_dec(x_1363); -if (x_1365 == 0) -{ -lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; -lean_dec(x_1); -x_1366 = l_Array_eraseIdx___rarg(x_1344, x_1345); -x_1367 = x_1366; -x_1368 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__6___boxed), 11, 2); -lean_closure_set(x_1368, 0, x_1345); -lean_closure_set(x_1368, 1, x_1367); -x_1369 = x_1368; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_1370 = lean_apply_9(x_1369, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1362); -if (lean_obj_tag(x_1370) == 0) -{ -lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; -x_1371 = lean_ctor_get(x_1370, 0); -lean_inc(x_1371); -x_1372 = lean_ctor_get(x_1370, 1); -lean_inc(x_1372); -lean_dec(x_1370); -x_1373 = l___private_Lean_Elab_Syntax_1__mkParserSeq(x_1371, x_4, x_5, x_6, x_7, x_8, x_9, x_1372); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1371); -return x_1373; -} -else -{ -uint8_t x_1374; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_1374 = !lean_is_exclusive(x_1370); -if (x_1374 == 0) -{ -return x_1370; -} -else -{ -lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; -x_1375 = lean_ctor_get(x_1370, 0); -x_1376 = lean_ctor_get(x_1370, 1); -lean_inc(x_1376); -lean_inc(x_1375); -lean_dec(x_1370); -x_1377 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1377, 0, x_1375); -lean_ctor_set(x_1377, 1, x_1376); -return x_1377; -} -} -} -else -{ -lean_object* x_1378; lean_object* x_1379; uint8_t x_1380; -lean_dec(x_1344); -x_1378 = l_Lean_Elab_Term_toParserDescrAux___main___closed__187; -x_1379 = l_Lean_throwErrorAt___at_Lean_Elab_Term_checkLeftRec___spec__1___rarg(x_1, x_1378, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_1362); -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_1380 = !lean_is_exclusive(x_1379); -if (x_1380 == 0) -{ -return x_1379; -} -else -{ -lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; -x_1381 = lean_ctor_get(x_1379, 0); -x_1382 = lean_ctor_get(x_1379, 1); -lean_inc(x_1382); -lean_inc(x_1381); -lean_dec(x_1379); -x_1383 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1383, 0, x_1381); -lean_ctor_set(x_1383, 1, x_1382); -return x_1383; -} -} -} -} -else -{ -uint8_t x_1384; -lean_dec(x_1344); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_1384 = !lean_is_exclusive(x_1347); -if (x_1384 == 0) -{ -return x_1347; -} -else -{ -lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; -x_1385 = lean_ctor_get(x_1347, 0); -x_1386 = lean_ctor_get(x_1347, 1); -lean_inc(x_1386); -lean_inc(x_1385); -lean_dec(x_1347); -x_1387 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1387, 0, x_1385); -lean_ctor_set(x_1387, 1, x_1386); -return x_1387; +x_1394 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1394, 0, x_1392); +lean_ctor_set(x_1394, 1, x_1393); +return x_1394; } } } } } -lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___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* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_toParserDescrAux___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -8840,11 +10292,11 @@ lean_dec(x_1); return x_9; } } -lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_toParserDescrAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8855,11 +10307,11 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___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* x_10) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___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* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___main___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_toParserDescrAux___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8871,11 +10323,11 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___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* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___main___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_resolveGlobalConst___at_Lean_Elab_Term_toParserDescrAux___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -8886,23 +10338,15 @@ lean_dec(x_2); return x_11; } } -lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___main___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Array_umapMAux___main___at_Lean_Elab_Term_toParserDescrAux___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_3); return x_12; } } -lean_object* l_Lean_Elab_Term_toParserDescrAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l_Lean_Elab_Term_toParserDescrAux___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_Lean_Elab_Term_toParserDescr(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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: { @@ -8933,7 +10377,7 @@ x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); lean_inc(x_20); -x_22 = l_Lean_Elab_Term_toParserDescrAux___main(x_1, x_16, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +x_22 = l_Lean_Elab_Term_toParserDescrAux(x_1, x_16, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_21); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; @@ -8997,7 +10441,70 @@ return x_36; } } } -lean_object* l___private_Lean_Elab_Syntax_5__getCatSuffix(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; size_t x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get_usize(x_1, 2); +lean_dec(x_1); +x_7 = lean_box_usize(x_6); +x_8 = lean_apply_3(x_2, x_4, x_5, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_2); +x_9 = lean_apply_1(x_3, x_1); +return x_9; +} +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix_match__1___rarg), 3, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.Syntax"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("_private.Lean.Elab.Syntax.0.Lean.Elab.Command.getCatSuffix"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2; +x_3 = lean_unsigned_to_nat(179u); +x_4 = lean_unsigned_to_nat(20u); +x_5 = l_Lean_ResolveName_resolveNamespaceUsingScope___closed__3; +x_6 = l___private_Init_Util_2__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 1) @@ -9009,23 +10516,24 @@ return x_2; } else { -lean_object* x_3; lean_object* x_4; +lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = l_String_Inhabited; -x_4 = l_unreachable_x21___rarg(x_3); -return x_4; +x_4 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__3; +x_5 = lean_panic_fn(x_3, x_4); +return x_5; } } } -lean_object* l___private_Lean_Elab_Syntax_5__getCatSuffix___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Elab_Syntax_5__getCatSuffix(x_1); +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix(x_1); lean_dec(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1() { _start: { lean_object* x_1; @@ -9033,7 +10541,7 @@ x_1 = lean_mk_string("`("); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9043,7 +10551,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__3() { _start: { lean_object* x_1; @@ -9051,17 +10559,17 @@ x_1 = lean_mk_string("declaration"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__3; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__5() { _start: { lean_object* x_1; @@ -9069,17 +10577,17 @@ x_1 = lean_mk_string("declModifiers"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__5; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__7() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7() { _start: { lean_object* x_1; @@ -9087,17 +10595,17 @@ x_1 = lean_mk_string("attributes"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__7; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__9() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9109,17 +10617,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__9; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__11() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11() { _start: { lean_object* x_1; @@ -9127,17 +10635,17 @@ x_1 = lean_mk_string("attrInstance"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__11; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__13() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13() { _start: { lean_object* x_1; lean_object* x_2; @@ -9146,13 +10654,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__14() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_regTermParserAttribute___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__13; +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9160,7 +10668,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__15() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15() { _start: { lean_object* x_1; @@ -9168,39 +10676,39 @@ x_1 = lean_mk_string("def"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__15; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__17() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__15; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__17; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__19() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__19() { _start: { lean_object* x_1; @@ -9208,17 +10716,17 @@ x_1 = lean_mk_string("optDeclSig"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__19; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__19; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__21() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21() { _start: { lean_object* x_1; @@ -9226,22 +10734,22 @@ x_1 = lean_mk_string("Lean.ParserDescr"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__22() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__21; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__21; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__22; +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9249,31 +10757,31 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__24() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__25() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__24; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__24; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__26() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26() { _start: { lean_object* x_1; @@ -9281,17 +10789,17 @@ x_1 = lean_mk_string("declValSimple"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__26; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -9301,7 +10809,7 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29() { _start: { lean_object* x_1; @@ -9309,22 +10817,22 @@ x_1 = lean_mk_string("Lean.ParserDescr.node"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__30() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__31() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__30; +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9332,41 +10840,41 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__32() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__33() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__32; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__34() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__33; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__35() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35() { _start: { lean_object* x_1; lean_object* x_2; @@ -9375,18 +10883,18 @@ x_2 = l_Nat_repr(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__36() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_numLitKind; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__35; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35; x_3 = l_Lean_SourceInfo_inhabited___closed__1; x_4 = l_Lean_mkStxLit(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__37() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37() { _start: { lean_object* x_1; @@ -9394,22 +10902,22 @@ x_1 = lean_mk_string("Lean.ParserDescr.andthen"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__38() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__37; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__39() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__37; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__38; +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9417,31 +10925,31 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__40() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8; +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__41() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__40; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__42() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__42() { _start: { lean_object* x_1; @@ -9449,22 +10957,22 @@ x_1 = lean_mk_string("Lean.ParserDescr.symbol"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__43() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__43() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__42; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__42; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__44() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__42; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__42; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__43; +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__43; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9472,31 +10980,31 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__45() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__141; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__140; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__46() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__46() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__45; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__47() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47() { _start: { lean_object* x_1; @@ -9504,22 +11012,22 @@ x_1 = lean_mk_string("Lean.ParserDescr.cat"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__48() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__47; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__49() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__47; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__48; +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -9527,31 +11035,31 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__50() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_toParserDescrAux___main___closed__163; +x_2 = l_Lean_Elab_Term_toParserDescrAux___closed__162; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__51() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__50; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__52() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__52() { _start: { lean_object* x_1; @@ -9559,73 +11067,73 @@ x_1 = lean_mk_string("\")\""); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__53() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__53() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__52; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__52; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__54() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__53; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__53; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__55() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__55() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_strLitKind___closed__2; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__54; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__56() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__56() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__55; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__55; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__57() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__57() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_nullKind___closed__2; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__56; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__56; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_5 = l___private_Lean_Elab_Syntax_5__getCatSuffix(x_1); -x_6 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__1; +x_5 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix(x_1); +x_6 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); x_8 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__12; x_9 = lean_string_append(x_7, x_8); -x_10 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2; +x_10 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2; x_11 = l_Lean_Name_append___main(x_1, x_10); x_12 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_4); x_13 = lean_ctor_get(x_12, 0); @@ -9645,7 +11153,7 @@ lean_inc(x_16); x_19 = l_Lean_addMacroScope(x_16, x_18, x_13); x_20 = lean_box(0); x_21 = l_Lean_SourceInfo_inhabited___closed__1; -x_22 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__14; +x_22 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14; x_23 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -9655,7 +11163,7 @@ x_24 = l_Array_empty___closed__1; x_25 = lean_array_push(x_24, x_23); x_26 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; x_27 = lean_array_push(x_25, x_26); -x_28 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_28 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); @@ -9664,11 +11172,11 @@ x_31 = l_Lean_nullKind___closed__2; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_33 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_34 = lean_array_push(x_33, x_32); x_35 = l_Lean_Elab_Term_expandArrayLit___closed__9; x_36 = lean_array_push(x_34, x_35); -x_37 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_37 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -9682,21 +11190,21 @@ x_43 = lean_array_push(x_42, x_26); x_44 = lean_array_push(x_43, x_26); x_45 = lean_array_push(x_44, x_26); x_46 = lean_array_push(x_45, x_26); -x_47 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_47 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_48 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); x_49 = lean_array_push(x_24, x_48); lean_inc(x_11); x_50 = lean_mk_syntax_ident(x_11); -x_51 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_51 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_52 = lean_array_push(x_51, x_50); -x_53 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_53 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; lean_inc(x_13); lean_inc(x_16); x_54 = l_Lean_addMacroScope(x_16, x_53, x_13); -x_55 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23; -x_56 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__25; +x_55 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_56 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25; x_57 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_57, 0, x_21); lean_ctor_set(x_57, 1, x_55); @@ -9713,17 +11221,17 @@ x_63 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_63, 0, x_31); lean_ctor_set(x_63, 1, x_62); x_64 = lean_array_push(x_41, x_63); -x_65 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_65 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_66 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_66, 0, x_65); lean_ctor_set(x_66, 1, x_64); x_67 = lean_array_push(x_52, x_66); -x_68 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__32; +x_68 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32; lean_inc(x_13); lean_inc(x_16); x_69 = l_Lean_addMacroScope(x_16, x_68, x_13); -x_70 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__31; -x_71 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__34; +x_70 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31; +x_71 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34; x_72 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_72, 0, x_21); lean_ctor_set(x_72, 1, x_70); @@ -9732,26 +11240,26 @@ lean_ctor_set(x_72, 3, x_71); x_73 = lean_array_push(x_24, x_72); x_74 = l___private_Init_LeanInit_13__quoteName___main(x_11); x_75 = lean_array_push(x_24, x_74); -x_76 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__36; +x_76 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36; x_77 = lean_array_push(x_75, x_76); -x_78 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8; +x_78 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8; lean_inc(x_13); lean_inc(x_16); x_79 = l_Lean_addMacroScope(x_16, x_78, x_13); -x_80 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__39; -x_81 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__41; +x_80 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39; +x_81 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41; x_82 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_82, 0, x_21); lean_ctor_set(x_82, 1, x_80); lean_ctor_set(x_82, 2, x_79); lean_ctor_set(x_82, 3, x_81); x_83 = lean_array_push(x_24, x_82); -x_84 = l_Lean_Elab_Term_toParserDescrAux___main___closed__141; +x_84 = l_Lean_Elab_Term_toParserDescrAux___closed__140; lean_inc(x_13); lean_inc(x_16); x_85 = l_Lean_addMacroScope(x_16, x_84, x_13); -x_86 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__44; -x_87 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__46; +x_86 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44; +x_87 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__46; x_88 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_88, 0, x_21); lean_ctor_set(x_88, 1, x_86); @@ -9783,10 +11291,10 @@ x_104 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_104, 0, x_103); lean_ctor_set(x_104, 1, x_102); x_105 = lean_array_push(x_24, x_104); -x_106 = l_Lean_Elab_Term_toParserDescrAux___main___closed__163; +x_106 = l_Lean_Elab_Term_toParserDescrAux___closed__162; x_107 = l_Lean_addMacroScope(x_16, x_106, x_13); -x_108 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__49; -x_109 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__51; +x_108 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49; +x_109 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51; x_110 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_110, 0, x_21); lean_ctor_set(x_110, 1, x_108); @@ -9815,7 +11323,7 @@ x_124 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_124, 0, x_103); lean_ctor_set(x_124, 1, x_123); x_125 = lean_array_push(x_24, x_124); -x_126 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__57; +x_126 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__57; x_127 = lean_array_push(x_89, x_126); x_128 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_128, 0, x_94); @@ -9875,19 +11383,19 @@ x_157 = lean_array_push(x_73, x_156); x_158 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_158, 0, x_94); lean_ctor_set(x_158, 1, x_157); -x_159 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_159 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_160 = lean_array_push(x_159, x_158); -x_161 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_161 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_162 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_162, 0, x_161); lean_ctor_set(x_162, 1, x_160); x_163 = lean_array_push(x_67, x_162); -x_164 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_164 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_165 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_165, 0, x_164); lean_ctor_set(x_165, 1, x_163); x_166 = lean_array_push(x_49, x_165); -x_167 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_167 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_168 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_168, 0, x_167); lean_ctor_set(x_168, 1, x_166); @@ -9895,93 +11403,193 @@ x_169 = l_Lean_Elab_Command_elabCommand___main(x_168, x_2, x_3, x_17); return x_169; } } +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabDeclareSyntaxCat___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_st_ref_take(x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = !lean_is_exclusive(x_6); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 0); +lean_dec(x_9); +lean_ctor_set(x_6, 0, x_1); +x_10 = lean_st_ref_set(x_3, x_6, x_7); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_17 = lean_ctor_get(x_6, 1); +x_18 = lean_ctor_get(x_6, 2); +x_19 = lean_ctor_get(x_6, 3); +x_20 = lean_ctor_get(x_6, 4); +x_21 = lean_ctor_get(x_6, 5); +x_22 = lean_ctor_get(x_6, 6); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_6); +x_23 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_17); +lean_ctor_set(x_23, 2, x_18); +lean_ctor_set(x_23, 3, x_19); +lean_ctor_set(x_23, 4, x_20); +lean_ctor_set(x_23, 5, x_21); +lean_ctor_set(x_23, 6, x_22); +x_24 = lean_st_ref_set(x_3, x_23, x_7); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_26 = x_24; +} else { + lean_dec_ref(x_24); + x_26 = lean_box(0); +} +x_27 = lean_box(0); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +} lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getIdAt(x_1, x_5); -x_7 = l_Lean_mkAppStx___closed__3; -lean_inc(x_6); -x_8 = l_Lean_Name_appendAfter(x_6, x_7); -x_9 = lean_st_ref_get(x_3, x_4); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = l_Lean_Syntax_getId(x_6); +lean_dec(x_6); +x_8 = l_Lean_mkAppStx___closed__3; +lean_inc(x_7); +x_9 = l_Lean_Name_appendAfter(x_7, x_8); +x_10 = lean_st_ref_get(x_3, x_4); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_ctor_get(x_10, 0); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = 0; -lean_inc(x_6); -x_14 = l_Lean_Parser_registerParserCategory(x_12, x_8, x_6, x_13, x_11); -if (lean_obj_tag(x_14) == 0) +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 0; +lean_inc(x_7); +x_15 = l_Lean_Parser_registerParserCategory(x_13, x_9, x_7, x_14, x_12); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_setEnv___at_Lean_Elab_Command_elabInitQuot___spec__1(x_15, x_2, x_3, x_16); -x_18 = lean_ctor_get(x_17, 1); -lean_inc(x_18); -lean_dec(x_17); -x_19 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser(x_6, x_2, x_3, x_18); -return x_19; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_setEnv___at_Lean_Elab_Command_elabDeclareSyntaxCat___spec__1(x_16, x_2, x_3, x_17); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser(x_7, x_2, x_3, x_19); +return x_20; } else { -uint8_t x_20; -lean_dec(x_6); +uint8_t x_21; +lean_dec(x_7); lean_dec(x_3); -x_20 = !lean_is_exclusive(x_14); -if (x_20 == 0) +x_21 = !lean_is_exclusive(x_15); +if (x_21 == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_21 = lean_ctor_get(x_14, 0); -x_22 = lean_ctor_get(x_2, 6); -lean_inc(x_22); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_ctor_get(x_15, 0); +x_23 = lean_ctor_get(x_2, 6); +lean_inc(x_23); lean_dec(x_2); -x_23 = lean_io_error_to_string(x_21); -x_24 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_24, 0, x_23); -x_25 = lean_alloc_ctor(0, 1, 0); +x_24 = lean_io_error_to_string(x_22); +x_25 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_25, 0, x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_22); -lean_ctor_set(x_26, 1, x_25); -lean_ctor_set(x_14, 0, x_26); -return x_14; +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_26); +lean_ctor_set(x_15, 0, x_27); +return x_15; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_27 = lean_ctor_get(x_14, 0); -x_28 = lean_ctor_get(x_14, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_14); -x_29 = lean_ctor_get(x_2, 6); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_28 = lean_ctor_get(x_15, 0); +x_29 = lean_ctor_get(x_15, 1); lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_15); +x_30 = lean_ctor_get(x_2, 6); +lean_inc(x_30); lean_dec(x_2); -x_30 = lean_io_error_to_string(x_27); -x_31 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_31, 0, x_30); -x_32 = lean_alloc_ctor(0, 1, 0); +x_31 = lean_io_error_to_string(x_28); +x_32 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_32, 0, x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_29); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_28); -return x_34; +x_33 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_33, 0, x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_30); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_29); +return x_35; } } } } +lean_object* l_Lean_setEnv___at_Lean_Elab_Command_elabDeclareSyntaxCat___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_setEnv___at_Lean_Elab_Command_elabDeclareSyntaxCat___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_5; +} +} lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -10157,7 +11765,69 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__1() { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_5 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_ctor_get(x_2, 4); +lean_inc(x_8); +lean_inc(x_8); +x_9 = l_Lean_Elab_getBetterRef(x_6, x_8); +lean_dec(x_6); +x_10 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_1, x_2, x_3, x_7); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_Lean_AddErrorMessageContext___spec__1(x_11, x_8, x_2, x_3, x_12); +lean_dec(x_2); +lean_dec(x_8); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_15); +lean_ctor_set_tag(x_13, 1); +lean_ctor_set(x_13, 0, x_16); +return x_13; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_13, 0); +x_18 = lean_ctor_get(x_13, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_13); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_9); +lean_ctor_set(x_19, 1, x_17); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +return x_20; +} +} +} +lean_object* l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg___boxed), 4, 0); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__1() { _start: { lean_object* x_1; @@ -10165,17 +11835,17 @@ x_1 = lean_mk_string("parserKind"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__1; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__3() { _start: { lean_object* x_1; @@ -10183,17 +11853,17 @@ x_1 = lean_mk_string("parserPrio"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__3; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__5() { _start: { lean_object* x_1; @@ -10201,17 +11871,17 @@ x_1 = lean_mk_string("parserKindPrio"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__5; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__7() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__7() { _start: { lean_object* x_1; @@ -10219,27 +11889,27 @@ x_1 = lean_mk_string("unexpected syntax kind/priority"); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__8() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__7; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__9() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__8; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(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; @@ -10251,26 +11921,26 @@ x_7 = lean_unsigned_to_nat(1u); x_8 = l_Lean_Syntax_getArg(x_1, x_7); lean_inc(x_8); x_9 = l_Lean_Syntax_getKind(x_8); -x_10 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_10 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_11 = lean_name_eq(x_9, x_10); if (x_11 == 0) { lean_object* x_12; uint8_t x_13; -x_12 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__4; +x_12 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4; x_13 = lean_name_eq(x_9, x_12); if (x_13 == 0) { lean_object* x_14; uint8_t x_15; lean_dec(x_2); -x_14 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__6; +x_14 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__6; x_15 = lean_name_eq(x_9, x_14); lean_dec(x_9); if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_dec(x_8); -x_16 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__9; -x_17 = l_Lean_throwError___at___private_Lean_Elab_Command_3__elabCommandUsing___main___spec__1___rarg(x_16, x_3, x_4, x_5); +x_16 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__9; +x_17 = l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg(x_16, x_3, x_4, x_5); return x_17; } else @@ -10514,17 +12184,42 @@ return x_81; } } } -lean_object* l___private_Lean_Elab_Syntax_7__elabKindPrio___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Lean_Elab_Syntax_7__elabKindPrio(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_1); return x_6; } } -uint8_t l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax_match__1___rarg), 2, 0); +return x_2; +} +} +uint8_t l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -10540,13 +12235,13 @@ x_6 = lean_name_eq(x_2, x_5); if (x_6 == 0) { lean_object* x_7; uint8_t x_8; -x_7 = l_Lean_Elab_Term_toParserDescrAux___main___closed__1; +x_7 = l_Lean_Elab_Term_toParserDescrAux___closed__1; x_8 = lean_name_eq(x_2, x_7); if (x_8 == 0) { lean_object* x_9; uint8_t x_10; lean_dec(x_1); -x_9 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_9 = l_Lean_Elab_Term_toParserDescrAux___closed__2; x_10 = lean_name_eq(x_2, x_9); lean_dec(x_2); return x_10; @@ -10579,7 +12274,7 @@ lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_dec(x_2); x_17 = lean_unsigned_to_nat(0u); x_18 = l_Lean_Syntax_getArg(x_1, x_17); -x_19 = l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main(x_18); +x_19 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(x_18); if (x_19 == 0) { uint8_t x_20; @@ -10603,30 +12298,425 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main(x_1); +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_elabSyntax_match__1___rarg(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_2; -x_2 = l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main(x_1); +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabSyntax_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax_match__1___rarg), 2, 0); return x_2; } } -lean_object* l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___boxed(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_elabSyntax_match__2___rarg(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax(x_1); -x_3 = lean_box(x_2); -return x_3; +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabSyntax_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_replaceRef(x_1, x_7); +lean_dec(x_7); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_3, 6); +lean_dec(x_11); +lean_ctor_set(x_3, 6, x_9); +x_12 = l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg(x_2, x_3, x_4, x_8); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_ctor_get(x_3, 2); +x_16 = lean_ctor_get(x_3, 3); +x_17 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 5); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_3); +x_19 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +lean_ctor_set(x_19, 2, x_15); +lean_ctor_set(x_19, 3, x_16); +lean_ctor_set(x_19, 4, x_17); +lean_ctor_set(x_19, 5, x_18); +lean_ctor_set(x_19, 6, x_9); +x_20 = l_Lean_throwError___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___spec__1___rarg(x_2, x_19, x_4, x_8); +return x_20; +} +} +} +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg___boxed), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabSyntax___spec__4(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = l_Lean_Elab_Command_getRef(x_4, x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Lean_replaceRef(x_1, x_8); +lean_dec(x_8); +x_11 = l_Lean_Syntax_getPos(x_10); +lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_12 = lean_ctor_get(x_4, 0); +x_13 = lean_ctor_get(x_4, 1); +x_14 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_2, x_4, x_5, x_9); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Lean_FileMap_toPosition(x_13, x_17); +x_19 = lean_box(0); +x_20 = l_Lean_Elab_Command_getScope___rarg(x_5, x_16); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_21, 3); +lean_inc(x_23); +lean_dec(x_21); +x_24 = l_Lean_Elab_Command_getScope___rarg(x_5, x_22); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_25, 4); +lean_inc(x_27); +lean_dec(x_25); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_27); +x_29 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_15); +x_30 = l_String_splitAux___main___closed__1; +lean_inc(x_12); +x_31 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_31, 0, x_12); +lean_ctor_set(x_31, 1, x_18); +lean_ctor_set(x_31, 2, x_19); +lean_ctor_set(x_31, 3, x_30); +lean_ctor_set(x_31, 4, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*5, x_3); +x_32 = lean_st_ref_take(x_5, x_26); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = !lean_is_exclusive(x_33); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_33, 1); +x_37 = l_Std_PersistentArray_push___rarg(x_36, x_31); +lean_ctor_set(x_33, 1, x_37); +x_38 = lean_st_ref_set(x_5, x_33, x_34); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_38, 0); +lean_dec(x_40); +x_41 = lean_box(0); +lean_ctor_set(x_38, 0, x_41); +return x_38; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 1); +lean_inc(x_42); +lean_dec(x_38); +x_43 = lean_box(0); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_45 = lean_ctor_get(x_33, 0); +x_46 = lean_ctor_get(x_33, 1); +x_47 = lean_ctor_get(x_33, 2); +x_48 = lean_ctor_get(x_33, 3); +x_49 = lean_ctor_get(x_33, 4); +x_50 = lean_ctor_get(x_33, 5); +x_51 = lean_ctor_get(x_33, 6); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_33); +x_52 = l_Std_PersistentArray_push___rarg(x_46, x_31); +x_53 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_53, 0, x_45); +lean_ctor_set(x_53, 1, x_52); +lean_ctor_set(x_53, 2, x_47); +lean_ctor_set(x_53, 3, x_48); +lean_ctor_set(x_53, 4, x_49); +lean_ctor_set(x_53, 5, x_50); +lean_ctor_set(x_53, 6, x_51); +x_54 = lean_st_ref_set(x_5, x_53, x_34); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_56 = x_54; +} else { + lean_dec_ref(x_54); + x_56 = lean_box(0); +} +x_57 = lean_box(0); +if (lean_is_scalar(x_56)) { + x_58 = lean_alloc_ctor(0, 2, 0); +} else { + x_58 = x_56; +} +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_55); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_59 = lean_ctor_get(x_11, 0); +lean_inc(x_59); +lean_dec(x_11); +x_60 = lean_ctor_get(x_4, 0); +x_61 = lean_ctor_get(x_4, 1); +x_62 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_Lean_AddMessageContext___spec__1(x_2, x_4, x_5, x_9); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = l_Lean_FileMap_toPosition(x_61, x_59); +x_66 = lean_box(0); +x_67 = l_Lean_Elab_Command_getScope___rarg(x_5, x_64); +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 = lean_ctor_get(x_68, 3); +lean_inc(x_70); +lean_dec(x_68); +x_71 = l_Lean_Elab_Command_getScope___rarg(x_5, x_69); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_ctor_get(x_72, 4); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_70); +lean_ctor_set(x_75, 1, x_74); +x_76 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_63); +x_77 = l_String_splitAux___main___closed__1; +lean_inc(x_60); +x_78 = lean_alloc_ctor(0, 5, 1); +lean_ctor_set(x_78, 0, x_60); +lean_ctor_set(x_78, 1, x_65); +lean_ctor_set(x_78, 2, x_66); +lean_ctor_set(x_78, 3, x_77); +lean_ctor_set(x_78, 4, x_76); +lean_ctor_set_uint8(x_78, sizeof(void*)*5, x_3); +x_79 = lean_st_ref_take(x_5, x_73); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_82 = !lean_is_exclusive(x_80); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; +x_83 = lean_ctor_get(x_80, 1); +x_84 = l_Std_PersistentArray_push___rarg(x_83, x_78); +lean_ctor_set(x_80, 1, x_84); +x_85 = lean_st_ref_set(x_5, x_80, x_81); +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_85, 0); +lean_dec(x_87); +x_88 = lean_box(0); +lean_ctor_set(x_85, 0, x_88); +return x_85; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_85, 1); +lean_inc(x_89); +lean_dec(x_85); +x_90 = lean_box(0); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_89); +return x_91; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_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; +x_92 = lean_ctor_get(x_80, 0); +x_93 = lean_ctor_get(x_80, 1); +x_94 = lean_ctor_get(x_80, 2); +x_95 = lean_ctor_get(x_80, 3); +x_96 = lean_ctor_get(x_80, 4); +x_97 = lean_ctor_get(x_80, 5); +x_98 = lean_ctor_get(x_80, 6); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_80); +x_99 = l_Std_PersistentArray_push___rarg(x_93, x_78); +x_100 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_100, 0, x_92); +lean_ctor_set(x_100, 1, x_99); +lean_ctor_set(x_100, 2, x_94); +lean_ctor_set(x_100, 3, x_95); +lean_ctor_set(x_100, 4, x_96); +lean_ctor_set(x_100, 5, x_97); +lean_ctor_set(x_100, 6, x_98); +x_101 = lean_st_ref_set(x_5, x_100, x_81); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_103 = x_101; +} else { + lean_dec_ref(x_101); + x_103 = lean_box(0); +} +x_104 = lean_box(0); +if (lean_is_scalar(x_103)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_103; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_102); +return x_105; +} +} +} +} +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = l_Lean_Elab_Command_getRef(x_3, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Elab_logAt___at_Lean_Elab_Command_elabSyntax___spec__4(x_7, x_1, x_2, x_3, x_4, x_8); +lean_dec(x_7); +return x_9; +} +} +lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabSyntax___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; lean_object* x_8; +x_6 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +x_7 = 0; +x_8 = l_Lean_Elab_log___at_Lean_Elab_Command_elabSyntax___spec__3(x_6, x_7, x_3, x_4, x_5); +return x_8; } } lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { @@ -10644,28 +12734,48 @@ return x_13; static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__1() { _start: { +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_toParserDescrAux___closed__165; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_elabSyntax___closed__1; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__3() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_2 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__2() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSyntax___closed__1; +x_2 = l_Lean_Elab_Command_elabSyntax___closed__3; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__3() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__5() { _start: { lean_object* x_1; @@ -10673,22 +12783,22 @@ x_1 = lean_mk_string("ParserDescr.node"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__4() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSyntax___closed__3; +x_1 = l_Lean_Elab_Command_elabSyntax___closed__5; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__5() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_elabSyntax___closed__3; +x_1 = l_Lean_Elab_Command_elabSyntax___closed__5; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_elabSyntax___closed__4; +x_3 = l_Lean_Elab_Command_elabSyntax___closed__6; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10696,17 +12806,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__6() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__7() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__9() { _start: { lean_object* x_1; @@ -10714,22 +12824,22 @@ x_1 = lean_mk_string("Lean.TrailingParserDescr"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__8() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSyntax___closed__7; +x_1 = l_Lean_Elab_Command_elabSyntax___closed__9; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__9() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_elabSyntax___closed__7; +x_1 = l_Lean_Elab_Command_elabSyntax___closed__9; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_elabSyntax___closed__8; +x_3 = l_Lean_Elab_Command_elabSyntax___closed__10; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10737,7 +12847,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__10() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -10747,31 +12857,31 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__11() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSyntax___closed__10; +x_2 = l_Lean_Elab_Command_elabSyntax___closed__12; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__12() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSyntax___closed__11; +x_2 = l_Lean_Elab_Command_elabSyntax___closed__13; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__13() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__15() { _start: { lean_object* x_1; @@ -10779,22 +12889,22 @@ x_1 = lean_mk_string("ParserDescr.trailingNode"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__14() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabSyntax___closed__13; +x_1 = l_Lean_Elab_Command_elabSyntax___closed__15; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__15() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_elabSyntax___closed__13; +x_1 = l_Lean_Elab_Command_elabSyntax___closed__15; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_elabSyntax___closed__14; +x_3 = l_Lean_Elab_Command_elabSyntax___closed__16; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -10802,7 +12912,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__16() { +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__18() { _start: { lean_object* x_1; @@ -10810,35 +12920,13 @@ x_1 = lean_mk_string("trailingNode"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4; -x_2 = l_Lean_Elab_Command_elabSyntax___closed__16; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -x_2 = l_Lean_Elab_Command_elabSyntax___closed__16; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4; x_2 = l_Lean_Elab_Command_elabSyntax___closed__18; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -10846,8 +12934,30 @@ static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +x_2 = l_Lean_Elab_Command_elabSyntax___closed__18; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__21() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_elabSyntax___closed__19; +x_2 = l_Lean_Elab_Command_elabSyntax___closed__20; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Command_elabSyntax___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_elabSyntax___closed__21; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -10857,7 +12967,7 @@ return x_3; lean_object* l_Lean_Elab_Command_elabSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_301; +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; uint8_t x_13; x_5 = lean_st_ref_get(x_3, x_4); x_6 = lean_ctor_get(x_5, 0); lean_inc(x_6); @@ -10868,786 +12978,827 @@ x_8 = lean_ctor_get(x_6, 0); lean_inc(x_8); lean_dec(x_6); x_9 = lean_unsigned_to_nat(5u); -x_10 = l_Lean_Syntax_getIdAt(x_1, x_9); -x_11 = l_Lean_Name_eraseMacroScopes(x_10); -lean_dec(x_10); -x_301 = l_Lean_Parser_isParserCategory(x_8, x_11); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +x_11 = l_Lean_Syntax_getId(x_10); +x_12 = l_Lean_Name_eraseMacroScopes(x_11); +lean_dec(x_11); +x_13 = l_Lean_Parser_isParserCategory(x_8, x_12); lean_dec(x_8); -if (x_301 == 0) +if (x_13 == 0) { -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; -x_302 = l_Lean_Syntax_getArg(x_1, x_9); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_dec(x_1); -x_303 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_303, 0, x_11); -x_304 = l_Lean_Elab_Term_toParserDescrAux___main___closed__168; -x_305 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_305, 0, x_304); -lean_ctor_set(x_305, 1, x_303); -x_306 = l_Lean_throwUnknownConstant___rarg___closed__5; -x_307 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_307, 0, x_305); -lean_ctor_set(x_307, 1, x_306); -x_308 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(x_302, x_307, x_2, x_3, x_7); +x_14 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_14, 0, x_12); +x_15 = l_Lean_Elab_Command_elabSyntax___closed__2; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_18 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_10, x_18, x_2, x_3, x_7); lean_dec(x_3); -lean_dec(x_302); -x_309 = !lean_is_exclusive(x_308); -if (x_309 == 0) +lean_dec(x_10); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) { -return x_308; +return x_19; } else { -lean_object* x_310; lean_object* x_311; lean_object* x_312; -x_310 = lean_ctor_get(x_308, 0); -x_311 = lean_ctor_get(x_308, 1); -lean_inc(x_311); -lean_inc(x_310); -lean_dec(x_308); -x_312 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_312, 0, x_310); -lean_ctor_set(x_312, 1, x_311); -return x_312; +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_19); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } } else { -x_12 = x_7; -goto block_300; -} -block_300: -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_13 = lean_unsigned_to_nat(3u); -x_14 = l_Lean_Syntax_getArg(x_1, x_13); -lean_inc(x_14); -x_265 = l___private_Lean_Elab_Syntax_8__isAtomLikeSyntax___main(x_14); -x_266 = lean_unsigned_to_nat(1u); -x_267 = l_Lean_Syntax_getArg(x_1, x_266); -x_268 = l_Lean_Elab_Term_expandOptPrecedence(x_267); -lean_dec(x_267); -x_269 = lean_unsigned_to_nat(2u); -x_270 = l_Lean_Syntax_getArg(x_1, x_269); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t 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_dec(x_10); +x_24 = lean_unsigned_to_nat(3u); +x_25 = l_Lean_Syntax_getArg(x_1, x_24); +lean_inc(x_25); +x_276 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_isAtomLikeSyntax(x_25); +x_277 = lean_unsigned_to_nat(1u); +x_278 = l_Lean_Syntax_getArg(x_1, x_277); +x_279 = l_Lean_Elab_Term_expandOptPrecedence(x_278); +lean_dec(x_278); +x_280 = lean_unsigned_to_nat(2u); +x_281 = l_Lean_Syntax_getArg(x_1, x_280); lean_inc(x_2); -lean_inc(x_11); -x_271 = l___private_Lean_Elab_Syntax_7__elabKindPrio(x_270, x_11, x_2, x_3, x_12); -lean_dec(x_270); -if (x_265 == 0) +lean_inc(x_12); +x_282 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio(x_281, x_12, x_2, x_3, x_7); +lean_dec(x_281); +if (x_276 == 0) { -if (lean_obj_tag(x_268) == 0) +if (lean_obj_tag(x_279) == 0) { -if (lean_obj_tag(x_271) == 0) -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_272 = lean_ctor_get(x_271, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_271, 1); -lean_inc(x_273); -lean_dec(x_271); -x_274 = l_Lean_Parser_leadPrec; -x_15 = x_274; -x_16 = x_272; -x_17 = x_273; -goto block_264; -} -else -{ -uint8_t x_275; -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_275 = !lean_is_exclusive(x_271); -if (x_275 == 0) -{ -return x_271; -} -else -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_271, 0); -x_277 = lean_ctor_get(x_271, 1); -lean_inc(x_277); -lean_inc(x_276); -lean_dec(x_271); -x_278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -return x_278; -} -} -} -else -{ -if (lean_obj_tag(x_271) == 0) -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_279 = lean_ctor_get(x_268, 0); -lean_inc(x_279); -lean_dec(x_268); -x_280 = lean_ctor_get(x_271, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_271, 1); -lean_inc(x_281); -lean_dec(x_271); -x_15 = x_279; -x_16 = x_280; -x_17 = x_281; -goto block_264; -} -else -{ -uint8_t x_282; -lean_dec(x_268); -lean_dec(x_14); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_282 = !lean_is_exclusive(x_271); -if (x_282 == 0) -{ -return x_271; -} -else +if (lean_obj_tag(x_282) == 0) { lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_283 = lean_ctor_get(x_271, 0); -x_284 = lean_ctor_get(x_271, 1); -lean_inc(x_284); +x_283 = lean_ctor_get(x_282, 0); lean_inc(x_283); -lean_dec(x_271); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_283); -lean_ctor_set(x_285, 1, x_284); -return x_285; -} -} -} +x_284 = lean_ctor_get(x_282, 1); +lean_inc(x_284); +lean_dec(x_282); +x_285 = l_Lean_Parser_leadPrec; +x_26 = x_285; +x_27 = x_283; +x_28 = x_284; +goto block_275; } else { -if (lean_obj_tag(x_268) == 0) -{ -if (lean_obj_tag(x_271) == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; -x_286 = lean_ctor_get(x_271, 0); -lean_inc(x_286); -x_287 = lean_ctor_get(x_271, 1); -lean_inc(x_287); -lean_dec(x_271); -x_288 = l_Lean_Parser_maxPrec; -x_15 = x_288; -x_16 = x_286; -x_17 = x_287; -goto block_264; -} -else -{ -uint8_t x_289; -lean_dec(x_14); -lean_dec(x_11); +uint8_t x_286; +lean_dec(x_25); +lean_dec(x_12); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_289 = !lean_is_exclusive(x_271); -if (x_289 == 0) +x_286 = !lean_is_exclusive(x_282); +if (x_286 == 0) { -return x_271; +return x_282; } else { +lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get(x_282, 0); +x_288 = lean_ctor_get(x_282, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_282); +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +return x_289; +} +} +} +else +{ +if (lean_obj_tag(x_282) == 0) +{ lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_271, 0); -x_291 = lean_ctor_get(x_271, 1); -lean_inc(x_291); +x_290 = lean_ctor_get(x_279, 0); lean_inc(x_290); -lean_dec(x_271); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_291); -return x_292; -} -} +lean_dec(x_279); +x_291 = lean_ctor_get(x_282, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_282, 1); +lean_inc(x_292); +lean_dec(x_282); +x_26 = x_290; +x_27 = x_291; +x_28 = x_292; +goto block_275; } else { -if (lean_obj_tag(x_271) == 0) -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_293 = lean_ctor_get(x_268, 0); -lean_inc(x_293); -lean_dec(x_268); -x_294 = lean_ctor_get(x_271, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_271, 1); -lean_inc(x_295); -lean_dec(x_271); -x_15 = x_293; -x_16 = x_294; -x_17 = x_295; -goto block_264; -} -else -{ -uint8_t x_296; -lean_dec(x_268); -lean_dec(x_14); -lean_dec(x_11); +uint8_t x_293; +lean_dec(x_279); +lean_dec(x_25); +lean_dec(x_12); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_296 = !lean_is_exclusive(x_271); -if (x_296 == 0) +x_293 = !lean_is_exclusive(x_282); +if (x_293 == 0) { -return x_271; +return x_282; } else { +lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_282, 0); +x_295 = lean_ctor_get(x_282, 1); +lean_inc(x_295); +lean_inc(x_294); +lean_dec(x_282); +x_296 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set(x_296, 1, x_295); +return x_296; +} +} +} +} +else +{ +if (lean_obj_tag(x_279) == 0) +{ +if (lean_obj_tag(x_282) == 0) +{ lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_297 = lean_ctor_get(x_271, 0); -x_298 = lean_ctor_get(x_271, 1); -lean_inc(x_298); +x_297 = lean_ctor_get(x_282, 0); lean_inc(x_297); -lean_dec(x_271); -x_299 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_299, 0, x_297); -lean_ctor_set(x_299, 1, x_298); -return x_299; +x_298 = lean_ctor_get(x_282, 1); +lean_inc(x_298); +lean_dec(x_282); +x_299 = l_Lean_Parser_maxPrec; +x_26 = x_299; +x_27 = x_297; +x_28 = x_298; +goto block_275; } -} -} -} -block_264: +else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = l_Lean_mkAppStx___closed__3; -lean_inc(x_11); -x_21 = l_Lean_Name_appendAfter(x_11, x_20); -x_22 = l_Lean_mkIdentFrom(x_1, x_21); -x_23 = lean_box(0); -x_24 = lean_st_ref_get(x_3, x_17); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l___private_Lean_Elab_Command_4__getVarDecls(x_25); +uint8_t x_300; lean_dec(x_25); -x_28 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax___lambda__1___boxed), 10, 2); -lean_closure_set(x_28, 0, x_14); -lean_closure_set(x_28, 1, x_11); -x_29 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 9, 2); -lean_closure_set(x_29, 0, x_27); -lean_closure_set(x_29, 1, x_28); -lean_inc(x_2); -x_30 = l_Lean_Elab_Command_liftTermElabM___rarg(x_23, x_29, x_2, x_3, x_26); -if (lean_obj_tag(x_30) == 0) +lean_dec(x_12); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_300 = !lean_is_exclusive(x_282); +if (x_300 == 0) { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -x_33 = lean_unbox(x_32); -lean_dec(x_32); -if (x_33 == 0) +return x_282; +} +else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_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; uint8_t x_143; -x_34 = lean_ctor_get(x_30, 1); -lean_inc(x_34); -lean_dec(x_30); -x_35 = lean_ctor_get(x_31, 0); -lean_inc(x_35); -lean_dec(x_31); -x_36 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_34); -x_37 = lean_ctor_get(x_36, 0); +lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_301 = lean_ctor_get(x_282, 0); +x_302 = lean_ctor_get(x_282, 1); +lean_inc(x_302); +lean_inc(x_301); +lean_dec(x_282); +x_303 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_303, 0, x_301); +lean_ctor_set(x_303, 1, x_302); +return x_303; +} +} +} +else +{ +if (lean_obj_tag(x_282) == 0) +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_279, 0); +lean_inc(x_304); +lean_dec(x_279); +x_305 = lean_ctor_get(x_282, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_282, 1); +lean_inc(x_306); +lean_dec(x_282); +x_26 = x_304; +x_27 = x_305; +x_28 = x_306; +goto block_275; +} +else +{ +uint8_t x_307; +lean_dec(x_279); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_307 = !lean_is_exclusive(x_282); +if (x_307 == 0) +{ +return x_282; +} +else +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_308 = lean_ctor_get(x_282, 0); +x_309 = lean_ctor_get(x_282, 1); +lean_inc(x_309); +lean_inc(x_308); +lean_dec(x_282); +x_310 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_310, 0, x_308); +lean_ctor_set(x_310, 1, x_309); +return x_310; +} +} +} +} +block_275: +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = l_Lean_mkAppStx___closed__3; +lean_inc(x_12); +x_32 = l_Lean_Name_appendAfter(x_12, x_31); +x_33 = l_Lean_mkIdentFrom(x_1, x_32); +x_34 = lean_box(0); +x_35 = lean_st_ref_get(x_3, x_28); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); +lean_dec(x_35); +x_38 = l___private_Lean_Elab_Command_4__getVarDecls(x_36); lean_dec(x_36); -x_39 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_38); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = l_Array_empty___closed__1; -x_43 = lean_array_push(x_42, x_22); -x_44 = l_Nat_repr(x_19); -x_45 = l_Lean_numLitKind; -x_46 = l_Lean_SourceInfo_inhabited___closed__1; -x_47 = l_Lean_mkStxLit(x_45, x_44, x_46); -x_48 = lean_array_push(x_42, x_47); -x_49 = l_Lean_nullKind___closed__2; -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -x_51 = lean_array_push(x_43, x_50); -x_52 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -x_54 = lean_array_push(x_42, x_53); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_49); -lean_ctor_set(x_55, 1, x_54); -x_56 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; -x_57 = lean_array_push(x_56, x_55); -x_58 = l_Lean_Elab_Term_expandArrayLit___closed__9; -x_59 = lean_array_push(x_57, x_58); -x_60 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_39 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntax___lambda__1___boxed), 10, 2); +lean_closure_set(x_39, 0, x_25); +lean_closure_set(x_39, 1, x_12); +x_40 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 9, 2); +lean_closure_set(x_40, 0, x_38); +lean_closure_set(x_40, 1, x_39); +lean_inc(x_2); +x_41 = l_Lean_Elab_Command_liftTermElabM___rarg(x_34, x_40, x_2, x_3, x_37); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +x_44 = lean_unbox(x_43); +lean_dec(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_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; uint8_t x_154; +x_45 = lean_ctor_get(x_41, 1); +lean_inc(x_45); +lean_dec(x_41); +x_46 = lean_ctor_get(x_42, 0); +lean_inc(x_46); +lean_dec(x_42); +x_47 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_45); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +x_50 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_49); +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_Array_empty___closed__1; +x_54 = lean_array_push(x_53, x_33); +x_55 = l_Nat_repr(x_30); +x_56 = l_Lean_numLitKind; +x_57 = l_Lean_SourceInfo_inhabited___closed__1; +x_58 = l_Lean_mkStxLit(x_56, x_55, x_57); +x_59 = lean_array_push(x_53, x_58); +x_60 = l_Lean_nullKind___closed__2; x_61 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_61, 0, x_60); lean_ctor_set(x_61, 1, x_59); -x_62 = lean_array_push(x_42, x_61); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_49); -lean_ctor_set(x_63, 1, x_62); -x_64 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__7; -x_65 = lean_array_push(x_64, x_63); -x_66 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; -x_67 = lean_array_push(x_65, x_66); +x_62 = lean_array_push(x_54, x_61); +x_63 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +x_65 = lean_array_push(x_53, x_64); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_60); +lean_ctor_set(x_66, 1, x_65); +x_67 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_68 = lean_array_push(x_67, x_66); -x_69 = lean_array_push(x_68, x_66); -x_70 = lean_array_push(x_69, x_66); -x_71 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_69 = l_Lean_Elab_Term_expandArrayLit___closed__9; +x_70 = lean_array_push(x_68, x_69); +x_71 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_72 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); -x_73 = lean_array_push(x_42, x_72); -lean_inc(x_18); -x_74 = l_Lean_mkIdentFrom(x_1, x_18); -x_75 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_73 = lean_array_push(x_53, x_72); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_60); +lean_ctor_set(x_74, 1, x_73); +x_75 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__7; x_76 = lean_array_push(x_75, x_74); -x_77 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; -lean_inc(x_37); -lean_inc(x_40); -x_78 = l_Lean_addMacroScope(x_40, x_77, x_37); -x_79 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23; -x_80 = l_Lean_Elab_Command_elabSyntax___closed__2; -x_81 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_81, 0, x_46); -lean_ctor_set(x_81, 1, x_79); -lean_ctor_set(x_81, 2, x_78); -lean_ctor_set(x_81, 3, x_80); -x_82 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -x_83 = lean_array_push(x_82, x_81); -x_84 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; -x_85 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_83); -x_86 = lean_array_push(x_42, x_85); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_49); -lean_ctor_set(x_87, 1, x_86); -x_88 = lean_array_push(x_64, x_87); -x_89 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_88); -x_91 = lean_array_push(x_76, x_90); -x_92 = l_Lean_Elab_Command_elabSyntax___closed__6; -x_93 = l_Lean_addMacroScope(x_40, x_92, x_37); -x_94 = l_Lean_Elab_Command_elabSyntax___closed__5; -x_95 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__34; -x_96 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_96, 0, x_46); +x_77 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; +x_78 = lean_array_push(x_76, x_77); +x_79 = lean_array_push(x_78, x_77); +x_80 = lean_array_push(x_79, x_77); +x_81 = lean_array_push(x_80, x_77); +x_82 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_81); +x_84 = lean_array_push(x_53, x_83); +lean_inc(x_29); +x_85 = l_Lean_mkIdentFrom(x_1, x_29); +x_86 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; +x_87 = lean_array_push(x_86, x_85); +x_88 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; +lean_inc(x_48); +lean_inc(x_51); +x_89 = l_Lean_addMacroScope(x_51, x_88, x_48); +x_90 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_91 = l_Lean_Elab_Command_elabSyntax___closed__4; +x_92 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_92, 0, x_57); +lean_ctor_set(x_92, 1, x_90); +lean_ctor_set(x_92, 2, x_89); +lean_ctor_set(x_92, 3, x_91); +x_93 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +x_94 = lean_array_push(x_93, x_92); +x_95 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); -lean_ctor_set(x_96, 2, x_93); -lean_ctor_set(x_96, 3, x_95); -x_97 = lean_array_push(x_42, x_96); -x_98 = l___private_Init_LeanInit_13__quoteName___main(x_18); -x_99 = lean_array_push(x_42, x_98); -x_100 = l_Nat_repr(x_15); -x_101 = l_Lean_mkStxLit(x_45, x_100, x_46); -x_102 = lean_array_push(x_99, x_101); -x_103 = lean_array_push(x_102, x_35); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_49); -lean_ctor_set(x_104, 1, x_103); -x_105 = lean_array_push(x_97, x_104); -x_106 = l_Lean_mkAppStx___closed__8; -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_106); +x_97 = lean_array_push(x_53, x_96); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_60); +lean_ctor_set(x_98, 1, x_97); +x_99 = lean_array_push(x_75, x_98); +x_100 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +x_102 = lean_array_push(x_87, x_101); +x_103 = l_Lean_Elab_Command_elabSyntax___closed__8; +x_104 = l_Lean_addMacroScope(x_51, x_103, x_48); +x_105 = l_Lean_Elab_Command_elabSyntax___closed__7; +x_106 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34; +x_107 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_107, 0, x_57); lean_ctor_set(x_107, 1, x_105); -x_108 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; -x_109 = lean_array_push(x_108, x_107); -x_110 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_109); -x_112 = lean_array_push(x_91, x_111); -x_113 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -x_115 = lean_array_push(x_73, x_114); -x_116 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_115); -x_136 = lean_st_ref_get(x_3, x_41); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -x_139 = lean_ctor_get(x_137, 2); -lean_inc(x_139); -lean_dec(x_137); -x_140 = l_List_head_x21___at_Lean_Elab_Command_Lean_MonadOptions___spec__1(x_139); -lean_dec(x_139); -x_141 = lean_ctor_get(x_140, 2); -lean_inc(x_141); -lean_dec(x_140); -x_142 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -x_143 = l_Lean_checkTraceOption(x_141, x_142); -lean_dec(x_141); -if (x_143 == 0) -{ -x_118 = x_138; -goto block_135; -} -else -{ -lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_inc(x_117); -x_144 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_144, 0, x_117); -x_145 = l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___main___spec__9(x_142, x_144, x_2, x_3, x_138); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -lean_dec(x_145); -x_118 = x_146; -goto block_135; -} -block_135: -{ -uint8_t x_119; -x_119 = !lean_is_exclusive(x_2); -if (x_119 == 0) -{ -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = lean_ctor_get(x_2, 4); -lean_inc(x_117); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_1); -lean_ctor_set(x_121, 1, x_117); +lean_ctor_set(x_107, 2, x_104); +lean_ctor_set(x_107, 3, x_106); +x_108 = lean_array_push(x_53, x_107); +x_109 = l___private_Init_LeanInit_13__quoteName___main(x_29); +x_110 = lean_array_push(x_53, x_109); +x_111 = l_Nat_repr(x_26); +x_112 = l_Lean_mkStxLit(x_56, x_111, x_57); +x_113 = lean_array_push(x_110, x_112); +x_114 = lean_array_push(x_113, x_46); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_60); +lean_ctor_set(x_115, 1, x_114); +x_116 = lean_array_push(x_108, x_115); +x_117 = l_Lean_mkAppStx___closed__8; +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; +x_120 = lean_array_push(x_119, x_118); +x_121 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_122 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_122, 0, x_121); lean_ctor_set(x_122, 1, x_120); -lean_ctor_set(x_2, 4, x_122); -x_123 = l_Lean_Elab_Command_elabCommand___main(x_117, x_2, x_3, x_118); -return x_123; +x_123 = lean_array_push(x_102, x_122); +x_124 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_123); +x_126 = lean_array_push(x_84, x_125); +x_127 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +x_147 = lean_st_ref_get(x_3, x_52); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec(x_147); +x_150 = lean_ctor_get(x_148, 2); +lean_inc(x_150); +lean_dec(x_148); +x_151 = l_List_head_x21___at_Lean_Elab_Command_Lean_MonadOptions___spec__1(x_150); +lean_dec(x_150); +x_152 = lean_ctor_get(x_151, 2); +lean_inc(x_152); +lean_dec(x_151); +x_153 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; +x_154 = l_Lean_checkTraceOption(x_152, x_153); +lean_dec(x_152); +if (x_154 == 0) +{ +x_129 = x_149; +goto block_146; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_124 = lean_ctor_get(x_2, 0); -x_125 = lean_ctor_get(x_2, 1); -x_126 = lean_ctor_get(x_2, 2); -x_127 = lean_ctor_get(x_2, 3); -x_128 = lean_ctor_get(x_2, 4); -x_129 = lean_ctor_get(x_2, 5); -x_130 = lean_ctor_get(x_2, 6); -lean_inc(x_130); -lean_inc(x_129); +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_inc(x_128); -lean_inc(x_127); -lean_inc(x_126); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_2); -lean_inc(x_117); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_1); -lean_ctor_set(x_131, 1, x_117); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_131); +x_155 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_155, 0, x_128); +x_156 = l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabSyntax___spec__2(x_153, x_155, x_2, x_3, x_149); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +lean_dec(x_156); +x_129 = x_157; +goto block_146; +} +block_146: +{ +uint8_t x_130; +x_130 = !lean_is_exclusive(x_2); +if (x_130 == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_2, 4); +lean_inc(x_128); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_1); lean_ctor_set(x_132, 1, x_128); -x_133 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_133, 0, x_124); -lean_ctor_set(x_133, 1, x_125); -lean_ctor_set(x_133, 2, x_126); -lean_ctor_set(x_133, 3, x_127); -lean_ctor_set(x_133, 4, x_132); -lean_ctor_set(x_133, 5, x_129); -lean_ctor_set(x_133, 6, x_130); -x_134 = l_Lean_Elab_Command_elabCommand___main(x_117, x_133, x_3, x_118); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_131); +lean_ctor_set(x_2, 4, x_133); +x_134 = l_Lean_Elab_Command_elabCommand___main(x_128, x_2, x_3, x_129); return x_134; } +else +{ +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_135 = lean_ctor_get(x_2, 0); +x_136 = lean_ctor_get(x_2, 1); +x_137 = lean_ctor_get(x_2, 2); +x_138 = lean_ctor_get(x_2, 3); +x_139 = lean_ctor_get(x_2, 4); +x_140 = lean_ctor_get(x_2, 5); +x_141 = lean_ctor_get(x_2, 6); +lean_inc(x_141); +lean_inc(x_140); +lean_inc(x_139); +lean_inc(x_138); +lean_inc(x_137); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_2); +lean_inc(x_128); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_1); +lean_ctor_set(x_142, 1, x_128); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_139); +x_144 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_144, 0, x_135); +lean_ctor_set(x_144, 1, x_136); +lean_ctor_set(x_144, 2, x_137); +lean_ctor_set(x_144, 3, x_138); +lean_ctor_set(x_144, 4, x_143); +lean_ctor_set(x_144, 5, x_140); +lean_ctor_set(x_144, 6, x_141); +x_145 = l_Lean_Elab_Command_elabCommand___main(x_128, x_144, x_3, x_129); +return x_145; +} } } else { -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; 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; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_147 = lean_ctor_get(x_30, 1); -lean_inc(x_147); -lean_dec(x_30); -x_148 = lean_ctor_get(x_31, 0); -lean_inc(x_148); -lean_dec(x_31); -x_149 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_147); -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_152 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_151); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec(x_152); -x_155 = l_Array_empty___closed__1; -x_156 = lean_array_push(x_155, x_22); -x_157 = l_Nat_repr(x_19); -x_158 = l_Lean_numLitKind; -x_159 = l_Lean_SourceInfo_inhabited___closed__1; -x_160 = l_Lean_mkStxLit(x_158, x_157, x_159); -x_161 = lean_array_push(x_155, x_160); -x_162 = l_Lean_nullKind___closed__2; -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_162); -lean_ctor_set(x_163, 1, x_161); -x_164 = lean_array_push(x_156, x_163); -x_165 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_164); -x_167 = lean_array_push(x_155, x_166); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_162); -lean_ctor_set(x_168, 1, x_167); -x_169 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; -x_170 = lean_array_push(x_169, x_168); -x_171 = l_Lean_Elab_Term_expandArrayLit___closed__9; -x_172 = lean_array_push(x_170, x_171); -x_173 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; uint8_t x_267; +x_158 = lean_ctor_get(x_41, 1); +lean_inc(x_158); +lean_dec(x_41); +x_159 = lean_ctor_get(x_42, 0); +lean_inc(x_159); +lean_dec(x_42); +x_160 = l_Lean_Elab_Command_getCurrMacroScope(x_2, x_3, x_158); +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +x_163 = l_Lean_Elab_Command_getMainModule___rarg(x_3, x_162); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = l_Array_empty___closed__1; +x_167 = lean_array_push(x_166, x_33); +x_168 = l_Nat_repr(x_30); +x_169 = l_Lean_numLitKind; +x_170 = l_Lean_SourceInfo_inhabited___closed__1; +x_171 = l_Lean_mkStxLit(x_169, x_168, x_170); +x_172 = lean_array_push(x_166, x_171); +x_173 = l_Lean_nullKind___closed__2; x_174 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_174, 0, x_173); lean_ctor_set(x_174, 1, x_172); -x_175 = lean_array_push(x_155, x_174); -x_176 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_176, 0, x_162); -lean_ctor_set(x_176, 1, x_175); -x_177 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__7; -x_178 = lean_array_push(x_177, x_176); -x_179 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; -x_180 = lean_array_push(x_178, x_179); +x_175 = lean_array_push(x_167, x_174); +x_176 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; +x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_175); +x_178 = lean_array_push(x_166, x_177); +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_173); +lean_ctor_set(x_179, 1, x_178); +x_180 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_181 = lean_array_push(x_180, x_179); -x_182 = lean_array_push(x_181, x_179); -x_183 = lean_array_push(x_182, x_179); -x_184 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_182 = l_Lean_Elab_Term_expandArrayLit___closed__9; +x_183 = lean_array_push(x_181, x_182); +x_184 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_185 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_185, 0, x_184); lean_ctor_set(x_185, 1, x_183); -x_186 = lean_array_push(x_155, x_185); -lean_inc(x_18); -x_187 = l_Lean_mkIdentFrom(x_1, x_18); -x_188 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_186 = lean_array_push(x_166, x_185); +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_173); +lean_ctor_set(x_187, 1, x_186); +x_188 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__7; x_189 = lean_array_push(x_188, x_187); -x_190 = l_Lean_Elab_Command_elabSyntax___closed__10; -lean_inc(x_150); -lean_inc(x_153); -x_191 = l_Lean_addMacroScope(x_153, x_190, x_150); -x_192 = l_Lean_Elab_Command_elabSyntax___closed__9; -x_193 = l_Lean_Elab_Command_elabSyntax___closed__12; -x_194 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_194, 0, x_159); -lean_ctor_set(x_194, 1, x_192); -lean_ctor_set(x_194, 2, x_191); -lean_ctor_set(x_194, 3, x_193); -x_195 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -x_196 = lean_array_push(x_195, x_194); -x_197 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -x_199 = lean_array_push(x_155, x_198); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_162); -lean_ctor_set(x_200, 1, x_199); -x_201 = lean_array_push(x_177, x_200); -x_202 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; -x_203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -x_204 = lean_array_push(x_189, x_203); -x_205 = l_Lean_Elab_Command_elabSyntax___closed__17; -x_206 = l_Lean_addMacroScope(x_153, x_205, x_150); -x_207 = l_Lean_Elab_Command_elabSyntax___closed__15; -x_208 = l_Lean_Elab_Command_elabSyntax___closed__20; -x_209 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_209, 0, x_159); +x_190 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__5; +x_191 = lean_array_push(x_189, x_190); +x_192 = lean_array_push(x_191, x_190); +x_193 = lean_array_push(x_192, x_190); +x_194 = lean_array_push(x_193, x_190); +x_195 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_194); +x_197 = lean_array_push(x_166, x_196); +lean_inc(x_29); +x_198 = l_Lean_mkIdentFrom(x_1, x_29); +x_199 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; +x_200 = lean_array_push(x_199, x_198); +x_201 = l_Lean_Elab_Command_elabSyntax___closed__12; +lean_inc(x_161); +lean_inc(x_164); +x_202 = l_Lean_addMacroScope(x_164, x_201, x_161); +x_203 = l_Lean_Elab_Command_elabSyntax___closed__11; +x_204 = l_Lean_Elab_Command_elabSyntax___closed__14; +x_205 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_205, 0, x_170); +lean_ctor_set(x_205, 1, x_203); +lean_ctor_set(x_205, 2, x_202); +lean_ctor_set(x_205, 3, x_204); +x_206 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +x_207 = lean_array_push(x_206, x_205); +x_208 = l_Lean_Elab_Term_elabLetDeclCore___closed__6; +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_208); lean_ctor_set(x_209, 1, x_207); -lean_ctor_set(x_209, 2, x_206); -lean_ctor_set(x_209, 3, x_208); -x_210 = lean_array_push(x_155, x_209); -x_211 = l___private_Init_LeanInit_13__quoteName___main(x_18); -x_212 = lean_array_push(x_155, x_211); -x_213 = l_Nat_repr(x_15); -x_214 = l_Lean_mkStxLit(x_158, x_213, x_159); -x_215 = lean_array_push(x_212, x_214); -x_216 = lean_array_push(x_215, x_148); -x_217 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_217, 0, x_162); -lean_ctor_set(x_217, 1, x_216); -x_218 = lean_array_push(x_210, x_217); -x_219 = l_Lean_mkAppStx___closed__8; -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_219); +x_210 = lean_array_push(x_166, x_209); +x_211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_211, 0, x_173); +lean_ctor_set(x_211, 1, x_210); +x_212 = lean_array_push(x_188, x_211); +x_213 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_212); +x_215 = lean_array_push(x_200, x_214); +x_216 = l_Lean_Elab_Command_elabSyntax___closed__19; +x_217 = l_Lean_addMacroScope(x_164, x_216, x_161); +x_218 = l_Lean_Elab_Command_elabSyntax___closed__17; +x_219 = l_Lean_Elab_Command_elabSyntax___closed__22; +x_220 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_220, 0, x_170); lean_ctor_set(x_220, 1, x_218); -x_221 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; -x_222 = lean_array_push(x_221, x_220); -x_223 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_222); -x_225 = lean_array_push(x_204, x_224); -x_226 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; -x_227 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_225); -x_228 = lean_array_push(x_186, x_227); -x_229 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; -x_230 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_228); -x_249 = lean_st_ref_get(x_3, x_154); -x_250 = lean_ctor_get(x_249, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -lean_dec(x_249); -x_252 = lean_ctor_get(x_250, 2); -lean_inc(x_252); -lean_dec(x_250); -x_253 = l_List_head_x21___at_Lean_Elab_Command_Lean_MonadOptions___spec__1(x_252); -lean_dec(x_252); -x_254 = lean_ctor_get(x_253, 2); -lean_inc(x_254); -lean_dec(x_253); -x_255 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; -x_256 = l_Lean_checkTraceOption(x_254, x_255); -lean_dec(x_254); -if (x_256 == 0) -{ -x_231 = x_251; -goto block_248; -} -else -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; -lean_inc(x_230); -x_257 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_257, 0, x_230); -x_258 = l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabCommand___main___spec__9(x_255, x_257, x_2, x_3, x_251); -x_259 = lean_ctor_get(x_258, 1); -lean_inc(x_259); -lean_dec(x_258); -x_231 = x_259; -goto block_248; -} -block_248: -{ -uint8_t x_232; -x_232 = !lean_is_exclusive(x_2); -if (x_232 == 0) -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_233 = lean_ctor_get(x_2, 4); -lean_inc(x_230); -x_234 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_234, 0, x_1); -lean_ctor_set(x_234, 1, x_230); +lean_ctor_set(x_220, 2, x_217); +lean_ctor_set(x_220, 3, x_219); +x_221 = lean_array_push(x_166, x_220); +x_222 = l___private_Init_LeanInit_13__quoteName___main(x_29); +x_223 = lean_array_push(x_166, x_222); +x_224 = l_Nat_repr(x_26); +x_225 = l_Lean_mkStxLit(x_169, x_224, x_170); +x_226 = lean_array_push(x_223, x_225); +x_227 = lean_array_push(x_226, x_159); +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_173); +lean_ctor_set(x_228, 1, x_227); +x_229 = lean_array_push(x_221, x_228); +x_230 = l_Lean_mkAppStx___closed__8; +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_229); +x_232 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; +x_233 = lean_array_push(x_232, x_231); +x_234 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_235 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_235, 0, x_234); lean_ctor_set(x_235, 1, x_233); -lean_ctor_set(x_2, 4, x_235); -x_236 = l_Lean_Elab_Command_elabCommand___main(x_230, x_2, x_3, x_231); -return x_236; +x_236 = lean_array_push(x_215, x_235); +x_237 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_236); +x_239 = lean_array_push(x_197, x_238); +x_240 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_239); +x_260 = lean_st_ref_get(x_3, x_165); +x_261 = lean_ctor_get(x_260, 0); +lean_inc(x_261); +x_262 = lean_ctor_get(x_260, 1); +lean_inc(x_262); +lean_dec(x_260); +x_263 = lean_ctor_get(x_261, 2); +lean_inc(x_263); +lean_dec(x_261); +x_264 = l_List_head_x21___at_Lean_Elab_Command_Lean_MonadOptions___spec__1(x_263); +lean_dec(x_263); +x_265 = lean_ctor_get(x_264, 2); +lean_inc(x_265); +lean_dec(x_264); +x_266 = l_Lean_Elab_initFn____x40_Lean_Elab_Util___hyg_907____closed__1; +x_267 = l_Lean_checkTraceOption(x_265, x_266); +lean_dec(x_265); +if (x_267 == 0) +{ +x_242 = x_262; +goto block_259; } else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; -x_237 = lean_ctor_get(x_2, 0); -x_238 = lean_ctor_get(x_2, 1); -x_239 = lean_ctor_get(x_2, 2); -x_240 = lean_ctor_get(x_2, 3); -x_241 = lean_ctor_get(x_2, 4); -x_242 = lean_ctor_get(x_2, 5); -x_243 = lean_ctor_get(x_2, 6); -lean_inc(x_243); -lean_inc(x_242); +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_inc(x_241); -lean_inc(x_240); -lean_inc(x_239); -lean_inc(x_238); -lean_inc(x_237); -lean_dec(x_2); -lean_inc(x_230); -x_244 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_244, 0, x_1); -lean_ctor_set(x_244, 1, x_230); -x_245 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_245, 0, x_244); +x_268 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_268, 0, x_241); +x_269 = l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabSyntax___spec__2(x_266, x_268, x_2, x_3, x_262); +x_270 = lean_ctor_get(x_269, 1); +lean_inc(x_270); +lean_dec(x_269); +x_242 = x_270; +goto block_259; +} +block_259: +{ +uint8_t x_243; +x_243 = !lean_is_exclusive(x_2); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_244 = lean_ctor_get(x_2, 4); +lean_inc(x_241); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_1); lean_ctor_set(x_245, 1, x_241); -x_246 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_246, 0, x_237); -lean_ctor_set(x_246, 1, x_238); -lean_ctor_set(x_246, 2, x_239); -lean_ctor_set(x_246, 3, x_240); -lean_ctor_set(x_246, 4, x_245); -lean_ctor_set(x_246, 5, x_242); -lean_ctor_set(x_246, 6, x_243); -x_247 = l_Lean_Elab_Command_elabCommand___main(x_230, x_246, x_3, x_231); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_244); +lean_ctor_set(x_2, 4, x_246); +x_247 = l_Lean_Elab_Command_elabCommand___main(x_241, x_2, x_3, x_242); return x_247; } +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_248 = lean_ctor_get(x_2, 0); +x_249 = lean_ctor_get(x_2, 1); +x_250 = lean_ctor_get(x_2, 2); +x_251 = lean_ctor_get(x_2, 3); +x_252 = lean_ctor_get(x_2, 4); +x_253 = lean_ctor_get(x_2, 5); +x_254 = lean_ctor_get(x_2, 6); +lean_inc(x_254); +lean_inc(x_253); +lean_inc(x_252); +lean_inc(x_251); +lean_inc(x_250); +lean_inc(x_249); +lean_inc(x_248); +lean_dec(x_2); +lean_inc(x_241); +x_255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_255, 0, x_1); +lean_ctor_set(x_255, 1, x_241); +x_256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_252); +x_257 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_257, 0, x_248); +lean_ctor_set(x_257, 1, x_249); +lean_ctor_set(x_257, 2, x_250); +lean_ctor_set(x_257, 3, x_251); +lean_ctor_set(x_257, 4, x_256); +lean_ctor_set(x_257, 5, x_253); +lean_ctor_set(x_257, 6, x_254); +x_258 = l_Lean_Elab_Command_elabCommand___main(x_241, x_257, x_3, x_242); +return x_258; +} } } } else { -uint8_t x_260; -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_15); +uint8_t x_271; +lean_dec(x_33); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_26); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_260 = !lean_is_exclusive(x_30); -if (x_260 == 0) +x_271 = !lean_is_exclusive(x_41); +if (x_271 == 0) { -return x_30; +return x_41; } else { -lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_261 = lean_ctor_get(x_30, 0); -x_262 = lean_ctor_get(x_30, 1); -lean_inc(x_262); -lean_inc(x_261); -lean_dec(x_30); -x_263 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_263, 0, x_261); -lean_ctor_set(x_263, 1, x_262); -return x_263; +lean_object* x_272; lean_object* x_273; lean_object* x_274; +x_272 = lean_ctor_get(x_41, 0); +x_273 = lean_ctor_get(x_41, 1); +lean_inc(x_273); +lean_inc(x_272); +lean_dec(x_41); +x_274 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_274, 0, x_272); +lean_ctor_set(x_274, 1, x_273); +return x_274; } } } } } } +lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabSyntax___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) { +_start: +{ +uint8_t x_7; lean_object* x_8; +x_7 = lean_unbox(x_3); +lean_dec(x_3); +x_8 = l_Lean_Elab_logAt___at_Lean_Elab_Command_elabSyntax___spec__4(x_1, x_2, x_7, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_8; +} +} +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabSyntax___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Elab_log___at_Lean_Elab_Command_elabSyntax___spec__3(x_1, x_6, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabSyntax___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Elab_logTrace___at_Lean_Elab_Command_elabSyntax___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_6; +} +} lean_object* l_Lean_Elab_Command_elabSyntax___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -11686,6 +13837,27 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev_match__1___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabSyntaxAbbrev_match__1___rarg), 2, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Command_elabSyntaxAbbrev___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -11755,7 +13927,7 @@ static lean_object* _init_l_Lean_Elab_Command_elabSyntaxAbbrev___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_2 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__5; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -11819,13 +13991,13 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); lean_dec(x_21); -x_24 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_24 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_25 = lean_array_push(x_24, x_6); -x_26 = l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7; +x_26 = l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7; x_27 = l_Lean_addMacroScope(x_22, x_26, x_19); x_28 = l_Lean_SourceInfo_inhabited___closed__1; -x_29 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23; -x_30 = l_Lean_Elab_Command_elabSyntax___closed__2; +x_29 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23; +x_30 = l_Lean_Elab_Command_elabSyntax___closed__4; x_31 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_31, 0, x_28); lean_ctor_set(x_31, 1, x_29); @@ -11845,25 +14017,25 @@ lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_37); x_40 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__7; x_41 = lean_array_push(x_40, x_39); -x_42 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_42 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); x_44 = lean_array_push(x_25, x_43); -x_45 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_45 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_46 = lean_array_push(x_45, x_17); -x_47 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_47 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_48 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); x_49 = lean_array_push(x_44, x_48); -x_50 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_50 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_51 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_49); x_52 = l_Lean_Elab_Command_elabSyntaxAbbrev___closed__7; x_53 = lean_array_push(x_52, x_51); -x_54 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_54 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_55 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); @@ -11995,6 +14167,37 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_Elab_Command_elabMacroRulesAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_elabMacroRulesAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRulesAux_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -12038,7 +14241,69 @@ return x_13; } } } -lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___rarg), 1, 0); +return x_3; +} +} +lean_object* l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_3, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_object* x_6; +lean_dec(x_3); +x_6 = lean_box(0); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_array_fget(x_2, x_3); +lean_inc(x_7); +x_8 = l_Lean_Syntax_getKind(x_7); +x_9 = lean_name_eq(x_8, x_1); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_7); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_3, x_10); +lean_dec(x_3); +x_3 = x_11; +goto _start; +} +else +{ +lean_object* x_13; +lean_dec(x_3); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_7); +return x_13; +} +} +} +} +lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; @@ -12132,13 +14397,13 @@ return x_30; } } } -lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Array_empty___closed__1; -x_8 = l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_1, x_2, x_6, x_7, x_3, x_4, x_5); +x_8 = l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__5(x_1, x_2, x_6, x_7, x_3, x_4, x_5); return x_8; } } @@ -12155,91 +14420,52 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("invalid macro_rules alternative, expected syntax node kind '"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__5() { +static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_1 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } lean_object* l_Lean_Elab_Command_elabMacroRulesAux___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_37; +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_42; x_6 = lean_unsigned_to_nat(0u); x_7 = l_Lean_Syntax_getArg(x_2, x_6); x_8 = l_Lean_Syntax_getArg(x_7, x_6); -x_37 = l_Lean_Syntax_isQuot(x_8); -if (x_37 == 0) +x_42 = l_Lean_Syntax_isQuot(x_8); +if (x_42 == 0) { -lean_object* x_38; uint8_t x_39; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_38 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_5); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) -{ -return x_38; +uint8_t x_43; +x_43 = 1; +x_9 = x_43; +goto block_41; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_38, 0); -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_38); -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; +uint8_t x_44; +x_44 = 0; +x_9 = x_44; +goto block_41; } -} -else +block_41: { -x_9 = x_5; -goto block_36; -} -block_36: +if (x_9 == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_10 = lean_unsigned_to_nat(1u); @@ -12261,15 +14487,15 @@ lean_dec(x_7); lean_dec(x_1); x_16 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_16, 0, x_12); -x_17 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__3; +x_17 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__2; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_19 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); -x_21 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(x_2, x_20, x_3, x_4, x_9); +x_21 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_2, x_20, x_3, x_4, x_5); lean_dec(x_2); return x_21; } @@ -12288,15 +14514,15 @@ lean_dec(x_8); lean_dec(x_7); x_24 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_24, 0, x_1); -x_25 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__6; +x_25 = l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_throwUnknownConstant___rarg___closed__5; +x_27 = l_Lean_Meta_forallTelescopeCompatibleAux___rarg___closed__8; x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); -x_29 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(x_2, x_28, x_3, x_4, x_9); +x_29 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_2, x_28, x_3, x_4, x_5); lean_dec(x_2); return x_29; } @@ -12313,7 +14539,7 @@ x_32 = l_Lean_Syntax_setArg(x_7, x_6, x_31); x_33 = l_Lean_Syntax_setArg(x_2, x_6, 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_9); +lean_ctor_set(x_34, 1, x_5); return x_34; } } @@ -12329,10 +14555,39 @@ lean_dec(x_3); lean_dec(x_1); x_35 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_35, 0, x_2); -lean_ctor_set(x_35, 1, x_9); +lean_ctor_set(x_35, 1, x_5); return x_35; } } +else +{ +lean_object* x_36; uint8_t x_37; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_36 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___rarg(x_5); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +return x_36; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} } } static lean_object* _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__1() { @@ -12716,7 +14971,7 @@ x_6 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacroRulesAux___lambda_ lean_closure_set(x_6, 0, x_1); lean_inc(x_4); lean_inc(x_3); -x_7 = l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(x_2, x_6, x_3, x_4, x_5); +x_7 = l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__4(x_2, x_6, x_3, x_4, x_5); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; @@ -12760,7 +15015,7 @@ x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); x_28 = lean_array_push(x_23, x_27); -x_29 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_29 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_30 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_30, 0, x_29); lean_ctor_set(x_30, 1, x_28); @@ -12768,11 +15023,11 @@ x_31 = lean_array_push(x_22, x_30); x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_26); lean_ctor_set(x_32, 1, x_31); -x_33 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_33 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_34 = lean_array_push(x_33, x_32); x_35 = l_Lean_Elab_Term_expandArrayLit___closed__9; x_36 = lean_array_push(x_34, x_35); -x_37 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_37 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -12787,7 +15042,7 @@ x_44 = lean_array_push(x_42, x_43); x_45 = lean_array_push(x_44, x_43); x_46 = lean_array_push(x_45, x_43); x_47 = lean_array_push(x_46, x_43); -x_48 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_48 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_49 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_49, 0, x_48); lean_ctor_set(x_49, 1, x_47); @@ -12808,7 +15063,7 @@ x_57 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_58 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_56); -x_59 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_59 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_60 = lean_array_push(x_59, x_58); x_61 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; lean_inc(x_11); @@ -12832,7 +15087,7 @@ x_71 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_71, 0, x_26); lean_ctor_set(x_71, 1, x_70); x_72 = lean_array_push(x_41, x_71); -x_73 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_73 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); @@ -12920,19 +15175,19 @@ x_123 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_124 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_124, 0, x_123); lean_ctor_set(x_124, 1, x_122); -x_125 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_125 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_126 = lean_array_push(x_125, x_124); -x_127 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_127 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_128 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_128, 0, x_127); lean_ctor_set(x_128, 1, x_126); x_129 = lean_array_push(x_75, x_128); -x_130 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_130 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_131 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_131, 0, x_130); lean_ctor_set(x_131, 1, x_129); x_132 = lean_array_push(x_50, x_131); -x_133 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_133 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_134 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_134, 0, x_133); lean_ctor_set(x_134, 1, x_132); @@ -12968,7 +15223,7 @@ x_148 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_148, 0, x_147); lean_ctor_set(x_148, 1, x_146); x_149 = lean_array_push(x_144, x_148); -x_150 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_150 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_151 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_151, 0, x_150); lean_ctor_set(x_151, 1, x_149); @@ -12976,11 +15231,11 @@ x_152 = lean_array_push(x_143, x_151); x_153 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_153, 0, x_147); lean_ctor_set(x_153, 1, x_152); -x_154 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_154 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_155 = lean_array_push(x_154, x_153); x_156 = l_Lean_Elab_Term_expandArrayLit___closed__9; x_157 = lean_array_push(x_155, x_156); -x_158 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_158 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_159 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_159, 0, x_158); lean_ctor_set(x_159, 1, x_157); @@ -12995,7 +15250,7 @@ x_165 = lean_array_push(x_163, x_164); x_166 = lean_array_push(x_165, x_164); x_167 = lean_array_push(x_166, x_164); x_168 = lean_array_push(x_167, x_164); -x_169 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_169 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_170 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_170, 0, x_169); lean_ctor_set(x_170, 1, x_168); @@ -13016,7 +15271,7 @@ x_178 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_178); lean_ctor_set(x_179, 1, x_177); -x_180 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_180 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_181 = lean_array_push(x_180, x_179); x_182 = l_Lean_Elab_Command_elabMacroRulesAux___closed__11; lean_inc(x_11); @@ -13040,7 +15295,7 @@ x_192 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_192, 0, x_147); lean_ctor_set(x_192, 1, x_191); x_193 = lean_array_push(x_162, x_192); -x_194 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_194 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_195 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_195, 0, x_194); lean_ctor_set(x_195, 1, x_193); @@ -13128,19 +15383,19 @@ x_244 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_245 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_245, 0, x_244); lean_ctor_set(x_245, 1, x_243); -x_246 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_246 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_247 = lean_array_push(x_246, x_245); -x_248 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_248 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_249 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_249, 0, x_248); lean_ctor_set(x_249, 1, x_247); x_250 = lean_array_push(x_196, x_249); -x_251 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_251 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_252 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_252, 0, x_251); lean_ctor_set(x_252, 1, x_250); x_253 = lean_array_push(x_171, x_252); -x_254 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_254 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_255 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_255, 0, x_254); lean_ctor_set(x_255, 1, x_253); @@ -13187,20 +15442,40 @@ lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_findMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_LeanInit_17__mapSepElemsMAux___main___at_Lean_Elab_Command_elabMacroRulesAux___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_1); return x_8; } } -lean_object* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___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* l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Array_mapSepElemsM___at_Lean_Elab_Command_elabMacroRulesAux___spec__4(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } @@ -13236,7 +15511,7 @@ if (x_8 == 0) { lean_object* x_9; uint8_t x_10; lean_dec(x_7); -x_9 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(x_4); +x_9 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabMacroRulesAux___spec__2___rarg(x_4); x_10 = !lean_is_exclusive(x_9); if (x_10 == 0) { @@ -13638,18 +15913,7 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__6; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__7; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } @@ -13963,8 +16227,8 @@ else { lean_object* x_100; lean_object* x_101; lean_dec(x_9); -x_100 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__8; -x_101 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabCommand___main___spec__7___rarg(x_7, x_100, x_2, x_3, x_10); +x_100 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__7; +x_101 = l_Lean_throwErrorAt___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_7, x_100, x_2, x_3, x_10); lean_dec(x_3); lean_dec(x_7); return x_101; @@ -14051,339 +16315,270 @@ return x_5; lean_object* l_Lean_Elab_Command_elabMacroRules___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_5; lean_object* x_97; uint8_t x_98; -x_97 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2; +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2; lean_inc(x_1); -x_98 = l_Lean_Syntax_isOfKind(x_1, x_97); -if (x_98 == 0) +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) { -uint8_t x_99; -x_99 = 0; -x_5 = x_99; -goto block_96; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_100 = l_Lean_Syntax_getArgs(x_1); -x_101 = lean_array_get_size(x_100); -lean_dec(x_100); -x_102 = lean_unsigned_to_nat(3u); -x_103 = lean_nat_dec_eq(x_101, x_102); -lean_dec(x_101); -x_5 = x_103; -goto block_96; -} -block_96: -{ -if (x_5 == 0) -{ -lean_object* x_6; +lean_object* x_7; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_6 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); -return x_6; +x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_7; } else { -lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_51; uint8_t x_52; uint8_t x_53; -x_7 = lean_unsigned_to_nat(1u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_51 = l_Lean_nullKind___closed__2; -lean_inc(x_8); -x_52 = l_Lean_Syntax_isOfKind(x_8, x_51); +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(3u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_unsigned_to_nat(1u); +x_14 = l_Lean_Syntax_getArg(x_1, x_13); +x_15 = l_Lean_nullKind___closed__2; +lean_inc(x_14); +x_16 = l_Lean_Syntax_isOfKind(x_14, x_15); +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_14); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_18 = l_Lean_Syntax_getArgs(x_14); +x_19 = lean_array_get_size(x_18); +lean_dec(x_18); +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_nat_dec_eq(x_19, x_20); +if (x_21 == 0) +{ +uint8_t x_22; +x_22 = lean_nat_dec_eq(x_19, x_10); +lean_dec(x_19); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_14); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_23 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = l_Lean_Syntax_getArg(x_14, x_13); +lean_dec(x_14); +x_25 = lean_unsigned_to_nat(2u); +x_26 = l_Lean_Syntax_getArg(x_1, x_25); +lean_dec(x_1); +x_27 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; +lean_inc(x_26); +x_28 = l_Lean_Syntax_isOfKind(x_26, x_27); +if (x_28 == 0) +{ +lean_object* x_29; +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_29 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = l_Lean_Syntax_getArgs(x_26); +x_31 = lean_array_get_size(x_30); +lean_dec(x_30); +x_32 = lean_nat_dec_eq(x_31, x_25); +lean_dec(x_31); +if (x_32 == 0) +{ +lean_object* x_33; +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_33 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_33; +} +else +{ +lean_object* x_34; uint8_t x_35; lean_object* x_36; +x_34 = l_Lean_Syntax_getArg(x_26, x_20); +lean_inc(x_34); +x_35 = l_Lean_Syntax_isOfKind(x_34, x_15); +if (x_35 == 0) +{ +lean_object* x_49; +x_49 = lean_box(0); +x_36 = x_49; +goto block_48; +} +else +{ +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = l_Lean_Syntax_getArgs(x_34); +x_51 = lean_array_get_size(x_50); +lean_dec(x_50); +x_52 = lean_nat_dec_eq(x_51, x_20); +lean_dec(x_51); if (x_52 == 0) { -uint8_t x_91; -x_91 = 0; -x_53 = x_91; -goto block_90; +lean_object* x_53; +x_53 = lean_box(0); +x_36 = x_53; +goto block_48; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; -x_92 = l_Lean_Syntax_getArgs(x_8); -x_93 = lean_array_get_size(x_92); -lean_dec(x_92); -x_94 = lean_unsigned_to_nat(0u); -x_95 = lean_nat_dec_eq(x_93, x_94); -lean_dec(x_93); -x_53 = x_95; -goto block_90; -} -block_50: -{ -if (x_9 == 0) -{ -lean_object* x_10; -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_10 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_44; uint8_t x_45; -x_11 = l_Lean_Syntax_getArg(x_8, x_7); -lean_dec(x_8); -x_12 = lean_unsigned_to_nat(2u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -lean_dec(x_1); -x_44 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; -lean_inc(x_13); -x_45 = l_Lean_Syntax_isOfKind(x_13, x_44); -if (x_45 == 0) -{ -uint8_t x_46; -x_46 = 0; -x_14 = x_46; -goto block_43; -} -else -{ -lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_47 = l_Lean_Syntax_getArgs(x_13); -x_48 = lean_array_get_size(x_47); -lean_dec(x_47); -x_49 = lean_nat_dec_eq(x_48, x_12); -lean_dec(x_48); -x_14 = x_49; -goto block_43; -} -block_43: -{ -if (x_14 == 0) -{ -lean_object* x_15; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_15 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; -x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Lean_Syntax_getArg(x_13, x_16); -x_18 = l_Lean_nullKind___closed__2; -lean_inc(x_17); -x_19 = l_Lean_Syntax_isOfKind(x_17, x_18); -if (x_19 == 0) -{ -uint8_t x_39; -x_39 = 0; -x_20 = x_39; -goto block_38; -} -else -{ -lean_object* x_40; lean_object* x_41; uint8_t x_42; -x_40 = l_Lean_Syntax_getArgs(x_17); -x_41 = lean_array_get_size(x_40); -lean_dec(x_40); -x_42 = lean_nat_dec_eq(x_41, x_16); -lean_dec(x_41); -x_20 = x_42; -goto block_38; -} -block_38: -{ -if (x_20 == 0) -{ -if (x_19 == 0) -{ -lean_object* x_21; -lean_dec(x_17); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_21 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); -return x_21; -} -else -{ -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = l_Lean_Syntax_getArgs(x_17); -lean_dec(x_17); -x_23 = lean_array_get_size(x_22); -lean_dec(x_22); -x_24 = lean_nat_dec_eq(x_23, x_7); -lean_dec(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_3); -lean_dec(x_2); -x_25 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); -return x_25; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_26 = l_Lean_Syntax_getArg(x_13, x_7); -lean_dec(x_13); -x_27 = l_Lean_Syntax_getArgs(x_26); -lean_dec(x_26); -x_28 = l_Lean_Elab_Command_mkKind(x_11, x_2, x_3, x_4); -lean_dec(x_11); -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Elab_Command_elabMacroRulesAux(x_29, x_27, x_2, x_3, x_30); -lean_dec(x_27); -return x_31; -} -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -lean_dec(x_17); -x_32 = l_Lean_Syntax_getArg(x_13, x_7); -lean_dec(x_13); -x_33 = l_Lean_Syntax_getArgs(x_32); -lean_dec(x_32); -x_34 = l_Lean_Elab_Command_mkKind(x_11, x_2, x_3, x_4); -lean_dec(x_11); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_dec(x_34); -x_37 = l_Lean_Elab_Command_elabMacroRulesAux(x_35, x_33, x_2, x_3, x_36); -lean_dec(x_33); +x_54 = l_Lean_Syntax_getArg(x_26, x_13); +lean_dec(x_26); +x_55 = l_Lean_Syntax_getArgs(x_54); +lean_dec(x_54); +x_56 = l_Lean_Elab_Command_mkKind(x_24, x_2, x_3, x_4); +lean_dec(x_24); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Elab_Command_elabMacroRulesAux(x_57, x_55, x_2, x_3, x_58); +lean_dec(x_55); +return x_59; +} +} +block_48: +{ +lean_dec(x_36); +if (x_35 == 0) +{ +lean_object* x_37; +lean_dec(x_34); +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_37 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); return x_37; } -} -} -} -} -} -block_90: +else { -if (x_53 == 0) +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = l_Lean_Syntax_getArgs(x_34); +lean_dec(x_34); +x_39 = lean_array_get_size(x_38); +lean_dec(x_38); +x_40 = lean_nat_dec_eq(x_39, x_13); +lean_dec(x_39); +if (x_40 == 0) { -if (x_52 == 0) -{ -uint8_t x_54; -x_54 = 0; -x_9 = x_54; -goto block_50; +lean_object* x_41; +lean_dec(x_26); +lean_dec(x_24); +lean_dec(x_3); +lean_dec(x_2); +x_41 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_41; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_55 = l_Lean_Syntax_getArgs(x_8); -x_56 = lean_array_get_size(x_55); -lean_dec(x_55); -x_57 = lean_unsigned_to_nat(3u); -x_58 = lean_nat_dec_eq(x_56, x_57); -lean_dec(x_56); -x_9 = x_58; -goto block_50; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = l_Lean_Syntax_getArg(x_26, x_13); +lean_dec(x_26); +x_43 = l_Lean_Syntax_getArgs(x_42); +lean_dec(x_42); +x_44 = l_Lean_Elab_Command_mkKind(x_24, x_2, x_3, x_4); +lean_dec(x_24); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = l_Lean_Elab_Command_elabMacroRulesAux(x_45, x_43, x_2, x_3, x_46); +lean_dec(x_43); +return x_47; +} +} +} +} +} } } else { -lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_84; uint8_t x_85; -lean_dec(x_8); -x_59 = lean_unsigned_to_nat(2u); -x_60 = l_Lean_Syntax_getArg(x_1, x_59); +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; +lean_dec(x_19); +lean_dec(x_14); +x_60 = lean_unsigned_to_nat(2u); +x_61 = l_Lean_Syntax_getArg(x_1, x_60); lean_dec(x_1); -x_84 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; -lean_inc(x_60); -x_85 = l_Lean_Syntax_isOfKind(x_60, x_84); -if (x_85 == 0) +x_62 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11; +lean_inc(x_61); +x_63 = l_Lean_Syntax_isOfKind(x_61, x_62); +if (x_63 == 0) { -uint8_t x_86; -x_86 = 0; -x_61 = x_86; -goto block_83; -} -else -{ -lean_object* x_87; lean_object* x_88; uint8_t x_89; -x_87 = l_Lean_Syntax_getArgs(x_60); -x_88 = lean_array_get_size(x_87); -lean_dec(x_87); -x_89 = lean_nat_dec_eq(x_88, x_59); -lean_dec(x_88); -x_61 = x_89; -goto block_83; -} -block_83: -{ -if (x_61 == 0) -{ -lean_object* x_62; -lean_dec(x_60); +lean_object* x_64; +lean_dec(x_61); lean_dec(x_3); lean_dec(x_2); -x_62 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); -return x_62; +x_64 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_64; } else { -lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; -x_63 = lean_unsigned_to_nat(0u); -x_64 = l_Lean_Syntax_getArg(x_60, x_63); -lean_inc(x_64); -x_65 = l_Lean_Syntax_isOfKind(x_64, x_51); -if (x_65 == 0) +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = l_Lean_Syntax_getArgs(x_61); +x_66 = lean_array_get_size(x_65); +lean_dec(x_65); +x_67 = lean_nat_dec_eq(x_66, x_60); +lean_dec(x_66); +if (x_67 == 0) { -uint8_t x_79; -x_79 = 0; -x_66 = x_79; -goto block_78; -} -else -{ -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = l_Lean_Syntax_getArgs(x_64); -x_81 = lean_array_get_size(x_80); -lean_dec(x_80); -x_82 = lean_nat_dec_eq(x_81, x_63); -lean_dec(x_81); -x_66 = x_82; -goto block_78; -} -block_78: -{ -if (x_66 == 0) -{ -if (x_65 == 0) -{ -lean_object* x_67; -lean_dec(x_64); -lean_dec(x_60); +lean_object* x_68; +lean_dec(x_61); lean_dec(x_3); lean_dec(x_2); -x_67 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); -return x_67; +x_68 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_68; } else { -lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_68 = l_Lean_Syntax_getArgs(x_64); -lean_dec(x_64); -x_69 = lean_array_get_size(x_68); -lean_dec(x_68); -x_70 = lean_nat_dec_eq(x_69, x_7); -lean_dec(x_69); +lean_object* x_69; uint8_t x_70; +x_69 = l_Lean_Syntax_getArg(x_61, x_20); +lean_inc(x_69); +x_70 = l_Lean_Syntax_isOfKind(x_69, x_15); if (x_70 == 0) { lean_object* x_71; -lean_dec(x_60); +lean_dec(x_69); +lean_dec(x_61); lean_dec(x_3); lean_dec(x_2); x_71 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); @@ -14391,28 +16586,49 @@ return x_71; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = l_Lean_Syntax_getArg(x_60, x_7); -lean_dec(x_60); -x_73 = l_Lean_Syntax_getArgs(x_72); +lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_72 = l_Lean_Syntax_getArgs(x_69); +lean_dec(x_69); +x_73 = lean_array_get_size(x_72); lean_dec(x_72); -x_74 = l_Lean_Elab_Command_elabNoKindMacroRulesAux(x_73, x_2, x_3, x_4); +x_74 = lean_nat_dec_eq(x_73, x_20); +if (x_74 == 0) +{ +uint8_t x_75; +x_75 = lean_nat_dec_eq(x_73, x_13); lean_dec(x_73); -return x_74; +if (x_75 == 0) +{ +lean_object* x_76; +lean_dec(x_61); +lean_dec(x_3); +lean_dec(x_2); +x_76 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabCommand___main___spec__8___rarg(x_4); +return x_76; } +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = l_Lean_Syntax_getArg(x_61, x_13); +lean_dec(x_61); +x_78 = l_Lean_Syntax_getArgs(x_77); +lean_dec(x_77); +x_79 = l_Lean_Elab_Command_elabNoKindMacroRulesAux(x_78, x_2, x_3, x_4); +lean_dec(x_78); +return x_79; } } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_64); -x_75 = l_Lean_Syntax_getArg(x_60, x_7); -lean_dec(x_60); -x_76 = l_Lean_Syntax_getArgs(x_75); -lean_dec(x_75); -x_77 = l_Lean_Elab_Command_elabNoKindMacroRulesAux(x_76, x_2, x_3, x_4); -lean_dec(x_76); -return x_77; +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_73); +x_80 = l_Lean_Syntax_getArg(x_61, x_13); +lean_dec(x_61); +x_81 = l_Lean_Syntax_getArgs(x_80); +lean_dec(x_80); +x_82 = l_Lean_Elab_Command_elabNoKindMacroRulesAux(x_81, x_2, x_3, x_4); +lean_dec(x_81); +return x_82; } } } @@ -14481,7 +16697,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("precedence"); +x_1 = lean_mk_string("prefix"); return x_1; } } @@ -14489,7 +16705,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__4; +x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; x_2 = l_Lean_Elab_Command_expandMixfix___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -14499,7 +16715,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string("notation"); +x_1 = lean_mk_string("postfix"); return x_1; } } @@ -14516,22 +16732,18 @@ return x_3; static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_Lean_Elab_Command_expandMixfix___closed__5; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("precedence"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; +x_1 = l_Lean_mkAppStx___closed__4; x_2 = l_Lean_Elab_Command_expandMixfix___closed__7; -x_3 = lean_array_push(x_1, x_2); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -14539,7 +16751,7 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__9() { _start: { lean_object* x_1; -x_1 = lean_mk_string("identPrec"); +x_1 = lean_mk_string("notation"); return x_1; } } @@ -14556,40 +16768,39 @@ return x_3; static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__11() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("arg"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_Lean_Elab_Command_expandMixfix___closed__9; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__12() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_expandMixfix___closed__11; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_empty___closed__1; +x_2 = l_Lean_Elab_Command_expandMixfix___closed__11; +x_3 = lean_array_push(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__13() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_expandMixfix___closed__11; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_expandMixfix___closed__12; -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* x_1; +x_1 = lean_mk_string("identPrec"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_expandMixfix___closed__11; +x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; +x_2 = l_Lean_Elab_Command_expandMixfix___closed__13; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -14598,34 +16809,39 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__15() { _start: { lean_object* x_1; -x_1 = lean_mk_string("postfix"); +x_1 = lean_mk_string("arg"); return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__16() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l_Lean_Elab_Command_expandMixfix___closed__15; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_expandMixfix___closed__15; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__17() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("prefix"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Command_expandMixfix___closed__15; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Command_expandMixfix___closed__16; +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; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l_Lean_Elab_Command_expandMixfix___closed__17; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_expandMixfix___closed__15; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -14634,39 +16850,34 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__19() { _start: { lean_object* x_1; -x_1 = lean_mk_string("lhs"); +x_1 = lean_mk_string("infixr"); return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__20() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_expandMixfix___closed__19; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; +x_2 = l_Lean_Elab_Command_expandMixfix___closed__19; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__21() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Command_expandMixfix___closed__19; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Command_expandMixfix___closed__20; -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* x_1; +x_1 = lean_mk_string("infixl"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__22() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Command_expandMixfix___closed__19; +x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; +x_2 = l_Lean_Elab_Command_expandMixfix___closed__21; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -14675,34 +16886,39 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__23() { _start: { lean_object* x_1; -x_1 = lean_mk_string("infixl"); +x_1 = lean_mk_string("lhs"); return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__24() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l_Lean_Elab_Command_expandMixfix___closed__23; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Command_expandMixfix___closed__23; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__25() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("infixr"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Command_expandMixfix___closed__23; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Command_expandMixfix___closed__24; +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; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; -x_2 = l_Lean_Elab_Command_expandMixfix___closed__25; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Command_expandMixfix___closed__23; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -14710,22 +16926,18 @@ return x_3; static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__27() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_Lean_Elab_Command_expandMixfix___closed__23; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("infix"); +return x_1; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__28() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_empty___closed__1; +x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; x_2 = l_Lean_Elab_Command_expandMixfix___closed__27; -x_3 = lean_array_push(x_1, x_2); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -14733,9 +16945,9 @@ static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__29() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Command_expandMixfix___closed__24; -x_2 = l_Lean_Elab_Command_expandMixfix___closed__28; -x_3 = lean_alloc_ctor(1, 2, 0); +x_1 = l_Lean_SourceInfo_inhabited___closed__1; +x_2 = l_Lean_Elab_Command_expandMixfix___closed__21; +x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; @@ -14754,733 +16966,865 @@ return x_3; static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__31() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("infix"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Command_expandMixfix___closed__22; +x_2 = l_Lean_Elab_Command_expandMixfix___closed__30; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Command_expandMixfix___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__2; +x_1 = l_Array_empty___closed__1; x_2 = l_Lean_Elab_Command_expandMixfix___closed__31; -x_3 = lean_name_mk_string(x_1, x_2); +x_3 = lean_array_push(x_1, x_2); return x_3; } } lean_object* l_Lean_Elab_Command_expandMixfix(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_397; uint8_t x_398; -x_397 = l_Lean_Elab_Command_expandMixfix___closed__2; +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Elab_Command_expandMixfix___closed__2; lean_inc(x_1); -x_398 = l_Lean_Syntax_isOfKind(x_1, x_397); -if (x_398 == 0) +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) { -uint8_t x_399; -x_399 = 0; -x_4 = x_399; -goto block_396; -} -else -{ -lean_object* x_400; lean_object* x_401; lean_object* x_402; uint8_t x_403; -x_400 = l_Lean_Syntax_getArgs(x_1); -x_401 = lean_array_get_size(x_400); -lean_dec(x_400); -x_402 = lean_unsigned_to_nat(5u); -x_403 = lean_nat_dec_eq(x_401, x_402); -lean_dec(x_401); -x_4 = x_403; -goto block_396; -} -block_396: -{ -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; +lean_object* x_6; lean_object* x_7; lean_dec(x_2); lean_dec(x_1); -x_5 = lean_box(1); -x_6 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_3); -return x_6; +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; } else { -lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_80; uint8_t x_155; uint8_t x_249; uint8_t x_334; lean_object* x_389; uint8_t x_390; -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_389 = l_Lean_Elab_Command_expandMixfix___closed__32; -lean_inc(x_8); -x_390 = l_Lean_Syntax_isOfKind(x_8, x_389); -if (x_390 == 0) +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(5u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) { -uint8_t x_391; -x_391 = 0; -x_334 = x_391; -goto block_388; -} -else -{ -lean_object* x_392; lean_object* x_393; lean_object* x_394; uint8_t x_395; -x_392 = l_Lean_Syntax_getArgs(x_8); -x_393 = lean_array_get_size(x_392); -lean_dec(x_392); -x_394 = lean_unsigned_to_nat(1u); -x_395 = lean_nat_dec_eq(x_393, x_394); -lean_dec(x_393); -x_334 = x_395; -goto block_388; -} -block_79: -{ -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; +lean_object* x_12; lean_object* x_13; lean_dec(x_2); lean_dec(x_1); -x_10 = lean_box(1); -x_11 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_3); -return x_11; +x_12 = lean_box(1); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_3); +return x_13; } else { -lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_73; uint8_t x_74; -x_12 = lean_unsigned_to_nat(1u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_73 = l_Lean_nullKind___closed__2; -lean_inc(x_13); -x_74 = l_Lean_Syntax_isOfKind(x_13, x_73); -if (x_74 == 0) +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_157; lean_object* x_323; uint8_t x_324; +x_14 = lean_unsigned_to_nat(0u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_323 = l_Lean_Elab_Command_expandMixfix___closed__28; +lean_inc(x_15); +x_324 = l_Lean_Syntax_isOfKind(x_15, x_323); +if (x_324 == 0) { -uint8_t x_75; -x_75 = 0; -x_14 = x_75; -goto block_72; +lean_object* x_325; +x_325 = lean_box(0); +x_157 = x_325; +goto block_322; } else { -lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_76 = l_Lean_Syntax_getArgs(x_13); -x_77 = lean_array_get_size(x_76); -lean_dec(x_76); -x_78 = lean_nat_dec_eq(x_77, x_12); -lean_dec(x_77); -x_14 = x_78; -goto block_72; +lean_object* x_326; lean_object* x_327; lean_object* x_328; uint8_t x_329; +x_326 = l_Lean_Syntax_getArgs(x_15); +x_327 = lean_array_get_size(x_326); +lean_dec(x_326); +x_328 = lean_unsigned_to_nat(1u); +x_329 = lean_nat_dec_eq(x_327, x_328); +lean_dec(x_327); +if (x_329 == 0) +{ +lean_object* x_330; +x_330 = lean_box(0); +x_157 = x_330; +goto block_322; } -block_72: +else { -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -lean_dec(x_13); +lean_object* x_331; lean_object* x_332; uint8_t x_333; +lean_dec(x_15); lean_dec(x_2); +x_331 = l_Lean_Syntax_getArg(x_1, x_328); +x_332 = l_Lean_nullKind___closed__2; +lean_inc(x_331); +x_333 = l_Lean_Syntax_isOfKind(x_331, x_332); +if (x_333 == 0) +{ +lean_object* x_334; lean_object* x_335; +lean_dec(x_331); lean_dec(x_1); -x_15 = lean_box(1); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_3); -return x_16; +x_334 = lean_box(1); +x_335 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_335, 0, x_334); +lean_ctor_set(x_335, 1, x_3); +return x_335; } else { -lean_object* x_17; uint8_t x_18; lean_object* x_65; uint8_t x_66; -x_17 = l_Lean_Syntax_getArg(x_13, x_7); -lean_dec(x_13); -x_65 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_17); -x_66 = l_Lean_Syntax_isOfKind(x_17, x_65); -if (x_66 == 0) +lean_object* x_336; lean_object* x_337; uint8_t x_338; +x_336 = l_Lean_Syntax_getArgs(x_331); +x_337 = lean_array_get_size(x_336); +lean_dec(x_336); +x_338 = lean_nat_dec_eq(x_337, x_328); +lean_dec(x_337); +if (x_338 == 0) { -uint8_t x_67; -x_67 = 0; -x_18 = x_67; -goto block_64; +lean_object* x_339; lean_object* x_340; +lean_dec(x_331); +lean_dec(x_1); +x_339 = lean_box(1); +x_340 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_340, 0, x_339); +lean_ctor_set(x_340, 1, x_3); +return x_340; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_68 = l_Lean_Syntax_getArgs(x_17); -x_69 = lean_array_get_size(x_68); -lean_dec(x_68); -x_70 = lean_unsigned_to_nat(2u); -x_71 = lean_nat_dec_eq(x_69, x_70); -lean_dec(x_69); -x_18 = x_71; -goto block_64; -} -block_64: +lean_object* x_341; lean_object* x_342; uint8_t x_343; +x_341 = l_Lean_Syntax_getArg(x_331, x_14); +lean_dec(x_331); +x_342 = l_Lean_Elab_Command_expandMixfix___closed__8; +lean_inc(x_341); +x_343 = l_Lean_Syntax_isOfKind(x_341, x_342); +if (x_343 == 0) { +lean_object* x_344; lean_object* x_345; +lean_dec(x_341); +lean_dec(x_1); +x_344 = lean_box(1); +x_345 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_345, 0, x_344); +lean_ctor_set(x_345, 1, x_3); +return x_345; +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; +x_346 = l_Lean_Syntax_getArgs(x_341); +x_347 = lean_array_get_size(x_346); +lean_dec(x_346); +x_348 = lean_unsigned_to_nat(2u); +x_349 = lean_nat_dec_eq(x_347, x_348); +lean_dec(x_347); +if (x_349 == 0) +{ +lean_object* x_350; lean_object* x_351; +lean_dec(x_341); +lean_dec(x_1); +x_350 = lean_box(1); +x_351 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_351, 0, x_350); +lean_ctor_set(x_351, 1, x_3); +return x_351; +} +else +{ +lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +x_352 = l_Lean_Syntax_getArg(x_341, x_328); +lean_dec(x_341); +x_353 = l_Lean_Syntax_getArg(x_1, x_348); +x_354 = lean_unsigned_to_nat(4u); +x_355 = l_Lean_Syntax_getArg(x_1, x_354); +lean_dec(x_1); +x_356 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +x_357 = lean_array_push(x_356, x_352); +x_358 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_358, 0, x_342); +lean_ctor_set(x_358, 1, x_357); +x_359 = l_Array_empty___closed__1; +x_360 = lean_array_push(x_359, x_358); +x_361 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_361, 0, x_332); +lean_ctor_set(x_361, 1, x_360); +x_362 = l_Lean_Elab_Command_expandMixfix___closed__32; +x_363 = lean_array_push(x_362, x_361); +x_364 = lean_array_push(x_363, x_353); +x_365 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +x_366 = lean_array_push(x_364, x_365); +x_367 = lean_array_push(x_366, x_355); +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_4); +lean_ctor_set(x_368, 1, x_367); +x_369 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_369, 0, x_368); +lean_ctor_set(x_369, 1, x_3); +return x_369; +} +} +} +} +} +} +block_156: +{ +lean_object* x_17; uint8_t x_18; +lean_dec(x_16); +x_17 = l_Lean_Elab_Command_expandMixfix___closed__4; +lean_inc(x_15); +x_18 = l_Lean_Syntax_isOfKind(x_15, x_17); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; -lean_dec(x_17); +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_Elab_Command_expandMixfix___closed__6; +lean_inc(x_15); +x_20 = l_Lean_Syntax_isOfKind(x_15, x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +lean_dec(x_15); lean_dec(x_2); lean_dec(x_1); -x_19 = lean_box(1); -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; +x_21 = lean_box(1); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_3); +return x_22; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_21 = l_Lean_Syntax_getArg(x_17, x_12); -lean_dec(x_17); -x_22 = lean_unsigned_to_nat(2u); -x_23 = l_Lean_Syntax_getArg(x_1, x_22); -x_24 = lean_unsigned_to_nat(4u); -x_25 = l_Lean_Syntax_getArg(x_1, x_24); -lean_dec(x_1); -x_26 = lean_ctor_get(x_2, 2); -lean_inc(x_26); -x_27 = lean_ctor_get(x_2, 1); -lean_inc(x_27); -lean_dec(x_2); -x_28 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -x_29 = lean_array_push(x_28, x_21); -x_30 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = l_Array_empty___closed__1; -x_33 = lean_array_push(x_32, x_31); -x_34 = l_Lean_nullKind___closed__2; -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Command_expandMixfix___closed__8; -x_37 = lean_array_push(x_36, x_35); -x_38 = l_Lean_Elab_Command_expandMixfix___closed__14; -x_39 = l_Lean_addMacroScope(x_27, x_38, x_26); -x_40 = lean_box(0); -x_41 = l_Lean_SourceInfo_inhabited___closed__1; -x_42 = l_Lean_Elab_Command_expandMixfix___closed__13; -x_43 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -lean_ctor_set(x_43, 2, x_39); -lean_ctor_set(x_43, 3, x_40); -x_44 = lean_array_push(x_32, x_43); -x_45 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -lean_inc(x_44); -x_46 = lean_array_push(x_44, x_45); -x_47 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -x_49 = lean_array_push(x_32, x_48); -x_50 = lean_array_push(x_49, x_23); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_34); -lean_ctor_set(x_51, 1, x_50); -x_52 = lean_array_push(x_37, x_51); -x_53 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -x_54 = lean_array_push(x_52, x_53); -x_55 = lean_array_push(x_32, x_25); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_34); -lean_ctor_set(x_56, 1, x_44); -x_57 = lean_array_push(x_55, x_56); -x_58 = l_Lean_mkAppStx___closed__8; -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_57); -x_60 = lean_array_push(x_54, x_59); -x_61 = l_Lean_Elab_Command_expandMixfix___closed__6; -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_3); -return x_63; -} -} -} -} -} -} -block_154: +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = l_Lean_Syntax_getArgs(x_15); +lean_dec(x_15); +x_24 = lean_array_get_size(x_23); +lean_dec(x_23); +x_25 = lean_unsigned_to_nat(1u); +x_26 = lean_nat_dec_eq(x_24, x_25); +lean_dec(x_24); +if (x_26 == 0) { -if (x_80 == 0) -{ -lean_object* x_81; uint8_t x_82; -x_81 = l_Lean_Elab_Command_expandMixfix___closed__16; -lean_inc(x_8); -x_82 = l_Lean_Syntax_isOfKind(x_8, x_81); -if (x_82 == 0) -{ -uint8_t x_83; -lean_dec(x_8); -x_83 = 0; -x_9 = x_83; -goto block_79; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_84 = l_Lean_Syntax_getArgs(x_8); -lean_dec(x_8); -x_85 = lean_array_get_size(x_84); -lean_dec(x_84); -x_86 = lean_unsigned_to_nat(1u); -x_87 = lean_nat_dec_eq(x_85, x_86); -lean_dec(x_85); -x_9 = x_87; -goto block_79; -} -} -else -{ -lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_148; uint8_t x_149; -lean_dec(x_8); -x_88 = lean_unsigned_to_nat(1u); -x_89 = l_Lean_Syntax_getArg(x_1, x_88); -x_148 = l_Lean_nullKind___closed__2; -lean_inc(x_89); -x_149 = l_Lean_Syntax_isOfKind(x_89, x_148); -if (x_149 == 0) -{ -uint8_t x_150; -x_150 = 0; -x_90 = x_150; -goto block_147; -} -else -{ -lean_object* x_151; lean_object* x_152; uint8_t x_153; -x_151 = l_Lean_Syntax_getArgs(x_89); -x_152 = lean_array_get_size(x_151); -lean_dec(x_151); -x_153 = lean_nat_dec_eq(x_152, x_88); -lean_dec(x_152); -x_90 = x_153; -goto block_147; -} -block_147: -{ -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; -lean_dec(x_89); +lean_object* x_27; lean_object* x_28; lean_dec(x_2); lean_dec(x_1); -x_91 = lean_box(1); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_3); -return x_92; +x_27 = lean_box(1); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_3); +return x_28; } else { -lean_object* x_93; uint8_t x_94; lean_object* x_140; uint8_t x_141; -x_93 = l_Lean_Syntax_getArg(x_89, x_7); -lean_dec(x_89); -x_140 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_93); -x_141 = l_Lean_Syntax_isOfKind(x_93, x_140); -if (x_141 == 0) +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = l_Lean_Syntax_getArg(x_1, x_25); +x_30 = l_Lean_nullKind___closed__2; +lean_inc(x_29); +x_31 = l_Lean_Syntax_isOfKind(x_29, x_30); +if (x_31 == 0) { -uint8_t x_142; -x_142 = 0; -x_94 = x_142; -goto block_139; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_143 = l_Lean_Syntax_getArgs(x_93); -x_144 = lean_array_get_size(x_143); -lean_dec(x_143); -x_145 = lean_unsigned_to_nat(2u); -x_146 = lean_nat_dec_eq(x_144, x_145); -lean_dec(x_144); -x_94 = x_146; -goto block_139; -} -block_139: -{ -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -lean_dec(x_93); +lean_object* x_32; lean_object* x_33; +lean_dec(x_29); lean_dec(x_2); lean_dec(x_1); -x_95 = lean_box(1); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_3); -return x_96; +x_32 = lean_box(1); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_3); +return x_33; } 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; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_97 = l_Lean_Syntax_getArg(x_93, x_88); -lean_dec(x_93); -x_98 = lean_unsigned_to_nat(2u); -x_99 = l_Lean_Syntax_getArg(x_1, x_98); -x_100 = lean_unsigned_to_nat(4u); -x_101 = l_Lean_Syntax_getArg(x_1, x_100); -lean_dec(x_1); -x_102 = lean_ctor_get(x_2, 2); -lean_inc(x_102); -x_103 = lean_ctor_get(x_2, 1); -lean_inc(x_103); +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = l_Lean_Syntax_getArgs(x_29); +x_35 = lean_array_get_size(x_34); +lean_dec(x_34); +x_36 = lean_nat_dec_eq(x_35, x_25); +lean_dec(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_29); lean_dec(x_2); -x_104 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -x_105 = lean_array_push(x_104, x_97); -x_106 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_105); -x_108 = l_Array_empty___closed__1; -x_109 = lean_array_push(x_108, x_107); -x_110 = l_Lean_nullKind___closed__2; -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_109); -x_112 = l_Lean_Elab_Command_expandMixfix___closed__8; -lean_inc(x_111); -x_113 = lean_array_push(x_112, x_111); -x_114 = lean_array_push(x_108, x_99); -x_115 = l_Lean_Elab_Command_expandMixfix___closed__14; -x_116 = l_Lean_addMacroScope(x_103, x_115, x_102); -x_117 = lean_box(0); -x_118 = l_Lean_SourceInfo_inhabited___closed__1; -x_119 = l_Lean_Elab_Command_expandMixfix___closed__13; -x_120 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -lean_ctor_set(x_120, 2, x_116); -lean_ctor_set(x_120, 3, x_117); -x_121 = lean_array_push(x_108, x_120); +lean_dec(x_1); +x_37 = lean_box(1); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_3); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_39 = l_Lean_Syntax_getArg(x_29, x_14); +lean_dec(x_29); +x_40 = l_Lean_Elab_Command_expandMixfix___closed__8; +lean_inc(x_39); +x_41 = l_Lean_Syntax_isOfKind(x_39, x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_39); +lean_dec(x_2); +lean_dec(x_1); +x_42 = lean_box(1); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_3); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_44 = l_Lean_Syntax_getArgs(x_39); +x_45 = lean_array_get_size(x_44); +lean_dec(x_44); +x_46 = lean_unsigned_to_nat(2u); +x_47 = lean_nat_dec_eq(x_45, x_46); +lean_dec(x_45); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_39); +lean_dec(x_2); +lean_dec(x_1); +x_48 = lean_box(1); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_3); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_50 = l_Lean_Syntax_getArg(x_39, x_25); +lean_dec(x_39); +x_51 = l_Lean_Syntax_getArg(x_1, x_46); +x_52 = lean_unsigned_to_nat(4u); +x_53 = l_Lean_Syntax_getArg(x_1, x_52); +lean_dec(x_1); +x_54 = lean_ctor_get(x_2, 2); +lean_inc(x_54); +x_55 = lean_ctor_get(x_2, 1); +lean_inc(x_55); +lean_dec(x_2); +x_56 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +x_57 = lean_array_push(x_56, x_50); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_40); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Array_empty___closed__1; +x_60 = lean_array_push(x_59, x_58); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_30); +lean_ctor_set(x_61, 1, x_60); +x_62 = l_Lean_Elab_Command_expandMixfix___closed__12; +x_63 = lean_array_push(x_62, x_61); +x_64 = l_Lean_Elab_Command_expandMixfix___closed__18; +x_65 = l_Lean_addMacroScope(x_55, x_64, x_54); +x_66 = lean_box(0); +x_67 = l_Lean_SourceInfo_inhabited___closed__1; +x_68 = l_Lean_Elab_Command_expandMixfix___closed__17; +x_69 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set(x_69, 2, x_65); +lean_ctor_set(x_69, 3, x_66); +x_70 = lean_array_push(x_59, x_69); +x_71 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +lean_inc(x_70); +x_72 = lean_array_push(x_70, x_71); +x_73 = l_Lean_Elab_Command_expandMixfix___closed__14; +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +x_75 = lean_array_push(x_59, x_74); +x_76 = lean_array_push(x_75, x_51); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_30); +lean_ctor_set(x_77, 1, x_76); +x_78 = lean_array_push(x_63, x_77); +x_79 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +x_80 = lean_array_push(x_78, x_79); +x_81 = lean_array_push(x_59, x_53); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_30); +lean_ctor_set(x_82, 1, x_70); +x_83 = lean_array_push(x_81, x_82); +x_84 = l_Lean_mkAppStx___closed__8; +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +x_86 = lean_array_push(x_80, x_85); +x_87 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_3); +return x_89; +} +} +} +} +} +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_90 = l_Lean_Syntax_getArgs(x_15); +lean_dec(x_15); +x_91 = lean_array_get_size(x_90); +lean_dec(x_90); +x_92 = lean_unsigned_to_nat(1u); +x_93 = lean_nat_dec_eq(x_91, x_92); +lean_dec(x_91); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; +lean_dec(x_2); +lean_dec(x_1); +x_94 = lean_box(1); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_3); +return x_95; +} +else +{ +lean_object* x_96; lean_object* x_97; uint8_t x_98; +x_96 = l_Lean_Syntax_getArg(x_1, x_92); +x_97 = l_Lean_nullKind___closed__2; +lean_inc(x_96); +x_98 = l_Lean_Syntax_isOfKind(x_96, x_97); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; +lean_dec(x_96); +lean_dec(x_2); +lean_dec(x_1); +x_99 = lean_box(1); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_3); +return x_100; +} +else +{ +lean_object* x_101; lean_object* x_102; uint8_t x_103; +x_101 = l_Lean_Syntax_getArgs(x_96); +x_102 = lean_array_get_size(x_101); +lean_dec(x_101); +x_103 = lean_nat_dec_eq(x_102, x_92); +lean_dec(x_102); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; +lean_dec(x_96); +lean_dec(x_2); +lean_dec(x_1); +x_104 = lean_box(1); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_3); +return x_105; +} +else +{ +lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_106 = l_Lean_Syntax_getArg(x_96, x_14); +lean_dec(x_96); +x_107 = l_Lean_Elab_Command_expandMixfix___closed__8; +lean_inc(x_106); +x_108 = l_Lean_Syntax_isOfKind(x_106, x_107); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; +lean_dec(x_106); +lean_dec(x_2); +lean_dec(x_1); +x_109 = lean_box(1); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_3); +return x_110; +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +x_111 = l_Lean_Syntax_getArgs(x_106); +x_112 = lean_array_get_size(x_111); +lean_dec(x_111); +x_113 = lean_unsigned_to_nat(2u); +x_114 = lean_nat_dec_eq(x_112, x_113); +lean_dec(x_112); +if (x_114 == 0) +{ +lean_object* x_115; lean_object* x_116; +lean_dec(x_106); +lean_dec(x_2); +lean_dec(x_1); +x_115 = lean_box(1); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_3); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; 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; +x_117 = l_Lean_Syntax_getArg(x_106, x_92); +lean_dec(x_106); +x_118 = l_Lean_Syntax_getArg(x_1, x_113); +x_119 = lean_unsigned_to_nat(4u); +x_120 = l_Lean_Syntax_getArg(x_1, x_119); +lean_dec(x_1); +x_121 = lean_ctor_get(x_2, 2); lean_inc(x_121); -x_122 = lean_array_push(x_121, x_111); -x_123 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_122); -x_125 = lean_array_push(x_114, x_124); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_110); -lean_ctor_set(x_126, 1, x_125); -x_127 = lean_array_push(x_113, x_126); -x_128 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -x_129 = lean_array_push(x_127, x_128); -x_130 = lean_array_push(x_108, x_101); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_110); -lean_ctor_set(x_131, 1, x_121); -x_132 = lean_array_push(x_130, x_131); -x_133 = l_Lean_mkAppStx___closed__8; -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_132); -x_135 = lean_array_push(x_129, x_134); -x_136 = l_Lean_Elab_Command_expandMixfix___closed__6; -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_3); -return x_138; -} -} -} -} -} -} -block_248: -{ -if (x_155 == 0) -{ -lean_object* x_156; uint8_t x_157; -x_156 = l_Lean_Elab_Command_expandMixfix___closed__18; -lean_inc(x_8); -x_157 = l_Lean_Syntax_isOfKind(x_8, x_156); -if (x_157 == 0) -{ -uint8_t x_158; -x_158 = 0; -x_80 = x_158; -goto block_154; -} -else -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_159 = l_Lean_Syntax_getArgs(x_8); -x_160 = lean_array_get_size(x_159); -lean_dec(x_159); -x_161 = lean_unsigned_to_nat(1u); -x_162 = lean_nat_dec_eq(x_160, x_161); -lean_dec(x_160); -x_80 = x_162; -goto block_154; -} -} -else -{ -lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_object* x_242; uint8_t x_243; -lean_dec(x_8); -x_163 = lean_unsigned_to_nat(1u); -x_164 = l_Lean_Syntax_getArg(x_1, x_163); -x_242 = l_Lean_nullKind___closed__2; -lean_inc(x_164); -x_243 = l_Lean_Syntax_isOfKind(x_164, x_242); -if (x_243 == 0) -{ -uint8_t x_244; -x_244 = 0; -x_165 = x_244; -goto block_241; -} -else -{ -lean_object* x_245; lean_object* x_246; uint8_t x_247; -x_245 = l_Lean_Syntax_getArgs(x_164); -x_246 = lean_array_get_size(x_245); -lean_dec(x_245); -x_247 = lean_nat_dec_eq(x_246, x_163); -lean_dec(x_246); -x_165 = x_247; -goto block_241; -} -block_241: -{ -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; -lean_dec(x_164); +x_122 = lean_ctor_get(x_2, 1); +lean_inc(x_122); lean_dec(x_2); -lean_dec(x_1); -x_166 = lean_box(1); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_3); -return x_167; +x_123 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +x_124 = lean_array_push(x_123, x_117); +x_125 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_125, 0, x_107); +lean_ctor_set(x_125, 1, x_124); +x_126 = l_Array_empty___closed__1; +x_127 = lean_array_push(x_126, x_125); +x_128 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_128, 0, x_97); +lean_ctor_set(x_128, 1, x_127); +x_129 = l_Lean_Elab_Command_expandMixfix___closed__12; +lean_inc(x_128); +x_130 = lean_array_push(x_129, x_128); +x_131 = lean_array_push(x_126, x_118); +x_132 = l_Lean_Elab_Command_expandMixfix___closed__18; +x_133 = l_Lean_addMacroScope(x_122, x_132, x_121); +x_134 = lean_box(0); +x_135 = l_Lean_SourceInfo_inhabited___closed__1; +x_136 = l_Lean_Elab_Command_expandMixfix___closed__17; +x_137 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +lean_ctor_set(x_137, 2, x_133); +lean_ctor_set(x_137, 3, x_134); +x_138 = lean_array_push(x_126, x_137); +lean_inc(x_138); +x_139 = lean_array_push(x_138, x_128); +x_140 = l_Lean_Elab_Command_expandMixfix___closed__14; +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_139); +x_142 = lean_array_push(x_131, x_141); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_97); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_array_push(x_130, x_143); +x_145 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +x_146 = lean_array_push(x_144, x_145); +x_147 = lean_array_push(x_126, x_120); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_97); +lean_ctor_set(x_148, 1, x_138); +x_149 = lean_array_push(x_147, x_148); +x_150 = l_Lean_mkAppStx___closed__8; +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_149); +x_152 = lean_array_push(x_146, x_151); +x_153 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_152); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_3); +return x_155; +} +} +} +} +} +} +} +block_322: +{ +lean_object* x_158; uint8_t x_159; +lean_dec(x_157); +x_158 = l_Lean_Elab_Command_expandMixfix___closed__20; +lean_inc(x_15); +x_159 = l_Lean_Syntax_isOfKind(x_15, x_158); +if (x_159 == 0) +{ +lean_object* x_160; uint8_t x_161; +x_160 = l_Lean_Elab_Command_expandMixfix___closed__22; +lean_inc(x_15); +x_161 = l_Lean_Syntax_isOfKind(x_15, x_160); +if (x_161 == 0) +{ +lean_object* x_162; +x_162 = lean_box(0); +x_16 = x_162; +goto block_156; } else { -lean_object* x_168; uint8_t x_169; lean_object* x_234; uint8_t x_235; -x_168 = l_Lean_Syntax_getArg(x_164, x_7); +lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; +x_163 = l_Lean_Syntax_getArgs(x_15); +x_164 = lean_array_get_size(x_163); +lean_dec(x_163); +x_165 = lean_unsigned_to_nat(1u); +x_166 = lean_nat_dec_eq(x_164, x_165); lean_dec(x_164); -x_234 = l_Lean_Elab_Command_expandMixfix___closed__4; +if (x_166 == 0) +{ +lean_object* x_167; +x_167 = lean_box(0); +x_16 = x_167; +goto block_156; +} +else +{ +lean_object* x_168; lean_object* x_169; uint8_t x_170; +lean_dec(x_15); +x_168 = l_Lean_Syntax_getArg(x_1, x_165); +x_169 = l_Lean_nullKind___closed__2; lean_inc(x_168); -x_235 = l_Lean_Syntax_isOfKind(x_168, x_234); -if (x_235 == 0) +x_170 = l_Lean_Syntax_isOfKind(x_168, x_169); +if (x_170 == 0) { -uint8_t x_236; -x_236 = 0; -x_169 = x_236; -goto block_233; -} -else -{ -lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; -x_237 = l_Lean_Syntax_getArgs(x_168); -x_238 = lean_array_get_size(x_237); -lean_dec(x_237); -x_239 = lean_unsigned_to_nat(2u); -x_240 = lean_nat_dec_eq(x_238, x_239); -lean_dec(x_238); -x_169 = x_240; -goto block_233; -} -block_233: -{ -if (x_169 == 0) -{ -lean_object* x_170; lean_object* x_171; +lean_object* x_171; lean_object* x_172; lean_dec(x_168); lean_dec(x_2); lean_dec(x_1); -x_170 = lean_box(1); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_3); -return x_171; +x_171 = lean_box(1); +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_3); +return x_172; } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_172 = l_Lean_Syntax_getArg(x_168, x_163); +lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_173 = l_Lean_Syntax_getArgs(x_168); +x_174 = lean_array_get_size(x_173); +lean_dec(x_173); +x_175 = lean_nat_dec_eq(x_174, x_165); +lean_dec(x_174); +if (x_175 == 0) +{ +lean_object* x_176; lean_object* x_177; lean_dec(x_168); -x_173 = lean_unsigned_to_nat(2u); -x_174 = l_Lean_Syntax_getArg(x_1, x_173); -x_175 = lean_unsigned_to_nat(4u); -x_176 = l_Lean_Syntax_getArg(x_1, x_175); -lean_dec(x_1); -x_177 = l_Lean_Syntax_toNat(x_172); -x_178 = lean_nat_add(x_177, x_163); -lean_dec(x_177); -x_179 = l_Nat_repr(x_178); -x_180 = l_Lean_numLitKind; -x_181 = l_Lean_SourceInfo_inhabited___closed__1; -x_182 = l_Lean_mkStxLit(x_180, x_179, x_181); -x_183 = lean_ctor_get(x_2, 2); -lean_inc(x_183); -x_184 = lean_ctor_get(x_2, 1); -lean_inc(x_184); lean_dec(x_2); -x_185 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -x_186 = lean_array_push(x_185, x_172); -x_187 = l_Lean_Elab_Command_expandMixfix___closed__4; +lean_dec(x_1); +x_176 = lean_box(1); +x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_176); +lean_ctor_set(x_177, 1, x_3); +return x_177; +} +else +{ +lean_object* x_178; lean_object* x_179; uint8_t x_180; +x_178 = l_Lean_Syntax_getArg(x_168, x_14); +lean_dec(x_168); +x_179 = l_Lean_Elab_Command_expandMixfix___closed__8; +lean_inc(x_178); +x_180 = l_Lean_Syntax_isOfKind(x_178, x_179); +if (x_180 == 0) +{ +lean_object* x_181; lean_object* x_182; +lean_dec(x_178); +lean_dec(x_2); +lean_dec(x_1); +x_181 = lean_box(1); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_3); +return x_182; +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; +x_183 = l_Lean_Syntax_getArgs(x_178); +x_184 = lean_array_get_size(x_183); +lean_dec(x_183); +x_185 = lean_unsigned_to_nat(2u); +x_186 = lean_nat_dec_eq(x_184, x_185); +lean_dec(x_184); +if (x_186 == 0) +{ +lean_object* x_187; lean_object* x_188; +lean_dec(x_178); +lean_dec(x_2); +lean_dec(x_1); +x_187 = lean_box(1); x_188 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -x_189 = l_Array_empty___closed__1; -x_190 = lean_array_push(x_189, x_188); -x_191 = l_Lean_nullKind___closed__2; -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_190); -x_193 = l_Lean_Elab_Command_expandMixfix___closed__8; -x_194 = lean_array_push(x_193, x_192); -x_195 = l_Lean_Elab_Command_expandMixfix___closed__22; -lean_inc(x_183); -lean_inc(x_184); -x_196 = l_Lean_addMacroScope(x_184, x_195, x_183); -x_197 = lean_box(0); -x_198 = l_Lean_Elab_Command_expandMixfix___closed__21; -x_199 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_199, 0, x_181); -lean_ctor_set(x_199, 1, x_198); -lean_ctor_set(x_199, 2, x_196); -lean_ctor_set(x_199, 3, x_197); -x_200 = lean_array_push(x_189, x_199); -x_201 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +lean_ctor_set(x_188, 1, x_3); +return x_188; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_189 = l_Lean_Syntax_getArg(x_178, x_165); +lean_dec(x_178); +x_190 = l_Lean_Syntax_getArg(x_1, x_185); +x_191 = lean_unsigned_to_nat(4u); +x_192 = l_Lean_Syntax_getArg(x_1, x_191); +lean_dec(x_1); +x_193 = l_Lean_Syntax_toNat(x_189); +x_194 = lean_nat_add(x_193, x_165); +lean_dec(x_193); +x_195 = l_Nat_repr(x_194); +x_196 = l_Lean_numLitKind; +x_197 = l_Lean_SourceInfo_inhabited___closed__1; +x_198 = l_Lean_mkStxLit(x_196, x_195, x_197); +x_199 = lean_ctor_get(x_2, 2); +lean_inc(x_199); +x_200 = lean_ctor_get(x_2, 1); lean_inc(x_200); -x_202 = lean_array_push(x_200, x_201); -x_203 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -x_205 = lean_array_push(x_189, x_204); -x_206 = lean_array_push(x_205, x_174); -x_207 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_208 = l_Lean_addMacroScope(x_184, x_207, x_183); -x_209 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_210 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_210, 0, x_181); -lean_ctor_set(x_210, 1, x_209); -lean_ctor_set(x_210, 2, x_208); -lean_ctor_set(x_210, 3, x_197); -lean_inc(x_210); -x_211 = lean_array_push(x_189, x_210); -x_212 = lean_array_push(x_185, x_182); -x_213 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_213, 0, x_187); +lean_dec(x_2); +x_201 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +x_202 = lean_array_push(x_201, x_189); +x_203 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_203, 0, x_179); +lean_ctor_set(x_203, 1, x_202); +x_204 = l_Array_empty___closed__1; +x_205 = lean_array_push(x_204, x_203); +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_169); +lean_ctor_set(x_206, 1, x_205); +x_207 = l_Lean_Elab_Command_expandMixfix___closed__12; +x_208 = lean_array_push(x_207, x_206); +x_209 = l_Lean_Elab_Command_expandMixfix___closed__26; +lean_inc(x_199); +lean_inc(x_200); +x_210 = l_Lean_addMacroScope(x_200, x_209, x_199); +x_211 = lean_box(0); +x_212 = l_Lean_Elab_Command_expandMixfix___closed__25; +x_213 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_213, 0, x_197); lean_ctor_set(x_213, 1, x_212); -x_214 = lean_array_push(x_189, x_213); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_191); -lean_ctor_set(x_215, 1, x_214); -x_216 = lean_array_push(x_211, x_215); -x_217 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_217, 0, x_203); -lean_ctor_set(x_217, 1, x_216); -x_218 = lean_array_push(x_206, x_217); -x_219 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_219, 0, x_191); -lean_ctor_set(x_219, 1, x_218); -x_220 = lean_array_push(x_194, x_219); -x_221 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -x_222 = lean_array_push(x_220, x_221); -x_223 = lean_array_push(x_189, x_176); -x_224 = lean_array_push(x_200, x_210); -x_225 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_225, 0, x_191); -lean_ctor_set(x_225, 1, x_224); -x_226 = lean_array_push(x_223, x_225); -x_227 = l_Lean_mkAppStx___closed__8; -x_228 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_226); -x_229 = lean_array_push(x_222, x_228); -x_230 = l_Lean_Elab_Command_expandMixfix___closed__6; +lean_ctor_set(x_213, 2, x_210); +lean_ctor_set(x_213, 3, x_211); +x_214 = lean_array_push(x_204, x_213); +x_215 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +lean_inc(x_214); +x_216 = lean_array_push(x_214, x_215); +x_217 = l_Lean_Elab_Command_expandMixfix___closed__14; +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_216); +x_219 = lean_array_push(x_204, x_218); +x_220 = lean_array_push(x_219, x_190); +x_221 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_222 = l_Lean_addMacroScope(x_200, x_221, x_199); +x_223 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_224 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_224, 0, x_197); +lean_ctor_set(x_224, 1, x_223); +lean_ctor_set(x_224, 2, x_222); +lean_ctor_set(x_224, 3, x_211); +lean_inc(x_224); +x_225 = lean_array_push(x_204, x_224); +x_226 = lean_array_push(x_201, x_198); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_179); +lean_ctor_set(x_227, 1, x_226); +x_228 = lean_array_push(x_204, x_227); +x_229 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_229, 0, x_169); +lean_ctor_set(x_229, 1, x_228); +x_230 = lean_array_push(x_225, x_229); x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_229); -x_232 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_232, 0, x_231); -lean_ctor_set(x_232, 1, x_3); -return x_232; +lean_ctor_set(x_231, 0, x_217); +lean_ctor_set(x_231, 1, x_230); +x_232 = lean_array_push(x_220, x_231); +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_169); +lean_ctor_set(x_233, 1, x_232); +x_234 = lean_array_push(x_208, x_233); +x_235 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +x_236 = lean_array_push(x_234, x_235); +x_237 = lean_array_push(x_204, x_192); +x_238 = lean_array_push(x_214, x_224); +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_169); +lean_ctor_set(x_239, 1, x_238); +x_240 = lean_array_push(x_237, x_239); +x_241 = l_Lean_mkAppStx___closed__8; +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_240); +x_243 = lean_array_push(x_236, x_242); +x_244 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_245 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_243); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_3); +return x_246; } } } } } } -block_333: -{ -if (x_249 == 0) -{ -lean_object* x_250; uint8_t x_251; -x_250 = l_Lean_Elab_Command_expandMixfix___closed__24; -lean_inc(x_8); -x_251 = l_Lean_Syntax_isOfKind(x_8, x_250); -if (x_251 == 0) -{ -uint8_t x_252; -x_252 = 0; -x_155 = x_252; -goto block_248; -} -else -{ -lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_253 = l_Lean_Syntax_getArgs(x_8); -x_254 = lean_array_get_size(x_253); -lean_dec(x_253); -x_255 = lean_unsigned_to_nat(1u); -x_256 = lean_nat_dec_eq(x_254, x_255); -lean_dec(x_254); -x_155 = x_256; -goto block_248; -} } else { -lean_object* x_257; lean_object* x_258; uint8_t x_259; lean_object* x_327; uint8_t x_328; -lean_dec(x_8); -x_257 = lean_unsigned_to_nat(1u); -x_258 = l_Lean_Syntax_getArg(x_1, x_257); -x_327 = l_Lean_nullKind___closed__2; -lean_inc(x_258); -x_328 = l_Lean_Syntax_isOfKind(x_258, x_327); -if (x_328 == 0) +lean_object* x_247; lean_object* x_248; lean_object* x_249; uint8_t x_250; +x_247 = l_Lean_Syntax_getArgs(x_15); +x_248 = lean_array_get_size(x_247); +lean_dec(x_247); +x_249 = lean_unsigned_to_nat(1u); +x_250 = lean_nat_dec_eq(x_248, x_249); +lean_dec(x_248); +if (x_250 == 0) { -uint8_t x_329; -x_329 = 0; -x_259 = x_329; -goto block_326; +lean_object* x_251; +x_251 = lean_box(0); +x_16 = x_251; +goto block_156; } else { -lean_object* x_330; lean_object* x_331; uint8_t x_332; -x_330 = l_Lean_Syntax_getArgs(x_258); -x_331 = lean_array_get_size(x_330); -lean_dec(x_330); -x_332 = lean_nat_dec_eq(x_331, x_257); -lean_dec(x_331); -x_259 = x_332; -goto block_326; -} -block_326: +lean_object* x_252; lean_object* x_253; uint8_t x_254; +lean_dec(x_15); +x_252 = l_Lean_Syntax_getArg(x_1, x_249); +x_253 = l_Lean_nullKind___closed__2; +lean_inc(x_252); +x_254 = l_Lean_Syntax_isOfKind(x_252, x_253); +if (x_254 == 0) { +lean_object* x_255; lean_object* x_256; +lean_dec(x_252); +lean_dec(x_2); +lean_dec(x_1); +x_255 = lean_box(1); +x_256 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_256, 0, x_255); +lean_ctor_set(x_256, 1, x_3); +return x_256; +} +else +{ +lean_object* x_257; lean_object* x_258; uint8_t x_259; +x_257 = l_Lean_Syntax_getArgs(x_252); +x_258 = lean_array_get_size(x_257); +lean_dec(x_257); +x_259 = lean_nat_dec_eq(x_258, x_249); +lean_dec(x_258); if (x_259 == 0) { lean_object* x_260; lean_object* x_261; -lean_dec(x_258); +lean_dec(x_252); lean_dec(x_2); lean_dec(x_1); x_260 = lean_box(1); @@ -15491,293 +17835,140 @@ return x_261; } else { -lean_object* x_262; uint8_t x_263; lean_object* x_319; uint8_t x_320; -x_262 = l_Lean_Syntax_getArg(x_258, x_7); -lean_dec(x_258); -x_319 = l_Lean_Elab_Command_expandMixfix___closed__4; +lean_object* x_262; lean_object* x_263; uint8_t x_264; +x_262 = l_Lean_Syntax_getArg(x_252, x_14); +lean_dec(x_252); +x_263 = l_Lean_Elab_Command_expandMixfix___closed__8; lean_inc(x_262); -x_320 = l_Lean_Syntax_isOfKind(x_262, x_319); -if (x_320 == 0) +x_264 = l_Lean_Syntax_isOfKind(x_262, x_263); +if (x_264 == 0) { -uint8_t x_321; -x_321 = 0; -x_263 = x_321; -goto block_318; -} -else -{ -lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; -x_322 = l_Lean_Syntax_getArgs(x_262); -x_323 = lean_array_get_size(x_322); -lean_dec(x_322); -x_324 = lean_unsigned_to_nat(2u); -x_325 = lean_nat_dec_eq(x_323, x_324); -lean_dec(x_323); -x_263 = x_325; -goto block_318; -} -block_318: -{ -if (x_263 == 0) -{ -lean_object* x_264; lean_object* x_265; +lean_object* x_265; lean_object* x_266; lean_dec(x_262); lean_dec(x_2); lean_dec(x_1); -x_264 = lean_box(1); -x_265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_265, 0, x_264); -lean_ctor_set(x_265, 1, x_3); -return x_265; +x_265 = lean_box(1); +x_266 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_3); +return x_266; } else { -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 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; -x_266 = l_Lean_Syntax_getArg(x_262, x_257); +lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; +x_267 = l_Lean_Syntax_getArgs(x_262); +x_268 = lean_array_get_size(x_267); +lean_dec(x_267); +x_269 = lean_unsigned_to_nat(2u); +x_270 = lean_nat_dec_eq(x_268, x_269); +lean_dec(x_268); +if (x_270 == 0) +{ +lean_object* x_271; lean_object* x_272; lean_dec(x_262); -x_267 = lean_unsigned_to_nat(2u); -x_268 = l_Lean_Syntax_getArg(x_1, x_267); -x_269 = lean_unsigned_to_nat(4u); -x_270 = l_Lean_Syntax_getArg(x_1, x_269); -lean_dec(x_1); -x_271 = lean_ctor_get(x_2, 2); -lean_inc(x_271); -x_272 = lean_ctor_get(x_2, 1); -lean_inc(x_272); lean_dec(x_2); -x_273 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -x_274 = lean_array_push(x_273, x_266); -x_275 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_276 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_274); -x_277 = l_Array_empty___closed__1; -x_278 = lean_array_push(x_277, x_276); -x_279 = l_Lean_nullKind___closed__2; -x_280 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_278); -x_281 = l_Lean_Elab_Command_expandMixfix___closed__8; -lean_inc(x_280); -x_282 = lean_array_push(x_281, x_280); -x_283 = l_Lean_Elab_Command_expandMixfix___closed__22; -lean_inc(x_271); -lean_inc(x_272); -x_284 = l_Lean_addMacroScope(x_272, x_283, x_271); -x_285 = lean_box(0); -x_286 = l_Lean_SourceInfo_inhabited___closed__1; -x_287 = l_Lean_Elab_Command_expandMixfix___closed__21; -x_288 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_288, 0, x_286); -lean_ctor_set(x_288, 1, x_287); -lean_ctor_set(x_288, 2, x_284); -lean_ctor_set(x_288, 3, x_285); -x_289 = lean_array_push(x_277, x_288); -x_290 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; -lean_inc(x_289); -x_291 = lean_array_push(x_289, x_290); -x_292 = l_Lean_Elab_Command_expandMixfix___closed__10; -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_292); -lean_ctor_set(x_293, 1, x_291); -x_294 = lean_array_push(x_277, x_293); -x_295 = lean_array_push(x_294, x_268); -x_296 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; -x_297 = l_Lean_addMacroScope(x_272, x_296, x_271); -x_298 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; -x_299 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_299, 0, x_286); -lean_ctor_set(x_299, 1, x_298); -lean_ctor_set(x_299, 2, x_297); -lean_ctor_set(x_299, 3, x_285); -lean_inc(x_299); -x_300 = lean_array_push(x_277, x_299); -x_301 = lean_array_push(x_300, x_280); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_292); -lean_ctor_set(x_302, 1, x_301); -x_303 = lean_array_push(x_295, x_302); -x_304 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_304, 0, x_279); -lean_ctor_set(x_304, 1, x_303); -x_305 = lean_array_push(x_282, x_304); -x_306 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -x_307 = lean_array_push(x_305, x_306); -x_308 = lean_array_push(x_277, x_270); -x_309 = lean_array_push(x_289, x_299); -x_310 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_310, 0, x_279); -lean_ctor_set(x_310, 1, x_309); -x_311 = lean_array_push(x_308, x_310); -x_312 = l_Lean_mkAppStx___closed__8; -x_313 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_313, 0, x_312); -lean_ctor_set(x_313, 1, x_311); -x_314 = lean_array_push(x_307, x_313); -x_315 = l_Lean_Elab_Command_expandMixfix___closed__6; -x_316 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_316, 0, x_315); -lean_ctor_set(x_316, 1, x_314); -x_317 = lean_alloc_ctor(0, 2, 0); +lean_dec(x_1); +x_271 = lean_box(1); +x_272 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_272, 0, x_271); +lean_ctor_set(x_272, 1, x_3); +return x_272; +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_273 = l_Lean_Syntax_getArg(x_262, x_249); +lean_dec(x_262); +x_274 = l_Lean_Syntax_getArg(x_1, x_269); +x_275 = lean_unsigned_to_nat(4u); +x_276 = l_Lean_Syntax_getArg(x_1, x_275); +lean_dec(x_1); +x_277 = lean_ctor_get(x_2, 2); +lean_inc(x_277); +x_278 = lean_ctor_get(x_2, 1); +lean_inc(x_278); +lean_dec(x_2); +x_279 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; +x_280 = lean_array_push(x_279, x_273); +x_281 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_281, 0, x_263); +lean_ctor_set(x_281, 1, x_280); +x_282 = l_Array_empty___closed__1; +x_283 = lean_array_push(x_282, x_281); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_253); +lean_ctor_set(x_284, 1, x_283); +x_285 = l_Lean_Elab_Command_expandMixfix___closed__12; +lean_inc(x_284); +x_286 = lean_array_push(x_285, x_284); +x_287 = l_Lean_Elab_Command_expandMixfix___closed__26; +lean_inc(x_277); +lean_inc(x_278); +x_288 = l_Lean_addMacroScope(x_278, x_287, x_277); +x_289 = lean_box(0); +x_290 = l_Lean_SourceInfo_inhabited___closed__1; +x_291 = l_Lean_Elab_Command_expandMixfix___closed__25; +x_292 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_292, 0, x_290); +lean_ctor_set(x_292, 1, x_291); +lean_ctor_set(x_292, 2, x_288); +lean_ctor_set(x_292, 3, x_289); +x_293 = lean_array_push(x_282, x_292); +x_294 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; +lean_inc(x_293); +x_295 = lean_array_push(x_293, x_294); +x_296 = l_Lean_Elab_Command_expandMixfix___closed__14; +x_297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_295); +x_298 = lean_array_push(x_282, x_297); +x_299 = lean_array_push(x_298, x_274); +x_300 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__4; +x_301 = l_Lean_addMacroScope(x_278, x_300, x_277); +x_302 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__3; +x_303 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_303, 0, x_290); +lean_ctor_set(x_303, 1, x_302); +lean_ctor_set(x_303, 2, x_301); +lean_ctor_set(x_303, 3, x_289); +lean_inc(x_303); +x_304 = lean_array_push(x_282, x_303); +x_305 = lean_array_push(x_304, x_284); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_296); +lean_ctor_set(x_306, 1, x_305); +x_307 = lean_array_push(x_299, x_306); +x_308 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_308, 0, x_253); +lean_ctor_set(x_308, 1, x_307); +x_309 = lean_array_push(x_286, x_308); +x_310 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; +x_311 = lean_array_push(x_309, x_310); +x_312 = lean_array_push(x_282, x_276); +x_313 = lean_array_push(x_293, x_303); +x_314 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_314, 0, x_253); +lean_ctor_set(x_314, 1, x_313); +x_315 = lean_array_push(x_312, x_314); +x_316 = l_Lean_mkAppStx___closed__8; +x_317 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_317, 0, x_316); -lean_ctor_set(x_317, 1, x_3); -return x_317; +lean_ctor_set(x_317, 1, x_315); +x_318 = lean_array_push(x_311, x_317); +x_319 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_320 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_320, 0, x_319); +lean_ctor_set(x_320, 1, x_318); +x_321 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_321, 0, x_320); +lean_ctor_set(x_321, 1, x_3); +return x_321; } } } } } } -block_388: -{ -if (x_334 == 0) -{ -lean_object* x_335; uint8_t x_336; -x_335 = l_Lean_Elab_Command_expandMixfix___closed__26; -lean_inc(x_8); -x_336 = l_Lean_Syntax_isOfKind(x_8, x_335); -if (x_336 == 0) -{ -uint8_t x_337; -x_337 = 0; -x_249 = x_337; -goto block_333; -} -else -{ -lean_object* x_338; lean_object* x_339; lean_object* x_340; uint8_t x_341; -x_338 = l_Lean_Syntax_getArgs(x_8); -x_339 = lean_array_get_size(x_338); -lean_dec(x_338); -x_340 = lean_unsigned_to_nat(1u); -x_341 = lean_nat_dec_eq(x_339, x_340); -lean_dec(x_339); -x_249 = x_341; -goto block_333; -} -} -else -{ -lean_object* x_342; lean_object* x_343; uint8_t x_344; lean_object* x_382; uint8_t x_383; -lean_dec(x_8); -lean_dec(x_2); -x_342 = lean_unsigned_to_nat(1u); -x_343 = l_Lean_Syntax_getArg(x_1, x_342); -x_382 = l_Lean_nullKind___closed__2; -lean_inc(x_343); -x_383 = l_Lean_Syntax_isOfKind(x_343, x_382); -if (x_383 == 0) -{ -uint8_t x_384; -x_384 = 0; -x_344 = x_384; -goto block_381; -} -else -{ -lean_object* x_385; lean_object* x_386; uint8_t x_387; -x_385 = l_Lean_Syntax_getArgs(x_343); -x_386 = lean_array_get_size(x_385); -lean_dec(x_385); -x_387 = lean_nat_dec_eq(x_386, x_342); -lean_dec(x_386); -x_344 = x_387; -goto block_381; -} -block_381: -{ -if (x_344 == 0) -{ -lean_object* x_345; lean_object* x_346; -lean_dec(x_343); -lean_dec(x_1); -x_345 = lean_box(1); -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_3); -return x_346; -} -else -{ -lean_object* x_347; uint8_t x_348; lean_object* x_374; uint8_t x_375; -x_347 = l_Lean_Syntax_getArg(x_343, x_7); -lean_dec(x_343); -x_374 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_347); -x_375 = l_Lean_Syntax_isOfKind(x_347, x_374); -if (x_375 == 0) -{ -uint8_t x_376; -x_376 = 0; -x_348 = x_376; -goto block_373; -} -else -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; uint8_t x_380; -x_377 = l_Lean_Syntax_getArgs(x_347); -x_378 = lean_array_get_size(x_377); -lean_dec(x_377); -x_379 = lean_unsigned_to_nat(2u); -x_380 = lean_nat_dec_eq(x_378, x_379); -lean_dec(x_378); -x_348 = x_380; -goto block_373; -} -block_373: -{ -if (x_348 == 0) -{ -lean_object* x_349; lean_object* x_350; -lean_dec(x_347); -lean_dec(x_1); -x_349 = lean_box(1); -x_350 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_350, 0, x_349); -lean_ctor_set(x_350, 1, x_3); -return x_350; -} -else -{ -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_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; -x_351 = l_Lean_Syntax_getArg(x_347, x_342); -lean_dec(x_347); -x_352 = lean_unsigned_to_nat(2u); -x_353 = l_Lean_Syntax_getArg(x_1, x_352); -x_354 = lean_unsigned_to_nat(4u); -x_355 = l_Lean_Syntax_getArg(x_1, x_354); -lean_dec(x_1); -x_356 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; -x_357 = lean_array_push(x_356, x_351); -x_358 = l_Lean_Elab_Command_expandMixfix___closed__4; -x_359 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_359, 0, x_358); -lean_ctor_set(x_359, 1, x_357); -x_360 = l_Array_empty___closed__1; -x_361 = lean_array_push(x_360, x_359); -x_362 = l_Lean_nullKind___closed__2; -x_363 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_363, 0, x_362); -lean_ctor_set(x_363, 1, x_361); -x_364 = l_Lean_Elab_Command_expandMixfix___closed__30; -x_365 = lean_array_push(x_364, x_363); -x_366 = lean_array_push(x_365, x_353); -x_367 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__17; -x_368 = lean_array_push(x_366, x_367); -x_369 = lean_array_push(x_368, x_355); -x_370 = l_Lean_Elab_Command_expandMixfix___closed__2; -x_371 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_371, 0, x_370); -lean_ctor_set(x_371, 1, x_369); -x_372 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_372, 0, x_371); -lean_ctor_set(x_372, 1, x_3); -return x_372; -} -} -} -} -} } } } @@ -15802,7 +17993,55 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_2, x_1); +return x_3; +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -15823,7 +18062,7 @@ x_7 = lean_array_fget(x_3, x_2); x_8 = lean_unsigned_to_nat(0u); x_9 = lean_array_fset(x_3, x_2, x_8); x_10 = x_7; -x_11 = l___private_Lean_Elab_Syntax_9__antiquote___main(x_1, x_10); +x_11 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote(x_1, x_10); x_12 = lean_unsigned_to_nat(1u); x_13 = lean_nat_add(x_2, x_12); x_14 = x_11; @@ -15835,7 +18074,7 @@ goto _start; } } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -15878,7 +18117,7 @@ return x_14; } } } -static lean_object* _init_l___private_Lean_Elab_Syntax_9__antiquote___main___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -15887,27 +18126,27 @@ x_2 = l_Lean_mkAtom(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_9__antiquote___main___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_mkExplicitBinder___closed__7; -x_2 = l___private_Lean_Elab_Syntax_9__antiquote___main___closed__1; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Syntax_9__antiquote___main___closed__2; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__2; x_2 = l_Lean_mkOptionalNode___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -15926,7 +18165,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_ctor_get(x_2, 1); x_7 = x_6; x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__1(x_1, x_8, x_7); +x_9 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1(x_1, x_8, x_7); x_10 = x_9; lean_ctor_set(x_2, 1, x_10); return x_2; @@ -15941,7 +18180,7 @@ lean_inc(x_11); lean_dec(x_2); x_13 = x_12; x_14 = lean_unsigned_to_nat(0u); -x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__1(x_1, x_14, x_13); +x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1(x_1, x_14, x_13); x_16 = x_15; x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_11); @@ -15958,7 +18197,7 @@ else { lean_object* x_18; lean_object* x_19; x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__2(x_2, x_1, x_18); +x_19 = l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__2(x_2, x_1, x_18); if (lean_obj_tag(x_19) == 0) { return x_2; @@ -15967,7 +18206,7 @@ else { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_19); -x_20 = l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3; +x_20 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3; x_21 = lean_array_push(x_20, x_2); x_22 = l_Lean_mkOptionalNode___closed__1; x_23 = lean_array_push(x_21, x_22); @@ -15981,49 +18220,64 @@ return x_26; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__1(x_1, x_2, x_3); +x_4 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__1(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_9__antiquote___main___spec__2(x_1, x_2, x_3); +x_4 = l_Array_findIdxAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___spec__2(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___main___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Elab_Syntax_9__antiquote___main(x_1, x_2); +x_3 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Elab_Syntax_9__antiquote(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; -x_3 = l___private_Lean_Elab_Syntax_9__antiquote___main(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Elab_Syntax_9__antiquote___boxed(lean_object* x_1, lean_object* x_2) { -_start: +if (lean_obj_tag(x_1) == 2) { -lean_object* x_3; -x_3 = l___private_Lean_Elab_Syntax_9__antiquote(x_1, x_2); +lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); lean_dec(x_1); -return x_3; +x_6 = lean_apply_2(x_2, x_4, x_5); +return x_6; +} +else +{ +lean_object* x_7; +lean_dec(x_2); +x_7 = lean_apply_1(x_3, x_1); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem_match__1___rarg), 3, 0); +return x_2; } } lean_object* l_Lean_Elab_Command_expandNotationItemIntoSyntaxItem(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -16032,7 +18286,7 @@ _start: lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_inc(x_1); x_4 = l_Lean_Syntax_getKind(x_1); -x_5 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_5 = l_Lean_Elab_Command_expandMixfix___closed__14; x_6 = lean_name_eq(x_4, x_5); if (x_6 == 0) { @@ -16060,7 +18314,7 @@ else lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; x_13 = l_Lean_mkOptionalNode___closed__2; x_14 = lean_array_push(x_13, x_1); -x_15 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_15 = l_Lean_Elab_Term_toParserDescrAux___closed__2; x_16 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); @@ -16089,7 +18343,7 @@ x_22 = lean_ctor_get(x_19, 1); x_23 = l_Lean_mkStxStrLit(x_22, x_21); x_24 = l_Lean_mkOptionalNode___closed__2; x_25 = lean_array_push(x_24, x_23); -x_26 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_26 = l_Lean_Elab_Term_toParserDescrAux___closed__2; lean_ctor_set_tag(x_19, 1); lean_ctor_set(x_19, 1, x_25); lean_ctor_set(x_19, 0, x_26); @@ -16109,7 +18363,7 @@ lean_dec(x_19); x_30 = l_Lean_mkStxStrLit(x_29, x_28); x_31 = l_Lean_mkOptionalNode___closed__2; x_32 = lean_array_push(x_31, x_30); -x_33 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_33 = l_Lean_Elab_Term_toParserDescrAux___closed__2; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -16143,7 +18397,7 @@ lean_dec(x_1); x_42 = l_Lean_mkAppStx___closed__9; x_43 = lean_array_push(x_42, x_39); x_44 = lean_array_push(x_43, x_41); -x_45 = l_Lean_Elab_Term_checkLeftRec___closed__3; +x_45 = l_Lean_Elab_Term_checkLeftRec___closed__10; x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); @@ -16163,6 +18417,37 @@ lean_dec(x_2); return x_4; } } +lean_object* l_Lean_Elab_Command_strLitToPattern_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +} +} +lean_object* l_Lean_Elab_Command_strLitToPattern_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_strLitToPattern_match__1___rarg), 3, 0); +return x_2; +} +} lean_object* l_Lean_Elab_Command_strLitToPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -16207,7 +18492,7 @@ _start: lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_inc(x_1); x_4 = l_Lean_Syntax_getKind(x_1); -x_5 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_5 = l_Lean_Elab_Command_expandMixfix___closed__14; x_6 = lean_name_eq(x_4, x_5); if (x_6 == 0) { @@ -16258,7 +18543,7 @@ lean_dec(x_4); x_17 = lean_unsigned_to_nat(0u); x_18 = l_Lean_Syntax_getArg(x_1, x_17); lean_dec(x_1); -x_19 = l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3; +x_19 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3; x_20 = lean_array_push(x_19, x_18); x_21 = l_Lean_mkOptionalNode___closed__1; x_22 = lean_array_push(x_20, x_21); @@ -16283,7 +18568,38 @@ lean_dec(x_2); return x_4; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1(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; @@ -16353,7 +18669,7 @@ return x_24; } } } -lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -16373,7 +18689,7 @@ else lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; x_7 = lean_array_fget(x_1, x_2); x_8 = l_Lean_Syntax_getKind(x_7); -x_9 = l_Lean_Elab_Command_expandMixfix___closed__10; +x_9 = l_Lean_Elab_Command_expandMixfix___closed__14; x_10 = lean_name_eq(x_8, x_9); lean_dec(x_8); if (x_10 == 0) @@ -16419,7 +18735,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -16453,7 +18769,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4(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; @@ -16523,7 +18839,7 @@ return x_24; } } } -static lean_object* _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -16535,27 +18851,27 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__1; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__3() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_1 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_2 = l___private_Lean_Elab_Quotation_8__letBindRhss___main___closed__13; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__4() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -16565,29 +18881,29 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__5() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__1; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__5; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__5; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -16603,7 +18919,7 @@ lean_inc(x_3); x_11 = x_3; x_12 = lean_unsigned_to_nat(0u); lean_inc(x_11); -x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__1___boxed), 4, 2); +x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1___boxed), 4, 2); lean_closure_set(x_13, 0, x_12); lean_closure_set(x_13, 1, x_11); x_14 = x_13; @@ -16618,13 +18934,13 @@ x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); x_18 = l_Lean_mkIdentFrom(x_1, x_7); -x_19 = l_Array_filterAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__2(x_3, x_12, x_12); +x_19 = l_Array_filterAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__2(x_3, x_12, x_12); x_20 = x_19; -x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__3(x_12, x_20); +x_21 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__3(x_12, x_20); x_22 = x_21; -x_23 = l___private_Lean_Elab_Syntax_9__antiquote___main(x_22, x_4); +x_23 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote(x_22, x_4); lean_dec(x_22); -x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__4___boxed), 4, 2); +x_24 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4___boxed), 4, 2); lean_closure_set(x_24, 0, x_12); lean_closure_set(x_24, 1, x_11); x_25 = x_24; @@ -16647,7 +18963,7 @@ lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean x_30 = l_Lean_mkIdentFrom(x_1, x_9); x_31 = l_Array_empty___closed__1; x_32 = lean_array_push(x_31, x_30); -x_33 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_33 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_34 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_32); @@ -16659,7 +18975,7 @@ x_39 = l_Lean_nullKind___closed__2; x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_39); lean_ctor_set(x_40, 1, x_38); -x_41 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__3; +x_41 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3; x_42 = lean_array_push(x_41, x_40); x_43 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_16, x_16, x_12, x_31); lean_dec(x_16); @@ -16675,7 +18991,7 @@ x_50 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); x_51 = lean_array_push(x_31, x_50); -x_52 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_52 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_53 = lean_array_push(x_52, x_29); x_54 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_55 = lean_array_push(x_53, x_54); @@ -16710,7 +19026,7 @@ x_73 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__11 x_74 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_74, 0, x_73); lean_ctor_set(x_74, 1, x_72); -x_75 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__4; +x_75 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__4; x_76 = lean_array_push(x_75, x_74); x_77 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2; x_78 = lean_alloc_ctor(1, 2, 0); @@ -16731,7 +19047,7 @@ lean_inc(x_81); lean_dec(x_2); x_82 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; x_83 = lean_array_push(x_82, x_81); -x_84 = l_Lean_Elab_Command_expandMixfix___closed__4; +x_84 = l_Lean_Elab_Command_expandMixfix___closed__8; x_85 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_85, 0, x_84); lean_ctor_set(x_85, 1, x_83); @@ -16741,11 +19057,11 @@ x_88 = l_Lean_nullKind___closed__2; x_89 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_87); -x_90 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_90 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_91 = lean_array_push(x_90, x_89); x_92 = l_Lean_mkIdentFrom(x_1, x_9); x_93 = lean_array_push(x_86, x_92); -x_94 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_94 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_95 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_95, 0, x_94); lean_ctor_set(x_95, 1, x_93); @@ -16771,7 +19087,7 @@ x_109 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_109, 0, x_108); lean_ctor_set(x_109, 1, x_107); x_110 = lean_array_push(x_86, x_109); -x_111 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_111 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_112 = lean_array_push(x_111, x_29); x_113 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_114 = lean_array_push(x_112, x_113); @@ -16838,7 +19154,7 @@ lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; x_143 = l_Lean_mkIdentFrom(x_1, x_9); x_144 = l_Array_empty___closed__1; x_145 = lean_array_push(x_144, x_143); -x_146 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_146 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_147 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_147, 0, x_146); lean_ctor_set(x_147, 1, x_145); @@ -16850,7 +19166,7 @@ x_152 = l_Lean_nullKind___closed__2; x_153 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_153, 0, x_152); lean_ctor_set(x_153, 1, x_151); -x_154 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__3; +x_154 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3; x_155 = lean_array_push(x_154, x_153); x_156 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_16, x_16, x_12, x_144); lean_dec(x_16); @@ -16866,7 +19182,7 @@ x_163 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_163, 0, x_162); lean_ctor_set(x_163, 1, x_161); x_164 = lean_array_push(x_144, x_163); -x_165 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_165 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_166 = lean_array_push(x_165, x_142); x_167 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_168 = lean_array_push(x_166, x_167); @@ -16901,7 +19217,7 @@ x_186 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__1 x_187 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_187, 0, x_186); lean_ctor_set(x_187, 1, x_185); -x_188 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__4; +x_188 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__4; x_189 = lean_array_push(x_188, x_187); x_190 = l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__2; x_191 = lean_alloc_ctor(1, 2, 0); @@ -16924,7 +19240,7 @@ lean_inc(x_195); lean_dec(x_2); x_196 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_301____closed__22; x_197 = lean_array_push(x_196, x_195); -x_198 = l_Lean_Elab_Command_expandMixfix___closed__4; +x_198 = l_Lean_Elab_Command_expandMixfix___closed__8; x_199 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_199, 0, x_198); lean_ctor_set(x_199, 1, x_197); @@ -16934,11 +19250,11 @@ x_202 = l_Lean_nullKind___closed__2; x_203 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_203, 0, x_202); lean_ctor_set(x_203, 1, x_201); -x_204 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_204 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_205 = lean_array_push(x_204, x_203); x_206 = l_Lean_mkIdentFrom(x_1, x_9); x_207 = lean_array_push(x_200, x_206); -x_208 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_208 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_209 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_209, 0, x_208); lean_ctor_set(x_209, 1, x_207); @@ -16964,7 +19280,7 @@ x_223 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_223, 0, x_222); lean_ctor_set(x_223, 1, x_221); x_224 = lean_array_push(x_200, x_223); -x_225 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_225 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_226 = lean_array_push(x_225, x_142); x_227 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_228 = lean_array_push(x_226, x_227); @@ -17074,29 +19390,29 @@ return x_262; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_10__expandNotationAux___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_Array_umapMAux___main___at___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l___private_Lean_Elab_Syntax_10__expandNotationAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Lean_Elab_Syntax_10__expandNotationAux(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } @@ -17104,76 +19420,33 @@ return x_7; lean_object* l_Lean_Elab_Command_expandNotation(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_4; lean_object* x_52; uint8_t x_53; -x_52 = l_Lean_Elab_Command_expandMixfix___closed__6; +lean_object* x_4; uint8_t x_5; +x_4 = l_Lean_Elab_Command_expandMixfix___closed__10; lean_inc(x_1); -x_53 = l_Lean_Syntax_isOfKind(x_1, x_52); -if (x_53 == 0) +x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); +if (x_5 == 0) { -uint8_t x_54; -x_54 = 0; -x_4 = x_54; -goto block_51; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_55 = l_Lean_Syntax_getArgs(x_1); -x_56 = lean_array_get_size(x_55); -lean_dec(x_55); -x_57 = lean_unsigned_to_nat(5u); -x_58 = lean_nat_dec_eq(x_56, x_57); -lean_dec(x_56); -x_4 = x_58; -goto block_51; -} -block_51: -{ -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; +lean_object* x_6; lean_object* x_7; lean_dec(x_2); lean_dec(x_1); -x_5 = lean_box(1); -x_6 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_6, 0, x_5); -lean_ctor_set(x_6, 1, x_3); -return x_6; +x_6 = lean_box(1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +return x_7; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; uint8_t x_11; -x_7 = lean_unsigned_to_nat(1u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -x_9 = l_Lean_nullKind___closed__2; -lean_inc(x_8); -x_10 = l_Lean_Syntax_isOfKind(x_8, x_9); -if (x_10 == 0) -{ -uint8_t x_47; -x_47 = 0; -x_11 = x_47; -goto block_46; -} -else -{ -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = l_Lean_Syntax_getArgs(x_8); -x_49 = lean_array_get_size(x_48); -lean_dec(x_48); -x_50 = lean_nat_dec_eq(x_49, x_7); -lean_dec(x_49); -x_11 = x_50; -goto block_46; -} -block_46: -{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = l_Lean_Syntax_getArgs(x_1); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_unsigned_to_nat(5u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); if (x_11 == 0) { -if (x_10 == 0) -{ lean_object* x_12; lean_object* x_13; -lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); x_12 = lean_box(1); @@ -17185,16 +19458,15 @@ return x_13; else { lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_14 = l_Lean_Syntax_getArgs(x_8); -lean_dec(x_8); -x_15 = lean_array_get_size(x_14); -lean_dec(x_14); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_nat_dec_eq(x_15, x_16); -lean_dec(x_15); +x_14 = lean_unsigned_to_nat(1u); +x_15 = l_Lean_Syntax_getArg(x_1, x_14); +x_16 = l_Lean_nullKind___closed__2; +lean_inc(x_15); +x_17 = l_Lean_Syntax_isOfKind(x_15, x_16); if (x_17 == 0) { lean_object* x_18; lean_object* x_19; +lean_dec(x_15); lean_dec(x_2); lean_dec(x_1); x_18 = lean_box(1); @@ -17205,78 +19477,103 @@ return x_19; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_20 = lean_unsigned_to_nat(2u); -x_21 = l_Lean_Syntax_getArg(x_1, x_20); -x_22 = lean_unsigned_to_nat(4u); -x_23 = l_Lean_Syntax_getArg(x_1, x_22); -x_24 = l_Lean_Syntax_getArgs(x_21); +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = l_Lean_Syntax_getArgs(x_15); +x_21 = lean_array_get_size(x_20); +lean_dec(x_20); +x_22 = lean_nat_dec_eq(x_21, x_14); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +lean_dec(x_15); +x_23 = lean_unsigned_to_nat(0u); +x_24 = lean_nat_dec_eq(x_21, x_23); lean_dec(x_21); -x_25 = lean_box(0); -x_26 = l___private_Lean_Elab_Syntax_10__expandNotationAux(x_1, x_25, x_24, x_23, x_2, x_3); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_2); lean_dec(x_1); +x_25 = lean_box(1); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_3); return x_26; } +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_27 = lean_unsigned_to_nat(2u); +x_28 = l_Lean_Syntax_getArg(x_1, x_27); +x_29 = lean_unsigned_to_nat(4u); +x_30 = l_Lean_Syntax_getArg(x_1, x_29); +x_31 = l_Lean_Syntax_getArgs(x_28); +lean_dec(x_28); +x_32 = lean_box(0); +x_33 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux(x_1, x_32, x_31, x_30, x_2, x_3); +lean_dec(x_1); +return x_33; } } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_27 = lean_unsigned_to_nat(0u); -x_28 = l_Lean_Syntax_getArg(x_8, x_27); -lean_dec(x_8); -x_29 = l_Lean_Elab_Command_expandMixfix___closed__4; -lean_inc(x_28); -x_30 = l_Lean_Syntax_isOfKind(x_28, x_29); -if (x_30 == 0) +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_dec(x_21); +x_34 = lean_unsigned_to_nat(0u); +x_35 = l_Lean_Syntax_getArg(x_15, x_34); +lean_dec(x_15); +x_36 = l_Lean_Elab_Command_expandMixfix___closed__8; +lean_inc(x_35); +x_37 = l_Lean_Syntax_isOfKind(x_35, x_36); +if (x_37 == 0) { -lean_object* x_31; lean_object* x_32; -lean_dec(x_28); +lean_object* x_38; lean_object* x_39; +lean_dec(x_35); lean_dec(x_2); lean_dec(x_1); -x_31 = lean_box(1); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_3); -return x_32; +x_38 = lean_box(1); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_3); +return x_39; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = l_Lean_Syntax_getArgs(x_28); -x_34 = lean_array_get_size(x_33); -lean_dec(x_33); -x_35 = lean_unsigned_to_nat(2u); -x_36 = lean_nat_dec_eq(x_34, x_35); -lean_dec(x_34); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_28); -lean_dec(x_2); -lean_dec(x_1); -x_37 = lean_box(1); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_3); -return x_38; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_39 = l_Lean_Syntax_getArg(x_28, x_7); -lean_dec(x_28); -x_40 = l_Lean_Syntax_getArg(x_1, x_35); -x_41 = lean_unsigned_to_nat(4u); -x_42 = l_Lean_Syntax_getArg(x_1, x_41); -x_43 = l_Lean_Syntax_getArgs(x_40); +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = l_Lean_Syntax_getArgs(x_35); +x_41 = lean_array_get_size(x_40); lean_dec(x_40); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_39); -x_45 = l___private_Lean_Elab_Syntax_10__expandNotationAux(x_1, x_44, x_43, x_42, x_2, x_3); +x_42 = lean_unsigned_to_nat(2u); +x_43 = lean_nat_dec_eq(x_41, x_42); +lean_dec(x_41); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +lean_dec(x_35); +lean_dec(x_2); lean_dec(x_1); +x_44 = lean_box(1); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_3); return x_45; } +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_46 = l_Lean_Syntax_getArg(x_35, x_14); +lean_dec(x_35); +x_47 = l_Lean_Syntax_getArg(x_1, x_42); +x_48 = lean_unsigned_to_nat(4u); +x_49 = l_Lean_Syntax_getArg(x_1, x_48); +x_50 = l_Lean_Syntax_getArgs(x_47); +lean_dec(x_47); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_46); +x_52 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux(x_1, x_51, x_50, x_49, x_2, x_3); +lean_dec(x_1); +return x_52; +} } } } @@ -17297,7 +19594,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_macroAttribute; -x_3 = l_Lean_Elab_Command_expandMixfix___closed__6; +x_3 = l_Lean_Elab_Command_expandMixfix___closed__10; x_4 = l___regBuiltin_Lean_Elab_Command_expandNotation___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -17350,7 +19647,7 @@ else lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_11 = l_Lean_mkOptionalNode___closed__2; x_12 = lean_array_push(x_11, x_1); -x_13 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_13 = l_Lean_Elab_Term_toParserDescrAux___closed__2; x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); @@ -17409,7 +19706,7 @@ x_10 = l_Lean_SourceInfo_inhabited___closed__1; x_11 = l_Lean_mkStxStrLit(x_9, x_10); x_12 = l_Lean_mkOptionalNode___closed__2; x_13 = lean_array_push(x_12, x_11); -x_14 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_14 = l_Lean_Elab_Term_toParserDescrAux___closed__2; x_15 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); @@ -17427,7 +19724,7 @@ lean_dec(x_6); x_18 = l_Lean_mkStxStrLit(x_9, x_17); x_19 = l_Lean_mkOptionalNode___closed__2; x_20 = lean_array_push(x_19, x_18); -x_21 = l_Lean_Elab_Term_toParserDescrAux___main___closed__2; +x_21 = l_Lean_Elab_Term_toParserDescrAux___closed__2; x_22 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_22, 0, x_21); lean_ctor_set(x_22, 1, x_20); @@ -17487,7 +19784,7 @@ lean_dec(x_4); x_12 = lean_unsigned_to_nat(0u); x_13 = l_Lean_Syntax_getArg(x_1, x_12); lean_dec(x_1); -x_14 = l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3; +x_14 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3; x_15 = lean_array_push(x_14, x_13); x_16 = l_Lean_mkOptionalNode___closed__1; x_17 = lean_array_push(x_15, x_16); @@ -17790,11 +20087,11 @@ x_50 = l_Lean_nullKind___closed__2; x_51 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_51, 0, x_50); lean_ctor_set(x_51, 1, x_49); -x_52 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_52 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_53 = lean_array_push(x_52, x_51); x_54 = l_Lean_mkIdentFrom(x_1, x_17); x_55 = lean_array_push(x_48, x_54); -x_56 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_56 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_57 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_55); @@ -17820,7 +20117,7 @@ x_71 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_69); x_72 = lean_array_push(x_48, x_71); -x_73 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_73 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_74 = lean_array_push(x_73, x_42); x_75 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_76 = lean_array_push(x_74, x_75); @@ -17880,11 +20177,11 @@ x_106 = l_Lean_nullKind___closed__2; x_107 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_107, 0, x_106); lean_ctor_set(x_107, 1, x_105); -x_108 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_108 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_109 = lean_array_push(x_108, x_107); x_110 = l_Lean_mkIdentFrom(x_1, x_17); x_111 = lean_array_push(x_104, x_110); -x_112 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_112 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_113 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_113, 0, x_112); lean_ctor_set(x_113, 1, x_111); @@ -17910,7 +20207,7 @@ x_127 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_127, 0, x_126); lean_ctor_set(x_127, 1, x_125); x_128 = lean_array_push(x_104, x_127); -x_129 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_129 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_130 = lean_array_push(x_129, x_42); x_131 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_132 = lean_array_push(x_130, x_131); @@ -17986,11 +20283,11 @@ x_167 = l_Lean_nullKind___closed__2; x_168 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_168, 0, x_167); lean_ctor_set(x_168, 1, x_166); -x_169 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_169 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_170 = lean_array_push(x_169, x_168); x_171 = l_Lean_mkIdentFrom(x_1, x_17); x_172 = lean_array_push(x_165, x_171); -x_173 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_173 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_174 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_174, 0, x_173); lean_ctor_set(x_174, 1, x_172); @@ -18016,7 +20313,7 @@ x_188 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_188, 0, x_187); lean_ctor_set(x_188, 1, x_186); x_189 = lean_array_push(x_165, x_188); -x_190 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_190 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_191 = lean_array_push(x_190, x_159); x_192 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_193 = lean_array_push(x_191, x_192); @@ -18078,11 +20375,11 @@ x_224 = l_Lean_nullKind___closed__2; x_225 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_225, 0, x_224); lean_ctor_set(x_225, 1, x_223); -x_226 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_226 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_227 = lean_array_push(x_226, x_225); x_228 = l_Lean_mkIdentFrom(x_1, x_17); x_229 = lean_array_push(x_222, x_228); -x_230 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_230 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; x_231 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_231, 0, x_230); lean_ctor_set(x_231, 1, x_229); @@ -18108,7 +20405,7 @@ x_245 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_245, 0, x_244); lean_ctor_set(x_245, 1, x_243); x_246 = lean_array_push(x_222, x_245); -x_247 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_247 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_248 = lean_array_push(x_247, x_159); x_249 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_250 = lean_array_push(x_248, x_249); @@ -18328,7 +20625,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -static lean_object* _init_l___private_Lean_Elab_Syntax_11__regTraceClasses___closed__1() { +static lean_object* _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18338,11 +20635,11 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Syntax_11__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Elab_Syntax_11__regTraceClasses___closed__1; +x_2 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses___closed__1; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -18394,6 +20691,36 @@ return x_13; } } } +lean_object* l_Lean_Elab_Command_withExpectedType_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l_Lean_Elab_Command_withExpectedType_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Command_withExpectedType_match__1___rarg), 3, 0); +return x_2; +} +} static lean_object* _init_l_Lean_Elab_Command_withExpectedType___closed__1() { _start: { @@ -18438,7 +20765,7 @@ x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); x_12 = l_Lean_Elab_Command_withExpectedType___closed__3; -x_13 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_11); +x_13 = l_Lean_throwError___at_Lean_Elab_Term_reportUnsolvedGoals___spec__1___rarg(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_11); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -19156,10 +21483,10 @@ x_67 = l_Lean_nullKind___closed__2; x_68 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_68, 0, x_67); lean_ctor_set(x_68, 1, x_66); -x_69 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_69 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_70 = lean_array_push(x_69, x_68); x_71 = lean_array_push(x_65, x_48); -x_72 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_72 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_71); x_73 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_73, 0, x_72); @@ -19202,7 +21529,7 @@ x_95 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_95, 0, x_67); lean_ctor_set(x_95, 1, x_71); x_96 = lean_array_push(x_94, x_95); -x_97 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_97 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_98 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_98, 0, x_97); lean_ctor_set(x_98, 1, x_96); @@ -19210,10 +21537,10 @@ x_99 = lean_array_push(x_65, x_98); x_100 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_100, 0, x_67); lean_ctor_set(x_100, 1, x_99); -x_101 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_101 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_102 = lean_array_push(x_101, x_100); x_103 = lean_array_push(x_102, x_76); -x_104 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_104 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_105 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_103); @@ -19228,7 +21555,7 @@ x_111 = lean_array_push(x_109, x_110); x_112 = lean_array_push(x_111, x_110); x_113 = lean_array_push(x_112, x_110); x_114 = lean_array_push(x_113, x_110); -x_115 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_115 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_116 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_116, 0, x_115); lean_ctor_set(x_116, 1, x_114); @@ -19249,7 +21576,7 @@ x_124 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_125 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_125, 0, x_124); lean_ctor_set(x_125, 1, x_123); -x_126 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_126 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_127 = lean_array_push(x_126, x_125); x_128 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__7; lean_inc(x_63); @@ -19273,7 +21600,7 @@ x_138 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_138, 0, x_67); lean_ctor_set(x_138, 1, x_137); x_139 = lean_array_push(x_108, x_138); -x_140 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_140 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_141 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_141, 0, x_140); lean_ctor_set(x_141, 1, x_139); @@ -19357,19 +21684,19 @@ x_191 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_192 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_192, 0, x_191); lean_ctor_set(x_192, 1, x_190); -x_193 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_193 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_194 = lean_array_push(x_193, x_192); -x_195 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_195 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_196 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_196, 0, x_195); lean_ctor_set(x_196, 1, x_194); x_197 = lean_array_push(x_142, x_196); -x_198 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_198 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_199 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_199, 0, x_198); lean_ctor_set(x_199, 1, x_197); x_200 = lean_array_push(x_117, x_199); -x_201 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_201 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_202 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_202, 0, x_201); lean_ctor_set(x_202, 1, x_200); @@ -19398,10 +21725,10 @@ x_209 = l_Lean_nullKind___closed__2; x_210 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_210, 0, x_209); lean_ctor_set(x_210, 1, x_208); -x_211 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_211 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_212 = lean_array_push(x_211, x_210); x_213 = lean_array_push(x_207, x_48); -x_214 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_214 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_213); x_215 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_215, 0, x_214); @@ -19445,7 +21772,7 @@ x_238 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_238, 0, x_209); lean_ctor_set(x_238, 1, x_213); x_239 = lean_array_push(x_237, x_238); -x_240 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_240 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_241 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_241, 0, x_240); lean_ctor_set(x_241, 1, x_239); @@ -19453,10 +21780,10 @@ x_242 = lean_array_push(x_207, x_241); x_243 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_243, 0, x_209); lean_ctor_set(x_243, 1, x_242); -x_244 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_244 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_245 = lean_array_push(x_244, x_243); x_246 = lean_array_push(x_245, x_218); -x_247 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_247 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_248 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_248, 0, x_247); lean_ctor_set(x_248, 1, x_246); @@ -19471,7 +21798,7 @@ x_254 = lean_array_push(x_252, x_253); x_255 = lean_array_push(x_254, x_253); x_256 = lean_array_push(x_255, x_253); x_257 = lean_array_push(x_256, x_253); -x_258 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_258 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_259 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_259, 0, x_258); lean_ctor_set(x_259, 1, x_257); @@ -19492,7 +21819,7 @@ x_267 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_268 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_268, 0, x_267); lean_ctor_set(x_268, 1, x_266); -x_269 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_269 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_270 = lean_array_push(x_269, x_268); x_271 = l_Lean_Elab_Command_mkCommandElabAttribute___closed__9; lean_inc(x_205); @@ -19516,7 +21843,7 @@ x_281 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_281, 0, x_209); lean_ctor_set(x_281, 1, x_280); x_282 = lean_array_push(x_251, x_281); -x_283 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_283 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_284 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_284, 0, x_283); lean_ctor_set(x_284, 1, x_282); @@ -19544,7 +21871,7 @@ x_296 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; x_297 = lean_array_push(x_296, x_289); x_298 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__9; x_299 = lean_array_push(x_297, x_298); -x_300 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_300 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_301 = lean_array_push(x_300, x_47); x_302 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_303 = lean_array_push(x_301, x_302); @@ -19600,19 +21927,19 @@ x_334 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_335 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_335, 0, x_334); lean_ctor_set(x_335, 1, x_333); -x_336 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_336 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_337 = lean_array_push(x_336, x_335); -x_338 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_338 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_339 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_339, 0, x_338); lean_ctor_set(x_339, 1, x_337); x_340 = lean_array_push(x_285, x_339); -x_341 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_341 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_342 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_342, 0, x_341); lean_ctor_set(x_342, 1, x_340); x_343 = lean_array_push(x_260, x_342); -x_344 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_344 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_345 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_345, 0, x_344); lean_ctor_set(x_345, 1, x_343); @@ -19641,10 +21968,10 @@ x_352 = l_Lean_nullKind___closed__2; x_353 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_353, 0, x_352); lean_ctor_set(x_353, 1, x_351); -x_354 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_354 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_355 = lean_array_push(x_354, x_353); x_356 = lean_array_push(x_350, x_48); -x_357 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_357 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_356); x_358 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_358, 0, x_357); @@ -19688,7 +22015,7 @@ x_381 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_381, 0, x_352); lean_ctor_set(x_381, 1, x_356); x_382 = lean_array_push(x_380, x_381); -x_383 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_383 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_384 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_384, 0, x_383); lean_ctor_set(x_384, 1, x_382); @@ -19696,10 +22023,10 @@ x_385 = lean_array_push(x_350, x_384); x_386 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_386, 0, x_352); lean_ctor_set(x_386, 1, x_385); -x_387 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_387 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_388 = lean_array_push(x_387, x_386); x_389 = lean_array_push(x_388, x_361); -x_390 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_390 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_391 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_391, 0, x_390); lean_ctor_set(x_391, 1, x_389); @@ -19714,7 +22041,7 @@ x_397 = lean_array_push(x_395, x_396); x_398 = lean_array_push(x_397, x_396); x_399 = lean_array_push(x_398, x_396); x_400 = lean_array_push(x_399, x_396); -x_401 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_401 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_402 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_402, 0, x_401); lean_ctor_set(x_402, 1, x_400); @@ -19735,7 +22062,7 @@ x_410 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_411 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_411, 0, x_410); lean_ctor_set(x_411, 1, x_409); -x_412 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_412 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_413 = lean_array_push(x_412, x_411); x_414 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; lean_inc(x_348); @@ -19759,7 +22086,7 @@ x_424 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_424, 0, x_352); lean_ctor_set(x_424, 1, x_423); x_425 = lean_array_push(x_394, x_424); -x_426 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_426 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_427 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_427, 0, x_426); lean_ctor_set(x_427, 1, x_425); @@ -19789,7 +22116,7 @@ x_441 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; x_442 = lean_array_push(x_441, x_432); x_443 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__9; x_444 = lean_array_push(x_442, x_443); -x_445 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_445 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_446 = lean_array_push(x_445, x_47); x_447 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_448 = lean_array_push(x_446, x_447); @@ -19845,19 +22172,19 @@ x_479 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_480 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_480, 0, x_479); lean_ctor_set(x_480, 1, x_478); -x_481 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_481 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_482 = lean_array_push(x_481, x_480); -x_483 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_483 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_484 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_484, 0, x_483); lean_ctor_set(x_484, 1, x_482); x_485 = lean_array_push(x_428, x_484); -x_486 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_486 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_487 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_487, 0, x_486); lean_ctor_set(x_487, 1, x_485); x_488 = lean_array_push(x_403, x_487); -x_489 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_489 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_490 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_490, 0, x_489); lean_ctor_set(x_490, 1, x_488); @@ -19914,10 +22241,10 @@ x_507 = l_Lean_nullKind___closed__2; x_508 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_508, 0, x_507); lean_ctor_set(x_508, 1, x_506); -x_509 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_509 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_510 = lean_array_push(x_509, x_508); x_511 = lean_array_push(x_505, x_48); -x_512 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_512 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_511); x_513 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_513, 0, x_512); @@ -19961,7 +22288,7 @@ x_536 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_536, 0, x_507); lean_ctor_set(x_536, 1, x_511); x_537 = lean_array_push(x_535, x_536); -x_538 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_538 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_539 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_539, 0, x_538); lean_ctor_set(x_539, 1, x_537); @@ -19969,10 +22296,10 @@ x_540 = lean_array_push(x_505, x_539); x_541 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_541, 0, x_507); lean_ctor_set(x_541, 1, x_540); -x_542 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_542 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_543 = lean_array_push(x_542, x_541); x_544 = lean_array_push(x_543, x_516); -x_545 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_545 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_546 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_546, 0, x_545); lean_ctor_set(x_546, 1, x_544); @@ -19987,7 +22314,7 @@ x_552 = lean_array_push(x_550, x_551); x_553 = lean_array_push(x_552, x_551); x_554 = lean_array_push(x_553, x_551); x_555 = lean_array_push(x_554, x_551); -x_556 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_556 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_557 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_557, 0, x_556); lean_ctor_set(x_557, 1, x_555); @@ -20008,7 +22335,7 @@ x_565 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_566 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_566, 0, x_565); lean_ctor_set(x_566, 1, x_564); -x_567 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_567 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_568 = lean_array_push(x_567, x_566); x_569 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; lean_inc(x_503); @@ -20032,7 +22359,7 @@ x_579 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_579, 0, x_507); lean_ctor_set(x_579, 1, x_578); x_580 = lean_array_push(x_549, x_579); -x_581 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_581 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_582 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_582, 0, x_581); lean_ctor_set(x_582, 1, x_580); @@ -20072,7 +22399,7 @@ x_599 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; x_600 = lean_array_push(x_599, x_587); x_601 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__9; x_602 = lean_array_push(x_600, x_601); -x_603 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_603 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_604 = lean_array_push(x_603, x_47); x_605 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_606 = lean_array_push(x_604, x_605); @@ -20160,19 +22487,19 @@ x_655 = lean_array_push(x_598, x_654); x_656 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_656, 0, x_625); lean_ctor_set(x_656, 1, x_655); -x_657 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_657 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_658 = lean_array_push(x_657, x_656); -x_659 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_659 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_660 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_660, 0, x_659); lean_ctor_set(x_660, 1, x_658); x_661 = lean_array_push(x_583, x_660); -x_662 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_662 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_663 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_663, 0, x_662); lean_ctor_set(x_663, 1, x_661); x_664 = lean_array_push(x_558, x_663); -x_665 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_665 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_666 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_666, 0, x_665); lean_ctor_set(x_666, 1, x_664); @@ -20255,10 +22582,10 @@ x_693 = l_Lean_nullKind___closed__2; x_694 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_694, 0, x_693); lean_ctor_set(x_694, 1, x_692); -x_695 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_695 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_696 = lean_array_push(x_695, x_694); x_697 = lean_array_push(x_691, x_674); -x_698 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_698 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_697); x_699 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_699, 0, x_698); @@ -20301,7 +22628,7 @@ x_721 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_721, 0, x_693); lean_ctor_set(x_721, 1, x_697); x_722 = lean_array_push(x_720, x_721); -x_723 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_723 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_724 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_724, 0, x_723); lean_ctor_set(x_724, 1, x_722); @@ -20309,10 +22636,10 @@ x_725 = lean_array_push(x_691, x_724); x_726 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_726, 0, x_693); lean_ctor_set(x_726, 1, x_725); -x_727 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_727 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_728 = lean_array_push(x_727, x_726); x_729 = lean_array_push(x_728, x_702); -x_730 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_730 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_731 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_731, 0, x_730); lean_ctor_set(x_731, 1, x_729); @@ -20327,7 +22654,7 @@ x_737 = lean_array_push(x_735, x_736); x_738 = lean_array_push(x_737, x_736); x_739 = lean_array_push(x_738, x_736); x_740 = lean_array_push(x_739, x_736); -x_741 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_741 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_742 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_742, 0, x_741); lean_ctor_set(x_742, 1, x_740); @@ -20348,7 +22675,7 @@ x_750 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_751 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_751, 0, x_750); lean_ctor_set(x_751, 1, x_749); -x_752 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_752 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_753 = lean_array_push(x_752, x_751); x_754 = l_Lean_Elab_Tactic_mkTacticAttribute___closed__7; lean_inc(x_689); @@ -20372,7 +22699,7 @@ x_764 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_764, 0, x_693); lean_ctor_set(x_764, 1, x_763); x_765 = lean_array_push(x_734, x_764); -x_766 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_766 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_767 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_767, 0, x_766); lean_ctor_set(x_767, 1, x_765); @@ -20456,19 +22783,19 @@ x_817 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_818 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_818, 0, x_817); lean_ctor_set(x_818, 1, x_816); -x_819 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_819 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_820 = lean_array_push(x_819, x_818); -x_821 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_821 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_822 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_822, 0, x_821); lean_ctor_set(x_822, 1, x_820); x_823 = lean_array_push(x_768, x_822); -x_824 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_824 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_825 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_825, 0, x_824); lean_ctor_set(x_825, 1, x_823); x_826 = lean_array_push(x_743, x_825); -x_827 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_827 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_828 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_828, 0, x_827); lean_ctor_set(x_828, 1, x_826); @@ -20499,10 +22826,10 @@ x_836 = l_Lean_nullKind___closed__2; x_837 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_837, 0, x_836); lean_ctor_set(x_837, 1, x_835); -x_838 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_838 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_839 = lean_array_push(x_838, x_837); x_840 = lean_array_push(x_834, x_674); -x_841 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_841 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_840); x_842 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_842, 0, x_841); @@ -20546,7 +22873,7 @@ x_865 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_865, 0, x_836); lean_ctor_set(x_865, 1, x_840); x_866 = lean_array_push(x_864, x_865); -x_867 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_867 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_868 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_868, 0, x_867); lean_ctor_set(x_868, 1, x_866); @@ -20554,10 +22881,10 @@ x_869 = lean_array_push(x_834, x_868); x_870 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_870, 0, x_836); lean_ctor_set(x_870, 1, x_869); -x_871 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_871 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_872 = lean_array_push(x_871, x_870); x_873 = lean_array_push(x_872, x_845); -x_874 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_874 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_875 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_875, 0, x_874); lean_ctor_set(x_875, 1, x_873); @@ -20572,7 +22899,7 @@ x_881 = lean_array_push(x_879, x_880); x_882 = lean_array_push(x_881, x_880); x_883 = lean_array_push(x_882, x_880); x_884 = lean_array_push(x_883, x_880); -x_885 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_885 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_886 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_886, 0, x_885); lean_ctor_set(x_886, 1, x_884); @@ -20593,7 +22920,7 @@ x_894 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_895 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_895, 0, x_894); lean_ctor_set(x_895, 1, x_893); -x_896 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_896 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_897 = lean_array_push(x_896, x_895); x_898 = l_Lean_Elab_Command_mkCommandElabAttribute___closed__9; lean_inc(x_832); @@ -20617,7 +22944,7 @@ x_908 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_908, 0, x_836); lean_ctor_set(x_908, 1, x_907); x_909 = lean_array_push(x_878, x_908); -x_910 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_910 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_911 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_911, 0, x_910); lean_ctor_set(x_911, 1, x_909); @@ -20645,7 +22972,7 @@ x_923 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; x_924 = lean_array_push(x_923, x_916); x_925 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__9; x_926 = lean_array_push(x_924, x_925); -x_927 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_927 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_928 = lean_array_push(x_927, x_673); x_929 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_930 = lean_array_push(x_928, x_929); @@ -20701,19 +23028,19 @@ x_961 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_962 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_962, 0, x_961); lean_ctor_set(x_962, 1, x_960); -x_963 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_963 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_964 = lean_array_push(x_963, x_962); -x_965 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_965 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_966 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_966, 0, x_965); lean_ctor_set(x_966, 1, x_964); x_967 = lean_array_push(x_912, x_966); -x_968 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_968 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_969 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_969, 0, x_968); lean_ctor_set(x_969, 1, x_967); x_970 = lean_array_push(x_887, x_969); -x_971 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_971 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_972 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_972, 0, x_971); lean_ctor_set(x_972, 1, x_970); @@ -20744,10 +23071,10 @@ x_980 = l_Lean_nullKind___closed__2; x_981 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_981, 0, x_980); lean_ctor_set(x_981, 1, x_979); -x_982 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_982 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_983 = lean_array_push(x_982, x_981); x_984 = lean_array_push(x_978, x_674); -x_985 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_985 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_984); x_986 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_986, 0, x_985); @@ -20791,7 +23118,7 @@ x_1009 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1009, 0, x_980); lean_ctor_set(x_1009, 1, x_984); x_1010 = lean_array_push(x_1008, x_1009); -x_1011 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_1011 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_1012 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1012, 0, x_1011); lean_ctor_set(x_1012, 1, x_1010); @@ -20799,10 +23126,10 @@ x_1013 = lean_array_push(x_978, x_1012); x_1014 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1014, 0, x_980); lean_ctor_set(x_1014, 1, x_1013); -x_1015 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_1015 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_1016 = lean_array_push(x_1015, x_1014); x_1017 = lean_array_push(x_1016, x_989); -x_1018 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_1018 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_1019 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1019, 0, x_1018); lean_ctor_set(x_1019, 1, x_1017); @@ -20817,7 +23144,7 @@ x_1025 = lean_array_push(x_1023, x_1024); x_1026 = lean_array_push(x_1025, x_1024); x_1027 = lean_array_push(x_1026, x_1024); x_1028 = lean_array_push(x_1027, x_1024); -x_1029 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_1029 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_1030 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1030, 0, x_1029); lean_ctor_set(x_1030, 1, x_1028); @@ -20838,7 +23165,7 @@ x_1038 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_1039 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1039, 0, x_1038); lean_ctor_set(x_1039, 1, x_1037); -x_1040 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_1040 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_1041 = lean_array_push(x_1040, x_1039); x_1042 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; lean_inc(x_976); @@ -20862,7 +23189,7 @@ x_1052 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1052, 0, x_980); lean_ctor_set(x_1052, 1, x_1051); x_1053 = lean_array_push(x_1022, x_1052); -x_1054 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_1054 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_1055 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1055, 0, x_1054); lean_ctor_set(x_1055, 1, x_1053); @@ -20892,7 +23219,7 @@ x_1069 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; x_1070 = lean_array_push(x_1069, x_1060); x_1071 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__9; x_1072 = lean_array_push(x_1070, x_1071); -x_1073 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_1073 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_1074 = lean_array_push(x_1073, x_673); x_1075 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_1076 = lean_array_push(x_1074, x_1075); @@ -20948,19 +23275,19 @@ x_1107 = l_Lean_myMacro____x40_Lean_Util_Trace___hyg_45____closed__7; x_1108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1108, 0, x_1107); lean_ctor_set(x_1108, 1, x_1106); -x_1109 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_1109 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_1110 = lean_array_push(x_1109, x_1108); -x_1111 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_1111 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_1112 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1112, 0, x_1111); lean_ctor_set(x_1112, 1, x_1110); x_1113 = lean_array_push(x_1056, x_1112); -x_1114 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_1114 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_1115 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1115, 0, x_1114); lean_ctor_set(x_1115, 1, x_1113); x_1116 = lean_array_push(x_1031, x_1115); -x_1117 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_1117 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_1118 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1118, 0, x_1117); lean_ctor_set(x_1118, 1, x_1116); @@ -21018,10 +23345,10 @@ x_1136 = l_Lean_nullKind___closed__2; x_1137 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1137, 0, x_1136); lean_ctor_set(x_1137, 1, x_1135); -x_1138 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2; +x_1138 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2; x_1139 = lean_array_push(x_1138, x_1137); x_1140 = lean_array_push(x_1134, x_674); -x_1141 = l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2; +x_1141 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2; lean_inc(x_1140); x_1142 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1142, 0, x_1141); @@ -21065,7 +23392,7 @@ x_1165 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1165, 0, x_1136); lean_ctor_set(x_1165, 1, x_1140); x_1166 = lean_array_push(x_1164, x_1165); -x_1167 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12; +x_1167 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12; x_1168 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1168, 0, x_1167); lean_ctor_set(x_1168, 1, x_1166); @@ -21073,10 +23400,10 @@ x_1169 = lean_array_push(x_1134, x_1168); x_1170 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1170, 0, x_1136); lean_ctor_set(x_1170, 1, x_1169); -x_1171 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10; +x_1171 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10; x_1172 = lean_array_push(x_1171, x_1170); x_1173 = lean_array_push(x_1172, x_1145); -x_1174 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8; +x_1174 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8; x_1175 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1175, 0, x_1174); lean_ctor_set(x_1175, 1, x_1173); @@ -21091,7 +23418,7 @@ x_1181 = lean_array_push(x_1179, x_1180); x_1182 = lean_array_push(x_1181, x_1180); x_1183 = lean_array_push(x_1182, x_1180); x_1184 = lean_array_push(x_1183, x_1180); -x_1185 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6; +x_1185 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6; x_1186 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1186, 0, x_1185); lean_ctor_set(x_1186, 1, x_1184); @@ -21112,7 +23439,7 @@ x_1194 = l_Lean_Elab_Command_elabMacroRulesAux___closed__4; x_1195 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1195, 0, x_1194); lean_ctor_set(x_1195, 1, x_1193); -x_1196 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18; +x_1196 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18; x_1197 = lean_array_push(x_1196, x_1195); x_1198 = l_Lean_Elab_Term_mkTermElabAttribute___closed__9; lean_inc(x_1132); @@ -21136,7 +23463,7 @@ x_1208 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1208, 0, x_1136); lean_ctor_set(x_1208, 1, x_1207); x_1209 = lean_array_push(x_1178, x_1208); -x_1210 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20; +x_1210 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20; x_1211 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1211, 0, x_1210); lean_ctor_set(x_1211, 1, x_1209); @@ -21176,7 +23503,7 @@ x_1228 = l_Lean_Elab_Command_elabMacroRulesAux___closed__17; x_1229 = lean_array_push(x_1228, x_1216); x_1230 = l___private_Lean_Elab_Binders_12__expandFunBindersAux___main___closed__9; x_1231 = lean_array_push(x_1229, x_1230); -x_1232 = l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6; +x_1232 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6; x_1233 = lean_array_push(x_1232, x_673); x_1234 = l_myMacro____x40_Init_Data_ToString_Macro___hyg_39____closed__15; x_1235 = lean_array_push(x_1233, x_1234); @@ -21264,19 +23591,19 @@ x_1284 = lean_array_push(x_1227, x_1283); x_1285 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1285, 0, x_1254); lean_ctor_set(x_1285, 1, x_1284); -x_1286 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28; +x_1286 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28; x_1287 = lean_array_push(x_1286, x_1285); -x_1288 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27; +x_1288 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27; x_1289 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1289, 0, x_1288); lean_ctor_set(x_1289, 1, x_1287); x_1290 = lean_array_push(x_1212, x_1289); -x_1291 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16; +x_1291 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16; x_1292 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1292, 0, x_1291); lean_ctor_set(x_1292, 1, x_1290); x_1293 = lean_array_push(x_1187, x_1292); -x_1294 = l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4; +x_1294 = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4; x_1295 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_1295, 0, x_1294); lean_ctor_set(x_1295, 1, x_1293); @@ -21482,26 +23809,26 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_expandOptPrecedence___closed__1 = _init_l_Lean_Elab_Term_expandOptPrecedence___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_expandOptPrecedence___closed__1); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__1(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__1); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__2(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__2); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__3 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__3(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__3); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__4); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__5 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__5(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__5); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__6 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__6(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__6); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__7); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__8); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__9 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__9(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__9); -l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__10 = _init_l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__10(); -lean_mark_persistent(l_Array_iterateMAux___main___at___private_Lean_Elab_Syntax_1__mkParserSeq___spec__1___closed__10); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__1 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__1(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__1); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__2 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__2(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__2); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__3); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__4); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__5); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__6); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__7); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__8); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__9 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__9(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__9); +l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10 = _init_l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10(); +lean_mark_persistent(l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_Syntax_0__Lean_Elab_Term_mkParserSeq___spec__1___closed__10); l_Lean_Elab_Term_checkLeftRec___closed__1 = _init_l_Lean_Elab_Term_checkLeftRec___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_checkLeftRec___closed__1); l_Lean_Elab_Term_checkLeftRec___closed__2 = _init_l_Lean_Elab_Term_checkLeftRec___closed__2(); @@ -21522,498 +23849,492 @@ l_Lean_Elab_Term_checkLeftRec___closed__9 = _init_l_Lean_Elab_Term_checkLeftRec_ lean_mark_persistent(l_Lean_Elab_Term_checkLeftRec___closed__9); l_Lean_Elab_Term_checkLeftRec___closed__10 = _init_l_Lean_Elab_Term_checkLeftRec___closed__10(); lean_mark_persistent(l_Lean_Elab_Term_checkLeftRec___closed__10); -l_Lean_Elab_Term_checkLeftRec___closed__11 = _init_l_Lean_Elab_Term_checkLeftRec___closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_checkLeftRec___closed__11); -l_Lean_Elab_Term_checkLeftRec___closed__12 = _init_l_Lean_Elab_Term_checkLeftRec___closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_checkLeftRec___closed__12); -l_Lean_Elab_Term_toParserDescrAux___main___closed__1 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__1); -l_Lean_Elab_Term_toParserDescrAux___main___closed__2 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__2); -l_Lean_Elab_Term_toParserDescrAux___main___closed__3 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__3); -l_Lean_Elab_Term_toParserDescrAux___main___closed__4 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__4); -l_Lean_Elab_Term_toParserDescrAux___main___closed__5 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__5); -l_Lean_Elab_Term_toParserDescrAux___main___closed__6 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__6); -l_Lean_Elab_Term_toParserDescrAux___main___closed__7 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__7); -l_Lean_Elab_Term_toParserDescrAux___main___closed__8 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__8); -l_Lean_Elab_Term_toParserDescrAux___main___closed__9 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__9); -l_Lean_Elab_Term_toParserDescrAux___main___closed__10 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__10); -l_Lean_Elab_Term_toParserDescrAux___main___closed__11 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__11); -l_Lean_Elab_Term_toParserDescrAux___main___closed__12 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__12); -l_Lean_Elab_Term_toParserDescrAux___main___closed__13 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__13); -l_Lean_Elab_Term_toParserDescrAux___main___closed__14 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__14(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__14); -l_Lean_Elab_Term_toParserDescrAux___main___closed__15 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__15(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__15); -l_Lean_Elab_Term_toParserDescrAux___main___closed__16 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__16(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__16); -l_Lean_Elab_Term_toParserDescrAux___main___closed__17 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__17(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__17); -l_Lean_Elab_Term_toParserDescrAux___main___closed__18 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__18(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__18); -l_Lean_Elab_Term_toParserDescrAux___main___closed__19 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__19(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__19); -l_Lean_Elab_Term_toParserDescrAux___main___closed__20 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__20(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__20); -l_Lean_Elab_Term_toParserDescrAux___main___closed__21 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__21(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__21); -l_Lean_Elab_Term_toParserDescrAux___main___closed__22 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__22(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__22); -l_Lean_Elab_Term_toParserDescrAux___main___closed__23 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__23(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__23); -l_Lean_Elab_Term_toParserDescrAux___main___closed__24 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__24(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__24); -l_Lean_Elab_Term_toParserDescrAux___main___closed__25 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__25(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__25); -l_Lean_Elab_Term_toParserDescrAux___main___closed__26 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__26(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__26); -l_Lean_Elab_Term_toParserDescrAux___main___closed__27 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__27(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__27); -l_Lean_Elab_Term_toParserDescrAux___main___closed__28 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__28(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__28); -l_Lean_Elab_Term_toParserDescrAux___main___closed__29 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__29(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__29); -l_Lean_Elab_Term_toParserDescrAux___main___closed__30 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__30(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__30); -l_Lean_Elab_Term_toParserDescrAux___main___closed__31 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__31(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__31); -l_Lean_Elab_Term_toParserDescrAux___main___closed__32 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__32(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__32); -l_Lean_Elab_Term_toParserDescrAux___main___closed__33 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__33(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__33); -l_Lean_Elab_Term_toParserDescrAux___main___closed__34 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__34(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__34); -l_Lean_Elab_Term_toParserDescrAux___main___closed__35 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__35(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__35); -l_Lean_Elab_Term_toParserDescrAux___main___closed__36 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__36(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__36); -l_Lean_Elab_Term_toParserDescrAux___main___closed__37 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__37(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__37); -l_Lean_Elab_Term_toParserDescrAux___main___closed__38 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__38(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__38); -l_Lean_Elab_Term_toParserDescrAux___main___closed__39 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__39(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__39); -l_Lean_Elab_Term_toParserDescrAux___main___closed__40 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__40(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__40); -l_Lean_Elab_Term_toParserDescrAux___main___closed__41 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__41(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__41); -l_Lean_Elab_Term_toParserDescrAux___main___closed__42 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__42(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__42); -l_Lean_Elab_Term_toParserDescrAux___main___closed__43 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__43(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__43); -l_Lean_Elab_Term_toParserDescrAux___main___closed__44 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__44(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__44); -l_Lean_Elab_Term_toParserDescrAux___main___closed__45 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__45(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__45); -l_Lean_Elab_Term_toParserDescrAux___main___closed__46 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__46(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__46); -l_Lean_Elab_Term_toParserDescrAux___main___closed__47 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__47(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__47); -l_Lean_Elab_Term_toParserDescrAux___main___closed__48 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__48(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__48); -l_Lean_Elab_Term_toParserDescrAux___main___closed__49 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__49(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__49); -l_Lean_Elab_Term_toParserDescrAux___main___closed__50 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__50(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__50); -l_Lean_Elab_Term_toParserDescrAux___main___closed__51 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__51(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__51); -l_Lean_Elab_Term_toParserDescrAux___main___closed__52 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__52(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__52); -l_Lean_Elab_Term_toParserDescrAux___main___closed__53 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__53(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__53); -l_Lean_Elab_Term_toParserDescrAux___main___closed__54 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__54(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__54); -l_Lean_Elab_Term_toParserDescrAux___main___closed__55 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__55(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__55); -l_Lean_Elab_Term_toParserDescrAux___main___closed__56 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__56(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__56); -l_Lean_Elab_Term_toParserDescrAux___main___closed__57 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__57(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__57); -l_Lean_Elab_Term_toParserDescrAux___main___closed__58 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__58(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__58); -l_Lean_Elab_Term_toParserDescrAux___main___closed__59 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__59(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__59); -l_Lean_Elab_Term_toParserDescrAux___main___closed__60 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__60(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__60); -l_Lean_Elab_Term_toParserDescrAux___main___closed__61 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__61(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__61); -l_Lean_Elab_Term_toParserDescrAux___main___closed__62 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__62(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__62); -l_Lean_Elab_Term_toParserDescrAux___main___closed__63 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__63(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__63); -l_Lean_Elab_Term_toParserDescrAux___main___closed__64 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__64(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__64); -l_Lean_Elab_Term_toParserDescrAux___main___closed__65 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__65(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__65); -l_Lean_Elab_Term_toParserDescrAux___main___closed__66 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__66(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__66); -l_Lean_Elab_Term_toParserDescrAux___main___closed__67 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__67(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__67); -l_Lean_Elab_Term_toParserDescrAux___main___closed__68 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__68(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__68); -l_Lean_Elab_Term_toParserDescrAux___main___closed__69 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__69(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__69); -l_Lean_Elab_Term_toParserDescrAux___main___closed__70 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__70(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__70); -l_Lean_Elab_Term_toParserDescrAux___main___closed__71 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__71(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__71); -l_Lean_Elab_Term_toParserDescrAux___main___closed__72 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__72(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__72); -l_Lean_Elab_Term_toParserDescrAux___main___closed__73 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__73(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__73); -l_Lean_Elab_Term_toParserDescrAux___main___closed__74 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__74(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__74); -l_Lean_Elab_Term_toParserDescrAux___main___closed__75 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__75(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__75); -l_Lean_Elab_Term_toParserDescrAux___main___closed__76 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__76(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__76); -l_Lean_Elab_Term_toParserDescrAux___main___closed__77 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__77(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__77); -l_Lean_Elab_Term_toParserDescrAux___main___closed__78 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__78(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__78); -l_Lean_Elab_Term_toParserDescrAux___main___closed__79 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__79(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__79); -l_Lean_Elab_Term_toParserDescrAux___main___closed__80 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__80(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__80); -l_Lean_Elab_Term_toParserDescrAux___main___closed__81 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__81(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__81); -l_Lean_Elab_Term_toParserDescrAux___main___closed__82 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__82(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__82); -l_Lean_Elab_Term_toParserDescrAux___main___closed__83 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__83(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__83); -l_Lean_Elab_Term_toParserDescrAux___main___closed__84 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__84(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__84); -l_Lean_Elab_Term_toParserDescrAux___main___closed__85 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__85(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__85); -l_Lean_Elab_Term_toParserDescrAux___main___closed__86 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__86(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__86); -l_Lean_Elab_Term_toParserDescrAux___main___closed__87 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__87(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__87); -l_Lean_Elab_Term_toParserDescrAux___main___closed__88 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__88(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__88); -l_Lean_Elab_Term_toParserDescrAux___main___closed__89 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__89(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__89); -l_Lean_Elab_Term_toParserDescrAux___main___closed__90 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__90(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__90); -l_Lean_Elab_Term_toParserDescrAux___main___closed__91 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__91(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__91); -l_Lean_Elab_Term_toParserDescrAux___main___closed__92 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__92(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__92); -l_Lean_Elab_Term_toParserDescrAux___main___closed__93 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__93(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__93); -l_Lean_Elab_Term_toParserDescrAux___main___closed__94 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__94(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__94); -l_Lean_Elab_Term_toParserDescrAux___main___closed__95 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__95(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__95); -l_Lean_Elab_Term_toParserDescrAux___main___closed__96 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__96(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__96); -l_Lean_Elab_Term_toParserDescrAux___main___closed__97 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__97(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__97); -l_Lean_Elab_Term_toParserDescrAux___main___closed__98 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__98(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__98); -l_Lean_Elab_Term_toParserDescrAux___main___closed__99 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__99(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__99); -l_Lean_Elab_Term_toParserDescrAux___main___closed__100 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__100(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__100); -l_Lean_Elab_Term_toParserDescrAux___main___closed__101 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__101(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__101); -l_Lean_Elab_Term_toParserDescrAux___main___closed__102 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__102(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__102); -l_Lean_Elab_Term_toParserDescrAux___main___closed__103 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__103(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__103); -l_Lean_Elab_Term_toParserDescrAux___main___closed__104 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__104(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__104); -l_Lean_Elab_Term_toParserDescrAux___main___closed__105 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__105(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__105); -l_Lean_Elab_Term_toParserDescrAux___main___closed__106 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__106(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__106); -l_Lean_Elab_Term_toParserDescrAux___main___closed__107 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__107(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__107); -l_Lean_Elab_Term_toParserDescrAux___main___closed__108 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__108(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__108); -l_Lean_Elab_Term_toParserDescrAux___main___closed__109 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__109(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__109); -l_Lean_Elab_Term_toParserDescrAux___main___closed__110 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__110(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__110); -l_Lean_Elab_Term_toParserDescrAux___main___closed__111 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__111(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__111); -l_Lean_Elab_Term_toParserDescrAux___main___closed__112 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__112(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__112); -l_Lean_Elab_Term_toParserDescrAux___main___closed__113 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__113(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__113); -l_Lean_Elab_Term_toParserDescrAux___main___closed__114 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__114(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__114); -l_Lean_Elab_Term_toParserDescrAux___main___closed__115 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__115(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__115); -l_Lean_Elab_Term_toParserDescrAux___main___closed__116 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__116(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__116); -l_Lean_Elab_Term_toParserDescrAux___main___closed__117 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__117(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__117); -l_Lean_Elab_Term_toParserDescrAux___main___closed__118 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__118(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__118); -l_Lean_Elab_Term_toParserDescrAux___main___closed__119 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__119(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__119); -l_Lean_Elab_Term_toParserDescrAux___main___closed__120 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__120(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__120); -l_Lean_Elab_Term_toParserDescrAux___main___closed__121 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__121(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__121); -l_Lean_Elab_Term_toParserDescrAux___main___closed__122 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__122(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__122); -l_Lean_Elab_Term_toParserDescrAux___main___closed__123 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__123(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__123); -l_Lean_Elab_Term_toParserDescrAux___main___closed__124 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__124(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__124); -l_Lean_Elab_Term_toParserDescrAux___main___closed__125 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__125(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__125); -l_Lean_Elab_Term_toParserDescrAux___main___closed__126 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__126(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__126); -l_Lean_Elab_Term_toParserDescrAux___main___closed__127 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__127(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__127); -l_Lean_Elab_Term_toParserDescrAux___main___closed__128 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__128(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__128); -l_Lean_Elab_Term_toParserDescrAux___main___closed__129 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__129(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__129); -l_Lean_Elab_Term_toParserDescrAux___main___closed__130 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__130(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__130); -l_Lean_Elab_Term_toParserDescrAux___main___closed__131 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__131(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__131); -l_Lean_Elab_Term_toParserDescrAux___main___closed__132 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__132(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__132); -l_Lean_Elab_Term_toParserDescrAux___main___closed__133 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__133(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__133); -l_Lean_Elab_Term_toParserDescrAux___main___closed__134 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__134(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__134); -l_Lean_Elab_Term_toParserDescrAux___main___closed__135 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__135(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__135); -l_Lean_Elab_Term_toParserDescrAux___main___closed__136 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__136(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__136); -l_Lean_Elab_Term_toParserDescrAux___main___closed__137 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__137(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__137); -l_Lean_Elab_Term_toParserDescrAux___main___closed__138 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__138(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__138); -l_Lean_Elab_Term_toParserDescrAux___main___closed__139 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__139(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__139); -l_Lean_Elab_Term_toParserDescrAux___main___closed__140 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__140(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__140); -l_Lean_Elab_Term_toParserDescrAux___main___closed__141 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__141(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__141); -l_Lean_Elab_Term_toParserDescrAux___main___closed__142 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__142(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__142); -l_Lean_Elab_Term_toParserDescrAux___main___closed__143 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__143(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__143); -l_Lean_Elab_Term_toParserDescrAux___main___closed__144 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__144(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__144); -l_Lean_Elab_Term_toParserDescrAux___main___closed__145 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__145(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__145); -l_Lean_Elab_Term_toParserDescrAux___main___closed__146 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__146(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__146); -l_Lean_Elab_Term_toParserDescrAux___main___closed__147 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__147(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__147); -l_Lean_Elab_Term_toParserDescrAux___main___closed__148 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__148(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__148); -l_Lean_Elab_Term_toParserDescrAux___main___closed__149 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__149(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__149); -l_Lean_Elab_Term_toParserDescrAux___main___closed__150 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__150(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__150); -l_Lean_Elab_Term_toParserDescrAux___main___closed__151 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__151(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__151); -l_Lean_Elab_Term_toParserDescrAux___main___closed__152 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__152(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__152); -l_Lean_Elab_Term_toParserDescrAux___main___closed__153 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__153(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__153); -l_Lean_Elab_Term_toParserDescrAux___main___closed__154 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__154(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__154); -l_Lean_Elab_Term_toParserDescrAux___main___closed__155 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__155(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__155); -l_Lean_Elab_Term_toParserDescrAux___main___closed__156 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__156(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__156); -l_Lean_Elab_Term_toParserDescrAux___main___closed__157 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__157(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__157); -l_Lean_Elab_Term_toParserDescrAux___main___closed__158 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__158(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__158); -l_Lean_Elab_Term_toParserDescrAux___main___closed__159 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__159(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__159); -l_Lean_Elab_Term_toParserDescrAux___main___closed__160 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__160(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__160); -l_Lean_Elab_Term_toParserDescrAux___main___closed__161 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__161(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__161); -l_Lean_Elab_Term_toParserDescrAux___main___closed__162 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__162(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__162); -l_Lean_Elab_Term_toParserDescrAux___main___closed__163 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__163(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__163); -l_Lean_Elab_Term_toParserDescrAux___main___closed__164 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__164(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__164); -l_Lean_Elab_Term_toParserDescrAux___main___closed__165 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__165(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__165); -l_Lean_Elab_Term_toParserDescrAux___main___closed__166 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__166(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__166); -l_Lean_Elab_Term_toParserDescrAux___main___closed__167 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__167(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__167); -l_Lean_Elab_Term_toParserDescrAux___main___closed__168 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__168(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__168); -l_Lean_Elab_Term_toParserDescrAux___main___closed__169 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__169(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__169); -l_Lean_Elab_Term_toParserDescrAux___main___closed__170 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__170(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__170); -l_Lean_Elab_Term_toParserDescrAux___main___closed__171 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__171(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__171); -l_Lean_Elab_Term_toParserDescrAux___main___closed__172 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__172(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__172); -l_Lean_Elab_Term_toParserDescrAux___main___closed__173 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__173(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__173); -l_Lean_Elab_Term_toParserDescrAux___main___closed__174 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__174(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__174); -l_Lean_Elab_Term_toParserDescrAux___main___closed__175 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__175(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__175); -l_Lean_Elab_Term_toParserDescrAux___main___closed__176 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__176(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__176); -l_Lean_Elab_Term_toParserDescrAux___main___closed__177 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__177(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__177); -l_Lean_Elab_Term_toParserDescrAux___main___closed__178 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__178(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__178); -l_Lean_Elab_Term_toParserDescrAux___main___closed__179 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__179(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__179); -l_Lean_Elab_Term_toParserDescrAux___main___closed__180 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__180(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__180); -l_Lean_Elab_Term_toParserDescrAux___main___closed__181 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__181(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__181); -l_Lean_Elab_Term_toParserDescrAux___main___closed__182 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__182(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__182); -l_Lean_Elab_Term_toParserDescrAux___main___closed__183 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__183(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__183); -l_Lean_Elab_Term_toParserDescrAux___main___closed__184 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__184(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__184); -l_Lean_Elab_Term_toParserDescrAux___main___closed__185 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__185(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__185); -l_Lean_Elab_Term_toParserDescrAux___main___closed__186 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__186(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__186); -l_Lean_Elab_Term_toParserDescrAux___main___closed__187 = _init_l_Lean_Elab_Term_toParserDescrAux___main___closed__187(); -lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___main___closed__187); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__1 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__1); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__2); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__3 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__3); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__4); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__5 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__5); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__6); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__7 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__7); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__8); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__9 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__9); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__10); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__11 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__11(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__11); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__12); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__13 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__13(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__13); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__14 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__14(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__14); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__15 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__15(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__15); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__16); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__17 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__17(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__17); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__18); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__19 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__19(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__19); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__20); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__21 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__21(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__21); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__22 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__22(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__22); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__23); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__24 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__24(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__24); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__25 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__25(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__25); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__26 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__26(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__26); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__27); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__28); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__29); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__30 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__30(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__30); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__31 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__31(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__31); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__32 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__32(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__32); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__33 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__33(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__33); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__34 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__34(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__34); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__35 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__35(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__35); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__36 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__36(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__36); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__37 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__37(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__37); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__38 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__38(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__38); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__39 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__39(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__39); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__40 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__40(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__40); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__41 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__41(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__41); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__42 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__42(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__42); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__43 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__43(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__43); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__44 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__44(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__44); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__45 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__45(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__45); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__46 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__46(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__46); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__47 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__47(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__47); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__48 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__48(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__48); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__49 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__49(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__49); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__50 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__50(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__50); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__51 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__51(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__51); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__52 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__52(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__52); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__53 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__53(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__53); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__54 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__54(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__54); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__55 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__55(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__55); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__56 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__56(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__56); -l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__57 = _init_l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__57(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_6__declareSyntaxCatQuotParser___closed__57); +l_Lean_Elab_Term_toParserDescrAux___closed__1 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__1); +l_Lean_Elab_Term_toParserDescrAux___closed__2 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__2); +l_Lean_Elab_Term_toParserDescrAux___closed__3 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__3); +l_Lean_Elab_Term_toParserDescrAux___closed__4 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__4); +l_Lean_Elab_Term_toParserDescrAux___closed__5 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__5); +l_Lean_Elab_Term_toParserDescrAux___closed__6 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__6); +l_Lean_Elab_Term_toParserDescrAux___closed__7 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__7); +l_Lean_Elab_Term_toParserDescrAux___closed__8 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__8); +l_Lean_Elab_Term_toParserDescrAux___closed__9 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__9); +l_Lean_Elab_Term_toParserDescrAux___closed__10 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__10); +l_Lean_Elab_Term_toParserDescrAux___closed__11 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__11); +l_Lean_Elab_Term_toParserDescrAux___closed__12 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__12); +l_Lean_Elab_Term_toParserDescrAux___closed__13 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__13); +l_Lean_Elab_Term_toParserDescrAux___closed__14 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__14); +l_Lean_Elab_Term_toParserDescrAux___closed__15 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__15); +l_Lean_Elab_Term_toParserDescrAux___closed__16 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__16(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__16); +l_Lean_Elab_Term_toParserDescrAux___closed__17 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__17(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__17); +l_Lean_Elab_Term_toParserDescrAux___closed__18 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__18(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__18); +l_Lean_Elab_Term_toParserDescrAux___closed__19 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__19(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__19); +l_Lean_Elab_Term_toParserDescrAux___closed__20 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__20(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__20); +l_Lean_Elab_Term_toParserDescrAux___closed__21 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__21(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__21); +l_Lean_Elab_Term_toParserDescrAux___closed__22 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__22(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__22); +l_Lean_Elab_Term_toParserDescrAux___closed__23 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__23(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__23); +l_Lean_Elab_Term_toParserDescrAux___closed__24 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__24(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__24); +l_Lean_Elab_Term_toParserDescrAux___closed__25 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__25(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__25); +l_Lean_Elab_Term_toParserDescrAux___closed__26 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__26(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__26); +l_Lean_Elab_Term_toParserDescrAux___closed__27 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__27(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__27); +l_Lean_Elab_Term_toParserDescrAux___closed__28 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__28(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__28); +l_Lean_Elab_Term_toParserDescrAux___closed__29 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__29(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__29); +l_Lean_Elab_Term_toParserDescrAux___closed__30 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__30(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__30); +l_Lean_Elab_Term_toParserDescrAux___closed__31 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__31(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__31); +l_Lean_Elab_Term_toParserDescrAux___closed__32 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__32(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__32); +l_Lean_Elab_Term_toParserDescrAux___closed__33 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__33(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__33); +l_Lean_Elab_Term_toParserDescrAux___closed__34 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__34(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__34); +l_Lean_Elab_Term_toParserDescrAux___closed__35 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__35(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__35); +l_Lean_Elab_Term_toParserDescrAux___closed__36 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__36(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__36); +l_Lean_Elab_Term_toParserDescrAux___closed__37 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__37(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__37); +l_Lean_Elab_Term_toParserDescrAux___closed__38 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__38(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__38); +l_Lean_Elab_Term_toParserDescrAux___closed__39 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__39(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__39); +l_Lean_Elab_Term_toParserDescrAux___closed__40 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__40(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__40); +l_Lean_Elab_Term_toParserDescrAux___closed__41 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__41(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__41); +l_Lean_Elab_Term_toParserDescrAux___closed__42 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__42(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__42); +l_Lean_Elab_Term_toParserDescrAux___closed__43 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__43(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__43); +l_Lean_Elab_Term_toParserDescrAux___closed__44 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__44(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__44); +l_Lean_Elab_Term_toParserDescrAux___closed__45 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__45(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__45); +l_Lean_Elab_Term_toParserDescrAux___closed__46 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__46(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__46); +l_Lean_Elab_Term_toParserDescrAux___closed__47 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__47(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__47); +l_Lean_Elab_Term_toParserDescrAux___closed__48 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__48(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__48); +l_Lean_Elab_Term_toParserDescrAux___closed__49 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__49(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__49); +l_Lean_Elab_Term_toParserDescrAux___closed__50 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__50(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__50); +l_Lean_Elab_Term_toParserDescrAux___closed__51 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__51(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__51); +l_Lean_Elab_Term_toParserDescrAux___closed__52 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__52(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__52); +l_Lean_Elab_Term_toParserDescrAux___closed__53 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__53(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__53); +l_Lean_Elab_Term_toParserDescrAux___closed__54 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__54(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__54); +l_Lean_Elab_Term_toParserDescrAux___closed__55 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__55(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__55); +l_Lean_Elab_Term_toParserDescrAux___closed__56 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__56(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__56); +l_Lean_Elab_Term_toParserDescrAux___closed__57 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__57(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__57); +l_Lean_Elab_Term_toParserDescrAux___closed__58 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__58(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__58); +l_Lean_Elab_Term_toParserDescrAux___closed__59 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__59(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__59); +l_Lean_Elab_Term_toParserDescrAux___closed__60 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__60(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__60); +l_Lean_Elab_Term_toParserDescrAux___closed__61 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__61(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__61); +l_Lean_Elab_Term_toParserDescrAux___closed__62 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__62(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__62); +l_Lean_Elab_Term_toParserDescrAux___closed__63 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__63(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__63); +l_Lean_Elab_Term_toParserDescrAux___closed__64 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__64(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__64); +l_Lean_Elab_Term_toParserDescrAux___closed__65 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__65(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__65); +l_Lean_Elab_Term_toParserDescrAux___closed__66 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__66(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__66); +l_Lean_Elab_Term_toParserDescrAux___closed__67 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__67(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__67); +l_Lean_Elab_Term_toParserDescrAux___closed__68 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__68(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__68); +l_Lean_Elab_Term_toParserDescrAux___closed__69 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__69(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__69); +l_Lean_Elab_Term_toParserDescrAux___closed__70 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__70(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__70); +l_Lean_Elab_Term_toParserDescrAux___closed__71 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__71(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__71); +l_Lean_Elab_Term_toParserDescrAux___closed__72 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__72(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__72); +l_Lean_Elab_Term_toParserDescrAux___closed__73 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__73(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__73); +l_Lean_Elab_Term_toParserDescrAux___closed__74 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__74(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__74); +l_Lean_Elab_Term_toParserDescrAux___closed__75 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__75(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__75); +l_Lean_Elab_Term_toParserDescrAux___closed__76 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__76(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__76); +l_Lean_Elab_Term_toParserDescrAux___closed__77 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__77(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__77); +l_Lean_Elab_Term_toParserDescrAux___closed__78 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__78(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__78); +l_Lean_Elab_Term_toParserDescrAux___closed__79 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__79(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__79); +l_Lean_Elab_Term_toParserDescrAux___closed__80 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__80(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__80); +l_Lean_Elab_Term_toParserDescrAux___closed__81 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__81(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__81); +l_Lean_Elab_Term_toParserDescrAux___closed__82 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__82(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__82); +l_Lean_Elab_Term_toParserDescrAux___closed__83 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__83(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__83); +l_Lean_Elab_Term_toParserDescrAux___closed__84 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__84(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__84); +l_Lean_Elab_Term_toParserDescrAux___closed__85 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__85(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__85); +l_Lean_Elab_Term_toParserDescrAux___closed__86 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__86(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__86); +l_Lean_Elab_Term_toParserDescrAux___closed__87 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__87(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__87); +l_Lean_Elab_Term_toParserDescrAux___closed__88 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__88(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__88); +l_Lean_Elab_Term_toParserDescrAux___closed__89 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__89(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__89); +l_Lean_Elab_Term_toParserDescrAux___closed__90 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__90(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__90); +l_Lean_Elab_Term_toParserDescrAux___closed__91 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__91(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__91); +l_Lean_Elab_Term_toParserDescrAux___closed__92 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__92(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__92); +l_Lean_Elab_Term_toParserDescrAux___closed__93 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__93(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__93); +l_Lean_Elab_Term_toParserDescrAux___closed__94 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__94(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__94); +l_Lean_Elab_Term_toParserDescrAux___closed__95 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__95(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__95); +l_Lean_Elab_Term_toParserDescrAux___closed__96 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__96(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__96); +l_Lean_Elab_Term_toParserDescrAux___closed__97 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__97(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__97); +l_Lean_Elab_Term_toParserDescrAux___closed__98 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__98(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__98); +l_Lean_Elab_Term_toParserDescrAux___closed__99 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__99(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__99); +l_Lean_Elab_Term_toParserDescrAux___closed__100 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__100(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__100); +l_Lean_Elab_Term_toParserDescrAux___closed__101 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__101(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__101); +l_Lean_Elab_Term_toParserDescrAux___closed__102 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__102(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__102); +l_Lean_Elab_Term_toParserDescrAux___closed__103 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__103(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__103); +l_Lean_Elab_Term_toParserDescrAux___closed__104 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__104(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__104); +l_Lean_Elab_Term_toParserDescrAux___closed__105 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__105(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__105); +l_Lean_Elab_Term_toParserDescrAux___closed__106 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__106(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__106); +l_Lean_Elab_Term_toParserDescrAux___closed__107 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__107(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__107); +l_Lean_Elab_Term_toParserDescrAux___closed__108 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__108(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__108); +l_Lean_Elab_Term_toParserDescrAux___closed__109 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__109(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__109); +l_Lean_Elab_Term_toParserDescrAux___closed__110 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__110(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__110); +l_Lean_Elab_Term_toParserDescrAux___closed__111 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__111(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__111); +l_Lean_Elab_Term_toParserDescrAux___closed__112 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__112(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__112); +l_Lean_Elab_Term_toParserDescrAux___closed__113 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__113(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__113); +l_Lean_Elab_Term_toParserDescrAux___closed__114 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__114(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__114); +l_Lean_Elab_Term_toParserDescrAux___closed__115 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__115(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__115); +l_Lean_Elab_Term_toParserDescrAux___closed__116 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__116(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__116); +l_Lean_Elab_Term_toParserDescrAux___closed__117 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__117(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__117); +l_Lean_Elab_Term_toParserDescrAux___closed__118 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__118(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__118); +l_Lean_Elab_Term_toParserDescrAux___closed__119 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__119(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__119); +l_Lean_Elab_Term_toParserDescrAux___closed__120 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__120(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__120); +l_Lean_Elab_Term_toParserDescrAux___closed__121 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__121(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__121); +l_Lean_Elab_Term_toParserDescrAux___closed__122 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__122(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__122); +l_Lean_Elab_Term_toParserDescrAux___closed__123 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__123(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__123); +l_Lean_Elab_Term_toParserDescrAux___closed__124 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__124(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__124); +l_Lean_Elab_Term_toParserDescrAux___closed__125 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__125(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__125); +l_Lean_Elab_Term_toParserDescrAux___closed__126 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__126(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__126); +l_Lean_Elab_Term_toParserDescrAux___closed__127 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__127(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__127); +l_Lean_Elab_Term_toParserDescrAux___closed__128 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__128(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__128); +l_Lean_Elab_Term_toParserDescrAux___closed__129 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__129(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__129); +l_Lean_Elab_Term_toParserDescrAux___closed__130 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__130(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__130); +l_Lean_Elab_Term_toParserDescrAux___closed__131 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__131(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__131); +l_Lean_Elab_Term_toParserDescrAux___closed__132 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__132(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__132); +l_Lean_Elab_Term_toParserDescrAux___closed__133 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__133(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__133); +l_Lean_Elab_Term_toParserDescrAux___closed__134 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__134(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__134); +l_Lean_Elab_Term_toParserDescrAux___closed__135 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__135(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__135); +l_Lean_Elab_Term_toParserDescrAux___closed__136 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__136(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__136); +l_Lean_Elab_Term_toParserDescrAux___closed__137 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__137(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__137); +l_Lean_Elab_Term_toParserDescrAux___closed__138 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__138(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__138); +l_Lean_Elab_Term_toParserDescrAux___closed__139 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__139(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__139); +l_Lean_Elab_Term_toParserDescrAux___closed__140 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__140(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__140); +l_Lean_Elab_Term_toParserDescrAux___closed__141 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__141(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__141); +l_Lean_Elab_Term_toParserDescrAux___closed__142 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__142(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__142); +l_Lean_Elab_Term_toParserDescrAux___closed__143 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__143(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__143); +l_Lean_Elab_Term_toParserDescrAux___closed__144 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__144(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__144); +l_Lean_Elab_Term_toParserDescrAux___closed__145 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__145(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__145); +l_Lean_Elab_Term_toParserDescrAux___closed__146 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__146(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__146); +l_Lean_Elab_Term_toParserDescrAux___closed__147 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__147(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__147); +l_Lean_Elab_Term_toParserDescrAux___closed__148 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__148(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__148); +l_Lean_Elab_Term_toParserDescrAux___closed__149 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__149(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__149); +l_Lean_Elab_Term_toParserDescrAux___closed__150 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__150(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__150); +l_Lean_Elab_Term_toParserDescrAux___closed__151 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__151(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__151); +l_Lean_Elab_Term_toParserDescrAux___closed__152 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__152(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__152); +l_Lean_Elab_Term_toParserDescrAux___closed__153 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__153(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__153); +l_Lean_Elab_Term_toParserDescrAux___closed__154 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__154(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__154); +l_Lean_Elab_Term_toParserDescrAux___closed__155 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__155(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__155); +l_Lean_Elab_Term_toParserDescrAux___closed__156 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__156(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__156); +l_Lean_Elab_Term_toParserDescrAux___closed__157 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__157(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__157); +l_Lean_Elab_Term_toParserDescrAux___closed__158 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__158(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__158); +l_Lean_Elab_Term_toParserDescrAux___closed__159 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__159(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__159); +l_Lean_Elab_Term_toParserDescrAux___closed__160 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__160(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__160); +l_Lean_Elab_Term_toParserDescrAux___closed__161 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__161(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__161); +l_Lean_Elab_Term_toParserDescrAux___closed__162 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__162(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__162); +l_Lean_Elab_Term_toParserDescrAux___closed__163 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__163(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__163); +l_Lean_Elab_Term_toParserDescrAux___closed__164 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__164(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__164); +l_Lean_Elab_Term_toParserDescrAux___closed__165 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__165(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__165); +l_Lean_Elab_Term_toParserDescrAux___closed__166 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__166(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__166); +l_Lean_Elab_Term_toParserDescrAux___closed__167 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__167(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__167); +l_Lean_Elab_Term_toParserDescrAux___closed__168 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__168(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__168); +l_Lean_Elab_Term_toParserDescrAux___closed__169 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__169(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__169); +l_Lean_Elab_Term_toParserDescrAux___closed__170 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__170(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__170); +l_Lean_Elab_Term_toParserDescrAux___closed__171 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__171(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__171); +l_Lean_Elab_Term_toParserDescrAux___closed__172 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__172(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__172); +l_Lean_Elab_Term_toParserDescrAux___closed__173 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__173(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__173); +l_Lean_Elab_Term_toParserDescrAux___closed__174 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__174(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__174); +l_Lean_Elab_Term_toParserDescrAux___closed__175 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__175(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__175); +l_Lean_Elab_Term_toParserDescrAux___closed__176 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__176(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__176); +l_Lean_Elab_Term_toParserDescrAux___closed__177 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__177(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__177); +l_Lean_Elab_Term_toParserDescrAux___closed__178 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__178(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__178); +l_Lean_Elab_Term_toParserDescrAux___closed__179 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__179(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__179); +l_Lean_Elab_Term_toParserDescrAux___closed__180 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__180(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__180); +l_Lean_Elab_Term_toParserDescrAux___closed__181 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__181(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__181); +l_Lean_Elab_Term_toParserDescrAux___closed__182 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__182(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__182); +l_Lean_Elab_Term_toParserDescrAux___closed__183 = _init_l_Lean_Elab_Term_toParserDescrAux___closed__183(); +lean_mark_persistent(l_Lean_Elab_Term_toParserDescrAux___closed__183); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__1); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__2); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__3 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_getCatSuffix___closed__3); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__1); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__2); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__3 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__3); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__4); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__5 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__5); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__6); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__7); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__8); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__9); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__10); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__11); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__12); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__13); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__14); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__15); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__16); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__17); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__18); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__19 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__19(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__19); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__20); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__21); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__22); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__23); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__24 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__24(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__24); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__25); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__26); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__27); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__28); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__29); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__30); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__31); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__32); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__33); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__34); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__35); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__36); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__37); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__38); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__39); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__40); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__41); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__42 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__42(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__42); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__43 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__43(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__43); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__44); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__45); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__46 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__46(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__46); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__47); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__48); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__49); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__50); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__51); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__52 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__52(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__52); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__53 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__53(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__53); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__54); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__55 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__55(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__55); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__56 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__56(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__56); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__57 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__57(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_declareSyntaxCatQuotParser___closed__57); l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1); l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2(); @@ -22023,24 +24344,24 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat___clo res = l___regBuiltin_Lean_Elab_Command_elabDeclareSyntaxCat(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__1 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__1); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__2); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__3 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__3); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__4 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__4); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__5 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__5); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__6 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__6); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__7 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__7); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__8 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__8(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__8); -l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__9 = _init_l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__9(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_7__elabKindPrio___closed__9); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__1); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__2); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__3 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__3); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__4); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__5 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__5); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__6 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__6); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__7 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__7); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__8 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__8); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__9 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_elabKindPrio___closed__9); l_Lean_Elab_Command_elabSyntax___closed__1 = _init_l_Lean_Elab_Command_elabSyntax___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___closed__1); l_Lean_Elab_Command_elabSyntax___closed__2 = _init_l_Lean_Elab_Command_elabSyntax___closed__2(); @@ -22081,6 +24402,10 @@ l_Lean_Elab_Command_elabSyntax___closed__19 = _init_l_Lean_Elab_Command_elabSynt lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___closed__19); l_Lean_Elab_Command_elabSyntax___closed__20 = _init_l_Lean_Elab_Command_elabSyntax___closed__20(); lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___closed__20); +l_Lean_Elab_Command_elabSyntax___closed__21 = _init_l_Lean_Elab_Command_elabSyntax___closed__21(); +lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___closed__21); +l_Lean_Elab_Command_elabSyntax___closed__22 = _init_l_Lean_Elab_Command_elabSyntax___closed__22(); +lean_mark_persistent(l_Lean_Elab_Command_elabSyntax___closed__22); l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__1); l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabSyntax___closed__2(); @@ -22119,10 +24444,6 @@ l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__3 = _init_l_Lean_Ela lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__3); l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4 = _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__4); -l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__5 = _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__5); -l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__6 = _init_l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___lambda__1___closed__6); l_Lean_Elab_Command_elabMacroRulesAux___closed__1 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabMacroRulesAux___closed__1); l_Lean_Elab_Command_elabMacroRulesAux___closed__2 = _init_l_Lean_Elab_Command_elabMacroRulesAux___closed__2(); @@ -22207,8 +24528,6 @@ l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__6 = _init_l_Lean_Elab_Comm lean_mark_persistent(l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__6); l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__7 = _init_l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__7(); lean_mark_persistent(l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__7); -l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__8 = _init_l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__8(); -lean_mark_persistent(l_Lean_Elab_Command_elabNoKindMacroRulesAux___closed__8); l_Lean_Elab_Command_elabMacroRules___closed__1 = _init_l_Lean_Elab_Command_elabMacroRules___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabMacroRules___closed__1); l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabMacroRules___closed__1(); @@ -22285,24 +24604,24 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMixfix___closed__1); res = l___regBuiltin_Lean_Elab_Command_expandMixfix(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Syntax_9__antiquote___main___closed__1 = _init_l___private_Lean_Elab_Syntax_9__antiquote___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_9__antiquote___main___closed__1); -l___private_Lean_Elab_Syntax_9__antiquote___main___closed__2 = _init_l___private_Lean_Elab_Syntax_9__antiquote___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_9__antiquote___main___closed__2); -l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3 = _init_l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_9__antiquote___main___closed__3); -l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__1 = _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__1); -l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2 = _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__2); -l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__3 = _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__3); -l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__4 = _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__4); -l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__5 = _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__5); -l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6 = _init_l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_10__expandNotationAux___closed__6); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__1); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__2); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_antiquote___closed__3); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__1); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__2); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__3); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__4 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__4); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__5 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__5); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_expandNotationAux___closed__6); l___regBuiltin_Lean_Elab_Command_expandNotation___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_expandNotation___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandNotation___closed__1); res = l___regBuiltin_Lean_Elab_Command_expandNotation(lean_io_mk_world()); @@ -22319,9 +24638,9 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_expandMacro___closed__2); res = l___regBuiltin_Lean_Elab_Command_expandMacro(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l___private_Lean_Elab_Syntax_11__regTraceClasses___closed__1 = _init_l___private_Lean_Elab_Syntax_11__regTraceClasses___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Syntax_11__regTraceClasses___closed__1); -res = l___private_Lean_Elab_Syntax_11__regTraceClasses(lean_io_mk_world()); +l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses___closed__1 = _init_l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses___closed__1); +res = l___private_Lean_Elab_Syntax_0__Lean_Elab_Command_regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Command_withExpectedType___closed__1 = _init_l_Lean_Elab_Command_withExpectedType___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c index 803be20e84..79d7745821 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Generalize.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Generalize.c @@ -22,7 +22,6 @@ lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux_match__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2; lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__1; -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq_match__1(lean_object*); lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___lambda__1___closed__3; lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -51,6 +50,7 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeFinalize___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_evalGeneralizeWithEq___spec__2(lean_object*); extern lean_object* l_Lean_Meta_inferTypeRef; +lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalGeneralizeAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,20 +107,22 @@ x_3 = l_Lean_Syntax_getArg(x_1, x_2); x_4 = l_Lean_Syntax_isNone(x_3); if (x_4 == 0) { -lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Lean_Syntax_getIdAt(x_3, x_5); +x_6 = l_Lean_Syntax_getArg(x_3, x_5); lean_dec(x_3); -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, x_6); -return x_7; +x_7 = l_Lean_Syntax_getId(x_6); +lean_dec(x_6); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_7); +return x_8; } else { -lean_object* x_8; +lean_object* x_9; lean_dec(x_3); -x_8 = lean_box(0); -return x_8; +x_9 = lean_box(0); +return x_9; } } } @@ -136,10 +138,12 @@ return x_2; lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; +lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_unsigned_to_nat(4u); -x_3 = l_Lean_Syntax_getIdAt(x_1, x_2); -return x_3; +x_3 = l_Lean_Syntax_getArg(x_1, x_2); +x_4 = l_Lean_Syntax_getId(x_3); +lean_dec(x_3); +return x_4; } } lean_object* l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName___boxed(lean_object* x_1) { @@ -1887,36 +1891,35 @@ return x_12; lean_object* l_Lean_Elab_Tactic_evalGeneralize(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; x_11 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getAuxHypothesisName(x_1); -x_12 = lean_unsigned_to_nat(4u); -x_13 = l_Lean_Syntax_getIdAt(x_1, x_12); -x_14 = lean_unsigned_to_nat(2u); -x_15 = l_Lean_Syntax_getArg(x_1, x_14); -x_16 = lean_box(0); -x_17 = 0; +x_12 = l___private_Lean_Elab_Tactic_Generalize_0__Lean_Elab_Tactic_getVarName(x_1); +x_13 = lean_unsigned_to_nat(2u); +x_14 = l_Lean_Syntax_getArg(x_1, x_13); +x_15 = lean_box(0); +x_16 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_18 = l_Lean_Elab_Tactic_elabTerm(x_15, x_16, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_18) == 0) +x_17 = l_Lean_Elab_Tactic_elabTerm(x_14, x_15, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_18, 0); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = l_Lean_Elab_Tactic_evalGeneralizeAux(x_11, x_19, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); -return x_21; +lean_dec(x_17); +x_20 = l_Lean_Elab_Tactic_evalGeneralizeAux(x_11, x_18, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +return x_20; } else { -uint8_t x_22; -lean_dec(x_13); +uint8_t x_21; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); @@ -1926,23 +1929,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_22 = !lean_is_exclusive(x_18); -if (x_22 == 0) +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) { -return x_18; +return x_17; } 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_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_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_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; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index 3a96fc1187..5ea3bef1d5 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -354,19 +354,21 @@ lean_dec(x_3); x_6 = l_Lean_Syntax_isNone(x_5); if (x_6 == 0) { -lean_object* x_7; lean_object* x_8; -x_7 = l_Lean_Syntax_getIdAt(x_5, x_4); +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lean_Syntax_getArg(x_5, x_4); lean_dec(x_5); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_7); -return x_8; +x_8 = l_Lean_Syntax_getId(x_7); +lean_dec(x_7); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_8); +return x_9; } else { -lean_object* x_9; +lean_object* x_10; lean_dec(x_5); -x_9 = lean_box(0); -return x_9; +x_10 = lean_box(0); +return x_10; } } }