From bdc6bc6fcc5b283b2fe98486b79e84fba6c6b9ff Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 2 Aug 2021 16:19:13 -0700 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Compiler/ConstFolding.lean | 10 +- stage0/src/Lean/Elab/BuiltinCommand.lean | 9 +- stage0/src/Lean/Elab/BuiltinTerm.lean | 10 +- stage0/src/Lean/Elab/Command.lean | 1 - stage0/src/Lean/Elab/Open.lean | 39 +- stage0/src/Lean/Elab/Structure.lean | 17 +- stage0/src/Lean/Expr.lean | 44 +- stage0/src/Lean/Meta/AppBuilder.lean | 4 +- .../src/Lean/Meta/Match/CaseArraySizes.lean | 8 +- stage0/src/Lean/Meta/Match/Match.lean | 18 +- stage0/src/Lean/Meta/Offset.lean | 4 +- stage0/src/Lean/Meta/WHNF.lean | 6 +- stage0/src/Lean/Parser/Extension.lean | 2 +- stage0/src/Lean/Structure.lean | 38 + stage0/stdlib/Lean/Compiler/ConstFolding.c | 20 +- stage0/stdlib/Lean/Elab/BuiltinCommand.c | 3114 +++++++-------- stage0/stdlib/Lean/Elab/BuiltinTerm.c | 2232 +++++------ stage0/stdlib/Lean/Elab/Command.c | 8 +- stage0/stdlib/Lean/Elab/Open.c | 3337 +++++++---------- stage0/stdlib/Lean/Elab/Structure.c | 1096 ++++-- .../stdlib/Lean/Elab/Tactic/BuiltinTactic.c | 2317 +++++------- stage0/stdlib/Lean/Expr.c | 452 ++- stage0/stdlib/Lean/Meta/AppBuilder.c | 4 +- stage0/stdlib/Lean/Meta/Closure.c | 12 +- stage0/stdlib/Lean/Meta/ExprDefEq.c | 10 +- .../stdlib/Lean/Meta/Match/CaseArraySizes.c | 10 +- stage0/stdlib/Lean/Meta/Match/Match.c | 12 +- .../stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c | 2 +- stage0/stdlib/Lean/Meta/Transform.c | 10 +- stage0/stdlib/Lean/Meta/WHNF.c | 19 +- stage0/stdlib/Lean/MetavarContext.c | 14 +- stage0/stdlib/Lean/Parser/Extension.c | 4 +- stage0/stdlib/Lean/Structure.c | 1738 ++++++++- stage0/stdlib/Std/Data/PersistentHashMap.c | 108 +- 34 files changed, 7689 insertions(+), 7040 deletions(-) diff --git a/stage0/src/Lean/Compiler/ConstFolding.lean b/stage0/src/Lean/Compiler/ConstFolding.lean index be7e357e76..99c1d88f46 100644 --- a/stage0/src/Lean/Compiler/ConstFolding.lean +++ b/stage0/src/Lean/Compiler/ConstFolding.lean @@ -50,7 +50,7 @@ def getNumLit : Expr → Option Nat | _ => none def mkUIntLit (info : NumScalarTypeInfo) (n : Nat) : Expr := - mkApp (mkConst info.ofNatFn) (mkNatLit (n%info.size)) + mkApp (mkConst info.ofNatFn) (mkRawNatLit (n%info.size)) def mkUInt32Lit (n : Nat) : Expr := mkUIntLit {nbits := 32} n @@ -79,7 +79,7 @@ def foldNatBinOp (fn : Nat → Nat → Nat) (a₁ a₂ : Expr) : Option Expr := OptionM.run do let n₁ ← getNumLit a₁ let n₂ ← getNumLit a₂ - return mkNatLit (fn n₁ n₂) + return mkRawNatLit (fn n₁ n₂) def foldNatAdd (_ : Bool) := foldNatBinOp Add.add def foldNatMul (_ : Bool) := foldNatBinOp Mul.mul @@ -94,7 +94,7 @@ def foldNatPow (_ : Bool) (a₁ a₂ : Expr) : Option Expr := let n₁ ← getNumLit a₁ let n₂ ← getNumLit a₂ if n₂ < natPowThreshold then - return mkNatLit (n₁ ^ n₂) + return mkRawNatLit (n₁ ^ n₂) else failure @@ -168,7 +168,7 @@ def binFoldFns : List (Name × BinFoldFn) := def foldNatSucc (_ : Bool) (a : Expr) : Option Expr := OptionM.run do let n ← getNumLit a - return mkNatLit (n+1) + return mkRawNatLit (n+1) def foldCharOfNat (beforeErasure : Bool) (a : Expr) : Option Expr := OptionM.run do guard (!beforeErasure) @@ -180,7 +180,7 @@ def foldCharOfNat (beforeErasure : Bool) (a : Expr) : Option Expr := OptionM.run def foldToNat (_ : Bool) (a : Expr) : Option Expr := OptionM.run do let n ← getNumLit a - return mkNatLit n + return mkRawNatLit n def uintFoldToNatFns : List (Name × UnFoldFn) := numScalarTypes.foldl (fun r info => (info.toNatFn, foldToNat) :: r) [] diff --git a/stage0/src/Lean/Elab/BuiltinCommand.lean b/stage0/src/Lean/Elab/BuiltinCommand.lean index 60fb54da48..27dd560bc2 100644 --- a/stage0/src/Lean/Elab/BuiltinCommand.lean +++ b/stage0/src/Lean/Elab/BuiltinCommand.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Elab.Command +import Lean.Elab.Open namespace Lean.Elab.Command @@ -110,12 +111,8 @@ private partial def elabChoiceAux (cmds : Array Syntax) (i : Nat) : CommandElabM let ids := stx[3].getArgs let aliases ← ids.foldlM (init := []) fun (aliases : List (Name × Name)) (idStx : Syntax) => do let id := idStx.getId - let declName := ns ++ id - if env.contains declName then - pure <| (currNamespace ++ id, declName) :: aliases - else - withRef idStx <| logUnknownDecl declName - pure aliases + let declName ← resolveOpenDeclId ns idStx + pure <| (currNamespace ++ id, declName) :: aliases modify fun s => { s with env := aliases.foldl (init := s.env) fun env p => addAlias env p.1 p.2 } @[builtinCommandElab «open»] def elabOpen : CommandElab := fun n => do diff --git a/stage0/src/Lean/Elab/BuiltinTerm.lean b/stage0/src/Lean/Elab/BuiltinTerm.lean index 06ff848681..83f191a014 100644 --- a/stage0/src/Lean/Elab/BuiltinTerm.lean +++ b/stage0/src/Lean/Elab/BuiltinTerm.lean @@ -132,14 +132,14 @@ private def mkFreshTypeMVarFor (expectedType? : Option Expr) : TermElabM Expr := | none => throwIllFormedSyntax let typeMVar ← mkFreshTypeMVarFor expectedType? let u ← getDecLevel typeMVar - let mvar ← mkInstMVar (mkApp2 (Lean.mkConst ``OfNat [u]) typeMVar (mkNatLit val)) - let r := mkApp3 (Lean.mkConst ``OfNat.ofNat [u]) typeMVar (mkNatLit val) mvar + let mvar ← mkInstMVar (mkApp2 (Lean.mkConst ``OfNat [u]) typeMVar (mkRawNatLit val)) + let r := mkApp3 (Lean.mkConst ``OfNat.ofNat [u]) typeMVar (mkRawNatLit val) mvar registerMVarErrorImplicitArgInfo mvar.mvarId! stx r return r @[builtinTermElab rawNatLit] def elabRawNatLit : TermElab := fun stx expectedType? => do match stx[1].isNatLit? with - | some val => return mkNatLit val + | some val => return mkRawNatLit val | none => throwIllFormedSyntax @[builtinTermElab scientificLit] @@ -150,11 +150,11 @@ def elabScientificLit : TermElab := fun stx expectedType? => do let typeMVar ← mkFreshTypeMVarFor expectedType? let u ← getDecLevel typeMVar let mvar ← mkInstMVar (mkApp (Lean.mkConst ``OfScientific [u]) typeMVar) - return mkApp5 (Lean.mkConst ``OfScientific.ofScientific [u]) typeMVar mvar (mkNatLit m) (toExpr sign) (mkNatLit e) + return mkApp5 (Lean.mkConst ``OfScientific.ofScientific [u]) typeMVar mvar (mkRawNatLit m) (toExpr sign) (mkRawNatLit e) @[builtinTermElab charLit] def elabCharLit : TermElab := fun stx _ => do match stx.isCharLit? with - | some val => return mkApp (Lean.mkConst ``Char.ofNat) (mkNatLit val.toNat) + | some val => return mkApp (Lean.mkConst ``Char.ofNat) (mkRawNatLit val.toNat) | none => throwIllFormedSyntax @[builtinTermElab quotedName] def elabQuotedName : TermElab := fun stx _ => diff --git a/stage0/src/Lean/Elab/Command.lean b/stage0/src/Lean/Elab/Command.lean index 4ea195f38c..56862a3ded 100644 --- a/stage0/src/Lean/Elab/Command.lean +++ b/stage0/src/Lean/Elab/Command.lean @@ -12,7 +12,6 @@ import Lean.Elab.Binders import Lean.Elab.SyntheticMVars import Lean.Elab.DeclModifiers import Lean.Elab.InfoTree -import Lean.Elab.Open import Lean.Elab.SetOption namespace Lean.Elab.Command diff --git a/stage0/src/Lean/Elab/Open.lean b/stage0/src/Lean/Elab/Open.lean index f62ded1009..a00bec0cbe 100644 --- a/stage0/src/Lean/Elab/Open.lean +++ b/stage0/src/Lean/Elab/Open.lean @@ -22,6 +22,13 @@ instance : MonadResolveName (M (m := m)) where getCurrNamespace := return (← get).currNamespace getOpenDecls := return (← get).openDecls +def resolveId (ns : Name) (idStx : Syntax) : M (m := m) Name := do + let declName := ns ++ idStx.getId + if (← getEnv).contains declName then + return declName + else + withRef idStx <| resolveGlobalConstNoOverloadCore declName + private def addOpenDecl (decl : OpenDecl) : M (m:=m) Unit := modify fun s => { s with openDecls := decl :: s.openDecls } @@ -36,37 +43,27 @@ private def elabOpenSimple (n : Syntax) : M (m:=m) Unit := private def elabOpenOnly (n : Syntax) : M (m:=m) Unit := do let ns ← resolveNamespace n[0].getId for idStx in n[2].getArgs do - let id := idStx.getId - let declName := ns ++ id - if (← getEnv).contains declName then - addOpenDecl (OpenDecl.explicit id declName) - else - withRef idStx <| logUnknownDecl declName + let declName ← resolveId ns idStx + addOpenDecl (OpenDecl.explicit idStx.getId declName) -- `open` id `hiding` id+ private def elabOpenHiding (n : Syntax) : M (m:=m) Unit := do let ns ← resolveNamespace n[0].getId let mut ids : List Name := [] for idStx in n[2].getArgs do + let declName ← resolveId ns idStx let id := idStx.getId - let declName := ns ++ id - if (← getEnv).contains declName then - ids := id::ids - else - withRef idStx <| logUnknownDecl declName + ids := id::ids addOpenDecl (OpenDecl.simple ns ids) -- `open` id `renaming` sepBy (id `->` id) `,` private def elabOpenRenaming (n : Syntax) : M (m:=m) Unit := do let ns ← resolveNamespace n[0].getId for stx in n[2].getSepArgs do - let fromId := stx[0].getId + let fromStx := stx[0] let toId := stx[2].getId - let declName := ns ++ fromId - if (← getEnv).contains declName then - addOpenDecl (OpenDecl.explicit toId declName) - else - withRef stx do logUnknownDecl declName + let declName ← resolveId ns fromStx + addOpenDecl (OpenDecl.explicit toId declName) def elabOpenDecl [MonadResolveName m] (openDeclStx : Syntax) : m (List OpenDecl) := do StateRefT'.run' (s := { openDecls := (← getOpenDecls), currNamespace := (← getCurrNamespace) }) do @@ -80,8 +77,12 @@ def elabOpenDecl [MonadResolveName m] (openDeclStx : Syntax) : m (List OpenDecl) elabOpenRenaming openDeclStx return (← get).openDecls +def resolveOpenDeclId [MonadResolveName m] (ns : Name) (idStx : Syntax) : m Name := do + StateRefT'.run' (s := { openDecls := (← getOpenDecls), currNamespace := (← getCurrNamespace) }) do + OpenDecl.resolveId ns idStx + end OpenDecl -export OpenDecl (elabOpenDecl) +export OpenDecl (elabOpenDecl resolveOpenDeclId) -end Lean.Elab \ No newline at end of file +end Lean.Elab diff --git a/stage0/src/Lean/Elab/Structure.lean b/stage0/src/Lean/Elab/Structure.lean index 34bbf19500..224fe06add 100644 --- a/stage0/src/Lean/Elab/Structure.lean +++ b/stage0/src/Lean/Elab/Structure.lean @@ -58,7 +58,7 @@ structure StructView where inductive StructFieldKind where | newField | fromParent | subobject - deriving Inhabited + deriving Inhabited, BEq structure StructFieldInfo where name : Name @@ -470,6 +470,20 @@ private def addProjections (structName : Name) (projs : List ProjectionInfo) (is | Except.ok env => setEnv env | Except.error ex => throwKernelException ex +private def registerStructure (structName : Name) (infos : Array StructFieldInfo) : TermElabM Unit := + modifyEnv fun env => Lean.registerStructure env { + structName + fields := infos.filterMap fun info => + if info.kind == StructFieldKind.fromParent then + none + else + some { + fieldName := info.name + projFn := info.declName + subobject := info.kind == StructFieldKind.subobject + } + } + private def mkAuxConstructions (declName : Name) : TermElabM Unit := do let env ← getEnv let hasUnit := env.contains `PUnit @@ -530,6 +544,7 @@ private def elabStructureView (view : StructView) : TermElabM Unit := do let projInfos := (fieldInfos.filter fun (info : StructFieldInfo) => !info.isFromParent).toList.map fun (info : StructFieldInfo) => { declName := info.declName, inferMod := info.inferMod : ProjectionInfo } addProjections view.declName projInfos view.isClass + registerStructure view.declName fieldInfos mkAuxConstructions view.declName let instParents ← fieldInfos.filterM fun info => do let decl ← Term.getFVarLocalDecl! info.fvar diff --git a/stage0/src/Lean/Expr.lean b/stage0/src/Lean/Expr.lean index df80083a6c..5ae6053093 100644 --- a/stage0/src/Lean/Expr.lean +++ b/stage0/src/Lean/Expr.lean @@ -236,15 +236,6 @@ def binderInfo (e : Expr) : BinderInfo := end Expr -def mkLit (l : Literal) : Expr := - Expr.lit l $ mkData (mixHash 3 (hash l)) - -def mkNatLit (n : Nat) : Expr := - mkLit (Literal.natVal n) - -def mkStrLit (s : String) : Expr := - mkLit (Literal.strVal s) - def mkConst (n : Name) (lvls : List Level := []) : Expr := Expr.const n lvls $ mkData (mixHash 5 $ mixHash (hash n) (hash lvls)) 0 false false (lvls.any Level.hasMVar) (lvls.any Level.hasParam) @@ -320,6 +311,30 @@ def mkLet (x : Name) (t : Expr) (v : Expr) (b : Expr) (nonDep : Bool := false) : (t.hasLevelParam || v.hasLevelParam || b.hasLevelParam) nonDep +def mkAppB (f a b : Expr) := mkApp (mkApp f a) b +def mkApp2 (f a b : Expr) := mkAppB f a b +def mkApp3 (f a b c : Expr) := mkApp (mkAppB f a b) c +def mkApp4 (f a b c d : Expr) := mkAppB (mkAppB f a b) c d +def mkApp5 (f a b c d e : Expr) := mkApp (mkApp4 f a b c d) e +def mkApp6 (f a b c d e₁ e₂ : Expr) := mkAppB (mkApp4 f a b c d) e₁ e₂ +def mkApp7 (f a b c d e₁ e₂ e₃ : Expr) := mkApp3 (mkApp4 f a b c d) e₁ e₂ e₃ +def mkApp8 (f a b c d e₁ e₂ e₃ e₄ : Expr) := mkApp4 (mkApp4 f a b c d) e₁ e₂ e₃ e₄ +def mkApp9 (f a b c d e₁ e₂ e₃ e₄ e₅ : Expr) := mkApp5 (mkApp4 f a b c d) e₁ e₂ e₃ e₄ e₅ +def mkApp10 (f a b c d e₁ e₂ e₃ e₄ e₅ e₆ : Expr) := mkApp6 (mkApp4 f a b c d) e₁ e₂ e₃ e₄ e₅ e₆ + +def mkLit (l : Literal) : Expr := + Expr.lit l $ mkData (mixHash 3 (hash l)) + +def mkRawNatLit (n : Nat) : Expr := + mkLit (Literal.natVal n) + +def mkNatLit (n : Nat) : Expr := + let r := mkRawNatLit n + mkApp3 (mkConst ``OfNat.ofNat [levelZero]) (mkConst ``Nat) r (mkApp (mkConst ``instOfNatNat) r) + +def mkStrLit (s : String) : Expr := + mkLit (Literal.strVal s) + @[export lean_expr_mk_bvar] def mkBVarEx : Nat → Expr := mkBVar @[export lean_expr_mk_fvar] def mkFVarEx : FVarId → Expr := mkFVar @[export lean_expr_mk_mvar] def mkMVarEx : MVarId → Expr := mkMVar @@ -678,17 +693,6 @@ def isAtomic : Expr → Bool end Expr -def mkAppB (f a b : Expr) := mkApp (mkApp f a) b -def mkApp2 (f a b : Expr) := mkAppB f a b -def mkApp3 (f a b c : Expr) := mkApp (mkAppB f a b) c -def mkApp4 (f a b c d : Expr) := mkAppB (mkAppB f a b) c d -def mkApp5 (f a b c d e : Expr) := mkApp (mkApp4 f a b c d) e -def mkApp6 (f a b c d e₁ e₂ : Expr) := mkAppB (mkApp4 f a b c d) e₁ e₂ -def mkApp7 (f a b c d e₁ e₂ e₃ : Expr) := mkApp3 (mkApp4 f a b c d) e₁ e₂ e₃ -def mkApp8 (f a b c d e₁ e₂ e₃ e₄ : Expr) := mkApp4 (mkApp4 f a b c d) e₁ e₂ e₃ e₄ -def mkApp9 (f a b c d e₁ e₂ e₃ e₄ e₅ : Expr) := mkApp5 (mkApp4 f a b c d) e₁ e₂ e₃ e₄ e₅ -def mkApp10 (f a b c d e₁ e₂ e₃ e₄ e₅ e₆ : Expr) := mkApp6 (mkApp4 f a b c d) e₁ e₂ e₃ e₄ e₅ e₆ - def mkDecIsTrue (pred proof : Expr) := mkAppB (mkConst `Decidable.isTrue) pred proof diff --git a/stage0/src/Lean/Meta/AppBuilder.lean b/stage0/src/Lean/Meta/AppBuilder.lean index 71851fc57f..1c5d72864b 100644 --- a/stage0/src/Lean/Meta/AppBuilder.lean +++ b/stage0/src/Lean/Meta/AppBuilder.lean @@ -482,8 +482,8 @@ def isMonad? (m : Expr) : MetaM (Option Expr) := /-- Return `(n : type)`, a numeric literal of type `type`. The method fails if we don't have an instance `OfNat type n` -/ def mkNumeral (type : Expr) (n : Nat) : MetaM Expr := do let u ← getDecLevel type - let inst ← synthInstance (mkApp2 (mkConst ``OfNat [u]) type (mkNatLit n)) - return mkApp3 (mkConst ``OfNat.ofNat [u]) type (mkNatLit n) inst + let inst ← synthInstance (mkApp2 (mkConst ``OfNat [u]) type (mkRawNatLit n)) + return mkApp3 (mkConst ``OfNat.ofNat [u]) type (mkRawNatLit n) inst /-- Return `a op b`, where `op` has name `opName` and is implemented using the typeclass `className`. diff --git a/stage0/src/Lean/Meta/Match/CaseArraySizes.lean b/stage0/src/Lean/Meta/Match/CaseArraySizes.lean index 16ccca1ecb..dafe4ac977 100644 --- a/stage0/src/Lean/Meta/Match/CaseArraySizes.lean +++ b/stage0/src/Lean/Meta/Match/CaseArraySizes.lean @@ -25,9 +25,9 @@ def getArrayArgType (a : Expr) : MetaM Expr := do pure aType.appArg! private def mkArrayGetLit (a : Expr) (i : Nat) (n : Nat) (h : Expr) : MetaM Expr := do - let lt ← mkLt (mkNatLit i) (mkNatLit n) + let lt ← mkLt (mkRawNatLit i) (mkRawNatLit n) let ltPrf ← mkDecideProof lt - mkAppM `Array.getLit #[a, mkNatLit i, h, ltPrf] + mkAppM `Array.getLit #[a, mkRawNatLit i, h, ltPrf] private partial def introArrayLit (mvarId : MVarId) (a : Expr) (n : Nat) (xNamePrefix : Name) (aSizeEqN : Expr) : MetaM MVarId := do let α ← getArrayArgType a @@ -41,7 +41,7 @@ private partial def introArrayLit (mvarId : MVarId) (a : Expr) (n : Nat) (xNameP else let xsLit ← mkArrayLit α xs.toList let aEqXsLit ← mkEq a xsLit - let aEqLitPrf ← mkAppM `Array.toArrayLitEq #[a, mkNatLit n, aSizeEqN] + let aEqLitPrf ← mkAppM `Array.toArrayLitEq #[a, mkRawNatLit n, aSizeEqN] withLocalDeclD `hEqALit aEqXsLit fun heq => do let target ← getMVarType mvarId let newTarget ← mkForallFVars (xs.push heq) target @@ -67,7 +67,7 @@ def caseArraySizes (mvarId : MVarId) (fvarId : FVarId) (sizes : Array Nat) (xNam let mvarId ← assertExt mvarId `aSize (mkConst `Nat) aSize let (aSizeFVarId, mvarId) ← intro1 mvarId let (hEq, mvarId) ← intro1 mvarId - let subgoals ← caseValues mvarId aSizeFVarId (sizes.map mkNatLit) hNamePrefix + let subgoals ← caseValues mvarId aSizeFVarId (sizes.map mkRawNatLit) hNamePrefix subgoals.mapIdxM fun i subgoal => do let subst := subgoal.subst let mvarId := subgoal.mvarId diff --git a/stage0/src/Lean/Meta/Match/Match.lean b/stage0/src/Lean/Meta/Match/Match.lean index 9768897ecb..86c4418f43 100644 --- a/stage0/src/Lean/Meta/Match/Match.lean +++ b/stage0/src/Lean/Meta/Match/Match.lean @@ -538,7 +538,7 @@ private def processArrayLit (p : Problem) : MetaM (Array Problem) := do private def expandNatValuePattern (p : Problem) : Problem := do let alts := p.alts.map fun alt => match alt.patterns with | Pattern.val (Expr.lit (Literal.natVal 0) _) :: ps => { alt with patterns := Pattern.ctor `Nat.zero [] [] [] :: ps } - | Pattern.val (Expr.lit (Literal.natVal (n+1)) _) :: ps => { alt with patterns := Pattern.ctor `Nat.succ [] [] [Pattern.val (mkNatLit n)] :: ps } + | Pattern.val (Expr.lit (Literal.natVal (n+1)) _) :: ps => { alt with patterns := Pattern.ctor `Nat.succ [] [] [Pattern.val (mkRawNatLit n)] :: ps } | _ => alt { p with alts := alts } @@ -808,21 +808,21 @@ def getMkMatcherInputInContext (matcherApp : MatcherApp) : MetaM MkMatcherInput let matcherName := matcherApp.matcherName let some matcherInfo ← getMatcherInfo? matcherName | throwError "not a matcher: {matcherName}" let matcherConst ← getConstInfo matcherName - let matcherType ← instantiateForall matcherConst.type $ matcherApp.params ++ #[matcherApp.motive] + let matcherType ← instantiateForall matcherConst.type $ matcherApp.params ++ #[matcherApp.motive] let matchType ← do - let u := - if let some idx := matcherInfo.uElimPos? + let u := + if let some idx := matcherInfo.uElimPos? then mkLevelParam matcherConst.levelParams.toArray[idx] else levelZero - + forallBoundedTelescope matcherType (some matcherInfo.numDiscrs) fun discrs t => do mkForallFVars discrs (mkConst ``PUnit [u]) - let matcherType ← instantiateForall matcherType matcherApp.discrs - let lhss := Array.toList $ ←forallBoundedTelescope matcherType (some matcherApp.alts.size) fun alts _ => + let matcherType ← instantiateForall matcherType matcherApp.discrs + let lhss := Array.toList $ ←forallBoundedTelescope matcherType (some matcherApp.alts.size) fun alts _ => alts.mapM fun alt => do let ty ← inferType alt - forallTelescope ty fun xs body => do + forallTelescope ty fun xs body => do let xs ← xs.filterM fun x => dependsOn body x.fvarId! body.withApp fun f args => do let ctx ← getLCtx @@ -836,7 +836,7 @@ def getMkMatcherInputInContext (matcherApp : MatcherApp) : MetaM MkMatcherInput return { matcherName, matchType, numDiscrs := matcherApp.discrs.size, lhss } -def withMkMatcherInput +def withMkMatcherInput (matcherName : Name) (k : MkMatcherInput → MetaM α) : MetaM α := do let some matcherInfo ← getMatcherInfo? matcherName | throwError "not a matcher: {matcherName}" diff --git a/stage0/src/Lean/Meta/Offset.lean b/stage0/src/Lean/Meta/Offset.lean index f3eaf39bdd..dc48c6b248 100644 --- a/stage0/src/Lean/Meta/Offset.lean +++ b/stage0/src/Lean/Meta/Offset.lean @@ -159,7 +159,7 @@ def isDefEqOffset (s t : Expr) : MetaM LBool := do match (← evalNat t) with | some v₂ => -- s+k₁ =?= v₂ if v₂ ≥ k₁ then - isDefEq s (mkNatLit $ v₂ - k₁) + isDefEq s (mkNatLit <| v₂ - k₁) else ifNatExpr <| return LBool.false | none => @@ -170,7 +170,7 @@ def isDefEqOffset (s t : Expr) : MetaM LBool := do match (← isOffset t) with | some (t, k₂) => -- v₁ =?= t+k₂ if v₁ ≥ k₂ then - isDefEq (mkNatLit $ v₁ - k₂) t + isDefEq (mkNatLit <| v₁ - k₂) t else ifNatExpr <| return LBool.false | none => diff --git a/stage0/src/Lean/Meta/WHNF.lean b/stage0/src/Lean/Meta/WHNF.lean index 6624fd812e..4a118de2f3 100644 --- a/stage0/src/Lean/Meta/WHNF.lean +++ b/stage0/src/Lean/Meta/WHNF.lean @@ -60,7 +60,7 @@ private def mkNullaryCtor (type : Expr) (nparams : Nat) : MetaM (Option Expr) := def toCtorIfLit : Expr → Expr | Expr.lit (Literal.natVal v) _ => if v == 0 then mkConst `Nat.zero - else mkApp (mkConst `Nat.succ) (mkNatLit (v-1)) + else mkApp (mkConst `Nat.succ) (mkRawNatLit (v-1)) | Expr.lit (Literal.strVal v) _ => mkApp (mkConst `String.mk) (toExpr v.toList) | e => e @@ -515,13 +515,13 @@ def reduceNative? (e : Expr) : MetaM (Option Expr) := def reduceUnaryNatOp (f : Nat → Nat) (a : Expr) : MetaM (Option Expr) := withNatValue a fun a => - return mkNatLit <| f a + return mkRawNatLit <| f a def reduceBinNatOp (f : Nat → Nat → Nat) (a b : Expr) : MetaM (Option Expr) := withNatValue a fun a => withNatValue b fun b => do trace[Meta.isDefEq.whnf.reduceBinOp] "{a} op {b}" - return mkNatLit <| f a b + return mkRawNatLit <| f a b def reduceBinNatPred (f : Nat → Nat → Bool) (a b : Expr) : MetaM (Option Expr) := do withNatValue a fun a => diff --git a/stage0/src/Lean/Parser/Extension.lean b/stage0/src/Lean/Parser/Extension.lean index e01c29f5c4..c2365138d2 100644 --- a/stage0/src/Lean/Parser/Extension.lean +++ b/stage0/src/Lean/Parser/Extension.lean @@ -421,7 +421,7 @@ def runParserCategory (env : Environment) (catName : Name) (input : String) (fil def declareBuiltinParser (env : Environment) (addFnName : Name) (catName : Name) (declName : Name) (prio : Nat) : IO Environment := let name := `_regBuiltinParser ++ declName let type := mkApp (mkConst `IO) (mkConst `Unit) - let val := mkAppN (mkConst addFnName) #[toExpr catName, toExpr declName, mkConst declName, mkNatLit prio] + let val := mkAppN (mkConst addFnName) #[toExpr catName, toExpr declName, mkConst declName, mkRawNatLit prio] let decl := Declaration.defnDecl { name := name, levelParams := [], type := type, value := val, hints := ReducibilityHints.opaque, safety := DefinitionSafety.safe } match env.addAndCompile {} decl with diff --git a/stage0/src/Lean/Structure.lean b/stage0/src/Lean/Structure.lean index b69738bead..9bc312a306 100644 --- a/stage0/src/Lean/Structure.lean +++ b/stage0/src/Lean/Structure.lean @@ -15,6 +15,42 @@ import Lean.ProjFns namespace Lean +structure StructureFieldInfo where + fieldName : Name + projFn : Name + subobject : Bool + deriving Inhabited + +private structure StructureEntry where + structName : Name + fieldNames : Array Name -- sorted by field position in the structure + fieldInfo : Array StructureFieldInfo -- sorted by `fieldName` + deriving Inhabited + +/-- Auxiliary state for structures defined in the current module. -/ +private structure StructureState where + map : Std.PersistentHashMap Name StructureEntry := {} + deriving Inhabited + +builtin_initialize structureExt : SimplePersistentEnvExtension StructureEntry StructureState ← registerSimplePersistentEnvExtension { + name := `structExt + addImportedFn := fun _ => {} + addEntryFn := fun s e => { s with map := s.map.insert e.structName e } + toArrayFn := fun es => es.toArray.qsort fun e₁ e₂ => Name.quickLt e₁.structName e₂.structName +} + +structure StructureDescr where + structName : Name + fields : Array StructureFieldInfo -- Should use the order the field appear in the constructor. + deriving Inhabited + +def registerStructure (env : Environment) (e : StructureDescr) : Environment := + structureExt.addEntry env { + structName := e.structName + fieldNames := e.fields.map fun e => e.fieldName + fieldInfo := e.fields.qsort fun e₁ e₂ => Name.quickLt e₁.fieldName e₂.fieldName + } + /-- Return true iff `constName` is the a non-recursive inductive datatype that has only one constructor. -/ @@ -52,6 +88,8 @@ private def getStructureFieldsAux (numParams : Nat) : Nat → Expr → Array Nam | _, _, fieldNames => fieldNames -- TODO: fix. See comment in the beginning of the file + +/-- Get direct field names for the given structure. -/ def getStructureFields (env : Environment) (structName : Name) : Array Name := let ctor := getStructureCtor env structName; getStructureFieldsAux ctor.numParams 0 ctor.type #[] diff --git a/stage0/stdlib/Lean/Compiler/ConstFolding.c b/stage0/stdlib/Lean/Compiler/ConstFolding.c index c8fd597276..cd1f5a4e4c 100644 --- a/stage0/stdlib/Lean/Compiler/ConstFolding.c +++ b/stage0/stdlib/Lean/Compiler/ConstFolding.c @@ -148,6 +148,7 @@ lean_object* l_Lean_Compiler_foldNatDecLt(uint8_t, lean_object*, lean_object*); uint8_t l_Lean_Compiler_isOfNat(lean_object*); lean_object* l_Lean_Compiler_foldStrictOr___boxed(lean_object*); static lean_object* l_Lean_Compiler_mkNatLt___closed__5; +lean_object* l_Lean_mkRawNatLit(lean_object*); lean_object* l_Lean_Compiler_foldNatSucc___boxed(lean_object*); static lean_object* l_Lean_Compiler_mkNatLe___closed__5; static lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__8; @@ -315,7 +316,6 @@ lean_object* l_Lean_Compiler_foldBinOp_match__1(lean_object*); lean_object* l_List_foldr___at_Lean_Compiler_isOfNat___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Compiler_mkNatLe___closed__7; lean_object* lean_nat_mod(lean_object*, lean_object*); -lean_object* l_Lean_mkNatLit(lean_object*); static lean_object* l_Lean_Compiler_numScalarTypes___closed__7; static lean_object* l_Lean_Compiler_natFoldFns___closed__1; static lean_object* l_Lean_Compiler_numScalarTypes___closed__19; @@ -1231,7 +1231,7 @@ lean_inc(x_6); lean_dec(x_1); x_7 = lean_nat_mod(x_2, x_6); lean_dec(x_6); -x_8 = l_Lean_mkNatLit(x_7); +x_8 = l_Lean_mkRawNatLit(x_7); x_9 = l_Lean_mkApp(x_5, x_8); return x_9; } @@ -2059,7 +2059,7 @@ if (x_9 == 0) lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_ctor_get(x_7, 0); x_11 = lean_apply_2(x_1, x_6, x_10); -x_12 = l_Lean_mkNatLit(x_11); +x_12 = l_Lean_mkRawNatLit(x_11); lean_ctor_set(x_7, 0, x_12); return x_7; } @@ -2070,7 +2070,7 @@ x_13 = lean_ctor_get(x_7, 0); lean_inc(x_13); lean_dec(x_7); x_14 = lean_apply_2(x_1, x_6, x_13); -x_15 = l_Lean_mkNatLit(x_14); +x_15 = l_Lean_mkRawNatLit(x_14); x_16 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_16, 0, x_15); return x_16; @@ -2278,7 +2278,7 @@ lean_object* x_13; lean_object* x_14; x_13 = lean_nat_pow(x_5, x_9); lean_dec(x_9); lean_dec(x_5); -x_14 = l_Lean_mkNatLit(x_13); +x_14 = l_Lean_mkRawNatLit(x_13); lean_ctor_set(x_6, 0, x_14); return x_6; } @@ -2305,7 +2305,7 @@ lean_object* x_19; lean_object* x_20; lean_object* x_21; x_19 = lean_nat_pow(x_5, x_15); lean_dec(x_15); lean_dec(x_5); -x_20 = l_Lean_mkNatLit(x_19); +x_20 = l_Lean_mkRawNatLit(x_19); x_21 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_21, 0, x_20); return x_21; @@ -4428,7 +4428,7 @@ x_5 = lean_ctor_get(x_2, 0); x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_add(x_5, x_6); lean_dec(x_5); -x_8 = l_Lean_mkNatLit(x_7); +x_8 = l_Lean_mkRawNatLit(x_7); lean_ctor_set(x_2, 0, x_8); return x_2; } @@ -4441,7 +4441,7 @@ lean_dec(x_2); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_9, x_10); lean_dec(x_9); -x_12 = l_Lean_mkNatLit(x_11); +x_12 = l_Lean_mkRawNatLit(x_11); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); return x_13; @@ -4649,7 +4649,7 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; x_5 = lean_ctor_get(x_2, 0); -x_6 = l_Lean_mkNatLit(x_5); +x_6 = l_Lean_mkRawNatLit(x_5); lean_ctor_set(x_2, 0, x_6); return x_2; } @@ -4659,7 +4659,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_2, 0); lean_inc(x_7); lean_dec(x_2); -x_8 = l_Lean_mkNatLit(x_7); +x_8 = l_Lean_mkRawNatLit(x_7); x_9 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_9, 0, x_8); return x_9; diff --git a/stage0/stdlib/Lean/Elab/BuiltinCommand.c b/stage0/stdlib/Lean/Elab/BuiltinCommand.c index 5006a9e202..0e9db82634 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinCommand.c +++ b/stage0/stdlib/Lean/Elab/BuiltinCommand.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.BuiltinCommand -// Imports: Init Lean.Elab.Command +// Imports: Init Lean.Elab.Command Lean.Elab.Open #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -26,6 +26,7 @@ lean_object* l_Lean_Elab_Command_elabInitQuot_match__1___rarg(lean_object*, lean static lean_object* l_Lean_Elab_Command_elabSection___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__3; static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__2; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__4; @@ -35,20 +36,21 @@ lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__3; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__3; lean_object* l_List_head_x21___at_Lean_Elab_Command_instMonadOptionsCommandElabM___spec__1(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13___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_elabOpen___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Command_withNamespace(lean_object*); lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabReduce___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); static lean_object* l_Lean_Elab_Command_elabSection___closed__2; @@ -64,11 +66,10 @@ lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__L lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__1; lean_object* l_Lean_Elab_Command_elabEval___rarg(lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__4; +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SourceInfo_fromRef(lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_commandElabAttribute; lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -79,18 +80,21 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__3; lean_object* l_Lean_Elab_Command_elabExport___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__2(lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstCore___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_elabCheck_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__4; lean_object* l_Std_PersistentArray_mapM___at_Lean_MessageLog_errorsToWarnings___spec__1(lean_object*); static lean_object* l_Lean_Elab_Command_elabSection___closed__1; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabNamespace___closed__7; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__2; static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__7; lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation_match__1(lean_object*); lean_object* l_Lean_Elab_Command_hasNoErrorMessages___rarg___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabOpen___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -105,12 +109,12 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f(lean_object*); uint8_t l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope(lean_object*); static lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__1; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__1; lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__3; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__9; @@ -122,6 +126,7 @@ lean_object* l___regBuiltin_Lean_Elab_Command_elabSection(lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduce(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___at_Lean_Elab_Command_elabExport___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabReduce___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabReduce___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); @@ -148,10 +153,7 @@ lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(lean_ob static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__6; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__8(lean_object*, lean_object*, 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_BuiltinCommand_0__Lean_Elab_Command_elabChoiceAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope___boxed(lean_object*); -uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(uint8_t, uint8_t); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -160,9 +162,7 @@ static lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1___closed__2; uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_Command_elabOpen(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__3; -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1; lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEval___rarg___closed__1; static lean_object* l_Lean_Elab_Command_elabSynth___closed__2; lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -173,17 +173,17 @@ lean_object* l_Lean_Elab_Command_elabReduce___lambda__1(lean_object*, lean_objec lean_object* l_Lean_Elab_Command_elabCheckFailure(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCheck___closed__3; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___closed__5; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepth; static lean_object* l_Lean_Elab_Command_elabEval___rarg___closed__2; +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__3; lean_object* l_Lean_ScopedEnvExtension_popScope___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSynth(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCheckFailure___closed__1; lean_object* l_Lean_Elab_Command_elabOpen___lambda__1(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__11; @@ -203,6 +203,7 @@ lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_ lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCheck___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___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_Lean_Elab_Command_elabEvalUnsafe_match__4___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCheck___closed__5; @@ -220,6 +221,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__6; lean_object* l_Lean_Option_get___at_Lean_initFn____x40_Lean_Util_PPExt___hyg_225____spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabCheck___closed__2; uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames___spec__4(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__1; @@ -227,10 +229,10 @@ lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetO static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___spec__3___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__1; lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__2; lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; lean_object* l_Lean_Elab_Command_elabSection___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEnd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); @@ -238,25 +240,19 @@ static lean_object* l_Lean_Elab_Command_elabSection___closed__4; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__5; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__3; lean_object* l_Lean_Elab_Command_elabEval___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg___closed__1; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Command_elabSetOption___spec__3___closed__2; lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation_match__2(lean_object*); lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__5; lean_object* l_Lean_Elab_Command_elabSynth___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_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__4; -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabOpen___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__3; @@ -264,7 +260,6 @@ lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__2; lean_object* l_Lean_Elab_Command_failIfSucceeds_match__1(lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabVariable___closed__1; @@ -280,6 +275,7 @@ lean_object* l_Lean_evalConst___at_Lean_Elab_Term_evalExpr___spec__11___rarg(lea lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__2; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -289,10 +285,11 @@ uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabExport(lean_object*); lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Command_elabEnd___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__5; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elbChoice(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalExpr___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___at_Lean_Elab_Command_elabExport___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSynth___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabCheck___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_Name_getNumParts(lean_object*); @@ -301,16 +298,16 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9_ static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__1; +lean_object* lean_expr_dbg_to_string(lean_object*); static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__1; lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkEndHeader_match__1(lean_object*); +lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__11(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___closed__2; lean_object* l_Lean_Elab_Command_elabEvalUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__4; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__2; -lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_pushScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth___closed__1; @@ -325,10 +322,8 @@ static lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___closed__3; lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__1; static lean_object* l_Lean_Elab_Command_elabNamespace___closed__4; -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEnd___closed__2; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__3___boxed(lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__1; @@ -337,16 +332,17 @@ lean_object* l_Lean_Elab_Command_elabCheck___lambda__2(lean_object*, lean_object lean_object* l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__1; +lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVariable___closed__1; +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1; lean_object* l_Lean_Elab_Command_elabEnd(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__5; lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1(lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExport___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__4; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__1; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_Command_failIfSucceeds___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*); @@ -365,27 +361,27 @@ static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_ma static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval___closed__2; lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd(lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__1; lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__3(lean_object*); lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__4; lean_object* l_Lean_addAndCompile___at_Lean_Elab_Term_evalExpr___spec__2(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_elabOpen___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__5; lean_object* l_Lean_Elab_Command_elabEnd_match__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11___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_addUnivLevel(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); lean_object* l_List_drop___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames___closed__1; lean_object* l_Lean_Elab_Term_resetMessageLog(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_failIfSucceeds___closed__1; -lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); static lean_object* l_Lean_Elab_Command_elabCheck___closed__4; lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabNamespace___spec__1___rarg(lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_typelessBinder_x3f___closed__4; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__1; lean_object* l_Lean_Elab_Command_elabEvalUnsafe_match__4(lean_object*); lean_object* l_Lean_Meta_synthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -399,8 +395,10 @@ lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBind static lean_object* l_Lean_Elab_Command_elabExport___closed__2; lean_object* l_Lean_Syntax_getSepArgs(lean_object*); static lean_object* l_Lean_Elab_Command_elabReduce___lambda__1___closed__2; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_macroAttribute; +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_runLinters___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace___closed__3; @@ -409,9 +407,11 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCom lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabExport___closed__1; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Command_instAddErrorMessageContextCommandElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabReduce(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__7; static lean_object* l___regBuiltin_Lean_Elab_Command_elbChoice___closed__4; +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExport___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_activateScoped___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -421,19 +421,20 @@ static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Command_elabEnd___sp static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2; lean_object* l_Lean_Elab_Command_expandInCmd(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabReduce(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabInitQuot___closed__4; lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEval(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Command_elabSetOption___spec__1___closed__6; static lean_object* l_Lean_Elab_Command_elabEnd___closed__1; +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExport___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_registerNamespace(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEnd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabVariable___closed__2; lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabVariable___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -452,19 +453,22 @@ lean_object* l_Lean_Elab_Command_withNamespace___rarg(lean_object*, lean_object* lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabCheck___closed__3; static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__7___closed__3; +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__12(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames___spec__1(lean_object*, lean_object*, size_t, size_t); +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__1; lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabVariable___spec__3___boxed__const__1; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabNamespace___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandInCmd___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabNamespace(lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabNamespace___closed__8; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_expandInCmd___closed__1; static lean_object* l_Lean_Elab_Command_elabVariable___lambda__2___closed__1; lean_object* l_Lean_popScope___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_popScopes___spec__1(lean_object*, lean_object*, lean_object*); @@ -482,8 +486,8 @@ uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabCheckFailure(lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation_match__4___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabSynth(lean_object*); -lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Elab_Command_elabVariable___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withoutAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*); @@ -493,7 +497,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_getBracketedBinderIds lean_object* l_Lean_Elab_Command_getScopes___rarg(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__3; extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabVariable___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Command_elabEval(lean_object*); lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -511,7 +515,6 @@ lean_object* l_Lean_Elab_Command_elabVariable___lambda__1(lean_object*, lean_obj static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__3; static lean_object* l_Lean_Elab_Command_elabNamespace___closed__6; static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___closed__6; -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_expandInCmd___closed__3; uint8_t l_Std_PersistentArray_anyM___at_Lean_MessageLog_hasErrors___spec__1(lean_object*); @@ -520,6 +523,7 @@ static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabSetOption___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_scopedEnvExtensionsRef; +uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInitQuot(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabUniverse___closed__1; @@ -532,6 +536,7 @@ lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___boxed(lean_object*, lean_ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___closed__4; lean_object* l_Lean_MonadQuotation_addMacroScope___at_Lean_Elab_Command_elabVariable___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__1; +lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabVariable___spec__3___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabVariable___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -542,6 +547,7 @@ static lean_object* l_Lean_Elab_Command_elabNamespace___closed__5; lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScope___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2___closed__6; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInitQuot_match__1(lean_object*); lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabNamespace___closed__3; @@ -551,15 +557,17 @@ lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_mkSimpleThunk(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__5; lean_object* l_Lean_Elab_Command_elabNamespace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___closed__1; static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__3; +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSection___closed__3; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabNamespace___closed__1; lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes_match__1(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_replaceBinderAnnotation___spec__2___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabVariable___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_elabEnd___lambda__1___closed__3; lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_matchBinderNames___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -574,7 +582,10 @@ lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_BuiltinCommand_0__L static lean_object* l_Lean_Elab_Command_elabEvalUnsafe___lambda__5___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Command_elabSetOption___closed__2; lean_object* l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addNamespace(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabEnd___closed__3; +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__2; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Command_elabExport___closed__3; lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -4074,24 +4085,121 @@ return x_43; } } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1() { +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExport___spec__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; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_6 = lean_st_ref_get(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_st_ref_get(x_2, x_8); +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 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_2, x_12); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +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_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_18 = l_Lean_ResolveName_resolveGlobalName(x_9, x_13, x_17, x_1); +lean_dec(x_13); +lean_ctor_set(x_14, 0, x_18); +return x_14; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_14, 0); +x_20 = lean_ctor_get(x_14, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_14); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_ResolveName_resolveGlobalName(x_9, x_13, x_21, x_1); +lean_dec(x_13); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +return x_23; +} +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__9(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_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_3, x_4, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_7); +lean_ctor_set(x_12, 1, x_11); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_7); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("unknown declaration '"); +x_1 = lean_mk_string("unknown constant '"); return x_1; } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -4100,26 +4208,514 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_5 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_5, 0, x_1); -x_6 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; -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_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; -x_9 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -x_10 = 2; -x_11 = l_Lean_Elab_log___at_Lean_Elab_Command_runLinters___spec__3(x_9, x_10, x_2, x_3, x_4); -return x_11; +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; +x_6 = lean_box(0); +x_7 = l_Lean_mkConst(x_1, x_6); +x_8 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_8, 0, x_7); +x_9 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__2; +x_10 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +x_11 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__3; +x_12 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +x_13 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__9(x_12, x_2, x_3, x_4, x_5); +return x_13; } } -lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = l_List_map___at_Lean_resolveGlobalConstCore___spec__2(x_1); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6(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; lean_object* x_10; uint8_t x_11; +lean_inc(x_1); +x_6 = l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExport___spec__7(x_1, x_2, 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 = lean_box(0); +x_10 = l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(x_7, x_9); +x_11 = l_List_isEmpty___rarg(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_1); +x_12 = lean_box(0); +x_13 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___lambda__1(x_10, x_12, x_2, x_3, x_4, x_8); +return x_13; +} +else +{ +lean_object* x_14; uint8_t x_15; +lean_dec(x_10); +x_14 = l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8(x_1, x_2, x_3, x_4, x_8); +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(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_throwError___at_Lean_Elab_Command_elabExport___spec__10(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_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_3, x_4, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_7); +lean_ctor_set(x_12, 1, x_11); +lean_ctor_set_tag(x_9, 1); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_9, 0); +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_9); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_7); +lean_ctor_set(x_15, 1, x_13); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ambiguous identifier '"); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', possible interpretations: "); +return x_1; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5(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_inc(x_1); +x_6 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6(x_1, x_2, x_3, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +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; 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_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_box(0); +x_10 = l_Lean_mkConst(x_1, x_9); +x_11 = lean_expr_dbg_to_string(x_10); +lean_dec(x_10); +x_12 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__1; +x_13 = lean_string_append(x_12, x_11); +lean_dec(x_11); +x_14 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2; +x_15 = lean_string_append(x_13, x_14); +x_16 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_9, x_7); +x_17 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_16); +x_18 = lean_string_append(x_15, x_17); +lean_dec(x_17); +x_19 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +x_20 = lean_string_append(x_18, x_19); +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10(x_22, x_2, x_3, x_4, x_8); +return x_23; +} +else +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_7, 1); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +uint8_t x_25; +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_6); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_6, 0); +lean_dec(x_26); +x_27 = lean_ctor_get(x_7, 0); +lean_inc(x_27); +lean_dec(x_7); +lean_ctor_set(x_6, 0, x_27); +return x_6; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_6, 1); +lean_inc(x_28); +lean_dec(x_6); +x_29 = lean_ctor_get(x_7, 0); +lean_inc(x_29); +lean_dec(x_7); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +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_dec(x_24); +x_31 = lean_ctor_get(x_6, 1); +lean_inc(x_31); +lean_dec(x_6); +x_32 = lean_box(0); +x_33 = l_Lean_mkConst(x_1, x_32); +x_34 = lean_expr_dbg_to_string(x_33); +lean_dec(x_33); +x_35 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__1; +x_36 = lean_string_append(x_35, x_34); +lean_dec(x_34); +x_37 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2; +x_38 = lean_string_append(x_36, x_37); +x_39 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_32, x_7); +x_40 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_39); +x_41 = lean_string_append(x_38, x_40); +lean_dec(x_40); +x_42 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; +x_43 = lean_string_append(x_41, x_42); +x_44 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_44, 0, x_43); +x_45 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10(x_45, x_2, x_3, x_4, x_31); +return x_46; +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_6); +if (x_47 == 0) +{ +return x_6; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_6, 0); +x_49 = lean_ctor_get(x_6, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_6); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_7 = l_Lean_Syntax_getId(x_2); +x_8 = l_Lean_Name_append(x_1, x_7); +x_9 = lean_st_ref_get(x_5, x_6); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_Environment_contains(x_13, x_8); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_free_object(x_9); +x_15 = l_Lean_Elab_Command_getRef(x_4, x_5, x_12); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_replaceRef(x_2, x_16); +lean_dec(x_16); +x_19 = !lean_is_exclusive(x_4); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_4, 6); +lean_dec(x_20); +lean_ctor_set(x_4, 6, x_18); +x_21 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5(x_8, x_3, x_4, x_5, x_17); +lean_dec(x_4); +return x_21; +} +else +{ +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; +x_22 = lean_ctor_get(x_4, 0); +x_23 = lean_ctor_get(x_4, 1); +x_24 = lean_ctor_get(x_4, 2); +x_25 = lean_ctor_get(x_4, 3); +x_26 = lean_ctor_get(x_4, 4); +x_27 = lean_ctor_get(x_4, 5); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_4); +x_28 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_28, 0, x_22); +lean_ctor_set(x_28, 1, x_23); +lean_ctor_set(x_28, 2, x_24); +lean_ctor_set(x_28, 3, x_25); +lean_ctor_set(x_28, 4, x_26); +lean_ctor_set(x_28, 5, x_27); +lean_ctor_set(x_28, 6, x_18); +x_29 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5(x_8, x_3, x_28, x_5, x_17); +lean_dec(x_28); +return x_29; +} +} +else +{ +lean_dec(x_4); +lean_ctor_set(x_9, 0, x_8); +return x_9; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_9, 0); +x_31 = lean_ctor_get(x_9, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_9); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_Environment_contains(x_32, x_8); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_34 = l_Lean_Elab_Command_getRef(x_4, x_5, x_31); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_replaceRef(x_2, x_35); +lean_dec(x_35); +x_38 = lean_ctor_get(x_4, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_4, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_4, 2); +lean_inc(x_40); +x_41 = lean_ctor_get(x_4, 3); +lean_inc(x_41); +x_42 = lean_ctor_get(x_4, 4); +lean_inc(x_42); +x_43 = lean_ctor_get(x_4, 5); +lean_inc(x_43); +if (lean_is_exclusive(x_4)) { + lean_ctor_release(x_4, 0); + lean_ctor_release(x_4, 1); + lean_ctor_release(x_4, 2); + lean_ctor_release(x_4, 3); + lean_ctor_release(x_4, 4); + lean_ctor_release(x_4, 5); + lean_ctor_release(x_4, 6); + x_44 = x_4; +} else { + lean_dec_ref(x_4); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 7, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_38); +lean_ctor_set(x_45, 1, x_39); +lean_ctor_set(x_45, 2, x_40); +lean_ctor_set(x_45, 3, x_41); +lean_ctor_set(x_45, 4, x_42); +lean_ctor_set(x_45, 5, x_43); +lean_ctor_set(x_45, 6, x_37); +x_46 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5(x_8, x_3, x_45, x_5, x_36); +lean_dec(x_45); +return x_46; +} +else +{ +lean_object* x_47; +lean_dec(x_4); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_8); +lean_ctor_set(x_47, 1, x_31); +return x_47; +} +} +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___at_Lean_Elab_Command_elabExport___spec__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; 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; +x_6 = l_Lean_Elab_Command_getScope___rarg(x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 3); +lean_inc(x_9); +lean_dec(x_7); +x_10 = l_Lean_Elab_Command_getScope___rarg(x_4, x_8); +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 = lean_ctor_get(x_11, 2); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_9); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_st_mk_ref(x_14, x_12); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__4(x_1, x_2, x_16, x_3, x_4, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_st_ref_get(x_16, x_20); +lean_dec(x_16); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_21, 0); +lean_dec(x_23); +lean_ctor_set(x_21, 0, x_19); +return x_21; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_19); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +lean_dec(x_16); +x_26 = !lean_is_exclusive(x_18); +if (x_26 == 0) +{ +return x_18; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_18, 0); +x_28 = lean_ctor_get(x_18, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_18); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +lean_object* l_List_foldl___at_Lean_Elab_Command_elabExport___spec__11(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4146,208 +4742,212 @@ goto _start; } } } -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_11; -x_11 = x_5 == x_6; -if (x_11 == 0) +uint8_t x_10; +x_10 = x_4 == x_5; +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_array_uget(x_4, x_5); -x_13 = l_Lean_Syntax_getId(x_12); -lean_inc(x_13); -x_14 = l_Lean_Name_append(x_1, x_13); -lean_inc(x_3); -x_15 = l_Lean_Environment_contains(x_3, x_14); -if (x_15 == 0) +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_array_uget(x_3, x_4); +x_12 = l_Lean_Syntax_getId(x_11); +lean_inc(x_7); +x_13 = l_Lean_Elab_OpenDecl_resolveOpenDeclId___at_Lean_Elab_Command_elabExport___spec__3(x_1, x_11, x_7, x_8, x_9); +lean_dec(x_11); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; size_t x_29; size_t x_30; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); lean_dec(x_13); -x_16 = l_Lean_Elab_Command_getRef(x_8, x_9, x_10); -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_replaceRef(x_12, x_17); -lean_dec(x_17); +x_16 = l_Lean_Name_append(x_2, x_12); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_14); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_6); +x_19 = 1; +x_20 = x_4 + x_19; +x_4 = x_20; +x_6 = x_18; +x_9 = x_15; +goto _start; +} +else +{ +uint8_t x_22; lean_dec(x_12); -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); -x_22 = lean_ctor_get(x_8, 2); -x_23 = lean_ctor_get(x_8, 3); -x_24 = lean_ctor_get(x_8, 4); -x_25 = lean_ctor_get(x_8, 5); -lean_inc(x_25); +lean_dec(x_7); +lean_dec(x_6); +x_22 = !lean_is_exclusive(x_13); +if (x_22 == 0) +{ +return x_13; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_13, 0); +x_24 = lean_ctor_get(x_13, 1); lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); -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_19); -x_27 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(x_14, x_26, x_9, x_18); -lean_dec(x_26); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = 1; -x_30 = x_5 + x_29; -x_5 = x_30; -x_10 = x_28; -goto _start; +lean_dec(x_13); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; } -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; -lean_dec(x_12); -x_32 = l_Lean_Name_append(x_2, x_13); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_14); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_7); -x_35 = 1; -x_36 = x_5 + x_35; -x_5 = x_36; -x_7 = x_34; -goto _start; } } else { -lean_object* x_38; -lean_dec(x_3); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_7); -lean_ctor_set(x_38, 1, x_10); -return x_38; +lean_object* x_26; +lean_dec(x_7); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_6); +lean_ctor_set(x_26, 1, x_9); +return x_26; } } } lean_object* l_Lean_Elab_Command_elabExport___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; 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; uint8_t x_18; lean_object* x_19; lean_object* x_20; +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; uint8_t x_16; lean_object* x_17; lean_object* x_18; x_8 = lean_st_ref_get(x_6, x_7); -x_9 = lean_ctor_get(x_8, 0); +x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); lean_dec(x_8); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_unsigned_to_nat(3u); -x_13 = l_Lean_Syntax_getArg(x_1, x_12); -x_14 = l_Lean_Syntax_getArgs(x_13); -lean_dec(x_13); -x_15 = lean_box(0); -x_16 = lean_array_get_size(x_14); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_lt(x_17, x_16); -if (x_18 == 0) -{ -lean_dec(x_16); -lean_dec(x_14); +x_10 = lean_unsigned_to_nat(3u); +x_11 = l_Lean_Syntax_getArg(x_1, x_10); +x_12 = l_Lean_Syntax_getArgs(x_11); lean_dec(x_11); -x_19 = x_15; -x_20 = x_10; -goto block_50; +x_13 = lean_box(0); +x_14 = lean_array_get_size(x_12); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_lt(x_15, x_14); +if (x_16 == 0) +{ +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_5); +x_17 = x_13; +x_18 = x_9; +goto block_48; } else { -uint8_t x_51; -x_51 = lean_nat_dec_le(x_16, x_16); -if (x_51 == 0) +uint8_t x_49; +x_49 = lean_nat_dec_le(x_14, x_14); +if (x_49 == 0) { -lean_dec(x_16); lean_dec(x_14); -lean_dec(x_11); -x_19 = x_15; -x_20 = x_10; -goto block_50; +lean_dec(x_12); +lean_dec(x_5); +x_17 = x_13; +x_18 = x_9; +goto block_48; } else { -size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_52 = 0; -x_53 = lean_usize_of_nat(x_16); -lean_dec(x_16); -x_54 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(x_2, x_3, x_11, x_14, x_52, x_53, x_15, x_5, x_6, x_10); +size_t x_50; size_t x_51; lean_object* x_52; +x_50 = 0; +x_51 = lean_usize_of_nat(x_14); lean_dec(x_14); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); +x_52 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__12(x_2, x_3, x_12, x_50, x_51, x_13, x_5, x_6, x_9); +lean_dec(x_12); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_17 = x_53; +x_18 = x_54; +goto block_48; +} +else +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_52); +if (x_55 == 0) +{ +return x_52; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_52, 0); +x_57 = lean_ctor_get(x_52, 1); +lean_inc(x_57); lean_inc(x_56); -lean_dec(x_54); -x_19 = x_55; -x_20 = x_56; -goto block_50; +lean_dec(x_52); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } -block_50: -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_21 = lean_st_ref_take(x_6, 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 = !lean_is_exclusive(x_22); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = lean_ctor_get(x_22, 0); -x_26 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(x_25, x_19); -lean_ctor_set(x_22, 0, x_26); -x_27 = lean_st_ref_set(x_6, x_22, x_23); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -x_30 = lean_box(0); -lean_ctor_set(x_27, 0, x_30); -return x_27; } -else +} +block_48: { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_19 = lean_st_ref_take(x_6, x_18); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_20, 0); +x_24 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__11(x_23, x_17); +lean_ctor_set(x_20, 0, x_24); +x_25 = lean_st_ref_set(x_6, x_20, x_21); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); lean_dec(x_27); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_31); -return x_33; +x_28 = lean_box(0); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_25, 1); +lean_inc(x_29); +lean_dec(x_25); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; } } 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; -x_34 = lean_ctor_get(x_22, 0); -x_35 = lean_ctor_get(x_22, 1); -x_36 = lean_ctor_get(x_22, 2); -x_37 = lean_ctor_get(x_22, 3); -x_38 = lean_ctor_get(x_22, 4); -x_39 = lean_ctor_get(x_22, 5); -x_40 = lean_ctor_get(x_22, 6); -x_41 = lean_ctor_get(x_22, 7); -x_42 = lean_ctor_get(x_22, 8); -lean_inc(x_42); -lean_inc(x_41); +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; +x_32 = lean_ctor_get(x_20, 0); +x_33 = lean_ctor_get(x_20, 1); +x_34 = lean_ctor_get(x_20, 2); +x_35 = lean_ctor_get(x_20, 3); +x_36 = lean_ctor_get(x_20, 4); +x_37 = lean_ctor_get(x_20, 5); +x_38 = lean_ctor_get(x_20, 6); +x_39 = lean_ctor_get(x_20, 7); +x_40 = lean_ctor_get(x_20, 8); lean_inc(x_40); lean_inc(x_39); lean_inc(x_38); @@ -4355,38 +4955,40 @@ lean_inc(x_37); lean_inc(x_36); lean_inc(x_35); lean_inc(x_34); -lean_dec(x_22); -x_43 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__4(x_34, x_19); -x_44 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_35); -lean_ctor_set(x_44, 2, x_36); -lean_ctor_set(x_44, 3, x_37); -lean_ctor_set(x_44, 4, x_38); -lean_ctor_set(x_44, 5, x_39); -lean_ctor_set(x_44, 6, x_40); -lean_ctor_set(x_44, 7, x_41); -lean_ctor_set(x_44, 8, x_42); -x_45 = lean_st_ref_set(x_6, x_44, x_23); -x_46 = lean_ctor_get(x_45, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - lean_ctor_release(x_45, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_20); +x_41 = l_List_foldl___at_Lean_Elab_Command_elabExport___spec__11(x_32, x_17); +x_42 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_33); +lean_ctor_set(x_42, 2, x_34); +lean_ctor_set(x_42, 3, x_35); +lean_ctor_set(x_42, 4, x_36); +lean_ctor_set(x_42, 5, x_37); +lean_ctor_set(x_42, 6, x_38); +lean_ctor_set(x_42, 7, x_39); +lean_ctor_set(x_42, 8, x_40); +x_43 = lean_st_ref_set(x_6, x_42, x_21); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_45 = x_43; +} else { + lean_dec_ref(x_43); + x_45 = lean_box(0); +} +x_46 = lean_box(0); +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { x_47 = x_45; -} else { - lean_dec_ref(x_45); - x_47 = lean_box(0); } -x_48 = lean_box(0); -if (lean_is_scalar(x_47)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_47; -} -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_46); -return x_49; +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_44); +return x_47; } } } @@ -4441,7 +5043,6 @@ if (x_15 == 0) lean_object* x_16; lean_object* x_17; x_16 = lean_box(0); x_17 = l_Lean_Elab_Command_elabExport___lambda__1(x_1, x_9, x_14, x_16, x_2, x_3, x_13); -lean_dec(x_2); lean_dec(x_14); lean_dec(x_9); return x_17; @@ -4516,31 +5117,121 @@ lean_dec(x_3); return x_5; } } -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExport___spec__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_5; -x_5 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3(x_1, x_2, x_3, x_4); +lean_object* x_6; +x_6 = l_Lean_resolveGlobalName___at_Lean_Elab_Command_elabExport___spec__7(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_5; +return x_6; } } -lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___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, lean_object* x_10) { +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_5); +lean_object* x_6; +x_6 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__9(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___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_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); -x_12 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_13 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__5(x_1, x_2, x_3, x_4, x_11, x_12, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6___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_resolveGlobalConstCore___at_Lean_Elab_Command_elabExport___spec__6(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10___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_throwError___at_Lean_Elab_Command_elabExport___spec__10(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___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_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___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: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___at_Lean_Elab_Command_elabExport___spec__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_OpenDecl_resolveOpenDeclId___at_Lean_Elab_Command_elabExport___spec__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -return x_13; +return x_6; +} +} +lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_11 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_12 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabExport___spec__12(x_1, x_2, x_3, x_10, x_11, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_12; } } lean_object* l_Lean_Elab_Command_elabExport___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) { @@ -4549,7 +5240,6 @@ _start: lean_object* x_8; x_8 = l_Lean_Elab_Command_elabExport___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -4623,47 +5313,6 @@ x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1); return x_6; } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___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; 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_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_1, x_3, x_4, x_8); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_7); -lean_ctor_set(x_12, 1, x_11); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -} lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -4716,7 +5365,7 @@ x_26 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_26, 0, x_25); x_27 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_27, 0, x_26); -x_28 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_27, x_2, x_3, x_4, x_17); +x_28 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10(x_27, x_2, x_3, x_4, x_17); return x_28; } else @@ -4760,7 +5409,7 @@ x_40 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_40, 0, x_39); x_41 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_41, 0, x_40); -x_42 = l_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_41, x_2, x_3, x_4, x_31); +x_42 = l_Lean_throwError___at_Lean_Elab_Command_elabExport___spec__10(x_41, x_2, x_3, x_4, x_31); return x_42; } else @@ -4778,1069 +5427,7 @@ return x_44; } } } -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(lean_object* x_1, lean_object* x_2, uint8_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_340; uint8_t x_341; -x_340 = 2; -x_341 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_3, x_340); -if (x_341 == 0) -{ -lean_object* x_342; -x_342 = lean_box(0); -x_8 = x_342; -goto block_339; -} -else -{ -uint8_t x_343; -lean_inc(x_2); -x_343 = l_Lean_MessageData_hasSyntheticSorry(x_2); -if (x_343 == 0) -{ -lean_object* x_344; -x_344 = lean_box(0); -x_8 = x_344; -goto block_339; -} -else -{ -lean_object* x_345; lean_object* x_346; -lean_dec(x_2); -x_345 = lean_box(0); -x_346 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_346, 0, x_345); -lean_ctor_set(x_346, 1, x_7); -return x_346; -} -} -block_339: -{ -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_15; -lean_dec(x_8); -x_9 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = l_Lean_replaceRef(x_1, x_10); -lean_dec(x_10); -x_13 = 0; -x_14 = l_Lean_Syntax_getPos_x3f(x_12, x_13); -x_15 = l_Lean_Syntax_getTailPos_x3f(x_12, x_13); -lean_dec(x_12); -if (lean_obj_tag(x_14) == 0) -{ -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get(x_5, 1); -x_18 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_unsigned_to_nat(0u); -x_22 = l_Lean_FileMap_toPosition(x_17, x_21); -lean_inc(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -x_24 = l_Lean_Elab_Command_getScope___rarg(x_6, x_20); -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, 2); -lean_inc(x_27); -lean_dec(x_25); -x_28 = l_Lean_Elab_Command_getScope___rarg(x_6, x_26); -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_ctor_get(x_29, 3); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_27); -lean_ctor_set(x_32, 1, x_31); -x_33 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_19); -x_34 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; -lean_inc(x_16); -x_35 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_35, 0, x_16); -lean_ctor_set(x_35, 1, x_22); -lean_ctor_set(x_35, 2, x_23); -lean_ctor_set(x_35, 3, x_34); -lean_ctor_set(x_35, 4, x_33); -lean_ctor_set_uint8(x_35, sizeof(void*)*5, x_3); -x_36 = lean_st_ref_take(x_6, x_30); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_ctor_get(x_37, 1); -x_41 = l_Std_PersistentArray_push___rarg(x_40, x_35); -lean_ctor_set(x_37, 1, x_41); -x_42 = lean_st_ref_set(x_6, x_37, x_38); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_42, 0); -lean_dec(x_44); -x_45 = lean_box(0); -lean_ctor_set(x_42, 0, x_45); -return x_42; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 1); -lean_inc(x_46); -lean_dec(x_42); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -} -else -{ -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; -x_49 = lean_ctor_get(x_37, 0); -x_50 = lean_ctor_get(x_37, 1); -x_51 = lean_ctor_get(x_37, 2); -x_52 = lean_ctor_get(x_37, 3); -x_53 = lean_ctor_get(x_37, 4); -x_54 = lean_ctor_get(x_37, 5); -x_55 = lean_ctor_get(x_37, 6); -x_56 = lean_ctor_get(x_37, 7); -x_57 = lean_ctor_get(x_37, 8); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); -lean_inc(x_54); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_37); -x_58 = l_Std_PersistentArray_push___rarg(x_50, x_35); -x_59 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_59, 0, x_49); -lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_59, 2, x_51); -lean_ctor_set(x_59, 3, x_52); -lean_ctor_set(x_59, 4, x_53); -lean_ctor_set(x_59, 5, x_54); -lean_ctor_set(x_59, 6, x_55); -lean_ctor_set(x_59, 7, x_56); -lean_ctor_set(x_59, 8, x_57); -x_60 = lean_st_ref_set(x_6, x_59, x_38); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_62 = x_60; -} else { - lean_dec_ref(x_60); - x_62 = lean_box(0); -} -x_63 = lean_box(0); -if (lean_is_scalar(x_62)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_62; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_61); -return x_64; -} -} -else -{ -uint8_t x_65; -x_65 = !lean_is_exclusive(x_15); -if (x_65 == 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; 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; uint8_t x_90; -x_66 = lean_ctor_get(x_15, 0); -x_67 = lean_ctor_get(x_5, 0); -x_68 = lean_ctor_get(x_5, 1); -x_69 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -x_72 = lean_unsigned_to_nat(0u); -x_73 = l_Lean_FileMap_toPosition(x_68, x_72); -x_74 = l_Lean_FileMap_toPosition(x_68, x_66); -lean_dec(x_66); -lean_ctor_set(x_15, 0, x_74); -x_75 = l_Lean_Elab_Command_getScope___rarg(x_6, x_71); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_ctor_get(x_76, 2); -lean_inc(x_78); -lean_dec(x_76); -x_79 = l_Lean_Elab_Command_getScope___rarg(x_6, x_77); -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_ctor_get(x_80, 3); -lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_83, 0, x_78); -lean_ctor_set(x_83, 1, x_82); -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_70); -x_85 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; -lean_inc(x_67); -x_86 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_86, 0, x_67); -lean_ctor_set(x_86, 1, x_73); -lean_ctor_set(x_86, 2, x_15); -lean_ctor_set(x_86, 3, x_85); -lean_ctor_set(x_86, 4, x_84); -lean_ctor_set_uint8(x_86, sizeof(void*)*5, x_3); -x_87 = lean_st_ref_take(x_6, x_81); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -lean_dec(x_87); -x_90 = !lean_is_exclusive(x_88); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_91 = lean_ctor_get(x_88, 1); -x_92 = l_Std_PersistentArray_push___rarg(x_91, x_86); -lean_ctor_set(x_88, 1, x_92); -x_93 = lean_st_ref_set(x_6, x_88, x_89); -x_94 = !lean_is_exclusive(x_93); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_93, 0); -lean_dec(x_95); -x_96 = lean_box(0); -lean_ctor_set(x_93, 0, x_96); -return x_93; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_93, 1); -lean_inc(x_97); -lean_dec(x_93); -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -} -else -{ -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; -x_100 = lean_ctor_get(x_88, 0); -x_101 = lean_ctor_get(x_88, 1); -x_102 = lean_ctor_get(x_88, 2); -x_103 = lean_ctor_get(x_88, 3); -x_104 = lean_ctor_get(x_88, 4); -x_105 = lean_ctor_get(x_88, 5); -x_106 = lean_ctor_get(x_88, 6); -x_107 = lean_ctor_get(x_88, 7); -x_108 = lean_ctor_get(x_88, 8); -lean_inc(x_108); -lean_inc(x_107); -lean_inc(x_106); -lean_inc(x_105); -lean_inc(x_104); -lean_inc(x_103); -lean_inc(x_102); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_88); -x_109 = l_Std_PersistentArray_push___rarg(x_101, x_86); -x_110 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_110, 0, x_100); -lean_ctor_set(x_110, 1, x_109); -lean_ctor_set(x_110, 2, x_102); -lean_ctor_set(x_110, 3, x_103); -lean_ctor_set(x_110, 4, x_104); -lean_ctor_set(x_110, 5, x_105); -lean_ctor_set(x_110, 6, x_106); -lean_ctor_set(x_110, 7, x_107); -lean_ctor_set(x_110, 8, x_108); -x_111 = lean_st_ref_set(x_6, x_110, x_89); -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_113 = x_111; -} else { - lean_dec_ref(x_111); - x_113 = lean_box(0); -} -x_114 = lean_box(0); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { - x_115 = x_113; -} -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_112); -return x_115; -} -} -else -{ -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; -x_116 = lean_ctor_get(x_15, 0); -lean_inc(x_116); -lean_dec(x_15); -x_117 = lean_ctor_get(x_5, 0); -x_118 = lean_ctor_get(x_5, 1); -x_119 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); -x_122 = lean_unsigned_to_nat(0u); -x_123 = l_Lean_FileMap_toPosition(x_118, x_122); -x_124 = l_Lean_FileMap_toPosition(x_118, x_116); -lean_dec(x_116); -x_125 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_125, 0, x_124); -x_126 = l_Lean_Elab_Command_getScope___rarg(x_6, x_121); -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); -x_129 = lean_ctor_get(x_127, 2); -lean_inc(x_129); -lean_dec(x_127); -x_130 = l_Lean_Elab_Command_getScope___rarg(x_6, x_128); -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 1); -lean_inc(x_132); -lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 3); -lean_inc(x_133); -lean_dec(x_131); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_129); -lean_ctor_set(x_134, 1, x_133); -x_135 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_135, 0, x_134); -lean_ctor_set(x_135, 1, x_120); -x_136 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; -lean_inc(x_117); -x_137 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_137, 0, x_117); -lean_ctor_set(x_137, 1, x_123); -lean_ctor_set(x_137, 2, x_125); -lean_ctor_set(x_137, 3, x_136); -lean_ctor_set(x_137, 4, x_135); -lean_ctor_set_uint8(x_137, sizeof(void*)*5, x_3); -x_138 = lean_st_ref_take(x_6, x_132); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -lean_dec(x_138); -x_141 = lean_ctor_get(x_139, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); -x_143 = lean_ctor_get(x_139, 2); -lean_inc(x_143); -x_144 = lean_ctor_get(x_139, 3); -lean_inc(x_144); -x_145 = lean_ctor_get(x_139, 4); -lean_inc(x_145); -x_146 = lean_ctor_get(x_139, 5); -lean_inc(x_146); -x_147 = lean_ctor_get(x_139, 6); -lean_inc(x_147); -x_148 = lean_ctor_get(x_139, 7); -lean_inc(x_148); -x_149 = lean_ctor_get(x_139, 8); -lean_inc(x_149); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - lean_ctor_release(x_139, 2); - lean_ctor_release(x_139, 3); - lean_ctor_release(x_139, 4); - lean_ctor_release(x_139, 5); - lean_ctor_release(x_139, 6); - lean_ctor_release(x_139, 7); - lean_ctor_release(x_139, 8); - x_150 = x_139; -} else { - lean_dec_ref(x_139); - x_150 = lean_box(0); -} -x_151 = l_Std_PersistentArray_push___rarg(x_142, x_137); -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 9, 0); -} else { - x_152 = x_150; -} -lean_ctor_set(x_152, 0, x_141); -lean_ctor_set(x_152, 1, x_151); -lean_ctor_set(x_152, 2, x_143); -lean_ctor_set(x_152, 3, x_144); -lean_ctor_set(x_152, 4, x_145); -lean_ctor_set(x_152, 5, x_146); -lean_ctor_set(x_152, 6, x_147); -lean_ctor_set(x_152, 7, x_148); -lean_ctor_set(x_152, 8, x_149); -x_153 = lean_st_ref_set(x_6, x_152, x_140); -x_154 = lean_ctor_get(x_153, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_155 = x_153; -} else { - lean_dec_ref(x_153); - x_155 = lean_box(0); -} -x_156 = lean_box(0); -if (lean_is_scalar(x_155)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_155; -} -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_154); -return x_157; -} -} -} -else -{ -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_158; -x_158 = !lean_is_exclusive(x_14); -if (x_158 == 0) -{ -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; uint8_t x_181; -x_159 = lean_ctor_get(x_14, 0); -x_160 = lean_ctor_get(x_5, 0); -x_161 = lean_ctor_get(x_5, 1); -x_162 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -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); -x_165 = l_Lean_FileMap_toPosition(x_161, x_159); -lean_dec(x_159); -lean_inc(x_165); -lean_ctor_set(x_14, 0, x_165); -x_166 = l_Lean_Elab_Command_getScope___rarg(x_6, x_164); -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -lean_dec(x_166); -x_169 = lean_ctor_get(x_167, 2); -lean_inc(x_169); -lean_dec(x_167); -x_170 = l_Lean_Elab_Command_getScope___rarg(x_6, x_168); -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_173 = lean_ctor_get(x_171, 3); -lean_inc(x_173); -lean_dec(x_171); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_169); -lean_ctor_set(x_174, 1, x_173); -x_175 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_163); -x_176 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; -lean_inc(x_160); -x_177 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_177, 0, x_160); -lean_ctor_set(x_177, 1, x_165); -lean_ctor_set(x_177, 2, x_14); -lean_ctor_set(x_177, 3, x_176); -lean_ctor_set(x_177, 4, x_175); -lean_ctor_set_uint8(x_177, sizeof(void*)*5, x_3); -x_178 = lean_st_ref_take(x_6, x_172); -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 = !lean_is_exclusive(x_179); -if (x_181 == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; -x_182 = lean_ctor_get(x_179, 1); -x_183 = l_Std_PersistentArray_push___rarg(x_182, x_177); -lean_ctor_set(x_179, 1, x_183); -x_184 = lean_st_ref_set(x_6, x_179, x_180); -x_185 = !lean_is_exclusive(x_184); -if (x_185 == 0) -{ -lean_object* x_186; lean_object* x_187; -x_186 = lean_ctor_get(x_184, 0); -lean_dec(x_186); -x_187 = lean_box(0); -lean_ctor_set(x_184, 0, x_187); -return x_184; -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_184, 1); -lean_inc(x_188); -lean_dec(x_184); -x_189 = lean_box(0); -x_190 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_188); -return x_190; -} -} -else -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_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; -x_191 = lean_ctor_get(x_179, 0); -x_192 = lean_ctor_get(x_179, 1); -x_193 = lean_ctor_get(x_179, 2); -x_194 = lean_ctor_get(x_179, 3); -x_195 = lean_ctor_get(x_179, 4); -x_196 = lean_ctor_get(x_179, 5); -x_197 = lean_ctor_get(x_179, 6); -x_198 = lean_ctor_get(x_179, 7); -x_199 = lean_ctor_get(x_179, 8); -lean_inc(x_199); -lean_inc(x_198); -lean_inc(x_197); -lean_inc(x_196); -lean_inc(x_195); -lean_inc(x_194); -lean_inc(x_193); -lean_inc(x_192); -lean_inc(x_191); -lean_dec(x_179); -x_200 = l_Std_PersistentArray_push___rarg(x_192, x_177); -x_201 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_201, 0, x_191); -lean_ctor_set(x_201, 1, x_200); -lean_ctor_set(x_201, 2, x_193); -lean_ctor_set(x_201, 3, x_194); -lean_ctor_set(x_201, 4, x_195); -lean_ctor_set(x_201, 5, x_196); -lean_ctor_set(x_201, 6, x_197); -lean_ctor_set(x_201, 7, x_198); -lean_ctor_set(x_201, 8, x_199); -x_202 = lean_st_ref_set(x_6, x_201, x_180); -x_203 = lean_ctor_get(x_202, 1); -lean_inc(x_203); -if (lean_is_exclusive(x_202)) { - lean_ctor_release(x_202, 0); - lean_ctor_release(x_202, 1); - x_204 = x_202; -} else { - lean_dec_ref(x_202); - x_204 = lean_box(0); -} -x_205 = lean_box(0); -if (lean_is_scalar(x_204)) { - x_206 = lean_alloc_ctor(0, 2, 0); -} else { - x_206 = x_204; -} -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_203); -return x_206; -} -} -else -{ -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_207 = lean_ctor_get(x_14, 0); -lean_inc(x_207); -lean_dec(x_14); -x_208 = lean_ctor_get(x_5, 0); -x_209 = lean_ctor_get(x_5, 1); -x_210 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -x_213 = l_Lean_FileMap_toPosition(x_209, x_207); -lean_dec(x_207); -lean_inc(x_213); -x_214 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_214, 0, x_213); -x_215 = l_Lean_Elab_Command_getScope___rarg(x_6, x_212); -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); -x_218 = lean_ctor_get(x_216, 2); -lean_inc(x_218); -lean_dec(x_216); -x_219 = l_Lean_Elab_Command_getScope___rarg(x_6, x_217); -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -lean_inc(x_221); -lean_dec(x_219); -x_222 = lean_ctor_get(x_220, 3); -lean_inc(x_222); -lean_dec(x_220); -x_223 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_223, 0, x_218); -lean_ctor_set(x_223, 1, x_222); -x_224 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_224, 0, x_223); -lean_ctor_set(x_224, 1, x_211); -x_225 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; -lean_inc(x_208); -x_226 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_226, 0, x_208); -lean_ctor_set(x_226, 1, x_213); -lean_ctor_set(x_226, 2, x_214); -lean_ctor_set(x_226, 3, x_225); -lean_ctor_set(x_226, 4, x_224); -lean_ctor_set_uint8(x_226, sizeof(void*)*5, x_3); -x_227 = lean_st_ref_take(x_6, x_221); -x_228 = lean_ctor_get(x_227, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_227, 1); -lean_inc(x_229); -lean_dec(x_227); -x_230 = lean_ctor_get(x_228, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_228, 1); -lean_inc(x_231); -x_232 = lean_ctor_get(x_228, 2); -lean_inc(x_232); -x_233 = lean_ctor_get(x_228, 3); -lean_inc(x_233); -x_234 = lean_ctor_get(x_228, 4); -lean_inc(x_234); -x_235 = lean_ctor_get(x_228, 5); -lean_inc(x_235); -x_236 = lean_ctor_get(x_228, 6); -lean_inc(x_236); -x_237 = lean_ctor_get(x_228, 7); -lean_inc(x_237); -x_238 = lean_ctor_get(x_228, 8); -lean_inc(x_238); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - lean_ctor_release(x_228, 2); - lean_ctor_release(x_228, 3); - lean_ctor_release(x_228, 4); - lean_ctor_release(x_228, 5); - lean_ctor_release(x_228, 6); - lean_ctor_release(x_228, 7); - lean_ctor_release(x_228, 8); - x_239 = x_228; -} else { - lean_dec_ref(x_228); - x_239 = lean_box(0); -} -x_240 = l_Std_PersistentArray_push___rarg(x_231, x_226); -if (lean_is_scalar(x_239)) { - x_241 = lean_alloc_ctor(0, 9, 0); -} else { - x_241 = x_239; -} -lean_ctor_set(x_241, 0, x_230); -lean_ctor_set(x_241, 1, x_240); -lean_ctor_set(x_241, 2, x_232); -lean_ctor_set(x_241, 3, x_233); -lean_ctor_set(x_241, 4, x_234); -lean_ctor_set(x_241, 5, x_235); -lean_ctor_set(x_241, 6, x_236); -lean_ctor_set(x_241, 7, x_237); -lean_ctor_set(x_241, 8, x_238); -x_242 = lean_st_ref_set(x_6, x_241, x_229); -x_243 = lean_ctor_get(x_242, 1); -lean_inc(x_243); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - x_244 = x_242; -} else { - lean_dec_ref(x_242); - x_244 = lean_box(0); -} -x_245 = lean_box(0); -if (lean_is_scalar(x_244)) { - x_246 = lean_alloc_ctor(0, 2, 0); -} else { - x_246 = x_244; -} -lean_ctor_set(x_246, 0, x_245); -lean_ctor_set(x_246, 1, x_243); -return x_246; -} -} -else -{ -lean_object* x_247; uint8_t x_248; -x_247 = lean_ctor_get(x_14, 0); -lean_inc(x_247); -lean_dec(x_14); -x_248 = !lean_is_exclusive(x_15); -if (x_248 == 0) -{ -lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; -x_249 = lean_ctor_get(x_15, 0); -x_250 = lean_ctor_get(x_5, 0); -x_251 = lean_ctor_get(x_5, 1); -x_252 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -lean_dec(x_252); -x_255 = l_Lean_FileMap_toPosition(x_251, x_247); -lean_dec(x_247); -x_256 = l_Lean_FileMap_toPosition(x_251, x_249); -lean_dec(x_249); -lean_ctor_set(x_15, 0, x_256); -x_257 = l_Lean_Elab_Command_getScope___rarg(x_6, x_254); -x_258 = lean_ctor_get(x_257, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -lean_dec(x_257); -x_260 = lean_ctor_get(x_258, 2); -lean_inc(x_260); -lean_dec(x_258); -x_261 = l_Lean_Elab_Command_getScope___rarg(x_6, x_259); -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -lean_dec(x_261); -x_264 = lean_ctor_get(x_262, 3); -lean_inc(x_264); -lean_dec(x_262); -x_265 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_265, 0, x_260); -lean_ctor_set(x_265, 1, x_264); -x_266 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_253); -x_267 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; -lean_inc(x_250); -x_268 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_268, 0, x_250); -lean_ctor_set(x_268, 1, x_255); -lean_ctor_set(x_268, 2, x_15); -lean_ctor_set(x_268, 3, x_267); -lean_ctor_set(x_268, 4, x_266); -lean_ctor_set_uint8(x_268, sizeof(void*)*5, x_3); -x_269 = lean_st_ref_take(x_6, x_263); -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_269, 1); -lean_inc(x_271); -lean_dec(x_269); -x_272 = !lean_is_exclusive(x_270); -if (x_272 == 0) -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; -x_273 = lean_ctor_get(x_270, 1); -x_274 = l_Std_PersistentArray_push___rarg(x_273, x_268); -lean_ctor_set(x_270, 1, x_274); -x_275 = lean_st_ref_set(x_6, x_270, x_271); -x_276 = !lean_is_exclusive(x_275); -if (x_276 == 0) -{ -lean_object* x_277; lean_object* x_278; -x_277 = lean_ctor_get(x_275, 0); -lean_dec(x_277); -x_278 = lean_box(0); -lean_ctor_set(x_275, 0, x_278); -return x_275; -} -else -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_279 = lean_ctor_get(x_275, 1); -lean_inc(x_279); -lean_dec(x_275); -x_280 = lean_box(0); -x_281 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_281, 0, x_280); -lean_ctor_set(x_281, 1, x_279); -return x_281; -} -} -else -{ -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; -x_282 = lean_ctor_get(x_270, 0); -x_283 = lean_ctor_get(x_270, 1); -x_284 = lean_ctor_get(x_270, 2); -x_285 = lean_ctor_get(x_270, 3); -x_286 = lean_ctor_get(x_270, 4); -x_287 = lean_ctor_get(x_270, 5); -x_288 = lean_ctor_get(x_270, 6); -x_289 = lean_ctor_get(x_270, 7); -x_290 = lean_ctor_get(x_270, 8); -lean_inc(x_290); -lean_inc(x_289); -lean_inc(x_288); -lean_inc(x_287); -lean_inc(x_286); -lean_inc(x_285); -lean_inc(x_284); -lean_inc(x_283); -lean_inc(x_282); -lean_dec(x_270); -x_291 = l_Std_PersistentArray_push___rarg(x_283, x_268); -x_292 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_292, 0, x_282); -lean_ctor_set(x_292, 1, x_291); -lean_ctor_set(x_292, 2, x_284); -lean_ctor_set(x_292, 3, x_285); -lean_ctor_set(x_292, 4, x_286); -lean_ctor_set(x_292, 5, x_287); -lean_ctor_set(x_292, 6, x_288); -lean_ctor_set(x_292, 7, x_289); -lean_ctor_set(x_292, 8, x_290); -x_293 = lean_st_ref_set(x_6, x_292, x_271); -x_294 = lean_ctor_get(x_293, 1); -lean_inc(x_294); -if (lean_is_exclusive(x_293)) { - lean_ctor_release(x_293, 0); - lean_ctor_release(x_293, 1); - x_295 = x_293; -} else { - lean_dec_ref(x_293); - x_295 = lean_box(0); -} -x_296 = lean_box(0); -if (lean_is_scalar(x_295)) { - x_297 = lean_alloc_ctor(0, 2, 0); -} else { - x_297 = x_295; -} -lean_ctor_set(x_297, 0, x_296); -lean_ctor_set(x_297, 1, x_294); -return x_297; -} -} -else -{ -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; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; -x_298 = lean_ctor_get(x_15, 0); -lean_inc(x_298); -lean_dec(x_15); -x_299 = lean_ctor_get(x_5, 0); -x_300 = lean_ctor_get(x_5, 1); -x_301 = l_Lean_addMessageContextPartial___at_Lean_Elab_Command_instAddMessageContextCommandElabM___spec__1(x_2, x_5, x_6, x_11); -x_302 = lean_ctor_get(x_301, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec(x_301); -x_304 = l_Lean_FileMap_toPosition(x_300, x_247); -lean_dec(x_247); -x_305 = l_Lean_FileMap_toPosition(x_300, x_298); -lean_dec(x_298); -x_306 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_306, 0, x_305); -x_307 = l_Lean_Elab_Command_getScope___rarg(x_6, x_303); -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_307, 1); -lean_inc(x_309); -lean_dec(x_307); -x_310 = lean_ctor_get(x_308, 2); -lean_inc(x_310); -lean_dec(x_308); -x_311 = l_Lean_Elab_Command_getScope___rarg(x_6, x_309); -x_312 = lean_ctor_get(x_311, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_311, 1); -lean_inc(x_313); -lean_dec(x_311); -x_314 = lean_ctor_get(x_312, 3); -lean_inc(x_314); -lean_dec(x_312); -x_315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_315, 0, x_310); -lean_ctor_set(x_315, 1, x_314); -x_316 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_316, 0, x_315); -lean_ctor_set(x_316, 1, x_302); -x_317 = l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_checkAnonymousScope_match__1___rarg___closed__1; -lean_inc(x_299); -x_318 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_318, 0, x_299); -lean_ctor_set(x_318, 1, x_304); -lean_ctor_set(x_318, 2, x_306); -lean_ctor_set(x_318, 3, x_317); -lean_ctor_set(x_318, 4, x_316); -lean_ctor_set_uint8(x_318, sizeof(void*)*5, x_3); -x_319 = lean_st_ref_take(x_6, x_313); -x_320 = lean_ctor_get(x_319, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_319, 1); -lean_inc(x_321); -lean_dec(x_319); -x_322 = lean_ctor_get(x_320, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_320, 1); -lean_inc(x_323); -x_324 = lean_ctor_get(x_320, 2); -lean_inc(x_324); -x_325 = lean_ctor_get(x_320, 3); -lean_inc(x_325); -x_326 = lean_ctor_get(x_320, 4); -lean_inc(x_326); -x_327 = lean_ctor_get(x_320, 5); -lean_inc(x_327); -x_328 = lean_ctor_get(x_320, 6); -lean_inc(x_328); -x_329 = lean_ctor_get(x_320, 7); -lean_inc(x_329); -x_330 = lean_ctor_get(x_320, 8); -lean_inc(x_330); -if (lean_is_exclusive(x_320)) { - lean_ctor_release(x_320, 0); - lean_ctor_release(x_320, 1); - lean_ctor_release(x_320, 2); - lean_ctor_release(x_320, 3); - lean_ctor_release(x_320, 4); - lean_ctor_release(x_320, 5); - lean_ctor_release(x_320, 6); - lean_ctor_release(x_320, 7); - lean_ctor_release(x_320, 8); - x_331 = x_320; -} else { - lean_dec_ref(x_320); - x_331 = lean_box(0); -} -x_332 = l_Std_PersistentArray_push___rarg(x_323, x_318); -if (lean_is_scalar(x_331)) { - x_333 = lean_alloc_ctor(0, 9, 0); -} else { - x_333 = x_331; -} -lean_ctor_set(x_333, 0, x_322); -lean_ctor_set(x_333, 1, x_332); -lean_ctor_set(x_333, 2, x_324); -lean_ctor_set(x_333, 3, x_325); -lean_ctor_set(x_333, 4, x_326); -lean_ctor_set(x_333, 5, x_327); -lean_ctor_set(x_333, 6, x_328); -lean_ctor_set(x_333, 7, x_329); -lean_ctor_set(x_333, 8, x_330); -x_334 = lean_st_ref_set(x_6, x_333, x_321); -x_335 = lean_ctor_get(x_334, 1); -lean_inc(x_335); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_336 = x_334; -} else { - lean_dec_ref(x_334); - x_336 = lean_box(0); -} -x_337 = lean_box(0); -if (lean_is_scalar(x_336)) { - x_338 = lean_alloc_ctor(0, 2, 0); -} else { - x_338 = x_336; -} -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_335); -return x_338; -} -} -} -} -} -} -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(lean_object* x_1, uint8_t 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; -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_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(x_8, x_1, x_2, x_3, x_4, x_5, x_9); -lean_dec(x_8); -return x_10; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(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; lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_6 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_6, 0, x_1); -x_7 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2; -x_8 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3; -x_10 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = 2; -x_12 = l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(x_10, x_11, x_2, x_3, x_4, x_5); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(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_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___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; uint8_t x_9; @@ -5920,17 +5507,7 @@ return x_27; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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; @@ -5938,6 +5515,7 @@ x_10 = x_4 < x_3; if (x_10 == 0) { lean_object* x_11; +lean_dec(x_7); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_5); lean_ctor_set(x_11, 1, x_9); @@ -5945,99 +5523,65 @@ return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; 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; uint8_t x_31; +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_dec(x_5); x_12 = lean_array_uget(x_2, x_4); -x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Lean_Syntax_getArg(x_12, x_20); -x_22 = l_Lean_Syntax_getId(x_21); -lean_dec(x_21); -x_23 = lean_unsigned_to_nat(2u); -x_24 = l_Lean_Syntax_getArg(x_12, x_23); -x_25 = l_Lean_Syntax_getId(x_24); -lean_dec(x_24); -x_26 = l_Lean_Name_append(x_1, x_22); -x_27 = lean_st_ref_get(x_8, x_9); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_ctor_get(x_28, 0); -lean_inc(x_30); -lean_dec(x_28); -x_31 = l_Lean_Environment_contains(x_30, x_26); -if (x_31 == 0) -{ -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_dec(x_25); -x_32 = l_Lean_Elab_Command_getRef(x_7, x_8, x_29); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = l_Lean_replaceRef(x_12, x_33); -lean_dec(x_33); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Lean_Syntax_getArg(x_12, x_13); +x_15 = lean_unsigned_to_nat(2u); +x_16 = l_Lean_Syntax_getArg(x_12, x_15); lean_dec(x_12); -x_36 = lean_ctor_get(x_7, 0); -x_37 = lean_ctor_get(x_7, 1); -x_38 = lean_ctor_get(x_7, 2); -x_39 = lean_ctor_get(x_7, 3); -x_40 = lean_ctor_get(x_7, 4); -x_41 = lean_ctor_get(x_7, 5); -lean_inc(x_41); -lean_inc(x_40); -lean_inc(x_39); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -x_42 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_42, 0, x_36); -lean_ctor_set(x_42, 1, x_37); -lean_ctor_set(x_42, 2, x_38); -lean_ctor_set(x_42, 3, x_39); -lean_ctor_set(x_42, 4, x_40); -lean_ctor_set(x_42, 5, x_41); -lean_ctor_set(x_42, 6, x_35); -x_43 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_26, x_6, x_42, x_8, x_34); -lean_dec(x_42); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; -x_13 = x_45; -x_14 = x_44; -goto block_19; +x_17 = l_Lean_Syntax_getId(x_16); +lean_dec(x_16); +lean_inc(x_7); +x_18 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__4(x_1, x_14, x_6, x_7, x_8, x_9); +lean_dec(x_14); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_19); +x_22 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__4(x_21, x_6, x_7, x_8, x_20); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = 1; +x_25 = x_4 + x_24; +x_26 = lean_box(0); +x_4 = x_25; +x_5 = x_26; +x_9 = x_23; +goto _start; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_12); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_25); -lean_ctor_set(x_46, 1, x_26); -x_47 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_46, x_6, x_7, x_8, x_29); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); -lean_dec(x_47); -x_49 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; -x_13 = x_49; -x_14 = x_48; -goto block_19; -} -block_19: +uint8_t x_28; +lean_dec(x_17); +lean_dec(x_7); +x_28 = !lean_is_exclusive(x_18); +if (x_28 == 0) { -lean_object* x_15; size_t x_16; size_t x_17; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = 1; -x_17 = x_4 + x_16; -x_4 = x_17; -x_5 = x_15; -x_9 = x_14; -goto _start; +return x_18; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_18, 0); +x_30 = lean_ctor_get(x_18, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_18); +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; +} } } } @@ -6053,7 +5597,7 @@ lean_dec(x_7); x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, 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; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -6068,9 +5612,12 @@ x_16 = lean_usize_of_nat(x_15); lean_dec(x_15); x_17 = 0; x_18 = lean_box(0); -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__5(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); lean_dec(x_14); lean_dec(x_10); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) { @@ -6095,19 +5642,19 @@ return x_23; else { uint8_t x_24; -x_24 = !lean_is_exclusive(x_9); +x_24 = !lean_is_exclusive(x_19); if (x_24 == 0) { -return x_9; +return x_19; } else { lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); lean_inc(x_26); lean_inc(x_25); -lean_dec(x_9); +lean_dec(x_19); x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -6115,8 +5662,32 @@ return x_27; } } } +else +{ +uint8_t x_28; +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_9); +if (x_28 == 0) +{ +return x_9; } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_9, 0); +x_30 = lean_ctor_get(x_9, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_9); +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; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__7(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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; @@ -6124,6 +5695,7 @@ x_10 = x_4 < x_3; if (x_10 == 0) { lean_object* x_11; +lean_dec(x_7); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_5); lean_ctor_set(x_11, 1, x_9); @@ -6131,84 +5703,57 @@ 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; uint8_t x_19; +lean_object* x_12; lean_object* x_13; x_12 = lean_array_uget(x_2, x_4); -x_13 = l_Lean_Syntax_getId(x_12); -lean_inc(x_13); -x_14 = l_Lean_Name_append(x_1, x_13); -x_15 = lean_st_ref_get(x_8, x_9); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Lean_Environment_contains(x_18, x_14); -if (x_19 == 0) +lean_inc(x_7); +x_13 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__4(x_1, x_12, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; +lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); lean_dec(x_13); -x_20 = l_Lean_Elab_Command_getRef(x_7, x_8, x_17); -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 = l_Lean_replaceRef(x_12, x_21); -lean_dec(x_21); +x_15 = l_Lean_Syntax_getId(x_12); lean_dec(x_12); -x_24 = lean_ctor_get(x_7, 0); -x_25 = lean_ctor_get(x_7, 1); -x_26 = lean_ctor_get(x_7, 2); -x_27 = lean_ctor_get(x_7, 3); -x_28 = lean_ctor_get(x_7, 4); -x_29 = lean_ctor_get(x_7, 5); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -x_30 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_30, 0, x_24); -lean_ctor_set(x_30, 1, x_25); -lean_ctor_set(x_30, 2, x_26); -lean_ctor_set(x_30, 3, x_27); -lean_ctor_set(x_30, 4, x_28); -lean_ctor_set(x_30, 5, x_29); -lean_ctor_set(x_30, 6, x_23); -x_31 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_14, x_6, x_30, x_8, x_22); -lean_dec(x_30); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec(x_31); -x_33 = 1; -x_34 = x_4 + x_33; -x_4 = x_34; -x_9 = x_32; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_5); +x_17 = 1; +x_18 = x_4 + x_17; +x_4 = x_18; +x_5 = x_16; +x_9 = x_14; goto _start; } else { -lean_object* x_36; size_t x_37; size_t x_38; -lean_dec(x_14); +uint8_t x_20; lean_dec(x_12); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_13); -lean_ctor_set(x_36, 1, x_5); -x_37 = 1; -x_38 = x_4 + x_37; -x_4 = x_38; -x_5 = x_36; -x_9 = x_17; -goto _start; +lean_dec(x_7); +lean_dec(x_5); +x_20 = !lean_is_exclusive(x_13); +if (x_20 == 0) +{ +return x_13; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_13, 0); +x_22 = lean_ctor_get(x_13, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_13); +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; } } } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(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_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__6(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; @@ -6219,7 +5764,7 @@ lean_dec(x_7); x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, 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; lean_object* x_15; lean_object* x_16; size_t x_17; size_t 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_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; size_t x_17; size_t x_18; lean_object* x_19; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -6234,8 +5779,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 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(x_10, x_15, x_17, x_18, x_12, x_2, x_3, x_4, x_11); +lean_inc(x_3); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__7(x_10, x_15, x_17, x_18, x_12, x_2, x_3, x_4, x_11); lean_dec(x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); @@ -6244,25 +5793,124 @@ lean_dec(x_19); x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_10); lean_ctor_set(x_22, 1, x_20); -x_23 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_22, x_2, x_3, x_4, x_21); +x_23 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__4(x_22, x_2, x_3, x_4, x_21); +lean_dec(x_3); return x_23; } else { uint8_t x_24; -x_24 = !lean_is_exclusive(x_9); +lean_dec(x_10); +lean_dec(x_3); +x_24 = !lean_is_exclusive(x_19); if (x_24 == 0) { +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +uint8_t x_28; +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_9); +if (x_28 == 0) +{ return x_9; } else { +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_9, 0); +x_30 = lean_ctor_get(x_9, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_9); +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; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_5); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_5); +x_12 = lean_array_uget(x_2, x_4); +lean_inc(x_7); +x_13 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Command_elabExport___spec__4(x_1, x_12, x_6, x_7, x_8, x_9); +if (lean_obj_tag(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; size_t x_20; size_t x_21; lean_object* x_22; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = l_Lean_Syntax_getId(x_12); +lean_dec(x_12); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_14); +x_18 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__4(x_17, x_6, x_7, x_8, x_15); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +lean_dec(x_18); +x_20 = 1; +x_21 = x_4 + x_20; +x_22 = lean_box(0); +x_4 = x_21; +x_5 = x_22; +x_9 = x_19; +goto _start; +} +else +{ +uint8_t x_24; +lean_dec(x_12); +lean_dec(x_7); +x_24 = !lean_is_exclusive(x_13); +if (x_24 == 0) +{ +return x_13; +} +else +{ lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); +x_25 = lean_ctor_get(x_13, 0); +x_26 = lean_ctor_get(x_13, 1); lean_inc(x_26); lean_inc(x_25); -lean_dec(x_9); +lean_dec(x_13); x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -6271,113 +5919,8 @@ return x_27; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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 = x_4 < x_3; -if (x_10 == 0) -{ -lean_object* x_11; -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_5); -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_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -lean_dec(x_5); -x_12 = lean_array_uget(x_2, x_4); -x_20 = l_Lean_Syntax_getId(x_12); -lean_inc(x_20); -x_21 = l_Lean_Name_append(x_1, x_20); -x_22 = lean_st_ref_get(x_8, x_9); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -lean_dec(x_23); -x_26 = l_Lean_Environment_contains(x_25, x_21); -if (x_26 == 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; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_20); -x_27 = l_Lean_Elab_Command_getRef(x_7, x_8, x_24); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = l_Lean_replaceRef(x_12, x_28); -lean_dec(x_28); -lean_dec(x_12); -x_31 = lean_ctor_get(x_7, 0); -x_32 = lean_ctor_get(x_7, 1); -x_33 = lean_ctor_get(x_7, 2); -x_34 = lean_ctor_get(x_7, 3); -x_35 = lean_ctor_get(x_7, 4); -x_36 = lean_ctor_get(x_7, 5); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -x_37 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_32); -lean_ctor_set(x_37, 2, x_33); -lean_ctor_set(x_37, 3, x_34); -lean_ctor_set(x_37, 4, x_35); -lean_ctor_set(x_37, 5, x_36); -lean_ctor_set(x_37, 6, x_30); -x_38 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_21, x_6, x_37, x_8, x_29); -lean_dec(x_37); -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec(x_38); -x_40 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; -x_13 = x_40; -x_14 = x_39; -goto block_19; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_12); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_20); -lean_ctor_set(x_41, 1, x_21); -x_42 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_41, x_6, x_7, x_8, x_24); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -x_44 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1; -x_13 = x_44; -x_14 = x_43; -goto block_19; -} -block_19: -{ -lean_object* x_15; size_t x_16; size_t x_17; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = 1; -x_17 = x_4 + x_16; -x_4 = x_17; -x_5 = x_15; -x_9 = x_14; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(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_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__8(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; @@ -6388,7 +5931,7 @@ lean_dec(x_7); x_9 = l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3(x_8, x_2, 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; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -6403,9 +5946,12 @@ x_16 = lean_usize_of_nat(x_15); lean_dec(x_15); x_17 = 0; x_18 = lean_box(0); -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(x_10, x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_11); lean_dec(x_14); lean_dec(x_10); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; x_20 = !lean_is_exclusive(x_19); if (x_20 == 0) { @@ -6430,19 +5976,19 @@ return x_23; else { uint8_t x_24; -x_24 = !lean_is_exclusive(x_9); +x_24 = !lean_is_exclusive(x_19); if (x_24 == 0) { -return x_9; +return x_19; } else { lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_9, 0); -x_26 = lean_ctor_get(x_9, 1); +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); lean_inc(x_26); lean_inc(x_25); -lean_dec(x_9); +lean_dec(x_19); x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -6450,8 +5996,32 @@ return x_27; } } } +else +{ +uint8_t x_28; +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_9); +if (x_28 == 0) +{ +return x_9; } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_9, 0); +x_30 = lean_ctor_get(x_9, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_9); +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; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__12(lean_object* x_1, lean_object* x_2, size_t x_3, size_t 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; @@ -6545,7 +6115,7 @@ goto _start; } } } -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__11(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; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -6561,7 +6131,7 @@ x_11 = lean_usize_of_nat(x_10); lean_dec(x_10); x_12 = 0; x_13 = lean_box(0); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(x_1, x_8, x_11, x_12, x_13, x_2, x_3, x_4, x_9); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__12(x_1, x_8, x_11, x_12, x_13, x_2, x_3, x_4, x_9); lean_dec(x_8); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) @@ -6585,7 +6155,7 @@ return x_18; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(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* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(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) { _start: { uint8_t x_9; @@ -6619,11 +6189,11 @@ lean_inc(x_14); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_14); lean_ctor_set(x_17, 1, x_16); -x_18 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_17, x_5, x_6, x_7, x_15); +x_18 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__4(x_17, x_5, x_6, x_7, x_15); x_19 = lean_ctor_get(x_18, 1); lean_inc(x_19); lean_dec(x_18); -x_20 = l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(x_14, x_5, x_6, x_7, x_19); +x_20 = l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__11(x_14, x_5, x_6, x_7, x_19); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); @@ -6660,7 +6230,7 @@ return x_29; } } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(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_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__10(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; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; @@ -6673,7 +6243,7 @@ x_10 = lean_usize_of_nat(x_9); lean_dec(x_9); x_11 = 0; x_12 = lean_box(0); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(x_8, x_10, x_11, x_12, x_2, x_3, x_4, x_5); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_8, x_10, x_11, x_12, x_2, x_3, x_4, x_5); lean_dec(x_8); if (lean_obj_tag(x_13) == 0) { @@ -6897,6 +6467,7 @@ lean_dec(x_19); if (x_30 == 0) { lean_object* x_31; +lean_inc(x_2); x_31 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(x_1, x_25, x_2, x_3, x_26); lean_dec(x_1); if (lean_obj_tag(x_31) == 0) @@ -6984,7 +6555,8 @@ return x_48; else { lean_object* x_49; -x_49 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(x_1, x_25, x_2, x_3, x_26); +lean_inc(x_2); +x_49 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__6(x_1, x_25, x_2, x_3, x_26); lean_dec(x_1); if (lean_obj_tag(x_49) == 0) { @@ -7073,7 +6645,8 @@ else { lean_object* x_67; lean_dec(x_19); -x_67 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(x_1, x_25, x_2, x_3, x_26); +lean_inc(x_2); +x_67 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__8(x_1, x_25, x_2, x_3, x_26); lean_dec(x_1); if (lean_obj_tag(x_67) == 0) { @@ -7167,7 +6740,7 @@ lean_inc(x_85); x_86 = lean_ctor_get(x_24, 1); lean_inc(x_86); lean_dec(x_24); -x_87 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(x_1, x_85, x_2, x_3, x_86); +x_87 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__10(x_1, x_85, x_2, x_3, x_86); lean_dec(x_1); if (lean_obj_tag(x_87) == 0) { @@ -7345,17 +6918,6 @@ return x_15; } } } -lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabOpen___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_Lean_throwError___at_Lean_Elab_Command_elabOpen___spec__4(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_6; -} -} lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Command_elabOpen___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -7367,52 +6929,68 @@ lean_dec(x_2); return x_6; } } -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___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) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_3); -lean_dec(x_3); -x_9 = l_Lean_Elab_logAt___at_Lean_Elab_Command_elabOpen___spec__7(x_1, x_2, x_8, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_2); -lean_dec(x_2); -x_8 = l_Lean_Elab_log___at_Lean_Elab_Command_elabOpen___spec__6(x_1, x_7, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_8; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___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* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___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_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabOpen___spec__5(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__4(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___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_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___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: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__5(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Command_elabOpen___spec__8(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); +return x_6; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___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: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_11 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__7(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__6___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_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__6(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); return x_6; } } @@ -7426,26 +7004,24 @@ x_11 = lean_unbox_usize(x_4); lean_dec(x_4); x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9(x_1, x_2, x_10, x_11, 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_2); lean_dec(x_1); return x_12; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__8___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_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Command_elabOpen___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__8(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_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___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, lean_object* x_8, lean_object* x_9) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { size_t x_10; size_t x_11; lean_object* x_12; @@ -7453,65 +7029,7 @@ x_10 = lean_unbox_usize(x_3); lean_dec(x_3); x_11 = lean_unbox_usize(x_4); lean_dec(x_4); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__11(x_1, x_2, x_10, x_11, 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_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10___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_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Command_elabOpen___spec__10(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_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_11 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_1, x_2, x_10, x_11, 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_2); -lean_dec(x_1); -return x_12; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12___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_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Command_elabOpen___spec__12(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_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_11 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__16(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__12(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -7519,18 +7037,18 @@ lean_dec(x_2); return x_12; } } -lean_object* l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15___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_activateScoped___at_Lean_Elab_Command_elabOpen___spec__11___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_activateScoped___at_Lean_Elab_Command_elabOpen___spec__15(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_activateScoped___at_Lean_Elab_Command_elabOpen___spec__11(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17___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_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13___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: { size_t x_9; size_t x_10; lean_object* x_11; @@ -7538,7 +7056,7 @@ x_9 = lean_unbox_usize(x_2); lean_dec(x_2); x_10 = lean_unbox_usize(x_3); lean_dec(x_3); -x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__17(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__13(x_1, x_9, x_10, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -7546,11 +7064,11 @@ lean_dec(x_1); return x_11; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14___boxed(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_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__10___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_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__14(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Command_elabOpen___spec__10(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); @@ -16579,6 +16097,7 @@ return x_6; } lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Elab_Command(lean_object*); +lean_object* initialize_Lean_Elab_Open(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_BuiltinCommand(lean_object* w) { lean_object * res; @@ -16590,6 +16109,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Command(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Open(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1(); lean_mark_persistent(l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__1); l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2 = _init_l___private_Lean_Elab_BuiltinCommand_0__Lean_Elab_Command_addScopes___closed__2(); @@ -16720,12 +16242,16 @@ l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1 lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__1); l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2 = _init_l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2(); lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Command_elabExport___spec__1___closed__2); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__1); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__2); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Command_elabExport___spec__3___closed__3); +l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__1(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__1); +l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__2(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__2); +l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__3(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Command_elabExport___spec__8___closed__3); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__1 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__1); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Command_elabExport___spec__5___closed__2); l_Lean_Elab_Command_elabExport___closed__1 = _init_l_Lean_Elab_Command_elabExport___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabExport___closed__1); l_Lean_Elab_Command_elabExport___closed__2 = _init_l_Lean_Elab_Command_elabExport___closed__2(); @@ -16743,8 +16269,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabExport___closed__5); res = l___regBuiltin_Lean_Elab_Command_elabExport(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabOpen___spec__9___closed__1); l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1(); lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__1); l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Command_elabOpen___spec__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/BuiltinTerm.c b/stage0/stdlib/Lean/Elab/BuiltinTerm.c index 8eef37ba39..3f3c86892e 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinTerm.c +++ b/stage0/stdlib/Lean/Elab/BuiltinTerm.c @@ -18,12 +18,15 @@ static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Term_elabSetOption_ lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__3; static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabDoubleQuotedName___spec__3___closed__1; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabStrLit___closed__1; lean_object* l_Lean_Elab_Term_elabTypeOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureTypeOf___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabScientificLit(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__1; lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Term_elabStrLit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5___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_resolveGlobalConstCore___at_Lean_Elab_Term_elabDoubleQuotedName___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -31,19 +34,19 @@ static lean_object* l_Lean_Elab_Term_elabScientificLit___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__2; lean_object* lean_erase_macro_scopes(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__14; lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabDoubleQuotedName___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Term_elabDoubleQuotedName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -lean_object* l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__2; lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Term_elabEnsureTypeOf_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNumLit___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureTypeOf___closed__4; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21___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_Elab_resolveGlobalConstNoOverloadWithInfo___at_Lean_Elab_Term_elabDoubleQuotedName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__3; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -52,14 +55,13 @@ lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Term_addDotCompletionInfo__ lean_object* lean_io_error_to_string(lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__6; static lean_object* l___regBuiltin_Lean_Elab_Term_elabStrLit___closed__4; -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_elabOpen___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabCharLit___closed__3; static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__2___closed__1; 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_Std_Format_defWidth; lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit(lean_object*); static lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabDoubleQuotedName___spec__3___closed__2; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__1; lean_object* l_List_filterMap___at_Lean_resolveGlobalConst___spec__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabCharLit___closed__5; @@ -87,15 +89,15 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabScientificLit___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabScientificLit___closed__1; +lean_object* l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__7; +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureTypeOf___closed__5; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__16___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_Term_elabOpen___spec__15___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__24(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_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__1; lean_object* lean_array_get_size(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName___closed__4; @@ -109,6 +111,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName___closed_ static lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Term_elabStrLit___closed__5; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabOpen___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit___closed__1; lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabDoubleQuotedName___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -122,8 +125,7 @@ lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic(lean_object*); static lean_object* l_Lean_Elab_Term_elabProp___rarg___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabStrLit___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx(lean_object*); -uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(uint8_t, uint8_t); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__4; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabScientificLit___closed__1; @@ -137,28 +139,27 @@ lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabNumLit___spec__2___boxed( static lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName___closed__2; lean_object* l_Lean_Elab_Term_elabNumLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; lean_object* l_Lean_Elab_Term_elabStrLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit___closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__13___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoImplicitLambda___closed__2; -lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_elabOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__19(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13___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_Term_elabOpen___spec__22(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBadCDot___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabHole___closed__3; extern lean_object* l_Lean_maxRecDepth; static lean_object* l___regBuiltin_Lean_Elab_Term_elabHole___closed__5; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_LocalContext_empty; lean_object* l_Lean_ScopedEnvExtension_popScope___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___spec__3___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit___closed__3; lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Term_elabNumLit___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14(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_elabOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabHole(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Term_elabOpen___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx___closed__5; @@ -170,13 +171,14 @@ lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object* lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabSetOption___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isCharLit_x3f(lean_object*); lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__16(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabEnsureExpectedType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabOpen___closed__2; lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverload___spec__1(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__3; lean_object* l_Lean_Elab_Term_elabByTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__9; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeCompletion___closed__4; lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__7___closed__2; @@ -191,8 +193,10 @@ lean_object* l_Lean_Elab_Term_elabProp___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_elabNumLit___lambda__1___closed__3; lean_object* l_Lean_Syntax_isStrLit_x3f(lean_object*); lean_object* l_Lean_Elab_Term_mkNoImplicitLambdaAnnotation(lean_object*); +lean_object* l_Lean_mkRawNatLit(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureTypeOf___closed__3; static lean_object* l_Lean_Elab_Term_elabByTactic___closed__2; +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabSetOption___closed__1; static lean_object* l_Lean_Elab_Term_elabScientificLit___closed__6; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -208,6 +212,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName___closed_ lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabDoubleQuotedName___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabPipeCompletion(lean_object*, 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* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabNoImplicitLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabCharLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -216,10 +221,10 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__12; lean_object* l_Lean_Elab_Term_elabNumLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); uint8_t l_Lean_MetavarContext_isWellFormed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__11___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_Elab_Term_elabTypeStx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__8; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toExprAux(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeOf___closed__5; @@ -227,6 +232,7 @@ lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, l lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Term_elabNumLit___closed__5; +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___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_st_mk_ref(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabCharLit(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabScientificLit___closed__2; @@ -234,9 +240,9 @@ lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSyntheticHole_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_format_pretty(lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___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_Elab_Term_synthesizeInst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabStrLit___closed__2; -lean_object* l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabRawNatLit___closed__2; static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabOpen___closed__5; @@ -245,22 +251,23 @@ lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_o static lean_object* l_Lean_Elab_Term_elabScientificLit___closed__11; uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabCharLit___closed__2; +lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__18(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__2; lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabDoubleQuotedName___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__3; -lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___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_BuiltinTerm_0__Lean_Elab_Term_mkFreshTypeMVarFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__11; -lean_object* l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeOf___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabNumLit(lean_object*); static lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__1; -uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___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_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__24___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_elabEnsureExpectedType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName___closed__3; lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Term_elabOpen___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -269,16 +276,14 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabScientificLit___closed__4; static lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__8; lean_object* l_Lean_pushScope___at_Lean_Elab_Term_elabOpen___spec__1___boxed(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_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabCharLit___closed__3; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__1; +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabOpen___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabScientificLit___closed__10; lean_object* l___regBuiltin_Lean_Elab_Term_elabSort(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabByTactic___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabDoubleQuotedName___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_elabOpen___spec__9(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__2; static lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__9; @@ -294,18 +299,14 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoImplicitLambda___closed_ lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__2___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureTypeOf(lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabEnsureTypeOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabOpen___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConst___at_Lean_Elab_Term_elabDoubleQuotedName___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); lean_object* l_Lean_Elab_Term_elabHole(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_Term_elabOpen___spec__15(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabCharLit___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabHole___closed__4; lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__7___closed__1; @@ -342,6 +343,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabSort___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__3; lean_object* l_Lean_Elab_Term_elabStrLit_match__1(lean_object*); lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_elabOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__8; uint8_t l_Lean_Name_isAnonymous(lean_object*); lean_object* l_Lean_Elab_Term_elabOpen(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -353,10 +355,10 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabOpen___closed__4; lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabCharLit___closed__1; static lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__6; -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__1; -lean_object* l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Term_elabProp___closed__1; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabCharLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabHole___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabDoubleQuotedName___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -365,7 +367,8 @@ lean_object* l_Lean_Elab_Term_elabSort(lean_object*, lean_object*, lean_object*, static lean_object* l_Lean_Elab_Term_elabSyntheticHole___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabHole___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabCompletion___closed__5; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabPipeCompletion(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName(lean_object*); @@ -375,9 +378,8 @@ lean_object* l___private_Lean_Elab_BuiltinTerm_0__Lean_Elab_Term_elabOptLevel___ lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabDoubleQuotedName(lean_object*); static lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__1; -lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_elabOpen___spec__8(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___closed__1; -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___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_throwError___at_Lean_Elab_Term_elabOpen___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLCtx___at_Lean_Elab_Term_elabSyntheticHole___spec__1(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabQuotedName___closed__4; @@ -397,7 +399,6 @@ static lean_object* l_Lean_Elab_Term_elabPipeCompletion___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_elabByTactic___closed__3; static lean_object* l_Lean_Elab_Term_elabNumLit___lambda__1___closed__2; -lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__7; uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*); lean_object* l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -407,17 +408,15 @@ lean_object* l_Lean_Elab_Term_elabSyntheticHole(lean_object*, lean_object*, lean static lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Term_elabStrLit___spec__1___closed__1; static lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___spec__3___closed__1; lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Term_elabSetOption___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_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__7___closed__3; static lean_object* l_Lean_Elab_Term_elabByTactic___closed__1; lean_object* l_Lean_Elab_Term_registerMVarErrorImplicitArgInfo(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_mkFreshTypeMVar(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Term_elabStrLit___spec__1___closed__2; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Term_elabEnsureExpectedType___closed__3; lean_object* l_Lean_Elab_Term_elabRawNatLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_mkStrLit(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabOpen___closed__3; @@ -427,6 +426,7 @@ uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___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*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabCharLit___closed__2; lean_object* l_List_map___at_Lean_mkConstWithLevelParams___spec__1(lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabSetOption___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDoubleQuotedName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Term_elabDoubleQuotedName___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -442,6 +442,7 @@ lean_object* l_Lean_Elab_Term_elabQuotedName_match__1(lean_object*); lean_object* l_Lean_Elab_Term_elabScientificLit_match__1(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Elab_Term_elabStrLit(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_Term_elabOpen___spec__14(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_elabPipeCompletion___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeOf___closed__4; lean_object* l_Lean_Elab_Term_elabEnsureTypeOf_match__1(lean_object*); @@ -455,6 +456,7 @@ lean_object* lean_uint32_to_nat(uint32_t); static lean_object* l___regBuiltin_Lean_Elab_Term_elabSyntheticHole___closed__1; lean_object* l_Lean_Elab_Term_elabScientificLit_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__22___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_elabBadCDot___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__5; @@ -487,6 +489,7 @@ lean_object* l_Lean_Elab_Term_elabNumLit(lean_object*, lean_object*, lean_object static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Term_elabSetOption___spec__1___closed__3; lean_object* l_Lean_Elab_Term_elabCharLit_match__1(lean_object*); lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Term_elabSetOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabNoImplicitLambda___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Term_elabBadCDot___closed__5; uint8_t l_Lean_Syntax_isIdent(lean_object*); @@ -3407,7 +3410,7 @@ lean_ctor_set(x_18, 1, x_17); x_19 = l_Lean_Elab_Term_elabNumLit___lambda__1___closed__2; lean_inc(x_18); x_20 = l_Lean_mkConst(x_19, x_18); -x_21 = l_Lean_mkNatLit(x_3); +x_21 = l_Lean_mkRawNatLit(x_3); lean_inc(x_21); lean_inc(x_12); x_22 = l_Lean_mkAppB(x_20, x_12, x_21); @@ -3721,7 +3724,7 @@ lean_dec(x_3); x_15 = lean_ctor_get(x_13, 0); lean_inc(x_15); lean_dec(x_13); -x_16 = l_Lean_mkNatLit(x_15); +x_16 = l_Lean_mkRawNatLit(x_15); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_9); @@ -4030,8 +4033,8 @@ lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean x_30 = lean_ctor_get(x_28, 0); x_31 = l_Lean_Elab_Term_elabScientificLit___closed__4; x_32 = l_Lean_mkConst(x_31, x_24); -x_33 = l_Lean_mkNatLit(x_14); -x_34 = l_Lean_mkNatLit(x_16); +x_33 = l_Lean_mkRawNatLit(x_14); +x_34 = l_Lean_mkRawNatLit(x_16); x_35 = lean_unbox(x_15); lean_dec(x_15); if (x_35 == 0) @@ -4061,8 +4064,8 @@ lean_inc(x_40); lean_dec(x_28); x_42 = l_Lean_Elab_Term_elabScientificLit___closed__4; x_43 = l_Lean_mkConst(x_42, x_24); -x_44 = l_Lean_mkNatLit(x_14); -x_45 = l_Lean_mkNatLit(x_16); +x_44 = l_Lean_mkRawNatLit(x_14); +x_45 = l_Lean_mkRawNatLit(x_16); x_46 = lean_unbox(x_15); lean_dec(x_15); if (x_46 == 0) @@ -4336,7 +4339,7 @@ lean_dec(x_10); x_13 = lean_unbox_uint32(x_12); lean_dec(x_12); x_14 = lean_uint32_to_nat(x_13); -x_15 = l_Lean_mkNatLit(x_14); +x_15 = l_Lean_mkRawNatLit(x_14); x_16 = l_Lean_Elab_Term_elabCharLit___closed__4; x_17 = l_Lean_mkApp(x_16, x_15); x_18 = lean_alloc_ctor(0, 2, 0); @@ -6334,932 +6337,471 @@ return x_52; } } } -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_elabOpen___spec__9(lean_object* x_1, lean_object* x_2, uint8_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) { +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_elabOpen___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_12; uint8_t x_293; uint8_t x_294; -x_293 = 2; -x_294 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_3, x_293); -if (x_294 == 0) -{ -lean_object* x_295; -x_295 = lean_box(0); -x_12 = x_295; -goto block_292; -} -else -{ -uint8_t x_296; -lean_inc(x_2); -x_296 = l_Lean_MessageData_hasSyntheticSorry(x_2); -if (x_296 == 0) -{ -lean_object* x_297; -x_297 = lean_box(0); -x_12 = x_297; -goto block_292; -} -else -{ -lean_object* x_298; lean_object* x_299; -lean_dec(x_2); -x_298 = lean_box(0); -x_299 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_299, 0, x_298); -lean_ctor_set(x_299, 1, x_11); -return x_299; -} -} -block_292: -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; -lean_dec(x_12); -x_13 = lean_ctor_get(x_9, 3); -x_14 = l_Lean_replaceRef(x_1, x_13); -x_15 = 0; -x_16 = l_Lean_Syntax_getPos_x3f(x_14, x_15); -x_17 = l_Lean_Syntax_getTailPos_x3f(x_14, x_15); +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; uint8_t x_23; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_8, x_12); +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); lean_dec(x_14); -if (lean_obj_tag(x_16) == 0) -{ -if (lean_obj_tag(x_17) == 0) -{ -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; uint8_t x_37; -x_18 = lean_ctor_get(x_5, 0); -x_19 = lean_ctor_get(x_5, 1); -x_20 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -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_unsigned_to_nat(0u); -x_24 = l_Lean_FileMap_toPosition(x_19, x_23); -lean_inc(x_24); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_24); -x_26 = lean_ctor_get(x_9, 4); -x_27 = lean_ctor_get(x_9, 5); -lean_inc(x_27); -lean_inc(x_26); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_26); -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_21); -x_30 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; +x_16 = lean_st_ref_get(x_2, x_15); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); -x_31 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_24); -lean_ctor_set(x_31, 2, x_25); -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_get(x_10, x_22); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = lean_st_ref_take(x_6, x_33); -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = !lean_is_exclusive(x_35); -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_35, 3); -x_39 = l_Std_PersistentArray_push___rarg(x_38, x_31); -lean_ctor_set(x_35, 3, x_39); -x_40 = lean_st_ref_set(x_6, x_35, x_36); -x_41 = !lean_is_exclusive(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 0); -lean_dec(x_42); -x_43 = lean_box(0); -lean_ctor_set(x_40, 0, x_43); -return x_40; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_40, 1); -lean_inc(x_44); -lean_dec(x_40); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -return x_46; -} -} -else -{ -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; -x_47 = lean_ctor_get(x_35, 0); -x_48 = lean_ctor_get(x_35, 1); -x_49 = lean_ctor_get(x_35, 2); -x_50 = lean_ctor_get(x_35, 3); -x_51 = lean_ctor_get(x_35, 4); -x_52 = lean_ctor_get(x_35, 5); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_35); -x_53 = l_Std_PersistentArray_push___rarg(x_50, x_31); -x_54 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_54, 0, x_47); -lean_ctor_set(x_54, 1, x_48); -lean_ctor_set(x_54, 2, x_49); -lean_ctor_set(x_54, 3, x_53); -lean_ctor_set(x_54, 4, x_51); -lean_ctor_set(x_54, 5, x_52); -x_55 = lean_st_ref_set(x_6, x_54, x_36); -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); -} -x_58 = lean_box(0); -if (lean_is_scalar(x_57)) { - x_59 = lean_alloc_ctor(0, 2, 0); -} else { - x_59 = x_57; -} -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_56); -return x_59; -} -} -else -{ -uint8_t x_60; -x_60 = !lean_is_exclusive(x_17); -if (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; 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; uint8_t x_81; -x_61 = lean_ctor_get(x_17, 0); -x_62 = lean_ctor_get(x_5, 0); -x_63 = lean_ctor_get(x_5, 1); -x_64 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -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_unsigned_to_nat(0u); -x_68 = l_Lean_FileMap_toPosition(x_63, x_67); -x_69 = l_Lean_FileMap_toPosition(x_63, x_61); -lean_dec(x_61); -lean_ctor_set(x_17, 0, x_69); -x_70 = lean_ctor_get(x_9, 4); -x_71 = lean_ctor_get(x_9, 5); -lean_inc(x_71); -lean_inc(x_70); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_65); -x_74 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; -lean_inc(x_62); -x_75 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_75, 0, x_62); -lean_ctor_set(x_75, 1, x_68); -lean_ctor_set(x_75, 2, x_17); -lean_ctor_set(x_75, 3, x_74); -lean_ctor_set(x_75, 4, x_73); -lean_ctor_set_uint8(x_75, sizeof(void*)*5, x_3); -x_76 = lean_st_ref_get(x_10, x_66); -x_77 = lean_ctor_get(x_76, 1); -lean_inc(x_77); -lean_dec(x_76); -x_78 = lean_st_ref_take(x_6, x_77); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = !lean_is_exclusive(x_79); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_82 = lean_ctor_get(x_79, 3); -x_83 = l_Std_PersistentArray_push___rarg(x_82, x_75); -lean_ctor_set(x_79, 3, x_83); -x_84 = lean_st_ref_set(x_6, x_79, x_80); -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_84, 0); -lean_dec(x_86); -x_87 = lean_box(0); -lean_ctor_set(x_84, 0, x_87); -return x_84; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_84, 1); -lean_inc(x_88); -lean_dec(x_84); -x_89 = lean_box(0); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_88); -return x_90; -} -} -else -{ -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; -x_91 = lean_ctor_get(x_79, 0); -x_92 = lean_ctor_get(x_79, 1); -x_93 = lean_ctor_get(x_79, 2); -x_94 = lean_ctor_get(x_79, 3); -x_95 = lean_ctor_get(x_79, 4); -x_96 = lean_ctor_get(x_79, 5); -lean_inc(x_96); -lean_inc(x_95); -lean_inc(x_94); -lean_inc(x_93); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_79); -x_97 = l_Std_PersistentArray_push___rarg(x_94, x_75); -x_98 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_98, 0, x_91); -lean_ctor_set(x_98, 1, x_92); -lean_ctor_set(x_98, 2, x_93); -lean_ctor_set(x_98, 3, x_97); -lean_ctor_set(x_98, 4, x_95); -lean_ctor_set(x_98, 5, x_96); -x_99 = lean_st_ref_set(x_6, x_98, x_80); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_101 = x_99; -} else { - lean_dec_ref(x_99); - x_101 = lean_box(0); -} -x_102 = lean_box(0); -if (lean_is_scalar(x_101)) { - x_103 = lean_alloc_ctor(0, 2, 0); -} else { - x_103 = x_101; -} -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_100); -return x_103; -} -} -else -{ -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_104 = lean_ctor_get(x_17, 0); -lean_inc(x_104); -lean_dec(x_17); -x_105 = lean_ctor_get(x_5, 0); -x_106 = lean_ctor_get(x_5, 1); -x_107 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = lean_unsigned_to_nat(0u); -x_111 = l_Lean_FileMap_toPosition(x_106, x_110); -x_112 = l_Lean_FileMap_toPosition(x_106, x_104); -lean_dec(x_104); -x_113 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_113, 0, x_112); -x_114 = lean_ctor_get(x_9, 4); -x_115 = lean_ctor_get(x_9, 5); -lean_inc(x_115); -lean_inc(x_114); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -x_117 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_108); -x_118 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; -lean_inc(x_105); -x_119 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_119, 0, x_105); -lean_ctor_set(x_119, 1, x_111); -lean_ctor_set(x_119, 2, x_113); -lean_ctor_set(x_119, 3, x_118); -lean_ctor_set(x_119, 4, x_117); -lean_ctor_set_uint8(x_119, sizeof(void*)*5, x_3); -x_120 = lean_st_ref_get(x_10, x_109); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -lean_dec(x_120); -x_122 = lean_st_ref_take(x_6, x_121); -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); -lean_inc(x_124); -lean_dec(x_122); -x_125 = lean_ctor_get(x_123, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_123, 1); -lean_inc(x_126); -x_127 = lean_ctor_get(x_123, 2); -lean_inc(x_127); -x_128 = lean_ctor_get(x_123, 3); -lean_inc(x_128); -x_129 = lean_ctor_get(x_123, 4); -lean_inc(x_129); -x_130 = lean_ctor_get(x_123, 5); -lean_inc(x_130); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - lean_ctor_release(x_123, 2); - lean_ctor_release(x_123, 3); - lean_ctor_release(x_123, 4); - lean_ctor_release(x_123, 5); - x_131 = x_123; -} else { - lean_dec_ref(x_123); - x_131 = lean_box(0); -} -x_132 = l_Std_PersistentArray_push___rarg(x_128, x_119); -if (lean_is_scalar(x_131)) { - x_133 = lean_alloc_ctor(0, 6, 0); -} else { - x_133 = x_131; -} -lean_ctor_set(x_133, 0, x_125); -lean_ctor_set(x_133, 1, x_126); -lean_ctor_set(x_133, 2, x_127); -lean_ctor_set(x_133, 3, x_132); -lean_ctor_set(x_133, 4, x_129); -lean_ctor_set(x_133, 5, x_130); -x_134 = lean_st_ref_set(x_6, x_133, x_124); -x_135 = lean_ctor_get(x_134, 1); -lean_inc(x_135); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_136 = x_134; -} else { - lean_dec_ref(x_134); - x_136 = lean_box(0); -} -x_137 = lean_box(0); -if (lean_is_scalar(x_136)) { - x_138 = lean_alloc_ctor(0, 2, 0); -} else { - x_138 = x_136; -} -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_135); -return x_138; -} -} -} -else -{ -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_139; -x_139 = !lean_is_exclusive(x_16); -if (x_139 == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; 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; uint8_t x_158; -x_140 = lean_ctor_get(x_16, 0); -x_141 = lean_ctor_get(x_5, 0); -x_142 = lean_ctor_get(x_5, 1); -x_143 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -x_144 = lean_ctor_get(x_143, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_143, 1); -lean_inc(x_145); -lean_dec(x_143); -x_146 = l_Lean_FileMap_toPosition(x_142, x_140); -lean_dec(x_140); -lean_inc(x_146); -lean_ctor_set(x_16, 0, x_146); -x_147 = lean_ctor_get(x_9, 4); -x_148 = lean_ctor_get(x_9, 5); -lean_inc(x_148); -lean_inc(x_147); -x_149 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_149, 0, x_147); -lean_ctor_set(x_149, 1, x_148); -x_150 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_144); -x_151 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; -lean_inc(x_141); -x_152 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_152, 0, x_141); -lean_ctor_set(x_152, 1, x_146); -lean_ctor_set(x_152, 2, x_16); -lean_ctor_set(x_152, 3, x_151); -lean_ctor_set(x_152, 4, x_150); -lean_ctor_set_uint8(x_152, sizeof(void*)*5, x_3); -x_153 = lean_st_ref_get(x_10, x_145); -x_154 = lean_ctor_get(x_153, 1); -lean_inc(x_154); -lean_dec(x_153); -x_155 = lean_st_ref_take(x_6, x_154); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -lean_dec(x_155); -x_158 = !lean_is_exclusive(x_156); -if (x_158 == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_159 = lean_ctor_get(x_156, 3); -x_160 = l_Std_PersistentArray_push___rarg(x_159, x_152); -lean_ctor_set(x_156, 3, x_160); -x_161 = lean_st_ref_set(x_6, x_156, x_157); -x_162 = !lean_is_exclusive(x_161); -if (x_162 == 0) -{ -lean_object* x_163; lean_object* x_164; -x_163 = lean_ctor_get(x_161, 0); -lean_dec(x_163); -x_164 = lean_box(0); -lean_ctor_set(x_161, 0, x_164); -return x_161; -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_161, 1); -lean_inc(x_165); -lean_dec(x_161); -x_166 = lean_box(0); -x_167 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); -return x_167; -} -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_168 = lean_ctor_get(x_156, 0); -x_169 = lean_ctor_get(x_156, 1); -x_170 = lean_ctor_get(x_156, 2); -x_171 = lean_ctor_get(x_156, 3); -x_172 = lean_ctor_get(x_156, 4); -x_173 = lean_ctor_get(x_156, 5); -lean_inc(x_173); -lean_inc(x_172); -lean_inc(x_171); -lean_inc(x_170); -lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_156); -x_174 = l_Std_PersistentArray_push___rarg(x_171, x_152); -x_175 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_175, 0, x_168); -lean_ctor_set(x_175, 1, x_169); -lean_ctor_set(x_175, 2, x_170); -lean_ctor_set(x_175, 3, x_174); -lean_ctor_set(x_175, 4, x_172); -lean_ctor_set(x_175, 5, x_173); -x_176 = lean_st_ref_set(x_6, x_175, x_157); -x_177 = lean_ctor_get(x_176, 1); -lean_inc(x_177); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_178 = x_176; -} else { - lean_dec_ref(x_176); - x_178 = lean_box(0); -} -x_179 = lean_box(0); -if (lean_is_scalar(x_178)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_178; -} -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_177); -return x_180; -} -} -else -{ -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; -x_181 = lean_ctor_get(x_16, 0); -lean_inc(x_181); lean_dec(x_16); -x_182 = lean_ctor_get(x_5, 0); -x_183 = lean_ctor_get(x_5, 1); -x_184 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -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); -x_187 = l_Lean_FileMap_toPosition(x_183, x_181); -lean_dec(x_181); -lean_inc(x_187); -x_188 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_188, 0, x_187); -x_189 = lean_ctor_get(x_9, 4); -x_190 = lean_ctor_get(x_9, 5); -lean_inc(x_190); -lean_inc(x_189); -x_191 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_191, 0, x_189); -lean_ctor_set(x_191, 1, x_190); -x_192 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_192, 0, x_191); -lean_ctor_set(x_192, 1, x_185); -x_193 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; -lean_inc(x_182); -x_194 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_194, 0, x_182); -lean_ctor_set(x_194, 1, x_187); -lean_ctor_set(x_194, 2, x_188); -lean_ctor_set(x_194, 3, x_193); -lean_ctor_set(x_194, 4, x_192); -lean_ctor_set_uint8(x_194, sizeof(void*)*5, x_3); -x_195 = lean_st_ref_get(x_10, x_186); -x_196 = lean_ctor_get(x_195, 1); -lean_inc(x_196); -lean_dec(x_195); -x_197 = lean_st_ref_take(x_6, x_196); -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_198, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_198, 1); -lean_inc(x_201); -x_202 = lean_ctor_get(x_198, 2); -lean_inc(x_202); -x_203 = lean_ctor_get(x_198, 3); -lean_inc(x_203); -x_204 = lean_ctor_get(x_198, 4); -lean_inc(x_204); -x_205 = lean_ctor_get(x_198, 5); -lean_inc(x_205); -if (lean_is_exclusive(x_198)) { - lean_ctor_release(x_198, 0); - lean_ctor_release(x_198, 1); - lean_ctor_release(x_198, 2); - lean_ctor_release(x_198, 3); - lean_ctor_release(x_198, 4); - lean_ctor_release(x_198, 5); - x_206 = x_198; -} else { - lean_dec_ref(x_198); - x_206 = lean_box(0); -} -x_207 = l_Std_PersistentArray_push___rarg(x_203, x_194); -if (lean_is_scalar(x_206)) { - x_208 = lean_alloc_ctor(0, 6, 0); -} else { - x_208 = x_206; -} -lean_ctor_set(x_208, 0, x_200); -lean_ctor_set(x_208, 1, x_201); -lean_ctor_set(x_208, 2, x_202); -lean_ctor_set(x_208, 3, x_207); -lean_ctor_set(x_208, 4, x_204); -lean_ctor_set(x_208, 5, x_205); -x_209 = lean_st_ref_set(x_6, x_208, x_199); -x_210 = lean_ctor_get(x_209, 1); -lean_inc(x_210); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - lean_ctor_release(x_209, 1); - x_211 = x_209; -} else { - lean_dec_ref(x_209); - x_211 = lean_box(0); -} -x_212 = lean_box(0); -if (lean_is_scalar(x_211)) { - x_213 = lean_alloc_ctor(0, 2, 0); -} else { - x_213 = x_211; -} -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_210); -return x_213; -} -} -else -{ -lean_object* x_214; uint8_t x_215; -x_214 = lean_ctor_get(x_16, 0); -lean_inc(x_214); -lean_dec(x_16); -x_215 = !lean_is_exclusive(x_17); -if (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; 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; uint8_t x_235; -x_216 = lean_ctor_get(x_17, 0); -x_217 = lean_ctor_get(x_5, 0); -x_218 = lean_ctor_get(x_5, 1); -x_219 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -lean_inc(x_221); -lean_dec(x_219); -x_222 = l_Lean_FileMap_toPosition(x_218, x_214); -lean_dec(x_214); -x_223 = l_Lean_FileMap_toPosition(x_218, x_216); -lean_dec(x_216); -lean_ctor_set(x_17, 0, x_223); -x_224 = lean_ctor_get(x_9, 4); -x_225 = lean_ctor_get(x_9, 5); -lean_inc(x_225); -lean_inc(x_224); -x_226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -x_227 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_220); -x_228 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; -lean_inc(x_217); -x_229 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_229, 0, x_217); -lean_ctor_set(x_229, 1, x_222); -lean_ctor_set(x_229, 2, x_17); -lean_ctor_set(x_229, 3, x_228); -lean_ctor_set(x_229, 4, x_227); -lean_ctor_set_uint8(x_229, sizeof(void*)*5, x_3); -x_230 = lean_st_ref_get(x_10, x_221); -x_231 = lean_ctor_get(x_230, 1); -lean_inc(x_231); -lean_dec(x_230); -x_232 = lean_st_ref_take(x_6, x_231); -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_232, 1); -lean_inc(x_234); -lean_dec(x_232); -x_235 = !lean_is_exclusive(x_233); -if (x_235 == 0) -{ -lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; -x_236 = lean_ctor_get(x_233, 3); -x_237 = l_Std_PersistentArray_push___rarg(x_236, x_229); -lean_ctor_set(x_233, 3, x_237); -x_238 = lean_st_ref_set(x_6, x_233, x_234); -x_239 = !lean_is_exclusive(x_238); -if (x_239 == 0) -{ -lean_object* x_240; lean_object* x_241; -x_240 = lean_ctor_get(x_238, 0); -lean_dec(x_240); -x_241 = lean_box(0); -lean_ctor_set(x_238, 0, x_241); -return x_238; -} -else -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_242 = lean_ctor_get(x_238, 1); -lean_inc(x_242); -lean_dec(x_238); -x_243 = lean_box(0); -x_244 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_242); -return x_244; -} -} -else -{ -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_245 = lean_ctor_get(x_233, 0); -x_246 = lean_ctor_get(x_233, 1); -x_247 = lean_ctor_get(x_233, 2); -x_248 = lean_ctor_get(x_233, 3); -x_249 = lean_ctor_get(x_233, 4); -x_250 = lean_ctor_get(x_233, 5); -lean_inc(x_250); -lean_inc(x_249); -lean_inc(x_248); -lean_inc(x_247); -lean_inc(x_246); -lean_inc(x_245); -lean_dec(x_233); -x_251 = l_Std_PersistentArray_push___rarg(x_248, x_229); -x_252 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_252, 0, x_245); -lean_ctor_set(x_252, 1, x_246); -lean_ctor_set(x_252, 2, x_247); -lean_ctor_set(x_252, 3, x_251); -lean_ctor_set(x_252, 4, x_249); -lean_ctor_set(x_252, 5, x_250); -x_253 = lean_st_ref_set(x_6, x_252, x_234); -x_254 = lean_ctor_get(x_253, 1); -lean_inc(x_254); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - x_255 = x_253; -} else { - lean_dec_ref(x_253); - x_255 = lean_box(0); -} -x_256 = lean_box(0); -if (lean_is_scalar(x_255)) { - x_257 = lean_alloc_ctor(0, 2, 0); -} else { - x_257 = x_255; -} -lean_ctor_set(x_257, 0, x_256); -lean_ctor_set(x_257, 1, x_254); -return x_257; -} -} -else -{ -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 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_258 = lean_ctor_get(x_17, 0); -lean_inc(x_258); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); lean_dec(x_17); -x_259 = lean_ctor_get(x_5, 0); -x_260 = lean_ctor_get(x_5, 1); -x_261 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_7, x_8, x_9, x_10, x_11); -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -lean_dec(x_261); -x_264 = l_Lean_FileMap_toPosition(x_260, x_214); -lean_dec(x_214); -x_265 = l_Lean_FileMap_toPosition(x_260, x_258); -lean_dec(x_258); -x_266 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_266, 0, x_265); -x_267 = lean_ctor_get(x_9, 4); -x_268 = lean_ctor_get(x_9, 5); -lean_inc(x_268); -lean_inc(x_267); -x_269 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_269, 0, x_267); -lean_ctor_set(x_269, 1, x_268); -x_270 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_262); -x_271 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; -lean_inc(x_259); -x_272 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_272, 0, x_259); -lean_ctor_set(x_272, 1, x_264); -lean_ctor_set(x_272, 2, x_266); -lean_ctor_set(x_272, 3, x_271); -lean_ctor_set(x_272, 4, x_270); -lean_ctor_set_uint8(x_272, sizeof(void*)*5, x_3); -x_273 = lean_st_ref_get(x_10, x_263); -x_274 = lean_ctor_get(x_273, 1); -lean_inc(x_274); -lean_dec(x_273); -x_275 = lean_st_ref_take(x_6, x_274); -x_276 = lean_ctor_get(x_275, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 1); -lean_inc(x_277); -lean_dec(x_275); -x_278 = lean_ctor_get(x_276, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_276, 1); -lean_inc(x_279); -x_280 = lean_ctor_get(x_276, 2); -lean_inc(x_280); -x_281 = lean_ctor_get(x_276, 3); -lean_inc(x_281); -x_282 = lean_ctor_get(x_276, 4); -lean_inc(x_282); -x_283 = lean_ctor_get(x_276, 5); -lean_inc(x_283); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - lean_ctor_release(x_276, 2); - lean_ctor_release(x_276, 3); - lean_ctor_release(x_276, 4); - lean_ctor_release(x_276, 5); - x_284 = x_276; -} else { - lean_dec_ref(x_276); - x_284 = lean_box(0); +x_20 = lean_st_ref_get(x_8, x_18); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_st_ref_get(x_2, x_21); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lean_ResolveName_resolveGlobalName(x_13, x_19, x_25, x_1); +lean_dec(x_19); +lean_ctor_set(x_22, 0, x_26); +return x_22; } -x_285 = l_Std_PersistentArray_push___rarg(x_281, x_272); -if (lean_is_scalar(x_284)) { - x_286 = lean_alloc_ctor(0, 6, 0); -} else { - x_286 = x_284; -} -lean_ctor_set(x_286, 0, x_278); -lean_ctor_set(x_286, 1, x_279); -lean_ctor_set(x_286, 2, x_280); -lean_ctor_set(x_286, 3, x_285); -lean_ctor_set(x_286, 4, x_282); -lean_ctor_set(x_286, 5, x_283); -x_287 = lean_st_ref_set(x_6, x_286, x_277); -x_288 = lean_ctor_get(x_287, 1); -lean_inc(x_288); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_289 = x_287; -} else { - lean_dec_ref(x_287); - x_289 = lean_box(0); -} -x_290 = lean_box(0); -if (lean_is_scalar(x_289)) { - x_291 = lean_alloc_ctor(0, 2, 0); -} else { - x_291 = x_289; -} -lean_ctor_set(x_291, 0, x_290); -lean_ctor_set(x_291, 1, x_288); -return x_291; +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_22, 0); +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_22); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_Lean_ResolveName_resolveGlobalName(x_13, x_19, x_29, x_1); +lean_dec(x_19); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +return x_31; } } } +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__12(lean_object* x_1, lean_object* x_2, 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; uint8_t x_12; +x_10 = lean_ctor_get(x_7, 3); +x_11 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_5, x_6, x_7, x_8, x_9); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_13); +lean_ctor_set_tag(x_11, 1); +lean_ctor_set(x_11, 0, x_14); +return x_11; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_11, 0); +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_11); +lean_inc(x_10); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_10); +lean_ctor_set(x_17, 1, x_15); +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_object* l_Lean_Elab_log___at_Lean_Elab_Term_elabOpen___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) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabOpen___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; 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_box(0); +x_11 = l_Lean_mkConst(x_1, x_10); +x_12 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__7___closed__2; +x_14 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__7___closed__4; +x_16 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +x_17 = l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__12(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_17; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_8, 3); -x_12 = l_Lean_Elab_logAt___at_Lean_Elab_Term_elabOpen___spec__9(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_List_map___at_Lean_resolveGlobalConstCore___spec__2(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); return x_12; } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__1() { +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__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_1; -x_1 = lean_mk_string("unknown declaration '"); -return x_1; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +lean_inc(x_1); +x_10 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_elabOpen___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_box(0); +x_14 = l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(x_11, x_13); +x_15 = l_List_isEmpty___rarg(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_1); +x_16 = lean_box(0); +x_17 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___lambda__1(x_14, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +lean_dec(x_14); +x_18 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabOpen___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +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; } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__2() { +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__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: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +lean_object* x_10; +lean_inc(x_1); +x_10 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9(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) +{ +lean_object* x_11; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +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; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_box(0); +x_14 = l_Lean_mkConst(x_1, x_13); +x_15 = lean_expr_dbg_to_string(x_14); +lean_dec(x_14); +x_16 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__2___closed__1; +x_17 = lean_string_append(x_16, x_15); +lean_dec(x_15); +x_18 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__2___closed__2; +x_19 = lean_string_append(x_17, x_18); +x_20 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_13, x_11); +x_21 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_20); +x_22 = lean_string_append(x_19, x_21); +lean_dec(x_21); +x_23 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; +x_24 = lean_string_append(x_22, x_23); +x_25 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__6(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +return x_27; +} +else +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_11, 1); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) +{ +uint8_t x_29; +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_10); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_10, 0); +lean_dec(x_30); +x_31 = lean_ctor_get(x_11, 0); +lean_inc(x_31); +lean_dec(x_11); +lean_ctor_set(x_10, 0, x_31); +return x_10; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_10, 1); +lean_inc(x_32); +lean_dec(x_10); +x_33 = lean_ctor_get(x_11, 0); +lean_inc(x_33); +lean_dec(x_11); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___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) { +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; 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_dec(x_28); +x_35 = lean_ctor_get(x_10, 1); +lean_inc(x_35); +lean_dec(x_10); +x_36 = lean_box(0); +x_37 = l_Lean_mkConst(x_1, x_36); +x_38 = lean_expr_dbg_to_string(x_37); +lean_dec(x_37); +x_39 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__2___closed__1; +x_40 = lean_string_append(x_39, x_38); +lean_dec(x_38); +x_41 = l_Lean_resolveGlobalConstNoOverload___at_Lean_Elab_Term_elabDoubleQuotedName___spec__2___closed__2; +x_42 = lean_string_append(x_40, x_41); +x_43 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_36, x_11); +x_44 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_43); +x_45 = lean_string_append(x_42, x_44); +lean_dec(x_44); +x_46 = l_Lean_Elab_Term_elabSyntheticHole___closed__8; +x_47 = lean_string_append(x_45, x_46); +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_throwError___at_Lean_Elab_Term_elabOpen___spec__6(x_49, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_35); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_10); +if (x_51 == 0) +{ +return x_10; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_10, 0); +x_53 = lean_ctor_get(x_10, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_10); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} +} +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___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) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; -x_10 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_10, 0, x_1); -x_11 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___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_throwUnknownConstant___at_Lean_Elab_Term_elabDoubleQuotedName___spec__7___closed__4; -x_14 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_13); -x_15 = 2; -x_16 = l_Lean_Elab_log___at_Lean_Elab_Term_elabOpen___spec__8(x_14, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_16; +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = l_Lean_Syntax_getId(x_2); +x_12 = l_Lean_Name_append(x_1, x_11); +x_13 = lean_st_ref_get(x_9, x_10); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = l_Lean_Environment_contains(x_17, x_12); +if (x_18 == 0) +{ +uint8_t x_19; +lean_free_object(x_13); +x_19 = !lean_is_exclusive(x_8); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_8, 3); +x_21 = l_Lean_replaceRef(x_2, x_20); +lean_dec(x_20); +lean_ctor_set(x_8, 3, x_21); +x_22 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__8(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +lean_dec(x_8); +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; +x_23 = lean_ctor_get(x_8, 0); +x_24 = lean_ctor_get(x_8, 1); +x_25 = lean_ctor_get(x_8, 2); +x_26 = lean_ctor_get(x_8, 3); +x_27 = lean_ctor_get(x_8, 4); +x_28 = lean_ctor_get(x_8, 5); +x_29 = lean_ctor_get(x_8, 6); +x_30 = lean_ctor_get(x_8, 7); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_8); +x_31 = l_Lean_replaceRef(x_2, x_26); +lean_dec(x_26); +x_32 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_32, 0, x_23); +lean_ctor_set(x_32, 1, x_24); +lean_ctor_set(x_32, 2, x_25); +lean_ctor_set(x_32, 3, x_31); +lean_ctor_set(x_32, 4, x_27); +lean_ctor_set(x_32, 5, x_28); +lean_ctor_set(x_32, 6, x_29); +lean_ctor_set(x_32, 7, x_30); +x_33 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__8(x_12, x_3, x_4, x_5, x_6, x_7, x_32, x_9, x_16); +lean_dec(x_32); +return x_33; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +else +{ +lean_dec(x_8); +lean_ctor_set(x_13, 0, x_12); +return x_13; +} +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_13, 0); +x_35 = lean_ctor_get(x_13, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_13); +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_Environment_contains(x_36, x_12); +if (x_37 == 0) +{ +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; +x_38 = lean_ctor_get(x_8, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_8, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_8, 2); +lean_inc(x_40); +x_41 = lean_ctor_get(x_8, 3); +lean_inc(x_41); +x_42 = lean_ctor_get(x_8, 4); +lean_inc(x_42); +x_43 = lean_ctor_get(x_8, 5); +lean_inc(x_43); +x_44 = lean_ctor_get(x_8, 6); +lean_inc(x_44); +x_45 = lean_ctor_get(x_8, 7); +lean_inc(x_45); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + lean_ctor_release(x_8, 5); + lean_ctor_release(x_8, 6); + lean_ctor_release(x_8, 7); + x_46 = x_8; +} else { + lean_dec_ref(x_8); + x_46 = lean_box(0); +} +x_47 = l_Lean_replaceRef(x_2, x_41); +lean_dec(x_41); +if (lean_is_scalar(x_46)) { + x_48 = lean_alloc_ctor(0, 8, 0); +} else { + x_48 = x_46; +} +lean_ctor_set(x_48, 0, x_38); +lean_ctor_set(x_48, 1, x_39); +lean_ctor_set(x_48, 2, x_40); +lean_ctor_set(x_48, 3, x_47); +lean_ctor_set(x_48, 4, x_42); +lean_ctor_set(x_48, 5, x_43); +lean_ctor_set(x_48, 6, x_44); +lean_ctor_set(x_48, 7, x_45); +x_49 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__8(x_12, x_3, x_4, x_5, x_6, x_7, x_48, x_9, x_35); +lean_dec(x_48); +return x_49; +} +else +{ +lean_object* x_50; +lean_dec(x_8); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_12); +lean_ctor_set(x_50, 1, x_35); +return x_50; +} +} +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -7343,7 +6885,7 @@ return x_33; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__11(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__14(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -7351,6 +6893,7 @@ x_14 = x_4 < x_3; if (x_14 == 0) { lean_object* x_15; +lean_dec(x_11); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_5); lean_ctor_set(x_15, 1, x_13); @@ -7358,89 +6901,65 @@ 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; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +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_dec(x_5); x_16 = lean_array_uget(x_2, x_4); x_17 = lean_unsigned_to_nat(0u); x_18 = l_Lean_Syntax_getArg(x_16, x_17); -x_19 = l_Lean_Syntax_getId(x_18); -lean_dec(x_18); -x_20 = lean_unsigned_to_nat(2u); -x_21 = l_Lean_Syntax_getArg(x_16, x_20); -x_22 = l_Lean_Syntax_getId(x_21); -lean_dec(x_21); -x_23 = l_Lean_Name_append(x_1, x_19); -x_24 = lean_st_ref_get(x_12, x_13); -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 = l_Lean_Environment_contains(x_27, x_23); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; lean_object* x_43; -lean_dec(x_22); -x_29 = lean_ctor_get(x_11, 0); -x_30 = lean_ctor_get(x_11, 1); -x_31 = lean_ctor_get(x_11, 2); -x_32 = lean_ctor_get(x_11, 3); -x_33 = lean_ctor_get(x_11, 4); -x_34 = lean_ctor_get(x_11, 5); -x_35 = lean_ctor_get(x_11, 6); -x_36 = lean_ctor_get(x_11, 7); -x_37 = l_Lean_replaceRef(x_16, x_32); +x_19 = lean_unsigned_to_nat(2u); +x_20 = l_Lean_Syntax_getArg(x_16, x_19); lean_dec(x_16); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_34); -lean_inc(x_33); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -x_38 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_38, 0, x_29); -lean_ctor_set(x_38, 1, x_30); -lean_ctor_set(x_38, 2, x_31); -lean_ctor_set(x_38, 3, x_37); -lean_ctor_set(x_38, 4, x_33); -lean_ctor_set(x_38, 5, x_34); -lean_ctor_set(x_38, 6, x_35); -lean_ctor_set(x_38, 7, x_36); -x_39 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7(x_23, x_6, x_7, x_8, x_9, x_10, x_38, x_12, x_26); -lean_dec(x_38); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec(x_39); -x_41 = 1; -x_42 = x_4 + x_41; -x_43 = lean_box(0); -x_4 = x_42; -x_5 = x_43; -x_13 = x_40; +x_21 = l_Lean_Syntax_getId(x_20); +lean_dec(x_20); +lean_inc(x_11); +x_22 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___spec__7(x_1, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_18); +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; size_t x_28; size_t x_29; lean_object* x_30; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_23); +x_26 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13(x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_24); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = 1; +x_29 = x_4 + x_28; +x_30 = lean_box(0); +x_4 = x_29; +x_5 = x_30; +x_13 = x_27; goto _start; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; lean_object* x_50; -lean_dec(x_16); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_22); -lean_ctor_set(x_45, 1, x_23); -x_46 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__10(x_45, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_26); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -x_48 = 1; -x_49 = x_4 + x_48; -x_50 = lean_box(0); -x_4 = x_49; -x_5 = x_50; -x_13 = x_47; -goto _start; +uint8_t x_32; +lean_dec(x_21); +lean_dec(x_11); +x_32 = !lean_is_exclusive(x_22); +if (x_32 == 0) +{ +return x_22; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_22, 0); +x_34 = lean_ctor_get(x_22, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_22); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} } } } @@ -7456,7 +6975,7 @@ lean_dec(x_11); x_13 = l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(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; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -7471,9 +6990,12 @@ x_20 = lean_usize_of_nat(x_19); lean_dec(x_19); x_21 = 0; x_22 = lean_box(0); -x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__11(x_14, x_18, x_20, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__14(x_14, x_18, x_20, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_18); lean_dec(x_14); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) { @@ -7498,19 +7020,19 @@ return x_27; else { uint8_t x_28; -x_28 = !lean_is_exclusive(x_13); +x_28 = !lean_is_exclusive(x_23); if (x_28 == 0) { -return x_13; +return x_23; } else { 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); +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); lean_inc(x_30); lean_inc(x_29); -lean_dec(x_13); +lean_dec(x_23); x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -7518,8 +7040,32 @@ return x_31; } } } +else +{ +uint8_t x_32; +lean_dec(x_7); +x_32 = !lean_is_exclusive(x_13); +if (x_32 == 0) +{ +return x_13; } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__13(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_13, 0); +x_34 = lean_ctor_get(x_13, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_13); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__16(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -7527,6 +7073,7 @@ x_14 = x_4 < x_3; if (x_14 == 0) { lean_object* x_15; +lean_dec(x_11); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_5); lean_ctor_set(x_15, 1, x_13); @@ -7534,81 +7081,57 @@ 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; uint8_t x_23; +lean_object* x_16; lean_object* x_17; x_16 = lean_array_uget(x_2, x_4); -x_17 = l_Lean_Syntax_getId(x_16); -lean_inc(x_17); -x_18 = l_Lean_Name_append(x_1, x_17); -x_19 = lean_st_ref_get(x_12, x_13); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Environment_contains(x_22, x_18); -if (x_23 == 0) +lean_inc(x_11); +x_17 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___spec__7(x_1, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; +lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; +x_18 = lean_ctor_get(x_17, 1); +lean_inc(x_18); lean_dec(x_17); -x_24 = lean_ctor_get(x_11, 0); -x_25 = lean_ctor_get(x_11, 1); -x_26 = lean_ctor_get(x_11, 2); -x_27 = lean_ctor_get(x_11, 3); -x_28 = lean_ctor_get(x_11, 4); -x_29 = lean_ctor_get(x_11, 5); -x_30 = lean_ctor_get(x_11, 6); -x_31 = lean_ctor_get(x_11, 7); -x_32 = l_Lean_replaceRef(x_16, x_27); +x_19 = l_Lean_Syntax_getId(x_16); lean_dec(x_16); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -x_33 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_33, 0, x_24); -lean_ctor_set(x_33, 1, x_25); -lean_ctor_set(x_33, 2, x_26); -lean_ctor_set(x_33, 3, x_32); -lean_ctor_set(x_33, 4, x_28); -lean_ctor_set(x_33, 5, x_29); -lean_ctor_set(x_33, 6, x_30); -lean_ctor_set(x_33, 7, x_31); -x_34 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7(x_18, x_6, x_7, x_8, x_9, x_10, x_33, x_12, x_21); -lean_dec(x_33); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = 1; -x_37 = x_4 + x_36; -x_4 = x_37; -x_13 = x_35; +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_5); +x_21 = 1; +x_22 = x_4 + x_21; +x_4 = x_22; +x_5 = x_20; +x_13 = x_18; goto _start; } else { -lean_object* x_39; size_t x_40; size_t x_41; -lean_dec(x_18); +uint8_t x_24; lean_dec(x_16); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_17); -lean_ctor_set(x_39, 1, x_5); -x_40 = 1; -x_41 = x_4 + x_40; -x_4 = x_41; -x_5 = x_39; -x_13 = x_21; -goto _start; +lean_dec(x_11); +lean_dec(x_5); +x_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) +{ +return x_17; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_17, 0); +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_17); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; } } } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__12(lean_object* x_1, lean_object* x_2, 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_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__15(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -7619,7 +7142,7 @@ lean_dec(x_11); x_13 = l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(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; size_t x_21; size_t 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_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; size_t x_21; size_t x_22; lean_object* x_23; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -7634,8 +7157,12 @@ x_20 = lean_array_get_size(x_19); x_21 = lean_usize_of_nat(x_20); lean_dec(x_20); x_22 = 0; -x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__13(x_14, x_19, x_21, x_22, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +lean_inc(x_7); +x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__16(x_14, x_19, x_21, x_22, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_19); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -7644,25 +7171,124 @@ lean_dec(x_23); x_26 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_26, 0, x_14); lean_ctor_set(x_26, 1, x_24); -x_27 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__10(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +x_27 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13(x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +lean_dec(x_7); return x_27; } else { uint8_t x_28; -x_28 = !lean_is_exclusive(x_13); +lean_dec(x_14); +lean_dec(x_7); +x_28 = !lean_is_exclusive(x_23); if (x_28 == 0) { +return x_23; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_23); +x_31 = 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 +{ +uint8_t x_32; +lean_dec(x_7); +x_32 = !lean_is_exclusive(x_13); +if (x_32 == 0) +{ return x_13; } else { +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_13, 0); +x_34 = lean_ctor_get(x_13, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_13); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__18(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = x_4 < x_3; +if (x_14 == 0) +{ +lean_object* x_15; +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_5); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +lean_dec(x_5); +x_16 = lean_array_uget(x_2, x_4); +lean_inc(x_11); +x_17 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___spec__7(x_1, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; +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 = l_Lean_Syntax_getId(x_16); +lean_dec(x_16); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +x_22 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13(x_21, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = 1; +x_25 = x_4 + x_24; +x_26 = lean_box(0); +x_4 = x_25; +x_5 = x_26; +x_13 = x_23; +goto _start; +} +else +{ +uint8_t x_28; +lean_dec(x_16); +lean_dec(x_11); +x_28 = !lean_is_exclusive(x_17); +if (x_28 == 0) +{ +return x_17; +} +else +{ 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); +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); lean_inc(x_30); lean_inc(x_29); -lean_dec(x_13); +lean_dec(x_17); x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -7671,103 +7297,8 @@ return x_31; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__15(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -uint8_t x_14; -x_14 = x_4 < x_3; -if (x_14 == 0) -{ -lean_object* x_15; -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_5); -lean_ctor_set(x_15, 1, x_13); -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; uint8_t x_23; -lean_dec(x_5); -x_16 = lean_array_uget(x_2, x_4); -x_17 = l_Lean_Syntax_getId(x_16); -lean_inc(x_17); -x_18 = l_Lean_Name_append(x_1, x_17); -x_19 = lean_st_ref_get(x_12, x_13); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Environment_contains(x_22, x_18); -if (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; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; size_t x_36; size_t x_37; lean_object* x_38; -lean_dec(x_17); -x_24 = lean_ctor_get(x_11, 0); -x_25 = lean_ctor_get(x_11, 1); -x_26 = lean_ctor_get(x_11, 2); -x_27 = lean_ctor_get(x_11, 3); -x_28 = lean_ctor_get(x_11, 4); -x_29 = lean_ctor_get(x_11, 5); -x_30 = lean_ctor_get(x_11, 6); -x_31 = lean_ctor_get(x_11, 7); -x_32 = l_Lean_replaceRef(x_16, x_27); -lean_dec(x_16); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -x_33 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_33, 0, x_24); -lean_ctor_set(x_33, 1, x_25); -lean_ctor_set(x_33, 2, x_26); -lean_ctor_set(x_33, 3, x_32); -lean_ctor_set(x_33, 4, x_28); -lean_ctor_set(x_33, 5, x_29); -lean_ctor_set(x_33, 6, x_30); -lean_ctor_set(x_33, 7, x_31); -x_34 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7(x_18, x_6, x_7, x_8, x_9, x_10, x_33, x_12, x_21); -lean_dec(x_33); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = 1; -x_37 = x_4 + x_36; -x_38 = lean_box(0); -x_4 = x_37; -x_5 = x_38; -x_13 = x_35; -goto _start; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; lean_object* x_45; -lean_dec(x_16); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_17); -lean_ctor_set(x_40, 1, x_18); -x_41 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__10(x_40, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = 1; -x_44 = x_4 + x_43; -x_45 = lean_box(0); -x_4 = x_44; -x_5 = x_45; -x_13 = x_42; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14(lean_object* x_1, lean_object* x_2, 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_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__17(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; @@ -7778,7 +7309,7 @@ lean_dec(x_11); x_13 = l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(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; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); @@ -7793,9 +7324,12 @@ x_20 = lean_usize_of_nat(x_19); lean_dec(x_19); x_21 = 0; x_22 = lean_box(0); -x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__15(x_14, x_18, x_20, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_23 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__18(x_14, x_18, x_20, x_21, x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_18); lean_dec(x_14); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; x_24 = !lean_is_exclusive(x_23); if (x_24 == 0) { @@ -7820,19 +7354,19 @@ return x_27; else { uint8_t x_28; -x_28 = !lean_is_exclusive(x_13); +x_28 = !lean_is_exclusive(x_23); if (x_28 == 0) { -return x_13; +return x_23; } else { 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); +x_29 = lean_ctor_get(x_23, 0); +x_30 = lean_ctor_get(x_23, 1); lean_inc(x_30); lean_inc(x_29); -lean_dec(x_13); +lean_dec(x_23); x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); @@ -7840,8 +7374,32 @@ return x_31; } } } +else +{ +uint8_t x_32; +lean_dec(x_7); +x_32 = !lean_is_exclusive(x_13); +if (x_32 == 0) +{ +return x_13; } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__18(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_13, 0); +x_34 = lean_ctor_get(x_13, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_13); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -7920,7 +7478,7 @@ goto _start; } } } -lean_object* l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__17(lean_object* x_1, lean_object* x_2, 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_activateScoped___at_Lean_Elab_Term_elabOpen___spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; @@ -7940,7 +7498,7 @@ 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_Term_elabOpen___spec__18(x_1, x_14, x_17, x_18, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21(x_1, x_14, x_17, x_18, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_14); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -7964,7 +7522,7 @@ return x_24; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__19(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, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__22(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, lean_object* x_12) { _start: { uint8_t x_13; @@ -7998,11 +7556,11 @@ lean_inc(x_18); x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_18); lean_ctor_set(x_21, 1, x_20); -x_22 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__10(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +x_22 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13(x_21, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_19); x_23 = lean_ctor_get(x_22, 1); lean_inc(x_23); lean_dec(x_22); -x_24 = l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__17(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_24 = l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__20(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); @@ -8039,7 +7597,7 @@ return x_33; } } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__16(lean_object* x_1, lean_object* x_2, 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_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; @@ -8052,7 +7610,7 @@ x_14 = lean_usize_of_nat(x_13); lean_dec(x_13); x_15 = 0; x_16 = lean_box(0); -x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__19(x_12, x_14, x_15, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__22(x_12, x_14, x_15, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_12); if (lean_obj_tag(x_17) == 0) { @@ -8333,6 +7891,7 @@ lean_dec(x_25); if (x_38 == 0) { lean_object* x_39; +lean_inc(x_6); x_39 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Term_elabOpen___spec__4(x_1, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); lean_dec(x_1); if (lean_obj_tag(x_39) == 0) @@ -8453,7 +8012,8 @@ goto block_21; else { lean_object* x_63; -x_63 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__12(x_1, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +lean_inc(x_6); +x_63 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__15(x_1, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); lean_dec(x_1); if (lean_obj_tag(x_63) == 0) { @@ -8575,7 +8135,8 @@ else { lean_object* x_87; lean_dec(x_25); -x_87 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14(x_1, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +lean_inc(x_6); +x_87 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__17(x_1, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); lean_dec(x_1); if (lean_obj_tag(x_87) == 0) { @@ -8702,7 +8263,7 @@ lean_inc(x_111); x_112 = lean_ctor_get(x_32, 1); lean_inc(x_112); lean_dec(x_32); -x_113 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__16(x_1, x_111, x_2, x_3, x_4, x_5, x_6, x_7, x_112); +x_113 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__19(x_1, x_111, x_2, x_3, x_4, x_5, x_6, x_7, x_112); lean_dec(x_1); if (lean_obj_tag(x_113) == 0) { @@ -8822,7 +8383,7 @@ goto block_21; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21(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) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__24(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; @@ -8900,7 +8461,7 @@ goto _start; } } } -lean_object* l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20(lean_object* x_1, lean_object* 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_popScope___at_Lean_Elab_Term_elabOpen___spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; @@ -8920,7 +8481,7 @@ x_15 = lean_usize_of_nat(x_14); lean_dec(x_14); x_16 = 0; x_17 = lean_box(0); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21(x_12, x_15, x_16, x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_13); +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__24(x_12, x_15, x_16, x_17, x_1, x_2, x_3, x_4, x_5, x_6, x_13); lean_dec(x_12); x_19 = !lean_is_exclusive(x_18); if (x_19 == 0) @@ -9009,7 +8570,7 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20(x_3, x_4, x_5, x_6, x_7, x_8, x_30); +x_31 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__23(x_3, x_4, x_5, x_6, x_7, x_8, x_30); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -9045,7 +8606,7 @@ lean_inc(x_36); x_37 = lean_ctor_get(x_28, 1); lean_inc(x_37); lean_dec(x_28); -x_38 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20(x_3, x_4, x_5, x_6, x_7, x_8, x_37); +x_38 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__23(x_3, x_4, x_5, x_6, x_7, x_8, x_37); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -9084,7 +8645,7 @@ lean_inc(x_43); x_44 = lean_ctor_get(x_14, 1); lean_inc(x_44); lean_dec(x_14); -x_45 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20(x_3, x_4, x_5, x_6, x_7, x_8, x_44); +x_45 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__23(x_3, x_4, x_5, x_6, x_7, x_8, x_44); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -9178,46 +8739,118 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Term_elabOpen___spec__9___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_resolveGlobalName___at_Lean_Elab_Term_elabOpen___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_12; lean_object* x_13; -x_12 = lean_unbox(x_3); +lean_object* x_10; +x_10 = l_Lean_resolveGlobalName___at_Lean_Elab_Term_elabOpen___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -x_13 = l_Lean_Elab_logAt___at_Lean_Elab_Term_elabOpen___spec__9(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Term_elabOpen___spec__12___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_throwError___at_Lean_Elab_Term_elabOpen___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabOpen___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, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_throwUnknownConstant___at_Lean_Elab_Term_elabOpen___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___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: +{ +lean_object* x_11; +x_11 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9___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_resolveGlobalConstCore___at_Lean_Elab_Term_elabOpen___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Term_elabOpen___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Term_elabOpen___spec__7(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_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_13; +return x_11; } } -lean_object* l_Lean_Elab_log___at_Lean_Elab_Term_elabOpen___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); -x_12 = l_Lean_Elab_log___at_Lean_Elab_Term_elabOpen___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_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_12; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___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* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13___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_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__13(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); @@ -9228,22 +8861,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___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, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Term_elabOpen___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_10; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__14___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) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -9251,9 +8869,8 @@ x_14 = lean_unbox_usize(x_3); lean_dec(x_3); x_15 = lean_unbox_usize(x_4); lean_dec(x_4); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__11(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__14(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); -lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9270,7 +8887,6 @@ _start: lean_object* x_10; x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Term_elabOpen___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -9280,7 +8896,7 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__13___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* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__16___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) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -9288,9 +8904,8 @@ x_14 = lean_unbox_usize(x_3); lean_dec(x_3); x_15 = lean_unbox_usize(x_4); lean_dec(x_4); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__13(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__16(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); -lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -9301,50 +8916,12 @@ lean_dec(x_1); return x_16; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__12___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Term_elabOpen___spec__15(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__15___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) { -_start: -{ -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_15 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__15(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_16; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_8); -lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -9364,6 +8941,41 @@ x_15 = lean_unbox_usize(x_4); lean_dec(x_4); x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__18(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_16; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Term_elabOpen___spec__17(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_3); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21___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) { +_start: +{ +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21(x_1, x_2, x_14, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -9374,11 +8986,11 @@ lean_dec(x_2); return x_16; } } -lean_object* l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__17___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_activateScoped___at_Lean_Elab_Term_elabOpen___spec__20___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_activateScoped___at_Lean_Elab_Term_elabOpen___spec__17(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_activateScoped___at_Lean_Elab_Term_elabOpen___spec__20(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); @@ -9389,7 +9001,7 @@ lean_dec(x_2); return x_10; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__19___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_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__22___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: { size_t x_13; size_t x_14; lean_object* x_15; @@ -9397,7 +9009,7 @@ x_13 = lean_unbox_usize(x_2); lean_dec(x_2); x_14 = lean_unbox_usize(x_3); lean_dec(x_3); -x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__19(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__22(x_1, x_13, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -9409,11 +9021,11 @@ lean_dec(x_1); return x_15; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__16___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Term_elabOpen___spec__19(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); @@ -9441,7 +9053,7 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__21___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_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__24___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; @@ -9449,7 +9061,7 @@ 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_Lean_Elab_Term_elabOpen___spec__21(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_elabOpen___spec__24(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); @@ -9460,11 +9072,11 @@ lean_dec(x_1); return x_14; } } -lean_object* l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20___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_popScope___at_Lean_Elab_Term_elabOpen___spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__20(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_popScope___at_Lean_Elab_Term_elabOpen___spec__23(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); @@ -10493,10 +10105,6 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5___closed__1 = _init_l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5___closed__1(); lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Term_elabOpen___spec__5___closed__1); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__1 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__1(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__1); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__2 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__2(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Term_elabOpen___spec__7___closed__2); l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__1 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__1(); lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__1); l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__2 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Term_elabOpen___spec__3___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Command.c b/stage0/stdlib/Lean/Elab/Command.c index 1caf9b1e0a..8375ea87f8 100644 --- a/stage0/stdlib/Lean/Elab/Command.c +++ b/stage0/stdlib/Lean/Elab/Command.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Command -// Imports: Init Lean.Parser.Command Lean.ResolveName Lean.Meta.Reduce Lean.Elab.Log Lean.Elab.Term Lean.Elab.Binders Lean.Elab.SyntheticMVars Lean.Elab.DeclModifiers Lean.Elab.InfoTree Lean.Elab.Open Lean.Elab.SetOption +// Imports: Init Lean.Parser.Command Lean.ResolveName Lean.Meta.Reduce Lean.Elab.Log Lean.Elab.Term Lean.Elab.Binders Lean.Elab.SyntheticMVars Lean.Elab.DeclModifiers Lean.Elab.InfoTree Lean.Elab.SetOption #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -18993,7 +18993,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Elab_Command_modifyScope___closed__1; x_2 = l_Lean_Elab_Command_modifyScope___closed__2; -x_3 = lean_unsigned_to_nat(406u); +x_3 = lean_unsigned_to_nat(405u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Elab_Command_modifyScope___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -21176,7 +21176,6 @@ lean_object* initialize_Lean_Elab_Binders(lean_object*); lean_object* initialize_Lean_Elab_SyntheticMVars(lean_object*); lean_object* initialize_Lean_Elab_DeclModifiers(lean_object*); lean_object* initialize_Lean_Elab_InfoTree(lean_object*); -lean_object* initialize_Lean_Elab_Open(lean_object*); lean_object* initialize_Lean_Elab_SetOption(lean_object*); static bool _G_initialized = false; lean_object* initialize_Lean_Elab_Command(lean_object* w) { @@ -21213,9 +21212,6 @@ lean_dec_ref(res); res = initialize_Lean_Elab_InfoTree(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Elab_Open(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); res = initialize_Lean_Elab_SetOption(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/Open.c b/stage0/stdlib/Lean/Elab/Open.c index 534a4d2fe5..17006f96ff 100644 --- a/stage0/stdlib/Lean/Elab/Open.c +++ b/stage0/stdlib/Lean/Elab/Open.c @@ -13,243 +13,225 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__1; lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__1; size_t l_USize_add(size_t, size_t); -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__8; lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__7(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6(lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveId___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__4; lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg___lambda__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2(lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___rarg___lambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__1(lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__2; -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstCore___spec__2(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___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*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5(lean_object*); -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5(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*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__8(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -static lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__1___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_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Elab_OpenDecl_instMonadResolveNameM___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_ST_Prim_mkRef___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1; -static lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2; -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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_get_size(lean_object*); -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_instMonadResolveNameM___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_instMonadResolveNameM___rarg___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___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*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1(lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__2; lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__2(lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveId___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); -uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(uint8_t, uint8_t); uint8_t l_USize_decLt(size_t, size_t); lean_object* l_Lean_Elab_OpenDecl_instMonadResolveNameM___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly(lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5(lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__3___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__3; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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_Lean_Elab_OpenDecl_resolveOpenDeclId___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_Elab_OpenDecl_instMonadResolveNameM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__1___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_OpenDecl_elabOpenDecl___rarg___lambda__2(lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple(lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5___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_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__10(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2(lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__1___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_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__1(lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4(lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___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*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___boxed(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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* l_Lean_Elab_OpenDecl_resolveId(lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4(lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__2___boxed(lean_object*, lean_object*); lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__1___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__3; -static lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__1; static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__5; lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___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_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3; +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7(lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5___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*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1; -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_dbg_to_string(lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveId___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_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1(lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); -uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3; +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming(lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__2(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__7; lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__2(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5(lean_object*); -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2(lean_object*, lean_object*); +lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___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_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__2(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5(lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getSepArgs(lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl(lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3(lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_StateRefT_x27_get___rarg(lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6(lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___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* l_Lean_Elab_OpenDecl_resolveId___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4(lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__2___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding(lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6(lean_object*); lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__1; lean_object* l_Lean_Elab_OpenDecl_instMonadResolveNameM(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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*, lean_object*); -lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3(lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveId___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__6; lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___closed__1; lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__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_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__5(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_scopedEnvExtensionsRef; +uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__5___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4(lean_object*); lean_object* l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__2; lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__2(lean_object*); -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__1; lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__2(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___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*, lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__2; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___closed__1; -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__4; lean_object* l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -398,6 +380,738 @@ lean_dec(x_3); return x_4; } } +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_2, 1); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_apply_2(x_5, lean_box(0), x_3); +return x_6; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2(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_2, 0); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = lean_apply_2(x_5, lean_box(0), x_3); +return x_6; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___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; +x_6 = l_Lean_ResolveName_resolveGlobalName(x_1, x_2, x_5, x_3); +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +lean_dec(x_4); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = lean_apply_2(x_8, lean_box(0), x_6); +return x_9; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___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; +lean_inc(x_1); +x_7 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2), 2, 1); +lean_closure_set(x_7, 0, x_1); +lean_inc(x_2); +x_8 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_3, x_7); +x_9 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__3___boxed), 5, 4); +lean_closure_set(x_9, 0, x_4); +lean_closure_set(x_9, 1, x_6); +lean_closure_set(x_9, 2, x_5); +lean_closure_set(x_9, 3, x_1); +x_10 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_8, x_9); +return x_10; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___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) { +_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; +x_7 = lean_alloc_closure((void*)(l_ST_Prim_Ref_get___boxed), 4, 3); +lean_closure_set(x_7, 0, lean_box(0)); +lean_closure_set(x_7, 1, lean_box(0)); +lean_closure_set(x_7, 2, x_1); +x_8 = lean_apply_2(x_2, lean_box(0), x_7); +lean_inc(x_3); +x_9 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__1), 2, 1); +lean_closure_set(x_9, 0, x_3); +lean_inc(x_4); +lean_inc(x_8); +x_10 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_8, x_9); +lean_inc(x_4); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__4), 6, 5); +lean_closure_set(x_11, 0, x_3); +lean_closure_set(x_11, 1, x_4); +lean_closure_set(x_11, 2, x_8); +lean_closure_set(x_11, 3, x_6); +lean_closure_set(x_11, 4, x_5); +x_12 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___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; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +lean_dec(x_2); +x_7 = lean_ctor_get(x_1, 1); +lean_inc(x_7); +lean_inc(x_7); +x_8 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__5), 6, 5); +lean_closure_set(x_8, 0, x_5); +lean_closure_set(x_8, 1, x_3); +lean_closure_set(x_8, 2, x_1); +lean_closure_set(x_8, 3, x_7); +lean_closure_set(x_8, 4, x_4); +x_9 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_6, x_8); +return x_9; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__1(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; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_3); +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +lean_dec(x_2); +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); +x_7 = lean_apply_2(x_6, lean_box(0), x_4); +return x_7; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__2(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_2, 0); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_inc(x_3); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_4); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_2(x_6, lean_box(0), x_5); +return x_7; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_apply_1(x_1, x_2); +x_8 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__1), 3, 2); +lean_closure_set(x_8, 0, x_6); +lean_closure_set(x_8, 1, x_3); +lean_inc(x_4); +x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8); +x_10 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_10, 0, x_5); +x_11 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_9, x_10); +return x_11; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); +lean_dec(x_3); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_inc(x_8); +x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3), 6, 5); +lean_closure_set(x_9, 0, x_4); +lean_closure_set(x_9, 1, x_5); +lean_closure_set(x_9, 2, x_1); +lean_closure_set(x_9, 3, x_8); +lean_closure_set(x_9, 4, x_2); +x_10 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_7, x_9); +return x_10; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___boxed), 6, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unknown constant '"); +return x_1; +} +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'"); +return x_1; +} +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___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) { +_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; +x_7 = lean_box(0); +x_8 = l_Lean_mkConst(x_5, x_7); +x_9 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_9, 0, x_8); +x_10 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__2; +x_11 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +x_12 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__4; +x_13 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +x_14 = l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg(x_1, x_2, x_3, x_4, x_13, x_6); +return x_14; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___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; +x_5 = l_List_map___at_Lean_resolveGlobalConstCore___spec__2(x_1); +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_apply_2(x_7, lean_box(0), x_5); +return x_8; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_box(0); +x_10 = l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(x_8, x_9); +lean_inc(x_1); +lean_inc(x_10); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg___lambda__1___boxed), 4, 2); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_1); +x_12 = l_List_isEmpty___rarg(x_10); +lean_dec(x_10); +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_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_13 = lean_ctor_get(x_1, 0); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_box(0); +x_16 = lean_apply_2(x_14, lean_box(0), x_15); +x_17 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); +lean_closure_set(x_17, 0, x_11); +lean_closure_set(x_17, 1, x_2); +x_18 = lean_apply_4(x_3, 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; +x_19 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg(x_1, x_4, x_5, x_6, x_7, x_2); +x_20 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); +lean_closure_set(x_20, 0, x_11); +lean_closure_set(x_20, 1, x_2); +x_21 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_19, x_20); +return x_21; +} +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___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; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_10 = l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg(x_1, x_2, x_6, x_7, x_8); +lean_inc(x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg___lambda__2), 8, 7); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_8); +lean_closure_set(x_11, 2, x_9); +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_7); +x_12 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg), 8, 0); +return x_2; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6___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; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); +lean_dec(x_3); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_inc(x_8); +x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3), 6, 5); +lean_closure_set(x_9, 0, x_4); +lean_closure_set(x_9, 1, x_5); +lean_closure_set(x_9, 2, x_1); +lean_closure_set(x_9, 3, x_8); +lean_closure_set(x_9, 4, x_2); +x_10 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_7, x_9); +return x_10; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7___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; +x_7 = lean_ctor_get(x_3, 0); +lean_inc(x_7); +lean_dec(x_3); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_inc(x_8); +x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3), 6, 5); +lean_closure_set(x_9, 0, x_4); +lean_closure_set(x_9, 1, x_5); +lean_closure_set(x_9, 2, x_1); +lean_closure_set(x_9, 3, x_8); +lean_closure_set(x_9, 4, x_2); +x_10 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_7, x_9); +return x_10; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7___rarg___boxed), 6, 0); +return x_2; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ambiguous identifier '"); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', possible interpretations: "); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___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) { +_start: +{ +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; 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; +x_8 = lean_box(0); +x_9 = l_Lean_mkConst(x_1, x_8); +x_10 = lean_expr_dbg_to_string(x_9); +lean_dec(x_9); +x_11 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__1; +x_12 = lean_string_append(x_11, x_10); +lean_dec(x_10); +x_13 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__2; +x_14 = lean_string_append(x_12, x_13); +x_15 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_8, x_7); +x_16 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_15); +x_17 = lean_string_append(x_14, x_16); +lean_dec(x_16); +x_18 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__3; +x_19 = lean_string_append(x_17, x_18); +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6___rarg(x_2, x_3, x_4, x_5, x_21, x_6); +return x_22; +} +else +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_7, 1); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_24 = lean_ctor_get(x_7, 0); +lean_inc(x_24); +lean_dec(x_7); +x_25 = lean_ctor_get(x_2, 0); +lean_inc(x_25); +lean_dec(x_2); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_apply_2(x_26, lean_box(0), x_24); +return x_27; +} +else +{ +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_dec(x_23); +x_28 = lean_box(0); +x_29 = l_Lean_mkConst(x_1, x_28); +x_30 = lean_expr_dbg_to_string(x_29); +lean_dec(x_29); +x_31 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__1; +x_32 = lean_string_append(x_31, x_30); +lean_dec(x_30); +x_33 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__2; +x_34 = lean_string_append(x_32, x_33); +x_35 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_28, x_7); +x_36 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_35); +x_37 = lean_string_append(x_34, x_36); +lean_dec(x_36); +x_38 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__3; +x_39 = lean_string_append(x_37, x_38); +x_40 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7___rarg(x_2, x_3, x_4, x_5, x_41, x_6); +return x_42; +} +} +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_10 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___boxed), 7, 6); +lean_closure_set(x_11, 0, x_7); +lean_closure_set(x_11, 1, x_1); +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_8); +x_12 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_11); +return x_12; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg), 8, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___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) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = l_Lean_replaceRef(x_1, x_10); +lean_inc(x_5); +x_12 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_13 = lean_ctor_get(x_5, 1); +lean_inc(x_13); +lean_dec(x_5); +x_14 = lean_apply_3(x_13, lean_box(0), x_11, x_12); +return x_14; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___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) { +_start: +{ +uint8_t x_12; +x_12 = l_Lean_Environment_contains(x_11, x_1); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_2, 0); +lean_inc(x_13); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_resolveId___rarg___lambda__1___boxed), 10, 9); +lean_closure_set(x_14, 0, x_3); +lean_closure_set(x_14, 1, x_4); +lean_closure_set(x_14, 2, x_5); +lean_closure_set(x_14, 3, x_6); +lean_closure_set(x_14, 4, x_2); +lean_closure_set(x_14, 5, x_7); +lean_closure_set(x_14, 6, x_8); +lean_closure_set(x_14, 7, x_1); +lean_closure_set(x_14, 8, x_9); +x_15 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_13, x_14); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_16 = lean_ctor_get(x_4, 0); +lean_inc(x_16); +lean_dec(x_4); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_apply_2(x_17, lean_box(0), x_1); +return x_18; +} +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___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; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = l_Lean_Syntax_getId(x_8); +x_11 = l_Lean_Name_append(x_7, x_10); +x_12 = lean_ctor_get(x_2, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_inc(x_13); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_resolveId___rarg___lambda__2), 11, 10); +lean_closure_set(x_14, 0, x_11); +lean_closure_set(x_14, 1, x_4); +lean_closure_set(x_14, 2, x_8); +lean_closure_set(x_14, 3, x_1); +lean_closure_set(x_14, 4, x_2); +lean_closure_set(x_14, 5, x_3); +lean_closure_set(x_14, 6, x_5); +lean_closure_set(x_14, 7, x_6); +lean_closure_set(x_14, 8, x_9); +lean_closure_set(x_14, 9, x_13); +x_15 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_12, x_14); +return x_15; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_resolveId___rarg___boxed), 9, 0); +return x_2; +} +} +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___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_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +return x_7; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +return x_7; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg___lambda__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_resolveGlobalConstCore___at_Lean_Elab_OpenDecl_resolveId___spec__2___rarg___lambda__1(x_1, x_2, x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__6___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_Elab_OpenDecl_resolveId___spec__6___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +return x_7; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__7___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_Elab_OpenDecl_resolveId___spec__7___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_6); +return x_7; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +return x_8; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_OpenDecl_resolveId___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_10); +lean_dec(x_1); +return x_11; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___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_Elab_OpenDecl_resolveId___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_7); +return x_10; +} +} lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -469,57 +1183,6 @@ lean_dec(x_2); return x_3; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__1(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; -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_dec(x_5); -x_7 = lean_apply_2(x_6, lean_box(0), x_4); -return x_7; -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__2(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_2, 0); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -lean_inc(x_3); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_3); -lean_ctor_set(x_5, 1, x_4); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_2(x_6, lean_box(0), x_5); -return x_7; -} -} -lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___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) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_apply_1(x_1, x_2); -x_8 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__1), 3, 2); -lean_closure_set(x_8, 0, x_6); -lean_closure_set(x_8, 1, x_3); -lean_inc(x_4); -x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8); -x_10 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__2___boxed), 2, 1); -lean_closure_set(x_10, 0, x_5); -x_11 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_9, x_10); -return x_11; -} -} lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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: { @@ -530,7 +1193,7 @@ lean_dec(x_3); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_inc(x_8); -x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__3), 6, 5); +x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3), 6, 5); lean_closure_set(x_9, 0, x_4); lean_closure_set(x_9, 1, x_5); lean_closure_set(x_9, 2, x_1); @@ -548,41 +1211,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Open return x_2; } } -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_2, 1); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_ctor_get(x_4, 1); -lean_inc(x_5); -lean_dec(x_4); -x_6 = lean_apply_2(x_5, lean_box(0), x_3); -return x_6; -} -} -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2(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_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_ctor_get(x_4, 1); -lean_inc(x_5); -lean_dec(x_4); -x_6 = lean_apply_2(x_5, lean_box(0), x_3); -return x_6; -} -} -static lean_object* _init_l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1() { +static lean_object* _init_l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -590,15 +1219,7 @@ x_1 = lean_mk_string("unknown namespace '"); return x_1; } } -static lean_object* _init_l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("'"); -return x_1; -} -} -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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) { _start: { lean_object* x_10; @@ -609,10 +1230,10 @@ if (lean_obj_tag(x_10) == 0) uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_11 = 1; x_12 = l_Lean_Name_toString(x_3, x_11); -x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1; +x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1; x_14 = lean_string_append(x_13, x_12); lean_dec(x_12); -x_15 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2; +x_15 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -642,16 +1263,16 @@ return x_23; } } } -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___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) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2), 2, 1); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2), 2, 1); lean_closure_set(x_11, 0, x_1); lean_inc(x_2); x_12 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_3, x_11); -x_13 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___boxed), 9, 8); +x_13 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___boxed), 9, 8); lean_closure_set(x_13, 0, x_4); lean_closure_set(x_13, 1, x_10); lean_closure_set(x_13, 2, x_5); @@ -664,7 +1285,7 @@ x_14 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_12, x_13); return x_14; } } -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -675,13 +1296,13 @@ lean_closure_set(x_10, 1, lean_box(0)); lean_closure_set(x_10, 2, x_1); x_11 = lean_apply_2(x_2, lean_box(0), x_10); lean_inc(x_3); -x_12 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1), 2, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__1), 2, 1); lean_closure_set(x_12, 0, x_3); lean_inc(x_4); lean_inc(x_11); x_13 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_11, x_12); lean_inc(x_4); -x_14 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__4), 10, 9); +x_14 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2), 10, 9); lean_closure_set(x_14, 0, x_3); lean_closure_set(x_14, 1, x_4); lean_closure_set(x_14, 2, x_11); @@ -705,7 +1326,7 @@ lean_dec(x_2); x_10 = lean_ctor_get(x_1, 1); lean_inc(x_10); lean_inc(x_10); -x_11 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__5), 9, 8); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3), 9, 8); lean_closure_set(x_11, 0, x_8); lean_closure_set(x_11, 1, x_6); lean_closure_set(x_11, 2, x_1); @@ -1117,15 +1738,6 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDec return x_2; } } -lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__2(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} lean_object* l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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: { @@ -1135,11 +1747,11 @@ lean_dec(x_6); return x_7; } } -lean_object* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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* l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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) { _start: { lean_object* x_10; -x_10 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___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_9); lean_dec(x_8); lean_dec(x_2); @@ -1241,7 +1853,7 @@ lean_dec(x_3); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_inc(x_8); -x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__3), 6, 5); +x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3), 6, 5); lean_closure_set(x_9, 0, x_4); lean_closure_set(x_9, 1, x_5); lean_closure_set(x_9, 2, x_1); @@ -1270,10 +1882,10 @@ if (lean_obj_tag(x_10) == 0) uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_11 = 1; x_12 = l_Lean_Name_toString(x_3, x_11); -x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1; +x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1; x_14 = lean_string_append(x_13, x_12); lean_dec(x_12); -x_15 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2; +x_15 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -1308,7 +1920,7 @@ _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2), 2, 1); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2), 2, 1); lean_closure_set(x_11, 0, x_1); lean_inc(x_2); x_12 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_3, x_11); @@ -1336,7 +1948,7 @@ lean_closure_set(x_10, 1, lean_box(0)); lean_closure_set(x_10, 2, x_1); x_11 = lean_apply_2(x_2, lean_box(0), x_10); lean_inc(x_3); -x_12 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1), 2, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__1), 2, 1); lean_closure_set(x_12, 0, x_3); lean_inc(x_4); lean_inc(x_11); @@ -1387,564 +1999,22 @@ x_2 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Ela return x_2; } } -static lean_object* _init_l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(""); -return x_1; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1(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; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_FileMap_toPosition(x_1, x_6); -lean_inc(x_7); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1; -x_10 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_10, 0, x_5); -lean_ctor_set(x_10, 1, x_7); -lean_ctor_set(x_10, 2, x_8); -lean_ctor_set(x_10, 3, x_9); -lean_ctor_set(x_10, 4, x_3); -lean_ctor_set_uint8(x_10, sizeof(void*)*5, x_2); -x_11 = lean_ctor_get(x_4, 3); -lean_inc(x_11); -lean_dec(x_4); -x_12 = lean_apply_1(x_11, x_10); -return x_12; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t 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 = lean_ctor_get(x_1, 2); -lean_inc(x_6); -x_7 = lean_box(x_3); -x_8 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___boxed), 5, 4); -lean_closure_set(x_8, 0, x_2); -lean_closure_set(x_8, 1, x_7); -lean_closure_set(x_8, 2, x_5); -lean_closure_set(x_8, 3, x_1); -x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_8); -return x_9; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_apply_1(x_1, x_2); -x_8 = lean_box(x_4); -lean_inc(x_5); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__2___boxed), 5, 4); -lean_closure_set(x_9, 0, x_3); -lean_closure_set(x_9, 1, x_6); -lean_closure_set(x_9, 2, x_8); -lean_closure_set(x_9, 3, x_5); -x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_9); -return x_10; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__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; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Lean_FileMap_toPosition(x_1, x_7); -x_9 = l_Lean_FileMap_toPosition(x_1, x_2); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1; -x_12 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_12, 0, x_6); -lean_ctor_set(x_12, 1, x_8); -lean_ctor_set(x_12, 2, x_10); -lean_ctor_set(x_12, 3, x_11); -lean_ctor_set(x_12, 4, x_4); -lean_ctor_set_uint8(x_12, sizeof(void*)*5, x_3); -x_13 = lean_ctor_get(x_5, 3); -lean_inc(x_13); -lean_dec(x_5); -x_14 = lean_apply_1(x_13, x_12); -return x_14; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; -x_7 = lean_ctor_get(x_1, 2); -lean_inc(x_7); -x_8 = lean_box(x_4); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__4___boxed), 6, 5); -lean_closure_set(x_9, 0, x_2); -lean_closure_set(x_9, 1, x_3); -lean_closure_set(x_9, 2, x_8); -lean_closure_set(x_9, 3, x_6); -lean_closure_set(x_9, 4, x_1); -x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_9); -return x_10; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_apply_1(x_1, x_2); -x_9 = lean_box(x_5); -lean_inc(x_6); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__5___boxed), 6, 5); -lean_closure_set(x_10, 0, x_3); -lean_closure_set(x_10, 1, x_7); -lean_closure_set(x_10, 2, x_4); -lean_closure_set(x_10, 3, x_9); -lean_closure_set(x_10, 4, x_6); -x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__7(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; lean_object* x_12; -x_7 = l_Lean_FileMap_toPosition(x_1, x_2); -lean_inc(x_7); -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_7); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1; -x_10 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_10, 0, x_6); -lean_ctor_set(x_10, 1, x_7); -lean_ctor_set(x_10, 2, x_8); -lean_ctor_set(x_10, 3, x_9); -lean_ctor_set(x_10, 4, x_4); -lean_ctor_set_uint8(x_10, sizeof(void*)*5, x_3); -x_11 = lean_ctor_get(x_5, 3); -lean_inc(x_11); -lean_dec(x_5); -x_12 = lean_apply_1(x_11, x_10); -return x_12; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t 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; -x_7 = lean_ctor_get(x_1, 2); -lean_inc(x_7); -x_8 = lean_box(x_4); -x_9 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__7___boxed), 6, 5); -lean_closure_set(x_9, 0, x_2); -lean_closure_set(x_9, 1, x_3); -lean_closure_set(x_9, 2, x_8); -lean_closure_set(x_9, 3, x_6); -lean_closure_set(x_9, 4, x_1); -x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_9); -return x_10; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_apply_1(x_1, x_2); -x_9 = lean_box(x_5); -lean_inc(x_6); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__8___boxed), 6, 5); -lean_closure_set(x_10, 0, x_3); -lean_closure_set(x_10, 1, x_7); -lean_closure_set(x_10, 2, x_4); -lean_closure_set(x_10, 3, x_9); -lean_closure_set(x_10, 4, x_6); -x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -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 = l_Lean_FileMap_toPosition(x_1, x_2); -x_9 = l_Lean_FileMap_toPosition(x_1, x_3); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_9); -x_11 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1; -x_12 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_12, 0, x_7); -lean_ctor_set(x_12, 1, x_8); -lean_ctor_set(x_12, 2, x_10); -lean_ctor_set(x_12, 3, x_11); -lean_ctor_set(x_12, 4, x_5); -lean_ctor_set_uint8(x_12, sizeof(void*)*5, x_4); -x_13 = lean_ctor_get(x_6, 3); -lean_inc(x_13); -lean_dec(x_6); -x_14 = lean_apply_1(x_13, x_12); -return x_14; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_1, 2); -lean_inc(x_8); -x_9 = lean_box(x_5); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__10___boxed), 7, 6); -lean_closure_set(x_10, 0, x_2); -lean_closure_set(x_10, 1, x_3); -lean_closure_set(x_10, 2, x_4); -lean_closure_set(x_10, 3, x_9); -lean_closure_set(x_10, 4, x_7); -lean_closure_set(x_10, 5, x_1); -x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__12(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_apply_1(x_1, x_2); -x_10 = lean_box(x_6); -lean_inc(x_7); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__11___boxed), 7, 6); -lean_closure_set(x_11, 0, x_3); -lean_closure_set(x_11, 1, x_8); -lean_closure_set(x_11, 2, x_4); -lean_closure_set(x_11, 3, x_5); -lean_closure_set(x_11, 4, x_10); -lean_closure_set(x_11, 5, x_7); -x_12 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_9, x_11); -return x_12; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; -x_8 = l_Lean_replaceRef(x_1, x_7); -x_9 = 0; -x_10 = l_Lean_Syntax_getPos_x3f(x_8, x_9); -x_11 = l_Lean_Syntax_getTailPos_x3f(x_8, x_9); -lean_dec(x_8); -if (lean_obj_tag(x_10) == 0) -{ -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_2, 0); -lean_inc(x_12); -x_13 = lean_box(x_5); -lean_inc(x_6); -x_14 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__3___boxed), 6, 5); -lean_closure_set(x_14, 0, x_3); -lean_closure_set(x_14, 1, x_4); -lean_closure_set(x_14, 2, x_2); -lean_closure_set(x_14, 3, x_13); -lean_closure_set(x_14, 4, x_6); -x_15 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_12, x_14); -return x_15; -} -else -{ -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_2, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_11, 0); -lean_inc(x_17); -lean_dec(x_11); -x_18 = lean_box(x_5); -lean_inc(x_6); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__6___boxed), 7, 6); -lean_closure_set(x_19, 0, x_3); -lean_closure_set(x_19, 1, x_4); -lean_closure_set(x_19, 2, x_2); -lean_closure_set(x_19, 3, x_17); -lean_closure_set(x_19, 4, x_18); -lean_closure_set(x_19, 5, x_6); -x_20 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_16, x_19); -return x_20; -} -} -else -{ -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = lean_ctor_get(x_2, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_10, 0); -lean_inc(x_22); -lean_dec(x_10); -x_23 = lean_box(x_5); -lean_inc(x_6); -x_24 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__9___boxed), 7, 6); -lean_closure_set(x_24, 0, x_3); -lean_closure_set(x_24, 1, x_4); -lean_closure_set(x_24, 2, x_2); -lean_closure_set(x_24, 3, x_22); -lean_closure_set(x_24, 4, x_23); -lean_closure_set(x_24, 5, x_6); -x_25 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_21, x_24); -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 = lean_ctor_get(x_2, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_10, 0); -lean_inc(x_27); -lean_dec(x_10); -x_28 = lean_ctor_get(x_11, 0); -lean_inc(x_28); -lean_dec(x_11); -x_29 = lean_box(x_5); -lean_inc(x_6); -x_30 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__12___boxed), 8, 7); -lean_closure_set(x_30, 0, x_3); -lean_closure_set(x_30, 1, x_4); -lean_closure_set(x_30, 2, x_2); -lean_closure_set(x_30, 3, x_27); -lean_closure_set(x_30, 4, x_28); -lean_closure_set(x_30, 5, x_29); -lean_closure_set(x_30, 6, x_6); -x_31 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_26, x_30); -return x_31; -} -} -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_15; uint8_t x_16; -x_15 = 2; -x_16 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_6, x_15); -if (x_16 == 0) -{ -lean_object* x_17; -x_17 = lean_box(0); -x_8 = x_17; -goto block_14; -} -else -{ -uint8_t x_18; -lean_inc(x_5); -x_18 = l_Lean_MessageData_hasSyntheticSorry(x_5); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_box(0); -x_8 = x_19; -goto block_14; -} -else -{ -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_3); -lean_dec(x_2); -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_box(0); -x_23 = lean_apply_2(x_21, lean_box(0), x_22); -return x_23; -} -} -block_14: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_8); -x_9 = lean_ctor_get(x_3, 1); -lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_dec(x_1); -x_11 = lean_box(x_6); -lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13___boxed), 7, 6); -lean_closure_set(x_12, 0, x_4); -lean_closure_set(x_12, 1, x_3); -lean_closure_set(x_12, 2, x_2); -lean_closure_set(x_12, 3, x_5); -lean_closure_set(x_12, 4, x_11); -lean_closure_set(x_12, 5, x_10); -x_13 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_9, x_12); -return x_13; -} -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___boxed), 7, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg(x_1, x_2, x_3, x_7, x_4, x_5, x_6); -return x_8; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_ctor_get(x_3, 1); -lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -x_9 = lean_box(x_5); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg___lambda__1___boxed), 7, 6); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_2); -lean_closure_set(x_10, 2, x_3); -lean_closure_set(x_10, 3, x_4); -lean_closure_set(x_10, 4, x_9); -lean_closure_set(x_10, 5, x_6); -x_11 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_7, x_10); +x_7 = l_Lean_Syntax_getId(x_1); +x_8 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +x_9 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___rarg(x_2, x_8, x_3); +x_10 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_10, 0, x_4); +x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_9, x_10); return x_11; } } -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg___boxed), 6, 0); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unknown declaration '"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___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; lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_6 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_6, 0, x_4); -x_7 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2; -x_8 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3; -x_10 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = 2; -x_12 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg(x_1, x_2, x_3, x_10, x_11, x_5); -return x_12; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg), 5, 0); -return x_2; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = l_Lean_replaceRef(x_1, x_8); -x_10 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg(x_2, x_3, x_4, x_5, x_6); -x_11 = lean_ctor_get(x_7, 1); -lean_inc(x_11); -lean_dec(x_7); -x_12 = lean_apply_3(x_11, lean_box(0), x_9, x_10); -return x_12; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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) { -_start: -{ -uint8_t x_12; -x_12 = l_Lean_Environment_contains(x_11, x_1); -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_dec(x_10); -lean_dec(x_9); -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_inc(x_4); -x_14 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__1___boxed), 8, 7); -lean_closure_set(x_14, 0, x_3); -lean_closure_set(x_14, 1, x_4); -lean_closure_set(x_14, 2, x_5); -lean_closure_set(x_14, 3, x_6); -lean_closure_set(x_14, 4, x_1); -lean_closure_set(x_14, 5, x_7); -lean_closure_set(x_14, 6, x_2); -lean_inc(x_8); -x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_13, x_14); -x_16 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___boxed), 2, 1); -lean_closure_set(x_16, 0, x_4); -x_17 = lean_apply_4(x_8, 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_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_9); -lean_ctor_set(x_18, 1, x_1); -x_19 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___rarg(x_10, x_18, x_7); -x_20 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___boxed), 2, 1); -lean_closure_set(x_20, 0, x_4); -x_21 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_19, x_20); -return x_21; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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, lean_object* x_9, lean_object* x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__2(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, lean_object* x_9, lean_object* x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { _start: { if (lean_obj_tag(x_13) == 0) @@ -1979,12 +2049,12 @@ lean_inc(x_18); lean_dec(x_13); x_19 = 1; x_20 = x_2 + x_19; -x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_18, x_12); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_18, x_12); return x_21; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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, size_t x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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, size_t x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -2012,61 +2082,57 @@ 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_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +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_12); x_18 = lean_array_uget(x_9, x_11); x_19 = lean_ctor_get(x_1, 1); lean_inc(x_19); -x_20 = l_Lean_Syntax_getId(x_18); -lean_inc(x_20); -x_21 = l_Lean_Name_append(x_8, x_20); -x_22 = lean_ctor_get(x_2, 0); -lean_inc(x_22); +lean_inc(x_13); +lean_inc(x_18); +lean_inc(x_6); lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_20 = l_Lean_Elab_OpenDecl_resolveId___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_18, x_13); lean_inc(x_7); +lean_inc(x_1); lean_inc(x_13); lean_inc(x_6); -lean_inc(x_4); -lean_inc(x_1); -lean_inc(x_3); -x_23 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__2), 11, 10); -lean_closure_set(x_23, 0, x_21); -lean_closure_set(x_23, 1, x_3); -lean_closure_set(x_23, 2, x_18); -lean_closure_set(x_23, 3, x_1); -lean_closure_set(x_23, 4, x_4); -lean_closure_set(x_23, 5, x_6); -lean_closure_set(x_23, 6, x_13); -lean_closure_set(x_23, 7, x_7); -lean_closure_set(x_23, 8, x_20); -lean_closure_set(x_23, 9, x_5); +x_21 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__1___boxed), 6, 5); +lean_closure_set(x_21, 0, x_18); +lean_closure_set(x_21, 1, x_6); +lean_closure_set(x_21, 2, x_13); +lean_closure_set(x_21, 3, x_1); +lean_closure_set(x_21, 4, x_7); lean_inc(x_7); -x_24 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_22, x_23); -x_25 = lean_box_usize(x_11); -x_26 = lean_box_usize(x_10); -x_27 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__3___boxed), 13, 12); -lean_closure_set(x_27, 0, x_1); -lean_closure_set(x_27, 1, x_25); -lean_closure_set(x_27, 2, x_2); -lean_closure_set(x_27, 3, x_3); -lean_closure_set(x_27, 4, x_4); -lean_closure_set(x_27, 5, x_5); -lean_closure_set(x_27, 6, x_6); -lean_closure_set(x_27, 7, x_7); -lean_closure_set(x_27, 8, x_8); -lean_closure_set(x_27, 9, x_9); -lean_closure_set(x_27, 10, x_26); -lean_closure_set(x_27, 11, x_13); -x_28 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_24, x_27); -return x_28; +x_22 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_20, x_21); +x_23 = lean_box_usize(x_11); +x_24 = lean_box_usize(x_10); +x_25 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__2___boxed), 13, 12); +lean_closure_set(x_25, 0, x_1); +lean_closure_set(x_25, 1, x_23); +lean_closure_set(x_25, 2, x_2); +lean_closure_set(x_25, 3, x_3); +lean_closure_set(x_25, 4, x_4); +lean_closure_set(x_25, 5, x_5); +lean_closure_set(x_25, 6, x_6); +lean_closure_set(x_25, 7, x_7); +lean_closure_set(x_25, 8, x_8); +lean_closure_set(x_25, 9, x_9); +lean_closure_set(x_25, 10, x_24); +lean_closure_set(x_25, 11, x_13); +x_26 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_22, x_25); +return x_26; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6(lean_object* x_1) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___boxed), 13, 0); +x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___boxed), 13, 0); return x_2; } } @@ -2085,50 +2151,51 @@ x_16 = 0; x_17 = lean_box(0); lean_inc(x_8); lean_inc(x_2); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_13, x_15, x_16, x_17, x_9); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_13, x_15, x_16, x_17, x_9); x_19 = lean_alloc_closure((void*)(l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___lambda__1___boxed), 2, 1); lean_closure_set(x_19, 0, x_2); x_20 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_18, x_19); return x_20; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Lean_Syntax_getArg(x_8, x_10); -x_12 = l_Lean_Syntax_getId(x_11); -lean_dec(x_11); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -lean_inc(x_9); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Lean_Syntax_getArg(x_7, x_9); +x_11 = l_Lean_Syntax_getId(x_10); +lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); +lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_14 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_9); -lean_inc(x_13); -x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg___lambda__1___boxed), 10, 9); -lean_closure_set(x_15, 0, x_8); -lean_closure_set(x_15, 1, x_1); -lean_closure_set(x_15, 2, x_2); -lean_closure_set(x_15, 3, x_4); -lean_closure_set(x_15, 4, x_5); -lean_closure_set(x_15, 5, x_6); -lean_closure_set(x_15, 6, x_7); -lean_closure_set(x_15, 7, x_13); -lean_closure_set(x_15, 8, x_9); -x_16 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_14, x_15); -return x_16; +x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8); +lean_inc(x_12); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg___lambda__1___boxed), 10, 9); +lean_closure_set(x_14, 0, x_7); +lean_closure_set(x_14, 1, x_1); +lean_closure_set(x_14, 2, x_2); +lean_closure_set(x_14, 3, x_3); +lean_closure_set(x_14, 4, x_4); +lean_closure_set(x_14, 5, x_5); +lean_closure_set(x_14, 6, x_6); +lean_closure_set(x_14, 7, x_12); +lean_closure_set(x_14, 8, x_8); +x_15 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_13, x_14); +return x_15; } } lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg), 8, 0); return x_2; } } @@ -2153,189 +2220,16 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___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) { _start: { -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_2); -lean_dec(x_2); -x_7 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1(x_1, x_6, x_3, x_4, x_5); +lean_object* x_7; +x_7 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_3); -lean_dec(x_3); -x_7 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__2(x_1, x_2, x_6, x_4, x_5); -return x_7; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_4); -lean_dec(x_4); -x_8 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__3(x_1, x_2, x_3, x_7, x_5, x_6); -return x_8; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___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: -{ -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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__4(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_4); -lean_dec(x_4); -x_8 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__5(x_1, x_2, x_3, x_7, x_5, x_6); -return x_8; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__6(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -return x_9; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__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) { -_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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__7(x_1, x_2, x_7, x_4, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_4); -lean_dec(x_4); -x_8 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__8(x_1, x_2, x_3, x_7, x_5, x_6); -return x_8; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__9___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: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__9(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -return x_9; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__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, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_4); -lean_dec(x_4); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__10(x_1, x_2, x_3, x_8, x_5, x_6, x_7); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__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: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__11(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -return x_9; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__12___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: -{ -uint8_t x_9; lean_object* x_10; -x_9 = lean_unbox(x_6); -lean_dec(x_6); -x_10 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__12(x_1, x_2, x_3, x_4, x_5, x_9, x_7, x_8); -return x_10; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13___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: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -lean_dec(x_7); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_6); -lean_dec(x_6); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_8, x_7); -lean_dec(x_7); -return x_9; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___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) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg___lambda__1(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -lean_dec(x_6); -return x_9; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_5); -lean_dec(x_5); -x_8 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__4___rarg(x_1, x_2, x_3, x_4, x_7, x_6); -return x_8; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_8); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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, lean_object* x_13) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -2343,11 +2237,11 @@ x_14 = lean_unbox_usize(x_2); lean_dec(x_2); x_15 = lean_unbox_usize(x_11); lean_dec(x_11); -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg___lambda__3(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15, x_12, x_13); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___lambda__2(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15, x_12, x_13); return x_16; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___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* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -2355,7 +2249,7 @@ x_14 = lean_unbox_usize(x_10); lean_dec(x_10); x_15 = lean_unbox_usize(x_11); lean_dec(x_11); -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__6___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14, x_15, x_12, x_13); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14, x_15, x_12, x_13); return x_16; } } @@ -2378,7 +2272,7 @@ lean_dec(x_3); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_inc(x_8); -x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__3), 6, 5); +x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3), 6, 5); lean_closure_set(x_9, 0, x_4); lean_closure_set(x_9, 1, x_5); lean_closure_set(x_9, 2, x_1); @@ -2407,10 +2301,10 @@ if (lean_obj_tag(x_10) == 0) uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_11 = 1; x_12 = l_Lean_Name_toString(x_3, x_11); -x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1; +x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1; x_14 = lean_string_append(x_13, x_12); lean_dec(x_12); -x_15 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2; +x_15 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -2445,7 +2339,7 @@ _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2), 2, 1); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2), 2, 1); lean_closure_set(x_11, 0, x_1); lean_inc(x_2); x_12 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_3, x_11); @@ -2473,7 +2367,7 @@ lean_closure_set(x_10, 1, lean_box(0)); lean_closure_set(x_10, 2, x_1); x_11 = lean_apply_2(x_2, lean_box(0), x_10); lean_inc(x_3); -x_12 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1), 2, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__1), 2, 1); lean_closure_set(x_12, 0, x_3); lean_inc(x_4); lean_inc(x_11); @@ -2524,173 +2418,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Ela return x_2; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_15; uint8_t x_16; -x_15 = 2; -x_16 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_6, x_15); -if (x_16 == 0) -{ -lean_object* x_17; -x_17 = lean_box(0); -x_8 = x_17; -goto block_14; -} -else -{ -uint8_t x_18; -lean_inc(x_5); -x_18 = l_Lean_MessageData_hasSyntheticSorry(x_5); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_box(0); -x_8 = x_19; -goto block_14; -} -else -{ -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_3); -lean_dec(x_2); -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_box(0); -x_23 = lean_apply_2(x_21, lean_box(0), x_22); -return x_23; -} -} -block_14: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_8); -x_9 = lean_ctor_get(x_3, 1); -lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_dec(x_1); -x_11 = lean_box(x_6); -lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13___boxed), 7, 6); -lean_closure_set(x_12, 0, x_4); -lean_closure_set(x_12, 1, x_3); -lean_closure_set(x_12, 2, x_2); -lean_closure_set(x_12, 3, x_5); -lean_closure_set(x_12, 4, x_11); -lean_closure_set(x_12, 5, x_10); -x_13 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_9, x_12); -return x_13; -} -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5___rarg___boxed), 7, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5___rarg(x_1, x_2, x_3, x_7, x_4, x_5, x_6); -return x_8; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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 = lean_ctor_get(x_3, 1); -lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -x_9 = lean_box(x_5); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg___lambda__1___boxed), 7, 6); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_2); -lean_closure_set(x_10, 2, x_3); -lean_closure_set(x_10, 3, x_4); -lean_closure_set(x_10, 4, x_9); -lean_closure_set(x_10, 5, x_6); -x_11 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_7, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg___boxed), 6, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___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; lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_6 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_6, 0, x_4); -x_7 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2; -x_8 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3; -x_10 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = 2; -x_12 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg(x_1, x_2, x_3, x_10, x_11, x_5); -return x_12; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg), 5, 0); -return x_2; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = l_Lean_replaceRef(x_1, x_8); -x_10 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg(x_2, x_3, x_4, x_5, x_6); -x_11 = lean_ctor_get(x_7, 1); -lean_inc(x_11); -lean_dec(x_7); -x_12 = lean_apply_3(x_11, lean_box(0), x_9, x_10); -return x_12; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_4 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_4, 0, x_1); -x_5 = lean_ctor_get(x_2, 0); -lean_inc(x_5); -lean_dec(x_2); -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_dec(x_5); -x_7 = lean_apply_2(x_6, lean_box(0), x_4); -return x_7; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; @@ -2700,70 +2428,38 @@ x_5 = lean_apply_2(x_2, lean_box(0), x_4); return x_5; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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) { _start: { -uint8_t x_12; -x_12 = l_Lean_Environment_contains(x_11, x_1); -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_dec(x_10); -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_inc(x_4); -x_14 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__1___boxed), 8, 7); -lean_closure_set(x_14, 0, x_3); -lean_closure_set(x_14, 1, x_4); -lean_closure_set(x_14, 2, x_5); -lean_closure_set(x_14, 3, x_6); -lean_closure_set(x_14, 4, x_1); -lean_closure_set(x_14, 5, x_7); -lean_closure_set(x_14, 6, x_2); +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; +x_6 = l_Lean_Syntax_getId(x_1); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_2); +x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); -x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_13, x_14); -x_16 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__2___boxed), 3, 2); -lean_closure_set(x_16, 0, x_9); -lean_closure_set(x_16, 1, x_4); -x_17 = lean_apply_4(x_8, 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_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_10); -lean_ctor_set(x_18, 1, x_9); -x_19 = lean_ctor_get(x_4, 0); -lean_inc(x_19); -lean_dec(x_4); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_box(0); -lean_inc(x_20); -x_22 = lean_apply_2(x_20, lean_box(0), x_21); -x_23 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__3___boxed), 3, 2); -lean_closure_set(x_23, 0, x_18); -lean_closure_set(x_23, 1, x_20); -x_24 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_22, x_23); -return x_24; +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = lean_box(0); +lean_inc(x_9); +x_11 = lean_apply_2(x_9, lean_box(0), x_10); +x_12 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_12, 0, x_7); +lean_closure_set(x_12, 1, x_9); +x_13 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_11, x_12); +return x_13; } } -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__5(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, lean_object* x_9, size_t x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___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, lean_object* x_9, lean_object* x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { _start: { -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_13) == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_11); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_12); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -2771,40 +2467,41 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_ctor_get(x_1, 0); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); -lean_dec(x_1); -x_15 = lean_ctor_get(x_14, 1); +lean_dec(x_13); +x_15 = lean_ctor_get(x_1, 0); lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_apply_2(x_15, lean_box(0), x_13); -return x_16; +lean_dec(x_1); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_apply_2(x_16, lean_box(0), x_14); +return x_17; } else { -lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_12, 0); -lean_inc(x_17); -lean_dec(x_12); -x_18 = 1; -x_19 = x_2 + x_18; -x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19, x_17, x_11); -return x_20; +lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_13, 0); +lean_inc(x_18); +lean_dec(x_13); +x_19 = 1; +x_20 = x_2 + x_19; +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_18, x_12); +return x_21; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___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, size_t x_9, size_t x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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, size_t x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { _start: { -uint8_t x_13; -x_13 = x_10 < x_9; -if (x_13 == 0) +uint8_t x_14; +x_14 = x_11 < x_10; +if (x_14 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; -lean_dec(x_12); +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_13); +lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -2812,69 +2509,64 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_14 = lean_ctor_get(x_1, 0); -lean_inc(x_14); -lean_dec(x_1); -x_15 = lean_ctor_get(x_14, 1); +x_15 = lean_ctor_get(x_1, 0); lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_apply_2(x_15, lean_box(0), x_11); -return x_16; +lean_dec(x_1); +x_16 = lean_ctor_get(x_15, 1); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_apply_2(x_16, lean_box(0), x_12); +return x_17; } 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; -x_17 = lean_array_uget(x_8, x_10); -x_18 = lean_ctor_get(x_1, 1); -lean_inc(x_18); -x_19 = l_Lean_Syntax_getId(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; +x_18 = lean_array_uget(x_9, x_11); +x_19 = lean_ctor_get(x_1, 1); lean_inc(x_19); -x_20 = l_Lean_Name_append(x_7, x_19); -x_21 = lean_ctor_get(x_2, 0); -lean_inc(x_21); +lean_inc(x_13); +lean_inc(x_18); lean_inc(x_6); -lean_inc(x_12); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_1); lean_inc(x_3); -x_22 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__4), 11, 10); -lean_closure_set(x_22, 0, x_20); -lean_closure_set(x_22, 1, x_3); -lean_closure_set(x_22, 2, x_17); -lean_closure_set(x_22, 3, x_1); -lean_closure_set(x_22, 4, x_4); -lean_closure_set(x_22, 5, x_5); -lean_closure_set(x_22, 6, x_12); -lean_closure_set(x_22, 7, x_6); -lean_closure_set(x_22, 8, x_11); -lean_closure_set(x_22, 9, x_19); -lean_inc(x_6); -x_23 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_21, x_22); +lean_inc(x_2); +lean_inc(x_1); +x_20 = l_Lean_Elab_OpenDecl_resolveId___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_18, x_13); +lean_inc(x_7); +lean_inc(x_1); +x_21 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__2___boxed), 5, 4); +lean_closure_set(x_21, 0, x_18); +lean_closure_set(x_21, 1, x_12); +lean_closure_set(x_21, 2, x_1); +lean_closure_set(x_21, 3, x_7); +lean_inc(x_7); +x_22 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_20, x_21); +x_23 = lean_box_usize(x_11); x_24 = lean_box_usize(x_10); -x_25 = lean_box_usize(x_9); -x_26 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__5___boxed), 12, 11); -lean_closure_set(x_26, 0, x_1); -lean_closure_set(x_26, 1, x_24); -lean_closure_set(x_26, 2, x_2); -lean_closure_set(x_26, 3, x_3); -lean_closure_set(x_26, 4, x_4); -lean_closure_set(x_26, 5, x_5); -lean_closure_set(x_26, 6, x_6); -lean_closure_set(x_26, 7, x_7); -lean_closure_set(x_26, 8, x_8); -lean_closure_set(x_26, 9, x_25); -lean_closure_set(x_26, 10, x_12); -x_27 = lean_apply_4(x_18, lean_box(0), lean_box(0), x_23, x_26); -return x_27; +x_25 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__3___boxed), 13, 12); +lean_closure_set(x_25, 0, x_1); +lean_closure_set(x_25, 1, x_23); +lean_closure_set(x_25, 2, x_2); +lean_closure_set(x_25, 3, x_3); +lean_closure_set(x_25, 4, x_4); +lean_closure_set(x_25, 5, x_5); +lean_closure_set(x_25, 6, x_6); +lean_closure_set(x_25, 7, x_7); +lean_closure_set(x_25, 8, x_8); +lean_closure_set(x_25, 9, x_9); +lean_closure_set(x_25, 10, x_24); +lean_closure_set(x_25, 11, x_13); +x_26 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_22, x_25); +return x_26; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6(lean_object* x_1) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___boxed), 12, 0); +x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___boxed), 13, 0); return x_2; } } @@ -2902,55 +2594,57 @@ x_15 = lean_array_get_size(x_14); x_16 = lean_usize_of_nat(x_15); lean_dec(x_15); x_17 = 0; -lean_inc(x_8); +lean_inc(x_9); lean_inc(x_10); +lean_inc(x_8); lean_inc(x_7); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_10, x_14, x_16, x_17, x_11, x_8); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_14, x_16, x_17, x_11, x_9); x_19 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg___lambda__1), 4, 3); lean_closure_set(x_19, 0, x_10); -lean_closure_set(x_19, 1, x_9); -lean_closure_set(x_19, 2, x_8); -x_20 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_18, x_19); +lean_closure_set(x_19, 1, x_7); +lean_closure_set(x_19, 2, x_9); +x_20 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_18, x_19); return x_20; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Lean_Syntax_getArg(x_8, x_10); -x_12 = l_Lean_Syntax_getId(x_11); -lean_dec(x_11); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -lean_inc(x_9); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Lean_Syntax_getArg(x_7, x_9); +x_11 = l_Lean_Syntax_getId(x_10); +lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); +lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_14 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_9); -lean_inc(x_13); -x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg___lambda__2___boxed), 10, 9); -lean_closure_set(x_15, 0, x_8); -lean_closure_set(x_15, 1, x_1); -lean_closure_set(x_15, 2, x_2); -lean_closure_set(x_15, 3, x_4); -lean_closure_set(x_15, 4, x_5); -lean_closure_set(x_15, 5, x_7); -lean_closure_set(x_15, 6, x_13); -lean_closure_set(x_15, 7, x_9); -lean_closure_set(x_15, 8, x_6); -x_16 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_14, x_15); -return x_16; +x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8); +lean_inc(x_12); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg___lambda__2___boxed), 10, 9); +lean_closure_set(x_14, 0, x_7); +lean_closure_set(x_14, 1, x_1); +lean_closure_set(x_14, 2, x_2); +lean_closure_set(x_14, 3, x_3); +lean_closure_set(x_14, 4, x_4); +lean_closure_set(x_14, 5, x_5); +lean_closure_set(x_14, 6, x_6); +lean_closure_set(x_14, 7, x_12); +lean_closure_set(x_14, 8, x_8); +x_15 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_13, x_14); +return x_15; } } lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg), 8, 0); return x_2; } } @@ -2975,88 +2669,47 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_6); -lean_dec(x_6); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_8, x_7); -lean_dec(x_7); -return x_9; +lean_object* x_4; +x_4 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; } } -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___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* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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) { _start: { -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); +lean_object* x_6; +x_6 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); -x_9 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg___lambda__1(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -lean_dec(x_6); -return x_9; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_5); -lean_dec(x_5); -x_8 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__4___rarg(x_1, x_2, x_3, x_4, x_7, x_6); -return x_8; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_8); lean_dec(x_1); -return x_9; +return x_6; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_4; -x_4 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__2(x_1, x_2, x_3); -lean_dec(x_3); -return x_4; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__3(x_1, x_2, x_3); -lean_dec(x_3); -return x_4; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -size_t x_13; size_t x_14; lean_object* x_15; -x_13 = lean_unbox_usize(x_2); +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_2); lean_dec(x_2); -x_14 = lean_unbox_usize(x_10); -lean_dec(x_10); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg___lambda__5(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14, x_11, x_12); -return x_15; +x_15 = lean_unbox_usize(x_11); +lean_dec(x_11); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg___lambda__3(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15, x_12, x_13); +return x_16; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___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* x_11, lean_object* x_12) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -size_t x_13; size_t x_14; lean_object* x_15; -x_13 = lean_unbox_usize(x_9); -lean_dec(x_9); +size_t x_14; size_t x_15; lean_object* x_16; x_14 = lean_unbox_usize(x_10); lean_dec(x_10); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__6___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_13, x_14, x_11, x_12); -return x_15; +x_15 = lean_unbox_usize(x_11); +lean_dec(x_11); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14, x_15, x_12, x_13); +return x_16; } } lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___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) { @@ -3078,7 +2731,7 @@ lean_dec(x_3); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_8); lean_inc(x_8); -x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__2___rarg___lambda__3), 6, 5); +x_9 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_OpenDecl_resolveId___spec__5___rarg___lambda__3), 6, 5); lean_closure_set(x_9, 0, x_4); lean_closure_set(x_9, 1, x_5); lean_closure_set(x_9, 2, x_1); @@ -3107,10 +2760,10 @@ if (lean_obj_tag(x_10) == 0) uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_11 = 1; x_12 = l_Lean_Name_toString(x_3, x_11); -x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1; +x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1; x_14 = lean_string_append(x_13, x_12); lean_dec(x_12); -x_15 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2; +x_15 = l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -3145,7 +2798,7 @@ _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_inc(x_1); -x_11 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2), 2, 1); +x_11 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2), 2, 1); lean_closure_set(x_11, 0, x_1); lean_inc(x_2); x_12 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_3, x_11); @@ -3173,7 +2826,7 @@ lean_closure_set(x_10, 1, lean_box(0)); lean_closure_set(x_10, 2, x_1); x_11 = lean_apply_2(x_2, lean_box(0), x_10); lean_inc(x_3); -x_12 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1), 2, 1); +x_12 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__1), 2, 1); lean_closure_set(x_12, 0, x_3); lean_inc(x_4); lean_inc(x_11); @@ -3224,203 +2877,21 @@ x_2 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Ela return x_2; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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) { _start: { -lean_object* x_8; uint8_t x_15; uint8_t x_16; -x_15 = 2; -x_16 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_6, x_15); -if (x_16 == 0) -{ -lean_object* x_17; -x_17 = lean_box(0); -x_8 = x_17; -goto block_14; -} -else -{ -uint8_t x_18; -lean_inc(x_5); -x_18 = l_Lean_MessageData_hasSyntheticSorry(x_5); -if (x_18 == 0) -{ -lean_object* x_19; -x_19 = lean_box(0); -x_8 = x_19; -goto block_14; -} -else -{ -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_3); -lean_dec(x_2); -x_20 = lean_ctor_get(x_1, 0); -lean_inc(x_20); -lean_dec(x_1); -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_box(0); -x_23 = lean_apply_2(x_21, lean_box(0), x_22); -return x_23; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_6); +x_8 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___rarg(x_2, x_7, x_3); +x_9 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___boxed), 2, 1); +lean_closure_set(x_9, 0, x_4); +x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_8, x_9); +return x_10; } } -block_14: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_8); -x_9 = lean_ctor_get(x_3, 1); -lean_inc(x_9); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_dec(x_1); -x_11 = lean_box(x_6); -lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__13___boxed), 7, 6); -lean_closure_set(x_12, 0, x_4); -lean_closure_set(x_12, 1, x_3); -lean_closure_set(x_12, 2, x_2); -lean_closure_set(x_12, 3, x_5); -lean_closure_set(x_12, 4, x_11); -lean_closure_set(x_12, 5, x_10); -x_13 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_9, x_12); -return x_13; -} -} -} -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5___rarg___boxed), 7, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5___rarg(x_1, x_2, x_3, x_7, x_4, x_5, x_6); -return x_8; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t 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 = lean_ctor_get(x_3, 1); -lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); -x_9 = lean_box(x_5); -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg___lambda__1___boxed), 7, 6); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_2); -lean_closure_set(x_10, 2, x_3); -lean_closure_set(x_10, 3, x_4); -lean_closure_set(x_10, 4, x_9); -lean_closure_set(x_10, 5, x_6); -x_11 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_7, x_10); -return x_11; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg___boxed), 6, 0); -return x_2; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___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; lean_object* x_10; uint8_t x_11; lean_object* x_12; -x_6 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_6, 0, x_4); -x_7 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2; -x_8 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -x_9 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3; -x_10 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set(x_10, 1, x_9); -x_11 = 2; -x_12 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg(x_1, x_2, x_3, x_10, x_11, x_5); -return x_12; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg), 5, 0); -return x_2; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = l_Lean_replaceRef(x_1, x_8); -x_10 = l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg(x_2, x_3, x_4, x_5, x_6); -x_11 = lean_ctor_get(x_7, 1); -lean_inc(x_11); -lean_dec(x_7); -x_12 = lean_apply_3(x_11, lean_box(0), x_9, x_10); -return x_12; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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) { -_start: -{ -uint8_t x_12; -x_12 = l_Lean_Environment_contains(x_11, x_1); -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_dec(x_10); -lean_dec(x_9); -x_13 = lean_ctor_get(x_2, 0); -lean_inc(x_13); -lean_inc(x_4); -x_14 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__1___boxed), 8, 7); -lean_closure_set(x_14, 0, x_3); -lean_closure_set(x_14, 1, x_4); -lean_closure_set(x_14, 2, x_5); -lean_closure_set(x_14, 3, x_6); -lean_closure_set(x_14, 4, x_1); -lean_closure_set(x_14, 5, x_7); -lean_closure_set(x_14, 6, x_2); -lean_inc(x_8); -x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_13, x_14); -x_16 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___boxed), 2, 1); -lean_closure_set(x_16, 0, x_4); -x_17 = lean_apply_4(x_8, 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_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_9); -lean_ctor_set(x_18, 1, x_1); -x_19 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___rarg(x_10, x_18, x_7); -x_20 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___boxed), 2, 1); -lean_closure_set(x_20, 0, x_4); -x_21 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_19, x_20); -return x_21; -} -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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, lean_object* x_9, lean_object* x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg___lambda__2(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, lean_object* x_9, lean_object* x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { _start: { if (lean_obj_tag(x_13) == 0) @@ -3455,12 +2926,12 @@ lean_inc(x_18); lean_dec(x_13); x_19 = 1; x_20 = x_2 + x_19; -x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_18, x_12); +x_21 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_18, x_12); return x_21; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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, size_t x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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, size_t x_10, size_t x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -3488,67 +2959,63 @@ 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_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_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_dec(x_12); x_18 = lean_array_uget(x_9, x_11); x_19 = lean_ctor_get(x_1, 1); lean_inc(x_19); x_20 = lean_unsigned_to_nat(0u); x_21 = l_Lean_Syntax_getArg(x_18, x_20); -x_22 = l_Lean_Syntax_getId(x_21); -lean_dec(x_21); -x_23 = lean_unsigned_to_nat(2u); -x_24 = l_Lean_Syntax_getArg(x_18, x_23); -x_25 = l_Lean_Syntax_getId(x_24); -lean_dec(x_24); -x_26 = l_Lean_Name_append(x_8, x_22); -x_27 = lean_ctor_get(x_2, 0); -lean_inc(x_27); -lean_inc(x_5); -lean_inc(x_7); +x_22 = lean_unsigned_to_nat(2u); +x_23 = l_Lean_Syntax_getArg(x_18, x_22); +lean_dec(x_18); +x_24 = l_Lean_Syntax_getId(x_23); +lean_dec(x_23); lean_inc(x_13); lean_inc(x_6); +lean_inc(x_5); lean_inc(x_4); -lean_inc(x_1); lean_inc(x_3); -x_28 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__2), 11, 10); -lean_closure_set(x_28, 0, x_26); -lean_closure_set(x_28, 1, x_3); -lean_closure_set(x_28, 2, x_18); -lean_closure_set(x_28, 3, x_1); -lean_closure_set(x_28, 4, x_4); -lean_closure_set(x_28, 5, x_6); -lean_closure_set(x_28, 6, x_13); -lean_closure_set(x_28, 7, x_7); -lean_closure_set(x_28, 8, x_25); -lean_closure_set(x_28, 9, x_5); +lean_inc(x_2); +lean_inc(x_1); +x_25 = l_Lean_Elab_OpenDecl_resolveId___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_21, x_13); lean_inc(x_7); -x_29 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_27, x_28); -x_30 = lean_box_usize(x_11); -x_31 = lean_box_usize(x_10); -x_32 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__3___boxed), 13, 12); -lean_closure_set(x_32, 0, x_1); -lean_closure_set(x_32, 1, x_30); -lean_closure_set(x_32, 2, x_2); -lean_closure_set(x_32, 3, x_3); -lean_closure_set(x_32, 4, x_4); -lean_closure_set(x_32, 5, x_5); -lean_closure_set(x_32, 6, x_6); -lean_closure_set(x_32, 7, x_7); -lean_closure_set(x_32, 8, x_8); -lean_closure_set(x_32, 9, x_9); -lean_closure_set(x_32, 10, x_31); -lean_closure_set(x_32, 11, x_13); -x_33 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_29, x_32); -return x_33; +lean_inc(x_1); +lean_inc(x_13); +lean_inc(x_6); +x_26 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg___lambda__1), 6, 5); +lean_closure_set(x_26, 0, x_24); +lean_closure_set(x_26, 1, x_6); +lean_closure_set(x_26, 2, x_13); +lean_closure_set(x_26, 3, x_1); +lean_closure_set(x_26, 4, x_7); +lean_inc(x_7); +x_27 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_25, x_26); +x_28 = lean_box_usize(x_11); +x_29 = lean_box_usize(x_10); +x_30 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg___lambda__2___boxed), 13, 12); +lean_closure_set(x_30, 0, x_1); +lean_closure_set(x_30, 1, x_28); +lean_closure_set(x_30, 2, x_2); +lean_closure_set(x_30, 3, x_3); +lean_closure_set(x_30, 4, x_4); +lean_closure_set(x_30, 5, x_5); +lean_closure_set(x_30, 6, x_6); +lean_closure_set(x_30, 7, x_7); +lean_closure_set(x_30, 8, x_8); +lean_closure_set(x_30, 9, x_9); +lean_closure_set(x_30, 10, x_29); +lean_closure_set(x_30, 11, x_13); +x_31 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_27, x_30); +return x_31; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6(lean_object* x_1) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___boxed), 13, 0); +x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg___boxed), 13, 0); return x_2; } } @@ -3567,50 +3034,51 @@ x_16 = 0; x_17 = lean_box(0); lean_inc(x_8); lean_inc(x_2); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_13, x_15, x_16, x_17, x_9); +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10, x_13, x_15, x_16, x_17, x_9); x_19 = lean_alloc_closure((void*)(l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___lambda__1___boxed), 2, 1); lean_closure_set(x_19, 0, x_2); x_20 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_18, x_19); return x_20; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Lean_Syntax_getArg(x_8, x_10); -x_12 = l_Lean_Syntax_getId(x_11); -lean_dec(x_11); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); -lean_inc(x_9); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Lean_Syntax_getArg(x_7, x_9); +x_11 = l_Lean_Syntax_getId(x_10); +lean_dec(x_10); +x_12 = lean_ctor_get(x_1, 1); +lean_inc(x_12); +lean_inc(x_8); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); +lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_14 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_12, x_9); -lean_inc(x_13); -x_15 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg___lambda__1___boxed), 10, 9); -lean_closure_set(x_15, 0, x_8); -lean_closure_set(x_15, 1, x_1); -lean_closure_set(x_15, 2, x_2); -lean_closure_set(x_15, 3, x_4); -lean_closure_set(x_15, 4, x_5); -lean_closure_set(x_15, 5, x_6); -lean_closure_set(x_15, 6, x_7); -lean_closure_set(x_15, 7, x_13); -lean_closure_set(x_15, 8, x_9); -x_16 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_14, x_15); -return x_16; +x_13 = l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_8); +lean_inc(x_12); +x_14 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg___lambda__1___boxed), 10, 9); +lean_closure_set(x_14, 0, x_7); +lean_closure_set(x_14, 1, x_1); +lean_closure_set(x_14, 2, x_2); +lean_closure_set(x_14, 3, x_3); +lean_closure_set(x_14, 4, x_4); +lean_closure_set(x_14, 5, x_5); +lean_closure_set(x_14, 6, x_6); +lean_closure_set(x_14, 7, x_12); +lean_closure_set(x_14, 8, x_8); +x_15 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_13, x_14); +return x_15; } } lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg), 8, 0); return x_2; } } @@ -3635,49 +3103,7 @@ lean_dec(x_1); return x_10; } } -lean_object* l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_6); -lean_dec(x_6); -x_9 = l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_8, x_7); -lean_dec(x_7); -return x_9; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___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) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -lean_dec(x_5); -x_9 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg___lambda__1(x_1, x_2, x_3, x_4, x_8, x_6, x_7); -lean_dec(x_6); -return x_9; -} -} -lean_object* l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_5); -lean_dec(x_5); -x_8 = l_Lean_Elab_log___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__4___rarg(x_1, x_2, x_3, x_4, x_7, x_6); -return x_8; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_8); -lean_dec(x_1); -return x_9; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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, lean_object* x_13) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -3685,11 +3111,11 @@ x_14 = lean_unbox_usize(x_2); lean_dec(x_2); x_15 = lean_unbox_usize(x_11); lean_dec(x_11); -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg___lambda__3(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15, x_12, x_13); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg___lambda__2(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15, x_12, x_13); return x_16; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___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* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -3697,7 +3123,7 @@ x_14 = lean_unbox_usize(x_10); lean_dec(x_10); x_15 = lean_unbox_usize(x_11); lean_dec(x_11); -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__6___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14, x_15, x_12, x_13); +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14, x_15, x_12, x_13); return x_16; } } @@ -3719,7 +3145,7 @@ lean_closure_set(x_6, 0, lean_box(0)); lean_closure_set(x_6, 1, lean_box(0)); lean_closure_set(x_6, 2, x_5); x_7 = lean_apply_2(x_1, lean_box(0), x_6); -x_8 = lean_alloc_closure((void*)(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__2), 2, 1); +x_8 = lean_alloc_closure((void*)(l_Lean_resolveGlobalName___at_Lean_Elab_OpenDecl_resolveId___spec__3___rarg___lambda__2), 2, 1); lean_closure_set(x_8, 0, x_2); x_9 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_7, x_8); return x_9; @@ -3791,91 +3217,90 @@ x_1 = lean_mk_string("openHiding"); return x_1; } } -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_15; +lean_object* x_14; lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -lean_inc(x_14); -x_15 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__4), 5, 4); -lean_closure_set(x_15, 0, x_14); -lean_closure_set(x_15, 1, x_1); -lean_closure_set(x_15, 2, x_2); -lean_closure_set(x_15, 3, x_3); +lean_inc(x_13); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__4), 5, 4); +lean_closure_set(x_14, 0, x_13); +lean_closure_set(x_14, 1, x_1); +lean_closure_set(x_14, 2, x_2); +lean_closure_set(x_14, 3, x_3); if (x_4 == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__1; +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__1; lean_inc(x_5); -x_17 = lean_name_mk_string(x_5, x_16); -x_18 = lean_name_eq(x_6, x_17); -lean_dec(x_17); -if (x_18 == 0) +x_16 = lean_name_mk_string(x_5, x_15); +x_17 = lean_name_eq(x_6, x_16); +lean_dec(x_16); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__2; -x_20 = lean_name_mk_string(x_5, x_19); -x_21 = lean_name_eq(x_6, x_20); -lean_dec(x_20); -if (x_21 == 0) +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__2; +x_19 = lean_name_mk_string(x_5, x_18); +x_20 = lean_name_eq(x_6, x_19); +lean_dec(x_19); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -lean_inc(x_14); -x_22 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_11, x_12, x_14); -x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); -lean_closure_set(x_23, 0, x_13); -lean_closure_set(x_23, 1, x_14); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_inc(x_13); +x_21 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_11, x_13); +x_22 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); +lean_closure_set(x_22, 0, x_12); +lean_closure_set(x_22, 1, x_13); lean_inc(x_3); -x_24 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_22, x_23); -x_25 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_24, x_15); -return x_25; +x_23 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_21, x_22); +x_24 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_23, x_14); +return x_24; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -lean_inc(x_14); -x_26 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_11, x_12, x_14); -x_27 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); -lean_closure_set(x_27, 0, x_13); -lean_closure_set(x_27, 1, x_14); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +lean_inc(x_13); +x_25 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_11, x_13); +x_26 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); +lean_closure_set(x_26, 0, x_12); +lean_closure_set(x_26, 1, x_13); lean_inc(x_3); -x_28 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_26, x_27); -x_29 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_28, x_15); -return x_29; +x_27 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_25, x_26); +x_28 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_27, x_14); +return x_28; } } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_dec(x_5); -lean_inc(x_14); -x_30 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_11, x_12, x_14); -x_31 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); -lean_closure_set(x_31, 0, x_13); -lean_closure_set(x_31, 1, x_14); +lean_inc(x_13); +x_29 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_11, x_13); +x_30 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); +lean_closure_set(x_30, 0, x_12); +lean_closure_set(x_30, 1, x_13); lean_inc(x_3); -x_32 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_30, x_31); -x_33 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_32, x_15); -return x_33; +x_31 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_29, x_30); +x_32 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_31, x_14); +return x_32; } } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_5); +lean_inc(x_13); +x_33 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_11, x_13); lean_dec(x_11); -lean_dec(x_5); -lean_inc(x_14); -x_34 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___rarg(x_2, x_7, x_8, x_9, x_10, x_1, x_12, x_14); -lean_dec(x_12); -x_35 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); -lean_closure_set(x_35, 0, x_13); -lean_closure_set(x_35, 1, x_14); +x_34 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_OpenDecl_instMonadResolveNameM___spec__1___rarg___lambda__1), 3, 2); +lean_closure_set(x_34, 0, x_12); +lean_closure_set(x_34, 1, x_13); lean_inc(x_3); -x_36 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_34, x_35); -x_37 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_36, x_15); -return x_37; +x_35 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_33, x_34); +x_36 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_35, x_14); +return x_36; } } } @@ -3951,126 +3376,123 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___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, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___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, lean_object* x_9, lean_object* x_10) { _start: { -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; +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__1___boxed), 5, 3); -lean_closure_set(x_12, 0, x_1); -lean_closure_set(x_12, 1, x_2); -lean_closure_set(x_12, 2, x_3); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__1___boxed), 5, 3); +lean_closure_set(x_11, 0, x_1); +lean_closure_set(x_11, 1, x_2); +lean_closure_set(x_11, 2, x_3); lean_inc(x_4); -x_13 = l_Lean_Syntax_getKind(x_4); -x_14 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__8; -x_15 = lean_name_eq(x_13, x_14); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_5); -lean_ctor_set(x_16, 1, x_11); -x_17 = lean_alloc_closure((void*)(l_ST_Prim_mkRef___boxed), 4, 3); -lean_closure_set(x_17, 0, lean_box(0)); -lean_closure_set(x_17, 1, lean_box(0)); -lean_closure_set(x_17, 2, x_16); +x_12 = l_Lean_Syntax_getKind(x_4); +x_13 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__8; +x_14 = lean_name_eq(x_12, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_5); +lean_ctor_set(x_15, 1, x_10); +x_16 = lean_alloc_closure((void*)(l_ST_Prim_mkRef___boxed), 4, 3); +lean_closure_set(x_16, 0, lean_box(0)); +lean_closure_set(x_16, 1, lean_box(0)); +lean_closure_set(x_16, 2, x_15); lean_inc(x_1); -x_18 = lean_apply_2(x_1, lean_box(0), x_17); +x_17 = lean_apply_2(x_1, lean_box(0), x_16); lean_inc(x_2); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__2), 2, 1); -lean_closure_set(x_19, 0, x_2); -if (x_15 == 0) +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__2), 2, 1); +lean_closure_set(x_18, 0, x_2); +if (x_14 == 0) { -uint8_t x_27; -x_27 = 0; -x_20 = x_27; -goto block_26; +uint8_t x_26; +x_26 = 0; +x_19 = x_26; +goto block_25; } else { -uint8_t x_28; -x_28 = 1; -x_20 = x_28; -goto block_26; +uint8_t x_27; +x_27 = 1; +x_19 = x_27; +goto block_25; } -block_26: +block_25: { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_21 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__6; -x_22 = lean_box(x_20); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6___closed__6; +x_21 = lean_box(x_19); lean_inc(x_3); -x_23 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___boxed), 14, 13); -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_22); -lean_closure_set(x_23, 4, x_21); -lean_closure_set(x_23, 5, x_13); -lean_closure_set(x_23, 6, x_6); -lean_closure_set(x_23, 7, x_7); -lean_closure_set(x_23, 8, x_8); -lean_closure_set(x_23, 9, x_9); -lean_closure_set(x_23, 10, x_10); -lean_closure_set(x_23, 11, x_4); -lean_closure_set(x_23, 12, x_12); +x_22 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___boxed), 13, 12); +lean_closure_set(x_22, 0, x_1); +lean_closure_set(x_22, 1, x_2); +lean_closure_set(x_22, 2, x_3); +lean_closure_set(x_22, 3, x_21); +lean_closure_set(x_22, 4, x_20); +lean_closure_set(x_22, 5, x_12); +lean_closure_set(x_22, 6, x_6); +lean_closure_set(x_22, 7, x_7); +lean_closure_set(x_22, 8, x_8); +lean_closure_set(x_22, 9, x_9); +lean_closure_set(x_22, 10, x_4); +lean_closure_set(x_22, 11, x_11); lean_inc(x_3); -x_24 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_18, x_23); -x_25 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_24, x_19); -return x_25; +x_23 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_17, x_22); +x_24 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_23, x_18); +return x_24; } } } -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__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) { +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__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) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_1, 0); -lean_inc(x_12); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_1, 0); +lean_inc(x_11); lean_dec(x_1); lean_inc(x_4); -x_13 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6), 11, 10); -lean_closure_set(x_13, 0, x_2); -lean_closure_set(x_13, 1, x_3); -lean_closure_set(x_13, 2, x_4); -lean_closure_set(x_13, 3, x_5); -lean_closure_set(x_13, 4, x_11); -lean_closure_set(x_13, 5, x_6); -lean_closure_set(x_13, 6, x_7); -lean_closure_set(x_13, 7, x_8); -lean_closure_set(x_13, 8, x_9); -lean_closure_set(x_13, 9, x_10); -x_14 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_12, x_13); -return x_14; +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__6), 10, 9); +lean_closure_set(x_12, 0, x_2); +lean_closure_set(x_12, 1, x_3); +lean_closure_set(x_12, 2, x_4); +lean_closure_set(x_12, 3, x_5); +lean_closure_set(x_12, 4, x_10); +lean_closure_set(x_12, 5, x_6); +lean_closure_set(x_12, 6, x_7); +lean_closure_set(x_12, 7, x_8); +lean_closure_set(x_12, 8, x_9); +x_13 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_11, x_12); +return x_13; } } -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 1); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_1, 1); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_inc(x_10); -x_12 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__7), 11, 10); -lean_closure_set(x_12, 0, x_8); -lean_closure_set(x_12, 1, x_6); -lean_closure_set(x_12, 2, x_1); -lean_closure_set(x_12, 3, x_10); -lean_closure_set(x_12, 4, x_9); -lean_closure_set(x_12, 5, x_2); -lean_closure_set(x_12, 6, x_3); -lean_closure_set(x_12, 7, x_4); -lean_closure_set(x_12, 8, x_5); -lean_closure_set(x_12, 9, x_7); -x_13 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_11, x_12); -return x_13; +lean_inc(x_9); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__7), 10, 9); +lean_closure_set(x_11, 0, x_7); +lean_closure_set(x_11, 1, x_6); +lean_closure_set(x_11, 2, x_1); +lean_closure_set(x_11, 3, x_9); +lean_closure_set(x_11, 4, x_8); +lean_closure_set(x_11, 5, x_2); +lean_closure_set(x_11, 6, x_3); +lean_closure_set(x_11, 7, x_4); +lean_closure_set(x_11, 8, x_5); +x_12 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_11); +return x_12; } } lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg), 8, 0); return x_2; } } @@ -4083,15 +3505,130 @@ lean_dec(x_4); return x_6; } } -lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -uint8_t x_15; lean_object* x_16; -x_15 = lean_unbox(x_4); +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_4); lean_dec(x_4); -x_16 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5(x_1, x_2, x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_15 = l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_6); -return x_16; +return x_15; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___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) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_inc(x_10); +lean_inc(x_6); +lean_inc(x_1); +x_11 = l_Lean_Elab_OpenDecl_resolveId___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_10); +lean_inc(x_9); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__4), 5, 4); +lean_closure_set(x_12, 0, x_10); +lean_closure_set(x_12, 1, x_6); +lean_closure_set(x_12, 2, x_1); +lean_closure_set(x_12, 3, x_9); +x_13 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_11, x_12); +return x_13; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___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) { +_start: +{ +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; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_closure((void*)(l_ST_Prim_mkRef___boxed), 4, 3); +lean_closure_set(x_13, 0, lean_box(0)); +lean_closure_set(x_13, 1, lean_box(0)); +lean_closure_set(x_13, 2, x_12); +lean_inc(x_2); +x_14 = lean_apply_2(x_2, lean_box(0), x_13); +lean_inc(x_10); +lean_inc(x_3); +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg___lambda__1___boxed), 10, 9); +lean_closure_set(x_15, 0, x_3); +lean_closure_set(x_15, 1, x_4); +lean_closure_set(x_15, 2, x_5); +lean_closure_set(x_15, 3, x_6); +lean_closure_set(x_15, 4, x_7); +lean_closure_set(x_15, 5, x_2); +lean_closure_set(x_15, 6, x_8); +lean_closure_set(x_15, 7, x_9); +lean_closure_set(x_15, 8, x_10); +lean_inc(x_10); +x_16 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_14, x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__2), 2, 1); +lean_closure_set(x_17, 0, x_3); +x_18 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_16, x_17); +return x_18; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +lean_dec(x_1); +lean_inc(x_10); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg___lambda__2), 11, 10); +lean_closure_set(x_13, 0, x_11); +lean_closure_set(x_13, 1, x_2); +lean_closure_set(x_13, 2, x_3); +lean_closure_set(x_13, 3, x_4); +lean_closure_set(x_13, 4, x_5); +lean_closure_set(x_13, 5, x_6); +lean_closure_set(x_13, 6, x_7); +lean_closure_set(x_13, 7, x_8); +lean_closure_set(x_13, 8, x_9); +lean_closure_set(x_13, 9, x_10); +x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_12, x_13); +return x_14; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___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; lean_object* x_13; +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_inc(x_10); +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg___lambda__3), 11, 10); +lean_closure_set(x_12, 0, x_7); +lean_closure_set(x_12, 1, x_6); +lean_closure_set(x_12, 2, x_1); +lean_closure_set(x_12, 3, x_2); +lean_closure_set(x_12, 4, x_3); +lean_closure_set(x_12, 5, x_4); +lean_closure_set(x_12, 6, x_5); +lean_closure_set(x_12, 7, x_8); +lean_closure_set(x_12, 8, x_9); +lean_closure_set(x_12, 9, x_10); +x_13 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_11, x_12); +return x_13; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg), 9, 0); +return x_2; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveOpenDeclId___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) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_OpenDecl_resolveOpenDeclId___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +return x_11; } } lean_object* initialize_Init(lean_object*); @@ -4107,22 +3644,26 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Log(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1 = _init_l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__1); -l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2 = _init_l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__3___closed__2); +l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__1(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__1); +l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__2(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__2); +l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__3); +l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__4 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__4(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_OpenDecl_resolveId___spec__4___rarg___closed__4); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__1 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__1); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__2 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__2); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__3 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_OpenDecl_resolveId___spec__1___rarg___lambda__1___closed__3); +l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1 = _init_l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_resolveNamespace___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__1___rarg___lambda__1___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__4___rarg___lambda__2___closed__1); l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___closed__1 = _init_l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___closed__1(); lean_mark_persistent(l_Lean_activateScoped___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___spec__3___rarg___closed__1); -l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1 = _init_l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_logAt___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__5___rarg___lambda__1___closed__1); -l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__1 = _init_l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__1(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__1); -l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2 = _init_l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__2); -l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3 = _init_l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___spec__3___rarg___closed__3); l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__1 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__1(); lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__1); l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__2 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___rarg___lambda__5___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 1826d2908d..95568a72dc 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -105,6 +105,7 @@ extern lean_object* l_Lean_Elab_instInhabitedAttribute; static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__8___rarg___closed__1; static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__15___lambda__2___closed__1; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__5(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237____boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabFieldTypeValue___lambda__1___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___closed__3; @@ -116,6 +117,7 @@ lean_object* l_Lean_Meta_mkInjectiveTheorems(lean_object*, lean_object*, lean_ob lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerStructure(lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__3; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure_match__1(lean_object*); @@ -132,6 +134,7 @@ static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__1___cl static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__9; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_declRangeExt; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1___rarg(uint8_t, uint8_t, 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_mkIdentFrom(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__1___closed__3; @@ -216,10 +219,12 @@ static lean_object* l_Lean_Elab_Command_checkValidCtorModifier___at___private_Le lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(lean_object*, size_t, size_t, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__4; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResultUniverse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidFieldModifier___lambda__4(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___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__16___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabStructure___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -250,6 +255,7 @@ static lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_ela static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___closed__1; lean_object* l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_value(lean_object*); +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1(lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_runTermElabM___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_Meta_mkSizeOfInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -327,6 +333,7 @@ static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__3(lean_object*); +lean_object* l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -425,6 +432,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStr static lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___closed__4; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults_match__1(lean_object*); static lean_object* l_Lean_Elab_elabModifiers___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__1___lambda__3___closed__8; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars___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_FileMap_toPosition(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView_match__1(lean_object*); @@ -517,6 +525,7 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_getResu static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__18; static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___closed__1; static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg___closed__15; +lean_object* l_Lean_Elab_Command_instBEqStructFieldKind; lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___lambda__1(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*); @@ -555,6 +564,8 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2; +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237_(uint8_t, uint8_t); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName___boxed(lean_object*, lean_object*); @@ -595,6 +606,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure static lean_object* l_Lean_Elab_getOptDerivingClasses___at_Lean_Elab_Command_elabStructure___spec__2___closed__2; lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__1(lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandDeclSig(lean_object*); static lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__2; lean_object* l_Lean_Elab_Command_StructFieldInfo_isSubobject_match__1___rarg(uint8_t, lean_object*, lean_object*); @@ -636,12 +648,13 @@ static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFie lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Command_elabStructure___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__17___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5___lambda__6___closed__6; -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5516_(lean_object*); +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5612_(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_312_(uint8_t, uint8_t); static lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___at_Lean_Elab_Command_elabStructure___spec__1___lambda__2___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Command_instBEqStructFieldKind___closed__1; lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_setReducibilityStatus___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -692,6 +705,7 @@ lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_C lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields_match__2(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__5(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_FileMap_leanPosToLspPos(lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -794,6 +808,198 @@ x_1 = 0; return x_1; } } +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_7; +lean_dec(x_5); +lean_dec(x_4); +x_7 = lean_box(x_2); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +x_8 = lean_box(0); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_7); +lean_dec(x_3); +x_10 = lean_box(x_1); +x_11 = lean_box(x_2); +x_12 = lean_apply_2(x_6, x_10, x_11); +return x_12; +} +} +case 1: +{ +lean_object* x_13; +lean_dec(x_5); +lean_dec(x_3); +x_13 = lean_box(x_2); +if (lean_obj_tag(x_13) == 1) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_6); +x_14 = lean_box(0); +x_15 = lean_apply_1(x_4, x_14); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_13); +lean_dec(x_4); +x_16 = lean_box(x_1); +x_17 = lean_box(x_2); +x_18 = lean_apply_2(x_6, x_16, x_17); +return x_18; +} +} +default: +{ +lean_object* x_19; +lean_dec(x_4); +lean_dec(x_3); +x_19 = lean_box(x_2); +if (lean_obj_tag(x_19) == 2) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_6); +x_20 = lean_box(0); +x_21 = lean_apply_1(x_5, x_20); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_19); +lean_dec(x_5); +x_22 = lean_box(x_1); +x_23 = lean_box(x_2); +x_24 = lean_apply_2(x_6, x_22, x_23); +return x_24; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1___rarg___boxed), 6, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1___rarg___boxed(lean_object* 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; uint8_t x_8; lean_object* x_9; +x_7 = lean_unbox(x_1); +lean_dec(x_1); +x_8 = lean_unbox(x_2); +lean_dec(x_2); +x_9 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237__match__1___rarg(x_7, x_8, x_3, x_4, x_5, x_6); +return x_9; +} +} +uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237_(uint8_t x_1, uint8_t x_2) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_3; +x_3 = lean_box(x_2); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = 1; +return x_4; +} +else +{ +uint8_t x_5; +lean_dec(x_3); +x_5 = 0; +return x_5; +} +} +case 1: +{ +lean_object* x_6; +x_6 = lean_box(x_2); +if (lean_obj_tag(x_6) == 1) +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +else +{ +uint8_t x_8; +lean_dec(x_6); +x_8 = 0; +return x_8; +} +} +default: +{ +lean_object* x_9; +x_9 = lean_box(x_2); +if (lean_obj_tag(x_9) == 2) +{ +uint8_t x_10; +x_10 = 1; +return x_10; +} +else +{ +uint8_t x_11; +lean_dec(x_9); +x_11 = 0; +return x_11; +} +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_3 = lean_unbox(x_1); +lean_dec(x_1); +x_4 = lean_unbox(x_2); +lean_dec(x_2); +x_5 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237_(x_3, x_4); +x_6 = lean_box(x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_Elab_Command_instBEqStructFieldKind___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Command_instBEqStructFieldKind() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Command_instBEqStructFieldKind___closed__1; +return x_1; +} +} static uint8_t _init_l_Lean_Elab_Command_StructFieldInfo_inferMod___default() { _start: { @@ -16211,6 +16417,223 @@ lean_dec(x_5); return x_12; } } +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = x_2 == x_3; +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; size_t x_12; size_t x_13; +x_6 = lean_array_uget(x_1, x_2); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +x_9 = lean_ctor_get_uint8(x_6, sizeof(void*)*4); +lean_dec(x_6); +x_10 = 1; +x_11 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237_(x_9, x_10); +x_12 = 1; +x_13 = x_2 + x_12; +if (x_11 == 0) +{ +uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_14 = 2; +x_15 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_beqStructFieldKind____x40_Lean_Elab_Structure___hyg_237_(x_9, x_14); +x_16 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_8); +lean_ctor_set_uint8(x_16, sizeof(void*)*2, x_15); +x_17 = lean_array_push(x_4, x_16); +x_2 = x_13; +x_4 = x_17; +goto _start; +} +else +{ +lean_dec(x_8); +lean_dec(x_7); +x_2 = x_13; +goto _start; +} +} +else +{ +return x_4; +} +} +} +lean_object* l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_nat_dec_lt(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_1); +x_7 = lean_nat_dec_le(x_3, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; +x_8 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +return x_8; +} +else +{ +size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_usize_of_nat(x_2); +x_10 = lean_usize_of_nat(x_3); +x_11 = l_Lean_Elab_elabAttrs___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__3___closed__1; +x_12 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2(x_1, x_9, x_10, x_11); +return x_12; +} +} +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(lean_object* x_1, lean_object* x_2, 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; uint8_t x_13; +x_10 = lean_st_ref_take(x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = !lean_is_exclusive(x_11); +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; uint8_t x_21; +x_14 = lean_ctor_get(x_11, 0); +x_15 = lean_array_get_size(x_2); +x_16 = lean_unsigned_to_nat(0u); +x_17 = l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1(x_2, x_16, x_15); +lean_dec(x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_1); +lean_ctor_set(x_18, 1, x_17); +x_19 = l_Lean_registerStructure(x_14, x_18); +lean_ctor_set(x_11, 0, x_19); +x_20 = lean_st_ref_set(x_8, x_11, x_12); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_20, 0); +lean_dec(x_22); +x_23 = lean_box(0); +lean_ctor_set(x_20, 0, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +lean_dec(x_20); +x_25 = lean_box(0); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; +} +} +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; 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_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +x_29 = lean_ctor_get(x_11, 2); +x_30 = lean_ctor_get(x_11, 3); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_11); +x_31 = lean_array_get_size(x_2); +x_32 = lean_unsigned_to_nat(0u); +x_33 = l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1(x_2, x_32, x_31); +lean_dec(x_31); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Lean_registerStructure(x_27, x_34); +x_36 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_28); +lean_ctor_set(x_36, 2, x_29); +lean_ctor_set(x_36, 3, x_30); +x_37 = lean_st_ref_set(x_8, x_36, x_12); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_39 = x_37; +} else { + lean_dec_ref(x_37); + x_39 = lean_box(0); +} +x_40 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_41 = lean_alloc_ctor(0, 2, 0); +} else { + x_41 = x_39; +} +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_38); +return x_41; +} +} +} +lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; lean_object* x_7; +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_7 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__2(x_1, x_5, x_6, x_4); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_filterMapM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___spec__1(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_10; +} +} lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions___lambda__1(uint8_t x_1, uint8_t x_2, uint8_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, lean_object* x_12) { _start: { @@ -17939,30 +18362,30 @@ if (x_68 == 0) { lean_inc(x_7); x_70 = x_7; -goto block_157; +goto block_159; } else { -uint8_t x_158; -x_158 = lean_nat_dec_le(x_66, x_66); -if (x_158 == 0) +uint8_t x_160; +x_160 = lean_nat_dec_le(x_66, x_66); +if (x_160 == 0) { lean_inc(x_7); x_70 = x_7; -goto block_157; +goto block_159; } else { -size_t x_159; size_t x_160; lean_object* x_161; -x_159 = 0; -x_160 = lean_usize_of_nat(x_66); +size_t x_161; size_t x_162; lean_object* x_163; +x_161 = 0; +x_162 = lean_usize_of_nat(x_66); lean_inc(x_7); -x_161 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_159, x_160, x_7); -x_70 = x_161; -goto block_157; +x_163 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__9(x_4, x_161, x_162, x_7); +x_70 = x_163; +goto block_159; } } -block_157: +block_159: { lean_object* x_71; lean_object* x_72; lean_object* x_73; x_71 = lean_array_to_list(lean_box(0), x_70); @@ -17973,42 +18396,47 @@ lean_inc(x_53); x_73 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addProjections(x_53, x_72, x_69, x_9, x_10, x_11, x_12, x_13, x_14, x_65); if (lean_obj_tag(x_73) == 0) { -lean_object* x_74; lean_object* x_75; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; x_74 = lean_ctor_get(x_73, 1); lean_inc(x_74); lean_dec(x_73); -lean_inc(x_13); -lean_inc(x_9); -x_75 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_53, x_9, x_10, x_11, x_12, x_13, x_14, x_74); -if (lean_obj_tag(x_75) == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_inc(x_53); +x_75 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_registerStructure(x_53, x_4, x_9, x_10, x_11, x_12, x_13, x_14, x_74); x_76 = lean_ctor_get(x_75, 1); lean_inc(x_76); lean_dec(x_75); +lean_inc(x_13); +lean_inc(x_9); +x_77 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(x_53, x_9, x_10, x_11, x_12, x_13, x_14, x_76); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +lean_dec(x_77); if (x_68 == 0) { lean_inc(x_7); -x_77 = x_7; -x_78 = x_76; -goto block_138; +x_79 = x_7; +x_80 = x_78; +goto block_140; } else { -uint8_t x_139; -x_139 = lean_nat_dec_le(x_66, x_66); -if (x_139 == 0) +uint8_t x_141; +x_141 = lean_nat_dec_le(x_66, x_66); +if (x_141 == 0) { lean_inc(x_7); -x_77 = x_7; -x_78 = x_76; -goto block_138; +x_79 = x_7; +x_80 = x_78; +goto block_140; } else { -size_t x_140; size_t x_141; lean_object* x_142; -x_140 = 0; -x_141 = lean_usize_of_nat(x_66); +size_t x_142; size_t x_143; lean_object* x_144; +x_142 = 0; +x_143 = lean_usize_of_nat(x_66); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -18016,22 +18444,22 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_7); -x_142 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_4, x_140, x_141, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_76); -if (lean_obj_tag(x_142) == 0) +x_144 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(x_4, x_142, x_143, x_7, x_9, x_10, x_11, x_12, x_13, x_14, x_78); +if (lean_obj_tag(x_144) == 0) { -lean_object* x_143; lean_object* x_144; -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec(x_142); -x_77 = x_143; -x_78 = x_144; -goto block_138; +lean_object* x_145; lean_object* x_146; +x_145 = lean_ctor_get(x_144, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_144, 1); +lean_inc(x_146); +lean_dec(x_144); +x_79 = x_145; +x_80 = x_146; +goto block_140; } else { -uint8_t x_145; +uint8_t x_147; lean_dec(x_66); lean_dec(x_59); lean_dec(x_57); @@ -18044,217 +18472,217 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -x_145 = !lean_is_exclusive(x_142); -if (x_145 == 0) +x_147 = !lean_is_exclusive(x_144); +if (x_147 == 0) { -return x_142; +return x_144; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_146 = lean_ctor_get(x_142, 0); -x_147 = lean_ctor_get(x_142, 1); -lean_inc(x_147); -lean_inc(x_146); -lean_dec(x_142); -x_148 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_148, 0, x_146); -lean_ctor_set(x_148, 1, x_147); -return x_148; +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_144, 0); +x_149 = lean_ctor_get(x_144, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_144); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; } } } } -block_138: +block_140: { -lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; -x_79 = lean_array_to_list(lean_box(0), x_77); -x_80 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_79); -x_81 = lean_ctor_get(x_59, 1); -lean_inc(x_81); +lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; +x_81 = lean_array_to_list(lean_box(0), x_79); +x_82 = l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__2(x_81); +x_83 = lean_ctor_get(x_59, 1); +lean_inc(x_83); lean_dec(x_59); -x_82 = 0; +x_84 = 0; lean_inc(x_14); lean_inc(x_13); lean_inc(x_9); -x_83 = l_Lean_Elab_Term_applyAttributesAt(x_53, x_81, x_82, x_9, x_10, x_11, x_12, x_13, x_14, x_78); -lean_dec(x_81); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); +x_85 = l_Lean_Elab_Term_applyAttributesAt(x_53, x_83, x_84, x_9, x_10, x_11, x_12, x_13, x_14, x_80); lean_dec(x_83); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_85 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_80, x_9, x_10, x_11, x_12, x_13, x_14, x_84); -if (lean_obj_tag(x_85) == 0) +x_87 = l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(x_82, x_9, x_10, x_11, x_12, x_13, x_14, x_86); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_86; lean_object* x_87; size_t x_88; lean_object* x_89; -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); -lean_dec(x_85); -x_87 = lean_ctor_get(x_11, 1); -lean_inc(x_87); -x_88 = 0; +lean_object* x_88; lean_object* x_89; size_t x_90; lean_object* x_91; +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +x_89 = lean_ctor_get(x_11, 1); +lean_inc(x_89); +x_90 = 0; if (x_68 == 0) { -x_89 = x_7; -goto block_126; +x_91 = x_7; +goto block_128; } else { -uint8_t x_127; -x_127 = lean_nat_dec_le(x_66, x_66); -if (x_127 == 0) +uint8_t x_129; +x_129 = lean_nat_dec_le(x_66, x_66); +if (x_129 == 0) { -x_89 = x_7; -goto block_126; +x_91 = x_7; +goto block_128; } else { -size_t x_128; lean_object* x_129; -x_128 = lean_usize_of_nat(x_66); -x_129 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_88, x_128, x_7); -x_89 = x_129; -goto block_126; +size_t x_130; lean_object* x_131; +x_130 = lean_usize_of_nat(x_66); +x_131 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__7(x_4, x_90, x_130, x_7); +x_91 = x_131; +goto block_128; } } -block_126: +block_128: { -lean_object* x_90; size_t 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_array_get_size(x_89); -x_91 = lean_usize_of_nat(x_90); -lean_dec(x_90); -x_92 = x_89; -x_93 = lean_box_usize(x_91); -x_94 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1; -x_95 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___boxed), 10, 3); -lean_closure_set(x_95, 0, x_93); -lean_closure_set(x_95, 1, x_94); -lean_closure_set(x_95, 2, x_92); -x_96 = x_95; +lean_object* x_92; size_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_92 = lean_array_get_size(x_91); +x_93 = lean_usize_of_nat(x_92); +lean_dec(x_92); +x_94 = x_91; +x_95 = lean_box_usize(x_93); +x_96 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__1___boxed__const__1; +x_97 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___boxed), 10, 3); +lean_closure_set(x_97, 0, x_95); +lean_closure_set(x_97, 1, x_96); +lean_closure_set(x_97, 2, x_94); +x_98 = x_97; lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_97 = lean_apply_7(x_96, x_9, x_10, x_11, x_12, x_13, x_14, x_86); -if (lean_obj_tag(x_97) == 0) +x_99 = lean_apply_7(x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_88); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_98; lean_object* x_99; uint8_t x_100; -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec(x_97); -x_100 = lean_nat_dec_lt(x_67, x_57); -if (x_100 == 0) +lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = lean_nat_dec_lt(x_67, x_57); +if (x_102 == 0) { lean_dec(x_57); lean_dec(x_41); if (x_68 == 0) { -lean_object* x_101; -lean_dec(x_66); -x_101 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_87, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -return x_101; -} -else -{ -uint8_t x_102; -x_102 = lean_nat_dec_le(x_66, x_66); -if (x_102 == 0) -{ lean_object* x_103; lean_dec(x_66); -x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_87, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); +x_103 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); return x_103; } else { -size_t x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_usize_of_nat(x_66); +uint8_t x_104; +x_104 = lean_nat_dec_le(x_66, x_66); +if (x_104 == 0) +{ +lean_object* x_105; lean_dec(x_66); -x_105 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_88, x_104, x_87); -x_106 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_105, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -return x_106; -} -} +x_105 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); +return x_105; } else { -uint8_t x_107; -x_107 = lean_nat_dec_le(x_57, x_57); -if (x_107 == 0) -{ -lean_dec(x_57); -lean_dec(x_41); -if (x_68 == 0) -{ -lean_object* x_108; +size_t x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_usize_of_nat(x_66); lean_dec(x_66); -x_108 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_87, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); +x_107 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_90, x_106, x_89); +x_108 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_107, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); return x_108; } +} +} else { uint8_t x_109; -x_109 = lean_nat_dec_le(x_66, x_66); +x_109 = lean_nat_dec_le(x_57, x_57); if (x_109 == 0) { +lean_dec(x_57); +lean_dec(x_41); +if (x_68 == 0) +{ lean_object* x_110; lean_dec(x_66); -x_110 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_87, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); +x_110 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); return x_110; } else { -size_t x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_usize_of_nat(x_66); +uint8_t x_111; +x_111 = lean_nat_dec_le(x_66, x_66); +if (x_111 == 0) +{ +lean_object* x_112; lean_dec(x_66); -x_112 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_88, x_111, x_87); -x_113 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_112, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -return x_113; +x_112 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_89, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); +return x_112; +} +else +{ +size_t x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_usize_of_nat(x_66); +lean_dec(x_66); +x_114 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_90, x_113, x_89); +x_115 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_114, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); +return x_115; } } } else { -size_t x_114; lean_object* x_115; -x_114 = lean_usize_of_nat(x_57); +size_t x_116; lean_object* x_117; +x_116 = lean_usize_of_nat(x_57); lean_dec(x_57); -x_115 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_41, x_88, x_114, x_87); +x_117 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__6(x_41, x_90, x_116, x_89); lean_dec(x_41); if (x_68 == 0) { -lean_object* x_116; -lean_dec(x_66); -x_116 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_115, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -return x_116; -} -else -{ -uint8_t x_117; -x_117 = lean_nat_dec_le(x_66, x_66); -if (x_117 == 0) -{ lean_object* x_118; lean_dec(x_66); -x_118 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_115, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); +x_118 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_117, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); return x_118; } else { -size_t x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_usize_of_nat(x_66); +uint8_t x_119; +x_119 = lean_nat_dec_le(x_66, x_66); +if (x_119 == 0) +{ +lean_object* x_120; lean_dec(x_66); -x_120 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_88, x_119, x_115); -x_121 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_120, x_98, x_9, x_10, x_11, x_12, x_13, x_14, x_99); -return x_121; +x_120 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_117, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); +return x_120; +} +else +{ +size_t x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_usize_of_nat(x_66); +lean_dec(x_66); +x_122 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__5(x_4, x_90, x_121, x_117); +x_123 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_addDefaults(x_122, x_100, x_9, x_10, x_11, x_12, x_13, x_14, x_101); +return x_123; } } } @@ -18262,8 +18690,8 @@ return x_121; } else { -uint8_t x_122; -lean_dec(x_87); +uint8_t x_124; +lean_dec(x_89); lean_dec(x_66); lean_dec(x_57); lean_dec(x_41); @@ -18273,30 +18701,30 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_122 = !lean_is_exclusive(x_97); -if (x_122 == 0) +x_124 = !lean_is_exclusive(x_99); +if (x_124 == 0) { -return x_97; +return x_99; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_97, 0); -x_124 = lean_ctor_get(x_97, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_97); -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; +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_99, 0); +x_126 = lean_ctor_get(x_99, 1); +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_99); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_125); +lean_ctor_set(x_127, 1, x_126); +return x_127; } } } } else { -uint8_t x_130; +uint8_t x_132; lean_dec(x_66); lean_dec(x_57); lean_dec(x_41); @@ -18307,64 +18735,64 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -x_130 = !lean_is_exclusive(x_85); -if (x_130 == 0) +x_132 = !lean_is_exclusive(x_87); +if (x_132 == 0) +{ +return x_87; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_87, 0); +x_134 = lean_ctor_get(x_87, 1); +lean_inc(x_134); +lean_inc(x_133); +lean_dec(x_87); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +return x_135; +} +} +} +else +{ +uint8_t x_136; +lean_dec(x_82); +lean_dec(x_66); +lean_dec(x_57); +lean_dec(x_41); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +x_136 = !lean_is_exclusive(x_85); +if (x_136 == 0) { return x_85; } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_85, 0); -x_132 = lean_ctor_get(x_85, 1); -lean_inc(x_132); -lean_inc(x_131); +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_85, 0); +x_138 = lean_ctor_get(x_85, 1); +lean_inc(x_138); +lean_inc(x_137); lean_dec(x_85); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set(x_133, 1, x_132); -return x_133; -} -} -} -else -{ -uint8_t x_134; -lean_dec(x_80); -lean_dec(x_66); -lean_dec(x_57); -lean_dec(x_41); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_7); -x_134 = !lean_is_exclusive(x_83); -if (x_134 == 0) -{ -return x_83; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_83, 0); -x_136 = lean_ctor_get(x_83, 1); -lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_83); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -return x_137; +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +return x_139; } } } } else { -uint8_t x_149; +uint8_t x_151; lean_dec(x_66); lean_dec(x_59); lean_dec(x_57); @@ -18377,29 +18805,29 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -x_149 = !lean_is_exclusive(x_75); -if (x_149 == 0) +x_151 = !lean_is_exclusive(x_77); +if (x_151 == 0) { -return x_75; +return x_77; } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_150 = lean_ctor_get(x_75, 0); -x_151 = lean_ctor_get(x_75, 1); -lean_inc(x_151); -lean_inc(x_150); -lean_dec(x_75); -x_152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_152, 0, x_150); -lean_ctor_set(x_152, 1, x_151); -return x_152; +lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_152 = lean_ctor_get(x_77, 0); +x_153 = lean_ctor_get(x_77, 1); +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_77); +x_154 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_153); +return x_154; } } } else { -uint8_t x_153; +uint8_t x_155; lean_dec(x_66); lean_dec(x_59); lean_dec(x_57); @@ -18412,30 +18840,30 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -x_153 = !lean_is_exclusive(x_73); -if (x_153 == 0) +x_155 = !lean_is_exclusive(x_73); +if (x_155 == 0) { return x_73; } else { -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_73, 0); -x_155 = lean_ctor_get(x_73, 1); -lean_inc(x_155); -lean_inc(x_154); +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_73, 0); +x_157 = lean_ctor_get(x_73, 1); +lean_inc(x_157); +lean_inc(x_156); lean_dec(x_73); -x_156 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_156, 0, x_154); -lean_ctor_set(x_156, 1, x_155); -return x_156; +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_156); +lean_ctor_set(x_158, 1, x_157); +return x_158; } } } } else { -uint8_t x_162; +uint8_t x_164; lean_dec(x_59); lean_dec(x_57); lean_dec(x_53); @@ -18448,29 +18876,29 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); -x_162 = !lean_is_exclusive(x_64); -if (x_162 == 0) +x_164 = !lean_is_exclusive(x_64); +if (x_164 == 0) { return x_64; } else { -lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get(x_64, 0); -x_164 = lean_ctor_get(x_64, 1); -lean_inc(x_164); -lean_inc(x_163); +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_64, 0); +x_166 = lean_ctor_get(x_64, 1); +lean_inc(x_166); +lean_inc(x_165); lean_dec(x_64); -x_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; +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 { -uint8_t x_166; +uint8_t x_168; lean_dec(x_61); lean_dec(x_59); lean_dec(x_57); @@ -18484,29 +18912,29 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); -x_166 = !lean_is_exclusive(x_62); -if (x_166 == 0) +x_168 = !lean_is_exclusive(x_62); +if (x_168 == 0) { return x_62; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_62, 0); -x_168 = lean_ctor_get(x_62, 1); -lean_inc(x_168); -lean_inc(x_167); +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_62, 0); +x_170 = lean_ctor_get(x_62, 1); +lean_inc(x_170); +lean_inc(x_169); lean_dec(x_62); -x_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; +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_170); +return x_171; } } } else { -uint8_t x_170; +uint8_t x_172; lean_dec(x_43); lean_dec(x_41); lean_dec(x_40); @@ -18518,29 +18946,29 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); -x_170 = !lean_is_exclusive(x_50); -if (x_170 == 0) +x_172 = !lean_is_exclusive(x_50); +if (x_172 == 0) { return x_50; } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_171 = lean_ctor_get(x_50, 0); -x_172 = lean_ctor_get(x_50, 1); -lean_inc(x_172); -lean_inc(x_171); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_50, 0); +x_174 = lean_ctor_get(x_50, 1); +lean_inc(x_174); +lean_inc(x_173); lean_dec(x_50); -x_173 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_173, 0, x_171); -lean_ctor_set(x_173, 1, x_172); -return x_173; +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_173); +lean_ctor_set(x_175, 1, x_174); +return x_175; } } } else { -uint8_t x_174; +uint8_t x_176; lean_dec(x_43); lean_dec(x_41); lean_dec(x_40); @@ -18552,29 +18980,29 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); -x_174 = !lean_is_exclusive(x_47); -if (x_174 == 0) +x_176 = !lean_is_exclusive(x_47); +if (x_176 == 0) { return x_47; } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_175 = lean_ctor_get(x_47, 0); -x_176 = lean_ctor_get(x_47, 1); -lean_inc(x_176); -lean_inc(x_175); +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_47, 0); +x_178 = lean_ctor_get(x_47, 1); +lean_inc(x_178); +lean_inc(x_177); lean_dec(x_47); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_175); -lean_ctor_set(x_177, 1, x_176); -return x_177; +x_179 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_179, 0, x_177); +lean_ctor_set(x_179, 1, x_178); +return x_179; } } } else { -uint8_t x_178; +uint8_t x_180; lean_dec(x_41); lean_dec(x_40); lean_dec(x_14); @@ -18586,30 +19014,30 @@ lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); lean_dec(x_1); -x_178 = !lean_is_exclusive(x_42); -if (x_178 == 0) +x_180 = !lean_is_exclusive(x_42); +if (x_180 == 0) { return x_42; } else { -lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_179 = lean_ctor_get(x_42, 0); -x_180 = lean_ctor_get(x_42, 1); -lean_inc(x_180); -lean_inc(x_179); +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_42, 0); +x_182 = lean_ctor_get(x_42, 1); +lean_inc(x_182); +lean_inc(x_181); lean_dec(x_42); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_179); -lean_ctor_set(x_181, 1, x_180); -return x_181; +x_183 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_183, 0, x_181); +lean_ctor_set(x_183, 1, x_182); +return x_183; } } } } else { -uint8_t x_182; +uint8_t x_184; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -18620,23 +19048,23 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_182 = !lean_is_exclusive(x_16); -if (x_182 == 0) +x_184 = !lean_is_exclusive(x_16); +if (x_184 == 0) { return x_16; } else { -lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_183 = lean_ctor_get(x_16, 0); -x_184 = lean_ctor_get(x_16, 1); -lean_inc(x_184); -lean_inc(x_183); +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_16, 0); +x_186 = lean_ctor_get(x_16, 1); +lean_inc(x_186); +lean_inc(x_185); lean_dec(x_16); -x_185 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_185, 0, x_183); -lean_ctor_set(x_185, 1, x_184); -return x_185; +x_187 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_187, 0, x_185); +lean_ctor_set(x_187, 1, x_186); +return x_187; } } } @@ -22938,7 +23366,7 @@ lean_dec(x_8); return x_15; } } -lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5516_(lean_object* x_1) { +lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5612_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -22997,6 +23425,10 @@ res = initialize_Lean_Elab_Binders(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Command_instInhabitedStructFieldKind = _init_l_Lean_Elab_Command_instInhabitedStructFieldKind(); +l_Lean_Elab_Command_instBEqStructFieldKind___closed__1 = _init_l_Lean_Elab_Command_instBEqStructFieldKind___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_instBEqStructFieldKind___closed__1); +l_Lean_Elab_Command_instBEqStructFieldKind = _init_l_Lean_Elab_Command_instBEqStructFieldKind(); +lean_mark_persistent(l_Lean_Elab_Command_instBEqStructFieldKind); l_Lean_Elab_Command_StructFieldInfo_inferMod___default = _init_l_Lean_Elab_Command_StructFieldInfo_inferMod___default(); l_Lean_Elab_Command_StructFieldInfo_value_x3f___default = _init_l_Lean_Elab_Command_StructFieldInfo_value_x3f___default(); lean_mark_persistent(l_Lean_Elab_Command_StructFieldInfo_value_x3f___default); @@ -23426,7 +23858,7 @@ l_Lean_Elab_Command_elabStructure___closed__9 = _init_l_Lean_Elab_Command_elabSt lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__9); l_Lean_Elab_Command_elabStructure___closed__10 = _init_l_Lean_Elab_Command_elabStructure___closed__10(); lean_mark_persistent(l_Lean_Elab_Command_elabStructure___closed__10); -res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5516_(lean_io_mk_world()); +res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_Structure___hyg_5612_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c b/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c index 3eb23f0702..d3ee136e9b 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BuiltinTactic.c @@ -23,12 +23,14 @@ size_t l_USize_add(size_t, size_t); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight___closed__4; lean_object* l_Lean_pushScope___at_Lean_Elab_Tactic_evalOpen___spec__1(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_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___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*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1___rarg___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption___closed__1; lean_object* lean_erase_macro_scopes(lean_object*); lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntroMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Tactic_evalOpen___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__5; @@ -36,6 +38,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__2; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__20; uint8_t l_Array_qsort_sort___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_sortFVarIds___spec__1___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___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_Lean_Elab_Tactic_evalRotateRight(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Tactic_expandTacticMacroFns_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -49,9 +52,7 @@ lean_object* l_Lean_Elab_Tactic_evalTacticSeqBracketed___lambda__3___boxed(lean_ static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__10; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__32; lean_object* l_Lean_Elab_Tactic_evalSkip___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_Tactic_evalOpen___spec__15(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20___boxed(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_List_findM_x3f___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f___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*); uint8_t l_USize_decEq(size_t, size_t); @@ -75,16 +76,17 @@ lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Tactic_elabSetOption__ static lean_object* l_Lean_Elab_Tactic_evalCase___closed__6; lean_object* l_Lean_Elab_Tactic_evalClear(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_Tactic_elabSetOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__19(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__23; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__19___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__24___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_throwError___at_Lean_Elab_Tactic_evalOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__14; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__5; lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Tactic_adaptExpander___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstCore___spec__2(lean_object*); lean_object* l_Lean_Elab_Tactic_evalUnknown(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__22(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__43; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__5; static lean_object* l_Lean_Elab_Tactic_evalCase___closed__1; @@ -104,8 +106,8 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction___closed__2; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption___closed__3; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__36; -lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___spec__8(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_sortFVarIds_match__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__5; @@ -120,6 +122,7 @@ static lean_object* l_Lean_Elab_Tactic_evalCase___closed__5; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__35; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__3; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___spec__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalCase___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase___closed__2; lean_object* lean_array_push(lean_object*, lean_object*); @@ -129,19 +132,18 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__18( lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction___closed__4; lean_object* l_List_rotateLeft___rarg(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withMainContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___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*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight(lean_object*); lean_object* l_Lean_Elab_Tactic_evalFocus___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__8; +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__12(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_Tactic_evalDone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__4; lean_object* l_Lean_Elab_Tactic_elabSetOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__11___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__16; lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getIntrosSize___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft___closed__4; @@ -152,16 +154,17 @@ lean_object* l_Lean_Elab_Tactic_evalTraceState___rarg(lean_object*, lean_object* lean_object* l_Lean_Elab_Tactic_evalContradiction___boxed(lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__6; -uint8_t l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(uint8_t, uint8_t); lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_evalManyTacticOptSemi___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_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticSeqBracketed___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalContradiction___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_getMainModule___rarg(lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch___closed__1; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSetOption___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___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_List_forIn_loop___at_Lean_Elab_Tactic_evalAllGoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___lambda__1(lean_object*, 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*); @@ -189,7 +192,6 @@ lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalSeq1___spec__1___b static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice___closed__3; lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f___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___regBuiltin_Lean_Elab_Tactic_evalAssumption(lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice___closed__5; static lean_object* l_Lean_Elab_Tactic_evalSubst___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro___closed__2; @@ -205,9 +207,11 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip___closed__1; lean_object* l_Lean_Elab_Tactic_evalContradiction___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__1; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__4; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalOpen___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__3; static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -216,6 +220,7 @@ lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, l lean_object* l_Lean_Elab_Term_expandMatchAltsIntoMatchTactic___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg___closed__1; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__15; +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__2; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__18; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__4; lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -245,17 +250,20 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__11; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_elabSetOption___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__4; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__46; lean_object* l_List_foldl___at_Array_appendList___spec__1___rarg(lean_object*, lean_object*); +lean_object* l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___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*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*); lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__3; lean_object* l_Lean_Elab_Tactic_evalIntro_introStep_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withTacticInfoContext___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_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9(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*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__2; +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__1; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip(lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); @@ -269,9 +277,7 @@ lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getI lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___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_Tactic_evalDone___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__1; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_clear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14___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___regBuiltin_Lean_Elab_Tactic_evalDone(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus___closed__2; lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -279,6 +285,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice___closed__4; lean_object* l_Lean_ScopedEnvExtension_pushScope___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFirst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___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_Tactic_getGoals___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSetOption___spec__3___closed__3; static lean_object* l_Lean_Elab_Tactic_evalAllGoals___closed__1; @@ -290,9 +297,9 @@ lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_closeUsingOrAdmit___spec__3(l lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___closed__1; -lean_object* l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__2; lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Basic_0__Lean_Elab_Tactic_evalTacticUsing_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__2; lean_object* l_Lean_Syntax_getId(lean_object*); @@ -301,6 +308,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_elabSetOption___closed__4; lean_object* l_Lean_Elab_Tactic_evalCase___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_Meta_revert(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoice___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_resolveGlobalName___at_Lean_Elab_Tactic_evalOpen___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__26; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntros___closed__2; @@ -311,16 +319,18 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalChoice___closed__2; lean_object* l_Lean_Elab_Tactic_getNameOfIdent_x27(lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft___closed__2; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__16___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_Tactic_evalParen___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__1; lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__8; +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition_loop___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_sortFVarIds___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__5; uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSeq1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__9; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__15___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_Tactic_evalTacticSeq___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_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus___closed__4; @@ -329,6 +339,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticSeq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__5; lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Tactic_withTacticInfoContext___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_expr_dbg_to_string(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed(lean_object*); lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___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_Tactic_evalChoice(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -337,7 +348,6 @@ lean_object* l_Lean_Elab_Tactic_evalTraceState(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__1; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__2; static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__6; -lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Meta_contradiction(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -349,12 +359,13 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__44; lean_object* l_Array_qsort_sort___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_sortFVarIds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalFirst___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__14___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_Tactic_evalAllGoals___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_MessageData_hasSyntheticSorry(lean_object*); lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getIntrosSize_match__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction___closed__5; static lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__2; +lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSeq1___closed__3; lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip___closed__5; @@ -367,17 +378,19 @@ lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1(lean_object*, static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalUnknown___closed__4; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__24(lean_object*, size_t, size_t, 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_Std_Range_forIn_loop___at_Lean_Elab_Tactic_evalCase___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst(lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft___closed__5; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Tactic_elabSetOption___spec__1___closed__2; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalTacticAux___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_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalClear___closed__3; lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__19___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_LocalDecl_fvarId(lean_object*); lean_object* l_Lean_Elab_Tactic_evalAssumption___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_evalFirst_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -387,6 +400,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq1Indented___clo lean_object* l_Lean_Elab_Tactic_evalRevert(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_elabSetOption___at_Lean_Elab_Tactic_elabSetOption___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_Tactic_evalFocus(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__3; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__11; @@ -397,9 +411,10 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalClear___spec__1_ static lean_object* l_Lean_Elab_elabSetOption___at_Lean_Elab_Tactic_elabSetOption___spec__1___closed__1; lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntros___closed__2; -lean_object* l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__17___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_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__16(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalOpen(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSubst___closed__1; lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -420,7 +435,6 @@ static lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess___closed__1; lean_object* l_Lean_Elab_Tactic_evalRotateRight___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateRight___closed__1; lean_object* l_Lean_Syntax_getNumArgs(lean_object*); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__3; lean_object* l_Lean_Elab_Tactic_evalParen(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__4; lean_object* l_Lean_Elab_Tactic_evalCase_match__2___rarg(lean_object*, lean_object*); @@ -428,6 +442,7 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFocus(lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__1; lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_sortFVarIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalOpen___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalSubst___closed__2; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__37; static lean_object* l_Lean_Elab_Tactic_evalRevert___closed__1; @@ -470,7 +485,6 @@ lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_evalIntro___ lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getIntrosSize(lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__9; lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess(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_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__16(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_Tactic_evalIntros_match__1(lean_object*); lean_object* l_Lean_Meta_isExprMVarAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalCase___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*); @@ -492,11 +506,11 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Tactic_BuiltinTa static lean_object* l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__17___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_instInhabitedName; -static lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__15___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_Tactic_evalIntro_introStep(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__10; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__1; lean_object* l_Lean_Elab_Tactic_evalAssumption___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -510,7 +524,7 @@ lean_object* l_Lean_Elab_Tactic_evalIntro_introStep___lambda__1(lean_object*, le static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRotateLeft___closed__3; static lean_object* l_Lean_Elab_Tactic_evalIntros___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__1; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21___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_Array_qsort_sort___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_sortFVarIds___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__4; @@ -522,9 +536,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals___closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalTraceState___boxed(lean_object*); lean_object* l_Lean_Elab_Tactic_evalDone(lean_object*); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__2; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntro(lean_object*); -lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_getOptRotation(lean_object*); uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__12; @@ -532,6 +544,7 @@ static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__19; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch(lean_object*); lean_object* l___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalFirst___spec__1___rarg(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__14(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAllGoals___closed__5; lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; @@ -547,16 +560,14 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction___closed__ lean_object* l_Lean_Elab_Tactic_evalSubst(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mod(lean_object*, lean_object*); lean_object* l_Lean_LocalContext_setUserName(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___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*); -static lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__1; static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__14; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalOpen___closed__3; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__16___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_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f_match__1(lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_scopedEnvExtensionsRef; lean_object* l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___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*); +uint8_t l_List_isEmpty___rarg(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTraceState___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalAssumption___closed__4; lean_object* l_List_erase___at_Lean_Elab_Tactic_evalCase___spec__1___boxed(lean_object*, lean_object*); @@ -565,12 +576,17 @@ lean_object* l_Lean_Elab_Tactic_evalIntro_introStep_match__1(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFirst___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSkip___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__2; -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10(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_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13___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_mapMUnsafe_map___at_Lean_Elab_Tactic_evalIntros___spec__1(size_t, size_t, lean_object*); +lean_object* l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9(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_pushInfoTree___at_Lean_Elab_Tactic_elabSetOption___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* l_Lean_pushScope___at_Lean_Elab_Tactic_evalOpen___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3; lean_object* l_Lean_Elab_Tactic_evalIntros_match__1___rarg(lean_object*, lean_object*); +lean_object* l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__20___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_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntros___closed__3; lean_object* l_Lean_Meta_setMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -579,8 +595,8 @@ lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCase(lean_object*); lean_object* l_Lean_Elab_Tactic_withCaseRef___at_Lean_Elab_Tactic_evalCase___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRevert___closed__3; lean_object* l_Lean_Elab_Tactic_evalCase_match__2(lean_object*); -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalRevert___closed__2; +lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__25; lean_object* l_Lean_Elab_Tactic_evalIntros___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeq___closed__1; @@ -591,21 +607,18 @@ lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Tactic_elabSetOption___spec lean_object* l_Lean_Elab_pushInfoLeaf___at_Lean_Elab_Tactic_elabSetOption___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalIntroMatch___closed__3; lean_object* l_List_findM_x3f___at___private_Lean_Elab_Tactic_BuiltinTactic_0__Lean_Elab_Tactic_findTag_x3f___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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__13___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_ScopedEnvExtension_activateScoped___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalFailIfSuccess___closed__5; lean_object* l___regBuiltin_Lean_Elab_Tactic_evalContradiction(lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalChoiceAux___spec__1___rarg(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen(lean_object*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalFirst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_evalIntro___closed__6; lean_object* l_Lean_Elab_elabSetOption_setOption___at_Lean_Elab_Tactic_elabSetOption___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalSeq1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDone___closed__7; lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___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_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__17(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_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalTacticSeqBracketed___closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_forEachVar___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_forEachVar___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2914,921 +2927,126 @@ return x_54; } } } -static lean_object* _init_l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1() { +lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_1; -x_1 = lean_mk_string(""); -return x_1; -} -} -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9(lean_object* x_1, lean_object* x_2, uint8_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, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; uint8_t x_295; uint8_t x_296; -x_295 = 2; -x_296 = l___private_Lean_Message_0__Lean_beqMessageSeverity____x40_Lean_Message___hyg_102_(x_3, x_295); -if (x_296 == 0) -{ -lean_object* x_297; -x_297 = lean_box(0); -x_14 = x_297; -goto block_294; -} -else -{ -uint8_t x_298; -lean_inc(x_2); -x_298 = l_Lean_MessageData_hasSyntheticSorry(x_2); -if (x_298 == 0) -{ -lean_object* x_299; -x_299 = lean_box(0); -x_14 = x_299; -goto block_294; -} -else -{ -lean_object* x_300; lean_object* x_301; -lean_dec(x_2); -x_300 = lean_box(0); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_300); -lean_ctor_set(x_301, 1, x_13); -return x_301; -} -} -block_294: -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -lean_dec(x_14); -x_15 = lean_ctor_get(x_11, 3); -x_16 = l_Lean_replaceRef(x_1, x_15); -x_17 = 0; -x_18 = l_Lean_Syntax_getPos_x3f(x_16, x_17); -x_19 = l_Lean_Syntax_getTailPos_x3f(x_16, x_17); +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; uint8_t x_25; +x_12 = lean_st_ref_get(x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_st_ref_get(x_10, x_14); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); lean_dec(x_16); -if (lean_obj_tag(x_18) == 0) -{ -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_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; uint8_t x_39; -x_20 = lean_ctor_get(x_7, 0); -x_21 = lean_ctor_get(x_7, 1); -x_22 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Lean_FileMap_toPosition(x_21, x_25); -lean_inc(x_26); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_26); -x_28 = lean_ctor_get(x_11, 4); -x_29 = lean_ctor_get(x_11, 5); -lean_inc(x_29); -lean_inc(x_28); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_23); -x_32 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; +x_18 = lean_st_ref_get(x_2, x_17); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -x_33 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_33, 0, x_20); -lean_ctor_set(x_33, 1, x_26); -lean_ctor_set(x_33, 2, x_27); -lean_ctor_set(x_33, 3, x_32); -lean_ctor_set(x_33, 4, x_31); -lean_ctor_set_uint8(x_33, sizeof(void*)*5, x_3); -x_34 = lean_st_ref_get(x_12, x_24); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec(x_34); -x_36 = lean_st_ref_take(x_8, x_35); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = !lean_is_exclusive(x_37); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_ctor_get(x_37, 3); -x_41 = l_Std_PersistentArray_push___rarg(x_40, x_33); -lean_ctor_set(x_37, 3, x_41); -x_42 = lean_st_ref_set(x_8, x_37, x_38); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; -x_44 = lean_ctor_get(x_42, 0); -lean_dec(x_44); -x_45 = lean_box(0); -lean_ctor_set(x_42, 0, x_45); -return x_42; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_42, 1); -lean_inc(x_46); -lean_dec(x_42); -x_47 = lean_box(0); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -} -else -{ -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; -x_49 = lean_ctor_get(x_37, 0); -x_50 = lean_ctor_get(x_37, 1); -x_51 = lean_ctor_get(x_37, 2); -x_52 = lean_ctor_get(x_37, 3); -x_53 = lean_ctor_get(x_37, 4); -x_54 = lean_ctor_get(x_37, 5); -lean_inc(x_54); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_37); -x_55 = l_Std_PersistentArray_push___rarg(x_52, x_33); -x_56 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_56, 0, x_49); -lean_ctor_set(x_56, 1, x_50); -lean_ctor_set(x_56, 2, x_51); -lean_ctor_set(x_56, 3, x_55); -lean_ctor_set(x_56, 4, x_53); -lean_ctor_set(x_56, 5, x_54); -x_57 = lean_st_ref_set(x_8, x_56, x_38); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_59 = x_57; -} else { - lean_dec_ref(x_57); - x_59 = lean_box(0); -} -x_60 = lean_box(0); -if (lean_is_scalar(x_59)) { - x_61 = lean_alloc_ctor(0, 2, 0); -} else { - x_61 = x_59; -} -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_58); -return x_61; -} -} -else -{ -uint8_t x_62; -x_62 = !lean_is_exclusive(x_19); -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; 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; uint8_t x_83; -x_63 = lean_ctor_get(x_19, 0); -x_64 = lean_ctor_get(x_7, 0); -x_65 = lean_ctor_get(x_7, 1); -x_66 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_unsigned_to_nat(0u); -x_70 = l_Lean_FileMap_toPosition(x_65, x_69); -x_71 = l_Lean_FileMap_toPosition(x_65, x_63); -lean_dec(x_63); -lean_ctor_set(x_19, 0, x_71); -x_72 = lean_ctor_get(x_11, 4); -x_73 = lean_ctor_get(x_11, 5); -lean_inc(x_73); -lean_inc(x_72); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_67); -x_76 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; -lean_inc(x_64); -x_77 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_77, 0, x_64); -lean_ctor_set(x_77, 1, x_70); -lean_ctor_set(x_77, 2, x_19); -lean_ctor_set(x_77, 3, x_76); -lean_ctor_set(x_77, 4, x_75); -lean_ctor_set_uint8(x_77, sizeof(void*)*5, x_3); -x_78 = lean_st_ref_get(x_12, x_68); -x_79 = lean_ctor_get(x_78, 1); -lean_inc(x_79); -lean_dec(x_78); -x_80 = lean_st_ref_take(x_8, x_79); -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = !lean_is_exclusive(x_81); -if (x_83 == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_84 = lean_ctor_get(x_81, 3); -x_85 = l_Std_PersistentArray_push___rarg(x_84, x_77); -lean_ctor_set(x_81, 3, x_85); -x_86 = lean_st_ref_set(x_8, x_81, x_82); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; -x_88 = lean_ctor_get(x_86, 0); -lean_dec(x_88); -x_89 = lean_box(0); -lean_ctor_set(x_86, 0, x_89); -return x_86; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_86, 1); -lean_inc(x_90); -lean_dec(x_86); -x_91 = lean_box(0); -x_92 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_90); -return x_92; -} -} -else -{ -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_93 = lean_ctor_get(x_81, 0); -x_94 = lean_ctor_get(x_81, 1); -x_95 = lean_ctor_get(x_81, 2); -x_96 = lean_ctor_get(x_81, 3); -x_97 = lean_ctor_get(x_81, 4); -x_98 = lean_ctor_get(x_81, 5); -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_dec(x_81); -x_99 = l_Std_PersistentArray_push___rarg(x_96, x_77); -x_100 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_100, 0, x_93); -lean_ctor_set(x_100, 1, x_94); -lean_ctor_set(x_100, 2, x_95); -lean_ctor_set(x_100, 3, x_99); -lean_ctor_set(x_100, 4, x_97); -lean_ctor_set(x_100, 5, x_98); -x_101 = lean_st_ref_set(x_8, x_100, x_82); -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; -} -} -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; 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; -x_106 = lean_ctor_get(x_19, 0); -lean_inc(x_106); -lean_dec(x_19); -x_107 = lean_ctor_get(x_7, 0); -x_108 = lean_ctor_get(x_7, 1); -x_109 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_112 = lean_unsigned_to_nat(0u); -x_113 = l_Lean_FileMap_toPosition(x_108, x_112); -x_114 = l_Lean_FileMap_toPosition(x_108, x_106); -lean_dec(x_106); -x_115 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_115, 0, x_114); -x_116 = lean_ctor_get(x_11, 4); -x_117 = lean_ctor_get(x_11, 5); -lean_inc(x_117); -lean_inc(x_116); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_116); -lean_ctor_set(x_118, 1, x_117); -x_119 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_110); -x_120 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; -lean_inc(x_107); -x_121 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_121, 0, x_107); -lean_ctor_set(x_121, 1, x_113); -lean_ctor_set(x_121, 2, x_115); -lean_ctor_set(x_121, 3, x_120); -lean_ctor_set(x_121, 4, x_119); -lean_ctor_set_uint8(x_121, sizeof(void*)*5, x_3); -x_122 = lean_st_ref_get(x_12, x_111); -x_123 = lean_ctor_get(x_122, 1); -lean_inc(x_123); -lean_dec(x_122); -x_124 = lean_st_ref_take(x_8, x_123); -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec(x_124); -x_127 = lean_ctor_get(x_125, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_125, 1); -lean_inc(x_128); -x_129 = lean_ctor_get(x_125, 2); -lean_inc(x_129); -x_130 = lean_ctor_get(x_125, 3); -lean_inc(x_130); -x_131 = lean_ctor_get(x_125, 4); -lean_inc(x_131); -x_132 = lean_ctor_get(x_125, 5); -lean_inc(x_132); -if (lean_is_exclusive(x_125)) { - lean_ctor_release(x_125, 0); - lean_ctor_release(x_125, 1); - lean_ctor_release(x_125, 2); - lean_ctor_release(x_125, 3); - lean_ctor_release(x_125, 4); - lean_ctor_release(x_125, 5); - x_133 = x_125; -} else { - lean_dec_ref(x_125); - x_133 = lean_box(0); -} -x_134 = l_Std_PersistentArray_push___rarg(x_130, x_121); -if (lean_is_scalar(x_133)) { - x_135 = lean_alloc_ctor(0, 6, 0); -} else { - x_135 = x_133; -} -lean_ctor_set(x_135, 0, x_127); -lean_ctor_set(x_135, 1, x_128); -lean_ctor_set(x_135, 2, x_129); -lean_ctor_set(x_135, 3, x_134); -lean_ctor_set(x_135, 4, x_131); -lean_ctor_set(x_135, 5, x_132); -x_136 = lean_st_ref_set(x_8, x_135, x_126); -x_137 = lean_ctor_get(x_136, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_138 = x_136; -} else { - lean_dec_ref(x_136); - x_138 = lean_box(0); -} -x_139 = lean_box(0); -if (lean_is_scalar(x_138)) { - x_140 = lean_alloc_ctor(0, 2, 0); -} else { - x_140 = x_138; -} -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_137); -return x_140; -} -} -} -else -{ -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_141; -x_141 = !lean_is_exclusive(x_18); -if (x_141 == 0) -{ -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; uint8_t x_160; -x_142 = lean_ctor_get(x_18, 0); -x_143 = lean_ctor_get(x_7, 0); -x_144 = lean_ctor_get(x_7, 1); -x_145 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); -lean_inc(x_147); -lean_dec(x_145); -x_148 = l_Lean_FileMap_toPosition(x_144, x_142); -lean_dec(x_142); -lean_inc(x_148); -lean_ctor_set(x_18, 0, x_148); -x_149 = lean_ctor_get(x_11, 4); -x_150 = lean_ctor_get(x_11, 5); -lean_inc(x_150); -lean_inc(x_149); -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -x_152 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_146); -x_153 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; -lean_inc(x_143); -x_154 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_154, 0, x_143); -lean_ctor_set(x_154, 1, x_148); -lean_ctor_set(x_154, 2, x_18); -lean_ctor_set(x_154, 3, x_153); -lean_ctor_set(x_154, 4, x_152); -lean_ctor_set_uint8(x_154, sizeof(void*)*5, x_3); -x_155 = lean_st_ref_get(x_12, x_147); -x_156 = lean_ctor_get(x_155, 1); -lean_inc(x_156); -lean_dec(x_155); -x_157 = lean_st_ref_take(x_8, x_156); -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); -lean_inc(x_159); -lean_dec(x_157); -x_160 = !lean_is_exclusive(x_158); -if (x_160 == 0) -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; -x_161 = lean_ctor_get(x_158, 3); -x_162 = l_Std_PersistentArray_push___rarg(x_161, x_154); -lean_ctor_set(x_158, 3, x_162); -x_163 = lean_st_ref_set(x_8, x_158, x_159); -x_164 = !lean_is_exclusive(x_163); -if (x_164 == 0) -{ -lean_object* x_165; lean_object* x_166; -x_165 = lean_ctor_get(x_163, 0); -lean_dec(x_165); -x_166 = lean_box(0); -lean_ctor_set(x_163, 0, x_166); -return x_163; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_163, 1); -lean_inc(x_167); -lean_dec(x_163); -x_168 = lean_box(0); -x_169 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_169, 1, x_167); -return x_169; -} -} -else -{ -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_170 = lean_ctor_get(x_158, 0); -x_171 = lean_ctor_get(x_158, 1); -x_172 = lean_ctor_get(x_158, 2); -x_173 = lean_ctor_get(x_158, 3); -x_174 = lean_ctor_get(x_158, 4); -x_175 = lean_ctor_get(x_158, 5); -lean_inc(x_175); -lean_inc(x_174); -lean_inc(x_173); -lean_inc(x_172); -lean_inc(x_171); -lean_inc(x_170); -lean_dec(x_158); -x_176 = l_Std_PersistentArray_push___rarg(x_173, x_154); -x_177 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_177, 0, x_170); -lean_ctor_set(x_177, 1, x_171); -lean_ctor_set(x_177, 2, x_172); -lean_ctor_set(x_177, 3, x_176); -lean_ctor_set(x_177, 4, x_174); -lean_ctor_set(x_177, 5, x_175); -x_178 = lean_st_ref_set(x_8, x_177, x_159); -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_180 = x_178; -} else { - lean_dec_ref(x_178); - x_180 = lean_box(0); -} -x_181 = lean_box(0); -if (lean_is_scalar(x_180)) { - x_182 = lean_alloc_ctor(0, 2, 0); -} else { - x_182 = x_180; -} -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_179); -return x_182; -} -} -else -{ -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; -x_183 = lean_ctor_get(x_18, 0); -lean_inc(x_183); lean_dec(x_18); -x_184 = lean_ctor_get(x_7, 0); -x_185 = lean_ctor_get(x_7, 1); -x_186 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -lean_dec(x_186); -x_189 = l_Lean_FileMap_toPosition(x_185, x_183); -lean_dec(x_183); -lean_inc(x_189); -x_190 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_190, 0, x_189); -x_191 = lean_ctor_get(x_11, 4); -x_192 = lean_ctor_get(x_11, 5); -lean_inc(x_192); -lean_inc(x_191); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_191); -lean_ctor_set(x_193, 1, x_192); -x_194 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_187); -x_195 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; -lean_inc(x_184); -x_196 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_196, 0, x_184); -lean_ctor_set(x_196, 1, x_189); -lean_ctor_set(x_196, 2, x_190); -lean_ctor_set(x_196, 3, x_195); -lean_ctor_set(x_196, 4, x_194); -lean_ctor_set_uint8(x_196, sizeof(void*)*5, x_3); -x_197 = lean_st_ref_get(x_12, x_188); -x_198 = lean_ctor_get(x_197, 1); -lean_inc(x_198); -lean_dec(x_197); -x_199 = lean_st_ref_take(x_8, x_198); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -lean_dec(x_199); -x_202 = lean_ctor_get(x_200, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_200, 1); -lean_inc(x_203); -x_204 = lean_ctor_get(x_200, 2); -lean_inc(x_204); -x_205 = lean_ctor_get(x_200, 3); -lean_inc(x_205); -x_206 = lean_ctor_get(x_200, 4); -lean_inc(x_206); -x_207 = lean_ctor_get(x_200, 5); -lean_inc(x_207); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - lean_ctor_release(x_200, 1); - lean_ctor_release(x_200, 2); - lean_ctor_release(x_200, 3); - lean_ctor_release(x_200, 4); - lean_ctor_release(x_200, 5); - x_208 = x_200; -} else { - lean_dec_ref(x_200); - x_208 = lean_box(0); -} -x_209 = l_Std_PersistentArray_push___rarg(x_205, x_196); -if (lean_is_scalar(x_208)) { - x_210 = lean_alloc_ctor(0, 6, 0); -} else { - x_210 = x_208; -} -lean_ctor_set(x_210, 0, x_202); -lean_ctor_set(x_210, 1, x_203); -lean_ctor_set(x_210, 2, x_204); -lean_ctor_set(x_210, 3, x_209); -lean_ctor_set(x_210, 4, x_206); -lean_ctor_set(x_210, 5, x_207); -x_211 = lean_st_ref_set(x_8, x_210, x_201); -x_212 = lean_ctor_get(x_211, 1); -lean_inc(x_212); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - x_213 = x_211; -} else { - lean_dec_ref(x_211); - x_213 = lean_box(0); -} -x_214 = lean_box(0); -if (lean_is_scalar(x_213)) { - x_215 = lean_alloc_ctor(0, 2, 0); -} else { - x_215 = x_213; -} -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_212); -return x_215; -} -} -else -{ -lean_object* x_216; uint8_t x_217; -x_216 = lean_ctor_get(x_18, 0); -lean_inc(x_216); -lean_dec(x_18); -x_217 = !lean_is_exclusive(x_19); -if (x_217 == 0) -{ -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; uint8_t x_237; -x_218 = lean_ctor_get(x_19, 0); -x_219 = lean_ctor_get(x_7, 0); -x_220 = lean_ctor_get(x_7, 1); -x_221 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); -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_FileMap_toPosition(x_220, x_216); -lean_dec(x_216); -x_225 = l_Lean_FileMap_toPosition(x_220, x_218); -lean_dec(x_218); -lean_ctor_set(x_19, 0, x_225); -x_226 = lean_ctor_get(x_11, 4); -x_227 = lean_ctor_get(x_11, 5); -lean_inc(x_227); -lean_inc(x_226); -x_228 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_227); -x_229 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_229, 0, x_228); -lean_ctor_set(x_229, 1, x_222); -x_230 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; -lean_inc(x_219); -x_231 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_231, 0, x_219); -lean_ctor_set(x_231, 1, x_224); -lean_ctor_set(x_231, 2, x_19); -lean_ctor_set(x_231, 3, x_230); -lean_ctor_set(x_231, 4, x_229); -lean_ctor_set_uint8(x_231, sizeof(void*)*5, x_3); -x_232 = lean_st_ref_get(x_12, x_223); -x_233 = lean_ctor_get(x_232, 1); -lean_inc(x_233); -lean_dec(x_232); -x_234 = lean_st_ref_take(x_8, x_233); -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -lean_dec(x_234); -x_237 = !lean_is_exclusive(x_235); -if (x_237 == 0) -{ -lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_241; -x_238 = lean_ctor_get(x_235, 3); -x_239 = l_Std_PersistentArray_push___rarg(x_238, x_231); -lean_ctor_set(x_235, 3, x_239); -x_240 = lean_st_ref_set(x_8, x_235, x_236); -x_241 = !lean_is_exclusive(x_240); -if (x_241 == 0) -{ -lean_object* x_242; lean_object* x_243; -x_242 = lean_ctor_get(x_240, 0); -lean_dec(x_242); -x_243 = lean_box(0); -lean_ctor_set(x_240, 0, x_243); -return x_240; -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_240, 1); -lean_inc(x_244); -lean_dec(x_240); -x_245 = lean_box(0); -x_246 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_246, 0, x_245); -lean_ctor_set(x_246, 1, x_244); -return x_246; -} -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; -x_247 = lean_ctor_get(x_235, 0); -x_248 = lean_ctor_get(x_235, 1); -x_249 = lean_ctor_get(x_235, 2); -x_250 = lean_ctor_get(x_235, 3); -x_251 = lean_ctor_get(x_235, 4); -x_252 = lean_ctor_get(x_235, 5); -lean_inc(x_252); -lean_inc(x_251); -lean_inc(x_250); -lean_inc(x_249); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_235); -x_253 = l_Std_PersistentArray_push___rarg(x_250, x_231); -x_254 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_254, 0, x_247); -lean_ctor_set(x_254, 1, x_248); -lean_ctor_set(x_254, 2, x_249); -lean_ctor_set(x_254, 3, x_253); -lean_ctor_set(x_254, 4, x_251); -lean_ctor_set(x_254, 5, x_252); -x_255 = lean_st_ref_set(x_8, x_254, x_236); -x_256 = lean_ctor_get(x_255, 1); -lean_inc(x_256); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - x_257 = x_255; -} else { - lean_dec_ref(x_255); - x_257 = lean_box(0); -} -x_258 = lean_box(0); -if (lean_is_scalar(x_257)) { - x_259 = lean_alloc_ctor(0, 2, 0); -} else { - x_259 = x_257; -} -lean_ctor_set(x_259, 0, x_258); -lean_ctor_set(x_259, 1, x_256); -return x_259; -} -} -else -{ -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_260 = lean_ctor_get(x_19, 0); -lean_inc(x_260); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); lean_dec(x_19); -x_261 = lean_ctor_get(x_7, 0); -x_262 = lean_ctor_get(x_7, 1); -x_263 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_9, x_10, x_11, x_12, x_13); -x_264 = lean_ctor_get(x_263, 0); -lean_inc(x_264); -x_265 = lean_ctor_get(x_263, 1); -lean_inc(x_265); -lean_dec(x_263); -x_266 = l_Lean_FileMap_toPosition(x_262, x_216); -lean_dec(x_216); -x_267 = l_Lean_FileMap_toPosition(x_262, x_260); -lean_dec(x_260); -x_268 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_268, 0, x_267); -x_269 = lean_ctor_get(x_11, 4); -x_270 = lean_ctor_get(x_11, 5); -lean_inc(x_270); -lean_inc(x_269); -x_271 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_271, 0, x_269); -lean_ctor_set(x_271, 1, x_270); -x_272 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_272, 0, x_271); -lean_ctor_set(x_272, 1, x_264); -x_273 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; -lean_inc(x_261); -x_274 = lean_alloc_ctor(0, 5, 1); -lean_ctor_set(x_274, 0, x_261); -lean_ctor_set(x_274, 1, x_266); -lean_ctor_set(x_274, 2, x_268); -lean_ctor_set(x_274, 3, x_273); -lean_ctor_set(x_274, 4, x_272); -lean_ctor_set_uint8(x_274, sizeof(void*)*5, x_3); -x_275 = lean_st_ref_get(x_12, x_265); -x_276 = lean_ctor_get(x_275, 1); -lean_inc(x_276); -lean_dec(x_275); -x_277 = lean_st_ref_take(x_8, x_276); -x_278 = lean_ctor_get(x_277, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_277, 1); -lean_inc(x_279); -lean_dec(x_277); -x_280 = lean_ctor_get(x_278, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_278, 1); -lean_inc(x_281); -x_282 = lean_ctor_get(x_278, 2); -lean_inc(x_282); -x_283 = lean_ctor_get(x_278, 3); -lean_inc(x_283); -x_284 = lean_ctor_get(x_278, 4); -lean_inc(x_284); -x_285 = lean_ctor_get(x_278, 5); -lean_inc(x_285); -if (lean_is_exclusive(x_278)) { - lean_ctor_release(x_278, 0); - lean_ctor_release(x_278, 1); - lean_ctor_release(x_278, 2); - lean_ctor_release(x_278, 3); - lean_ctor_release(x_278, 4); - lean_ctor_release(x_278, 5); - x_286 = x_278; -} else { - lean_dec_ref(x_278); - x_286 = lean_box(0); +x_22 = lean_st_ref_get(x_10, x_20); +x_23 = lean_ctor_get(x_22, 1); +lean_inc(x_23); +lean_dec(x_22); +x_24 = lean_st_ref_get(x_2, x_23); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_24, 0); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_dec(x_26); +x_28 = l_Lean_ResolveName_resolveGlobalName(x_15, x_21, x_27, x_1); +lean_dec(x_21); +lean_ctor_set(x_24, 0, x_28); +return x_24; } -x_287 = l_Std_PersistentArray_push___rarg(x_283, x_274); -if (lean_is_scalar(x_286)) { - x_288 = lean_alloc_ctor(0, 6, 0); -} else { - x_288 = x_286; -} -lean_ctor_set(x_288, 0, x_280); -lean_ctor_set(x_288, 1, x_281); -lean_ctor_set(x_288, 2, x_282); -lean_ctor_set(x_288, 3, x_287); -lean_ctor_set(x_288, 4, x_284); -lean_ctor_set(x_288, 5, x_285); -x_289 = lean_st_ref_set(x_8, x_288, x_279); -x_290 = lean_ctor_get(x_289, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_289)) { - lean_ctor_release(x_289, 0); - lean_ctor_release(x_289, 1); - x_291 = x_289; -} else { - lean_dec_ref(x_289); - x_291 = lean_box(0); -} -x_292 = lean_box(0); -if (lean_is_scalar(x_291)) { - x_293 = lean_alloc_ctor(0, 2, 0); -} else { - x_293 = x_291; -} -lean_ctor_set(x_293, 0, x_292); -lean_ctor_set(x_293, 1, x_290); -return x_293; +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_24, 0); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_24); +x_31 = lean_ctor_get(x_29, 0); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Lean_ResolveName_resolveGlobalName(x_15, x_21, x_31, x_1); +lean_dec(x_21); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_30); +return x_33; } } } -} -} -} -lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_11, lean_object* x_12) { +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__12(lean_object* x_1, lean_object* x_2, 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_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 3); -x_14 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9(x_13, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_14; +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_9, 3); +x_13 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_7, x_8, x_9, x_10, x_11); +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); +lean_inc(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_12); +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); +lean_inc(x_12); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_12); +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; } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__1() { +} +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("unknown declaration '"); +x_1 = lean_mk_string("unknown constant '"); return x_1; } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__2() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__1; +x_1 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__3() { +static lean_object* _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -3837,26 +3055,393 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___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) { +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___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, 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; uint8_t x_17; lean_object* x_18; -x_12 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_12, 0, x_1); -x_13 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__2; -x_14 = lean_alloc_ctor(10, 2, 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; +x_12 = lean_box(0); +x_13 = l_Lean_mkConst(x_1, x_12); +x_14 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_14, 0, x_13); +x_15 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___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___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__3; +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_throwError___at_Lean_Elab_Tactic_evalOpen___spec__12(x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_19; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___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; +x_13 = l_List_map___at_Lean_resolveGlobalConstCore___spec__2(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__3; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -x_17 = 2; -x_18 = l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___spec__8(x_16, x_17, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_18; +return x_14; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__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, 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; uint8_t x_17; +lean_inc(x_1); +x_12 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalOpen___spec__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_box(0); +x_16 = l_List_filterAux___at_Lean_resolveGlobalConstCore___spec__1(x_13, x_15); +x_17 = l_List_isEmpty___rarg(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_1); +x_18 = lean_box(0); +x_19 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___lambda__1(x_16, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_19; +} +else +{ +lean_object* x_20; uint8_t x_21; +lean_dec(x_16); +x_20 = l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) +{ +return x_20; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_20); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ambiguous identifier '"); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("', possible interpretations: "); +return x_1; +} +} +static lean_object* _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__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, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +lean_inc(x_1); +x_12 = l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9(x_1, x_2, x_3, x_4, 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; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(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; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_box(0); +x_16 = l_Lean_mkConst(x_1, x_15); +x_17 = lean_expr_dbg_to_string(x_16); +lean_dec(x_16); +x_18 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__1; +x_19 = lean_string_append(x_18, x_17); +lean_dec(x_17); +x_20 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__2; +x_21 = lean_string_append(x_19, x_20); +x_22 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_15, x_13); +x_23 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_22); +x_24 = lean_string_append(x_21, x_23); +lean_dec(x_23); +x_25 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3; +x_26 = lean_string_append(x_24, x_25); +x_27 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_27); +x_29 = l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__6(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +return x_29; +} +else +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_12); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_12, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_13, 0); +lean_inc(x_33); +lean_dec(x_13); +lean_ctor_set(x_12, 0, x_33); +return x_12; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_12, 1); +lean_inc(x_34); +lean_dec(x_12); +x_35 = lean_ctor_get(x_13, 0); +lean_inc(x_35); +lean_dec(x_13); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +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; 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_dec(x_30); +x_37 = lean_ctor_get(x_12, 1); +lean_inc(x_37); +lean_dec(x_12); +x_38 = lean_box(0); +x_39 = l_Lean_mkConst(x_1, x_38); +x_40 = lean_expr_dbg_to_string(x_39); +lean_dec(x_39); +x_41 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__1; +x_42 = lean_string_append(x_41, x_40); +lean_dec(x_40); +x_43 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__2; +x_44 = lean_string_append(x_42, x_43); +x_45 = l_List_map___at_Lean_resolveGlobalConstNoOverloadCore___spec__1(x_38, x_13); +x_46 = l_List_toString___at_Lean_resolveGlobalConstNoOverloadCore___spec__2(x_45); +x_47 = lean_string_append(x_44, x_46); +lean_dec(x_46); +x_48 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3; +x_49 = lean_string_append(x_47, x_48); +x_50 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_51, 0, x_50); +x_52 = l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__6(x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_37); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_12); +if (x_53 == 0) +{ +return x_12; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_12, 0); +x_55 = lean_ctor_get(x_12, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_12); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = l_Lean_Syntax_getId(x_2); +x_14 = l_Lean_Name_append(x_1, x_13); +x_15 = lean_st_ref_get(x_11, x_12); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_ctor_get(x_17, 0); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Environment_contains(x_19, x_14); +if (x_20 == 0) +{ +uint8_t x_21; +lean_free_object(x_15); +x_21 = !lean_is_exclusive(x_10); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_10, 3); +x_23 = l_Lean_replaceRef(x_2, x_22); +lean_dec(x_22); +lean_ctor_set(x_10, 3, x_23); +x_24 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_18); +lean_dec(x_10); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_25 = lean_ctor_get(x_10, 0); +x_26 = lean_ctor_get(x_10, 1); +x_27 = lean_ctor_get(x_10, 2); +x_28 = lean_ctor_get(x_10, 3); +x_29 = lean_ctor_get(x_10, 4); +x_30 = lean_ctor_get(x_10, 5); +x_31 = lean_ctor_get(x_10, 6); +x_32 = lean_ctor_get(x_10, 7); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_10); +x_33 = l_Lean_replaceRef(x_2, x_28); +lean_dec(x_28); +x_34 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_34, 0, x_25); +lean_ctor_set(x_34, 1, x_26); +lean_ctor_set(x_34, 2, x_27); +lean_ctor_set(x_34, 3, x_33); +lean_ctor_set(x_34, 4, x_29); +lean_ctor_set(x_34, 5, x_30); +lean_ctor_set(x_34, 6, x_31); +lean_ctor_set(x_34, 7, x_32); +x_35 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_34, x_11, x_18); +lean_dec(x_34); +return x_35; +} +} +else +{ +lean_dec(x_10); +lean_ctor_set(x_15, 0, x_14); +return x_15; +} +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_36 = lean_ctor_get(x_15, 0); +x_37 = lean_ctor_get(x_15, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_15); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Lean_Environment_contains(x_38, x_14); +if (x_39 == 0) +{ +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; +x_40 = lean_ctor_get(x_10, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_10, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_10, 2); +lean_inc(x_42); +x_43 = lean_ctor_get(x_10, 3); +lean_inc(x_43); +x_44 = lean_ctor_get(x_10, 4); +lean_inc(x_44); +x_45 = lean_ctor_get(x_10, 5); +lean_inc(x_45); +x_46 = lean_ctor_get(x_10, 6); +lean_inc(x_46); +x_47 = lean_ctor_get(x_10, 7); +lean_inc(x_47); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + lean_ctor_release(x_10, 2); + lean_ctor_release(x_10, 3); + lean_ctor_release(x_10, 4); + lean_ctor_release(x_10, 5); + lean_ctor_release(x_10, 6); + lean_ctor_release(x_10, 7); + x_48 = x_10; +} else { + lean_dec_ref(x_10); + x_48 = lean_box(0); +} +x_49 = l_Lean_replaceRef(x_2, x_43); +lean_dec(x_43); +if (lean_is_scalar(x_48)) { + x_50 = lean_alloc_ctor(0, 8, 0); +} else { + x_50 = x_48; +} +lean_ctor_set(x_50, 0, x_40); +lean_ctor_set(x_50, 1, x_41); +lean_ctor_set(x_50, 2, x_42); +lean_ctor_set(x_50, 3, x_49); +lean_ctor_set(x_50, 4, x_44); +lean_ctor_set(x_50, 5, x_45); +lean_ctor_set(x_50, 6, x_46); +lean_ctor_set(x_50, 7, x_47); +x_51 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8(x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_50, x_11, x_37); +lean_dec(x_50); +return x_51; +} +else +{ +lean_object* x_52; +lean_dec(x_10); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_14); +lean_ctor_set(x_52, 1, x_37); +return x_52; +} +} +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13(lean_object* x_1, lean_object* x_2, 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; uint8_t x_17; @@ -3940,7 +3525,7 @@ return x_35; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__11(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__14(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { uint8_t x_16; @@ -3948,6 +3533,7 @@ x_16 = x_4 < x_3; if (x_16 == 0) { lean_object* x_17; +lean_dec(x_13); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_5); lean_ctor_set(x_17, 1, x_15); @@ -3955,89 +3541,65 @@ 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_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_dec(x_5); x_18 = lean_array_uget(x_2, x_4); x_19 = lean_unsigned_to_nat(0u); x_20 = l_Lean_Syntax_getArg(x_18, x_19); -x_21 = l_Lean_Syntax_getId(x_20); -lean_dec(x_20); -x_22 = lean_unsigned_to_nat(2u); -x_23 = l_Lean_Syntax_getArg(x_18, x_22); -x_24 = l_Lean_Syntax_getId(x_23); -lean_dec(x_23); -x_25 = l_Lean_Name_append(x_1, x_21); -x_26 = lean_st_ref_get(x_14, x_15); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_29); -lean_dec(x_27); -x_30 = l_Lean_Environment_contains(x_29, x_25); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; lean_object* x_45; -lean_dec(x_24); -x_31 = lean_ctor_get(x_13, 0); -x_32 = lean_ctor_get(x_13, 1); -x_33 = lean_ctor_get(x_13, 2); -x_34 = lean_ctor_get(x_13, 3); -x_35 = lean_ctor_get(x_13, 4); -x_36 = lean_ctor_get(x_13, 5); -x_37 = lean_ctor_get(x_13, 6); -x_38 = lean_ctor_get(x_13, 7); -x_39 = l_Lean_replaceRef(x_18, x_34); +x_21 = lean_unsigned_to_nat(2u); +x_22 = l_Lean_Syntax_getArg(x_18, x_21); lean_dec(x_18); -lean_inc(x_38); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -x_40 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_40, 0, x_31); -lean_ctor_set(x_40, 1, x_32); -lean_ctor_set(x_40, 2, x_33); -lean_ctor_set(x_40, 3, x_39); -lean_ctor_set(x_40, 4, x_35); -lean_ctor_set(x_40, 5, x_36); -lean_ctor_set(x_40, 6, x_37); -lean_ctor_set(x_40, 7, x_38); -x_41 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7(x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_40, x_14, x_28); -lean_dec(x_40); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = 1; -x_44 = x_4 + x_43; -x_45 = lean_box(0); -x_4 = x_44; -x_5 = x_45; -x_15 = x_42; +x_23 = l_Lean_Syntax_getId(x_22); +lean_dec(x_22); +lean_inc(x_13); +x_24 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___spec__7(x_1, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_20); +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; size_t x_30; size_t x_31; lean_object* 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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_23); +lean_ctor_set(x_27, 1, x_25); +x_28 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13(x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = 1; +x_31 = x_4 + x_30; +x_32 = lean_box(0); +x_4 = x_31; +x_5 = x_32; +x_15 = x_29; goto _start; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; size_t x_50; size_t x_51; lean_object* x_52; -lean_dec(x_18); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_24); -lean_ctor_set(x_47, 1, x_25); -x_48 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10(x_47, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_28); -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = 1; -x_51 = x_4 + x_50; -x_52 = lean_box(0); -x_4 = x_51; -x_5 = x_52; -x_15 = x_49; -goto _start; +uint8_t x_34; +lean_dec(x_23); +lean_dec(x_13); +x_34 = !lean_is_exclusive(x_24); +if (x_34 == 0) +{ +return x_24; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_24, 0); +x_36 = lean_ctor_get(x_24, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_24); +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; +} } } } @@ -4053,7 +3615,7 @@ lean_dec(x_13); x_15 = l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); 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; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -4068,9 +3630,12 @@ x_22 = lean_usize_of_nat(x_21); lean_dec(x_21); x_23 = 0; x_24 = lean_box(0); -x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__11(x_16, x_20, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__14(x_16, x_20, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); lean_dec(x_20); lean_dec(x_16); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { @@ -4095,19 +3660,19 @@ return x_29; else { uint8_t x_30; -x_30 = !lean_is_exclusive(x_15); +x_30 = !lean_is_exclusive(x_25); if (x_30 == 0) { -return x_15; +return x_25; } else { lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_15, 0); -x_32 = lean_ctor_get(x_15, 1); +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); lean_inc(x_32); lean_inc(x_31); -lean_dec(x_15); +lean_dec(x_25); x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); @@ -4115,8 +3680,32 @@ return x_33; } } } +else +{ +uint8_t x_34; +lean_dec(x_9); +x_34 = !lean_is_exclusive(x_15); +if (x_34 == 0) +{ +return x_15; } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__13(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_ctor_get(x_15, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_15); +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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__16(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { uint8_t x_16; @@ -4124,6 +3713,7 @@ x_16 = x_4 < x_3; if (x_16 == 0) { lean_object* x_17; +lean_dec(x_13); x_17 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_17, 0, x_5); lean_ctor_set(x_17, 1, x_15); @@ -4131,81 +3721,57 @@ 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; uint8_t x_25; +lean_object* x_18; lean_object* x_19; x_18 = lean_array_uget(x_2, x_4); -x_19 = l_Lean_Syntax_getId(x_18); -lean_inc(x_19); -x_20 = l_Lean_Name_append(x_1, x_19); -x_21 = lean_st_ref_get(x_14, x_15); -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 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_Environment_contains(x_24, x_20); -if (x_25 == 0) +lean_inc(x_13); +x_19 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___spec__7(x_1, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_19) == 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; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; +lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); lean_dec(x_19); -x_26 = lean_ctor_get(x_13, 0); -x_27 = lean_ctor_get(x_13, 1); -x_28 = lean_ctor_get(x_13, 2); -x_29 = lean_ctor_get(x_13, 3); -x_30 = lean_ctor_get(x_13, 4); -x_31 = lean_ctor_get(x_13, 5); -x_32 = lean_ctor_get(x_13, 6); -x_33 = lean_ctor_get(x_13, 7); -x_34 = l_Lean_replaceRef(x_18, x_29); +x_21 = l_Lean_Syntax_getId(x_18); lean_dec(x_18); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -x_35 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_35, 0, x_26); -lean_ctor_set(x_35, 1, x_27); -lean_ctor_set(x_35, 2, x_28); -lean_ctor_set(x_35, 3, x_34); -lean_ctor_set(x_35, 4, x_30); -lean_ctor_set(x_35, 5, x_31); -lean_ctor_set(x_35, 6, x_32); -lean_ctor_set(x_35, 7, x_33); -x_36 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35, x_14, x_23); -lean_dec(x_35); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = 1; -x_39 = x_4 + x_38; -x_4 = x_39; -x_15 = x_37; +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_5); +x_23 = 1; +x_24 = x_4 + x_23; +x_4 = x_24; +x_5 = x_22; +x_15 = x_20; goto _start; } else { -lean_object* x_41; size_t x_42; size_t x_43; -lean_dec(x_20); +uint8_t x_26; lean_dec(x_18); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_19); -lean_ctor_set(x_41, 1, x_5); -x_42 = 1; -x_43 = x_4 + x_42; -x_4 = x_43; -x_5 = x_41; -x_15 = x_23; -goto _start; +lean_dec(x_13); +lean_dec(x_5); +x_26 = !lean_is_exclusive(x_19); +if (x_26 == 0) +{ +return x_19; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_19, 0); +x_28 = lean_ctor_get(x_19, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_19); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; } } } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__12(lean_object* x_1, lean_object* x_2, 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_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__15(lean_object* x_1, lean_object* x_2, 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; @@ -4216,7 +3782,7 @@ lean_dec(x_13); x_15 = l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); 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; size_t x_23; size_t 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_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; size_t x_23; size_t x_24; lean_object* x_25; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -4231,8 +3797,12 @@ x_22 = lean_array_get_size(x_21); x_23 = lean_usize_of_nat(x_22); lean_dec(x_22); x_24 = 0; -x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__13(x_16, x_21, x_23, x_24, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +lean_inc(x_9); +x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__16(x_16, x_21, x_23, x_24, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); lean_dec(x_21); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); x_27 = lean_ctor_get(x_25, 1); @@ -4241,25 +3811,124 @@ lean_dec(x_25); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_16); lean_ctor_set(x_28, 1, x_26); -x_29 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +x_29 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13(x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27); +lean_dec(x_9); return x_29; } else { uint8_t x_30; -x_30 = !lean_is_exclusive(x_15); +lean_dec(x_16); +lean_dec(x_9); +x_30 = !lean_is_exclusive(x_25); if (x_30 == 0) { +return x_25; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_25); +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_9); +x_34 = !lean_is_exclusive(x_15); +if (x_34 == 0) +{ return x_15; } else { +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_ctor_get(x_15, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_15); +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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__18(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = x_4 < x_3; +if (x_16 == 0) +{ +lean_object* x_17; +lean_dec(x_13); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_5); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_5); +x_18 = lean_array_uget(x_2, x_4); +lean_inc(x_13); +x_19 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___spec__7(x_1, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; size_t x_26; size_t x_27; lean_object* x_28; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_Syntax_getId(x_18); +lean_dec(x_18); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +x_24 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13(x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_21); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = 1; +x_27 = x_4 + x_26; +x_28 = lean_box(0); +x_4 = x_27; +x_5 = x_28; +x_15 = x_25; +goto _start; +} +else +{ +uint8_t x_30; +lean_dec(x_18); +lean_dec(x_13); +x_30 = !lean_is_exclusive(x_19); +if (x_30 == 0) +{ +return x_19; +} +else +{ lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_15, 0); -x_32 = lean_ctor_get(x_15, 1); +x_31 = lean_ctor_get(x_19, 0); +x_32 = lean_ctor_get(x_19, 1); lean_inc(x_32); lean_inc(x_31); -lean_dec(x_15); +lean_dec(x_19); x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); @@ -4268,103 +3937,8 @@ return x_33; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__15(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { -_start: -{ -uint8_t x_16; -x_16 = x_4 < x_3; -if (x_16 == 0) -{ -lean_object* x_17; -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_5); -lean_ctor_set(x_17, 1, x_15); -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; uint8_t x_25; -lean_dec(x_5); -x_18 = lean_array_uget(x_2, x_4); -x_19 = l_Lean_Syntax_getId(x_18); -lean_inc(x_19); -x_20 = l_Lean_Name_append(x_1, x_19); -x_21 = lean_st_ref_get(x_14, x_15); -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 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l_Lean_Environment_contains(x_24, x_20); -if (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; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; lean_object* x_40; -lean_dec(x_19); -x_26 = lean_ctor_get(x_13, 0); -x_27 = lean_ctor_get(x_13, 1); -x_28 = lean_ctor_get(x_13, 2); -x_29 = lean_ctor_get(x_13, 3); -x_30 = lean_ctor_get(x_13, 4); -x_31 = lean_ctor_get(x_13, 5); -x_32 = lean_ctor_get(x_13, 6); -x_33 = lean_ctor_get(x_13, 7); -x_34 = l_Lean_replaceRef(x_18, x_29); -lean_dec(x_18); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -x_35 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_35, 0, x_26); -lean_ctor_set(x_35, 1, x_27); -lean_ctor_set(x_35, 2, x_28); -lean_ctor_set(x_35, 3, x_34); -lean_ctor_set(x_35, 4, x_30); -lean_ctor_set(x_35, 5, x_31); -lean_ctor_set(x_35, 6, x_32); -lean_ctor_set(x_35, 7, x_33); -x_36 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_35, x_14, x_23); -lean_dec(x_35); -x_37 = lean_ctor_get(x_36, 1); -lean_inc(x_37); -lean_dec(x_36); -x_38 = 1; -x_39 = x_4 + x_38; -x_40 = lean_box(0); -x_4 = x_39; -x_5 = x_40; -x_15 = x_37; -goto _start; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; size_t x_45; size_t x_46; lean_object* x_47; -lean_dec(x_18); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_19); -lean_ctor_set(x_42, 1, x_20); -x_43 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10(x_42, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_23); -x_44 = lean_ctor_get(x_43, 1); -lean_inc(x_44); -lean_dec(x_43); -x_45 = 1; -x_46 = x_4 + x_45; -x_47 = lean_box(0); -x_4 = x_46; -x_5 = x_47; -x_15 = x_44; -goto _start; -} -} -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14(lean_object* x_1, lean_object* x_2, 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_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__17(lean_object* x_1, lean_object* x_2, 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; @@ -4375,7 +3949,7 @@ lean_dec(x_13); x_15 = l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); 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; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; lean_object* x_25; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); @@ -4390,9 +3964,12 @@ x_22 = lean_usize_of_nat(x_21); lean_dec(x_21); x_23 = 0; x_24 = lean_box(0); -x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__15(x_16, x_20, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_25 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__18(x_16, x_20, x_22, x_23, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); lean_dec(x_20); lean_dec(x_16); +if (lean_obj_tag(x_25) == 0) +{ +uint8_t x_26; x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { @@ -4417,19 +3994,19 @@ return x_29; else { uint8_t x_30; -x_30 = !lean_is_exclusive(x_15); +x_30 = !lean_is_exclusive(x_25); if (x_30 == 0) { -return x_15; +return x_25; } else { lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_15, 0); -x_32 = lean_ctor_get(x_15, 1); +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); lean_inc(x_32); lean_inc(x_31); -lean_dec(x_15); +lean_dec(x_25); x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_32); @@ -4437,8 +4014,32 @@ return x_33; } } } +else +{ +uint8_t x_34; +lean_dec(x_9); +x_34 = !lean_is_exclusive(x_15); +if (x_34 == 0) +{ +return x_15; } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__18(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_ctor_get(x_15, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_15); +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_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { uint8_t x_16; @@ -4517,7 +4118,7 @@ goto _start; } } } -lean_object* l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__17(lean_object* x_1, lean_object* x_2, 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_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__20(lean_object* x_1, lean_object* x_2, 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; lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; @@ -4537,7 +4138,7 @@ x_19 = lean_usize_of_nat(x_18); lean_dec(x_18); x_20 = 0; x_21 = lean_box(0); -x_22 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__18(x_1, x_16, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_22 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21(x_1, x_16, x_19, x_20, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); lean_dec(x_16); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) @@ -4561,7 +4162,7 @@ return x_26; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__19(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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__22(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, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; @@ -4595,11 +4196,11 @@ lean_inc(x_20); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_20); lean_ctor_set(x_23, 1, x_22); -x_24 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21); +x_24 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13(x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21); x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); -x_26 = l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__17(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_25); +x_26 = l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__20(x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_25); x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); @@ -4636,7 +4237,7 @@ return x_35; } } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__16(lean_object* x_1, lean_object* x_2, 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_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__19(lean_object* x_1, lean_object* x_2, 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; size_t x_16; size_t x_17; lean_object* x_18; lean_object* x_19; @@ -4649,7 +4250,7 @@ x_16 = lean_usize_of_nat(x_15); lean_dec(x_15); x_17 = 0; x_18 = lean_box(0); -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__19(x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__22(x_14, x_16, x_17, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_14); if (lean_obj_tag(x_19) == 0) { @@ -4930,6 +4531,7 @@ lean_dec(x_27); if (x_40 == 0) { lean_object* x_41; +lean_inc(x_8); x_41 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Tactic_evalOpen___spec__4(x_1, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); lean_dec(x_1); if (lean_obj_tag(x_41) == 0) @@ -5052,7 +4654,8 @@ goto block_23; else { lean_object* x_65; -x_65 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__12(x_1, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); +lean_inc(x_8); +x_65 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__15(x_1, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); lean_dec(x_1); if (lean_obj_tag(x_65) == 0) { @@ -5176,7 +4779,8 @@ else { lean_object* x_89; lean_dec(x_27); -x_89 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14(x_1, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); +lean_inc(x_8); +x_89 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__17(x_1, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); lean_dec(x_1); if (lean_obj_tag(x_89) == 0) { @@ -5305,7 +4909,7 @@ lean_inc(x_113); x_114 = lean_ctor_get(x_34, 1); lean_inc(x_114); lean_dec(x_34); -x_115 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__16(x_1, x_113, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_114); +x_115 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__19(x_1, x_113, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_114); lean_dec(x_1); if (lean_obj_tag(x_115) == 0) { @@ -5427,7 +5031,7 @@ goto block_23; } } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21(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, lean_object* x_12, lean_object* x_13) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__24(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, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -5505,7 +5109,7 @@ goto _start; } } } -lean_object* l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20(lean_object* x_1, lean_object* x_2, 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_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; @@ -5525,7 +5129,7 @@ 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_Tactic_evalOpen___spec__21(x_14, x_17, x_18, x_19, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__24(x_14, x_17, x_18, x_19, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_15); lean_dec(x_14); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) @@ -5617,7 +5221,7 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +x_31 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5655,7 +5259,7 @@ lean_inc(x_36); x_37 = lean_ctor_get(x_28, 1); lean_inc(x_37); lean_dec(x_28); -x_38 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_37); +x_38 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_37); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5695,7 +5299,7 @@ lean_inc(x_43); x_44 = lean_ctor_get(x_15, 1); lean_inc(x_44); lean_dec(x_15); -x_45 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); +x_45 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5799,14 +5403,62 @@ lean_dec(x_2); return x_12; } } -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___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* l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -uint8_t x_14; lean_object* x_15; -x_14 = lean_unbox(x_3); +lean_object* x_12; +x_12 = l_Lean_resolveGlobalName___at_Lean_Elab_Tactic_evalOpen___spec__10(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_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -x_15 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9(x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_12); +lean_dec(x_2); +return x_12; +} +} +lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_evalOpen___spec__12___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_throwError___at_Lean_Elab_Tactic_evalOpen___spec__12(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_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); +return x_12; +} +} +lean_object* l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___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, 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_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11(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_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); +return x_12; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___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_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___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_11); lean_dec(x_10); lean_dec(x_9); @@ -5815,34 +5467,68 @@ 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_13; +} +} +lean_object* l_Lean_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9___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_resolveGlobalConstCore___at_Lean_Elab_Tactic_evalOpen___spec__9(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_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); +return x_12; +} +} +lean_object* l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8(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_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); +return x_12; +} +} +lean_object* l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Elab_OpenDecl_resolveId___at_Lean_Elab_Tactic_evalOpen___spec__7(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_11); +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); -return x_15; +return x_13; } } -lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_11, lean_object* x_12) { -_start: -{ -uint8_t x_13; lean_object* x_14; -x_13 = lean_unbox(x_2); -lean_dec(x_2); -x_14 = l_Lean_Elab_log___at_Lean_Elab_Tactic_evalOpen___spec__8(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_14; -} -} -lean_object* l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___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) { +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7(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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__13(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_dec(x_9); lean_dec(x_8); @@ -5855,24 +5541,7 @@ lean_dec(x_2); return x_12; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___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, 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_Open_0__Lean_Elab_OpenDecl_addOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__10(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_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); -return x_12; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__14___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: { size_t x_16; size_t x_17; lean_object* x_18; @@ -5880,9 +5549,8 @@ x_16 = lean_unbox_usize(x_3); lean_dec(x_3); x_17 = lean_unbox_usize(x_4); lean_dec(x_4); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__11(x_1, x_2, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__14(x_1, x_2, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_14); -lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -5901,7 +5569,6 @@ _start: lean_object* x_12; x_12 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenRenaming___at_Lean_Elab_Tactic_evalOpen___spec__4(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_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -5913,7 +5580,7 @@ lean_dec(x_1); return x_12; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__16___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: { size_t x_16; size_t x_17; lean_object* x_18; @@ -5921,9 +5588,8 @@ x_16 = lean_unbox_usize(x_3); lean_dec(x_3); x_17 = lean_unbox_usize(x_4); lean_dec(x_4); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__13(x_1, x_2, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__16(x_1, x_2, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_14); -lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -5936,54 +5602,12 @@ lean_dec(x_1); return x_18; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__12___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__15___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__12(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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenHiding___at_Lean_Elab_Tactic_evalOpen___spec__15(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_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); -return x_12; -} -} -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__15___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: -{ -size_t x_16; size_t x_17; lean_object* x_18; -x_16 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_17 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__15(x_1, x_2, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -lean_dec(x_1); -return x_18; -} -} -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__14(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_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -6005,6 +5629,45 @@ x_17 = lean_unbox_usize(x_4); lean_dec(x_4); x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__18(x_1, x_2, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenOnly___at_Lean_Elab_Tactic_evalOpen___spec__17(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_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); +return x_12; +} +} +lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21___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: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_17 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_18 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21(x_1, x_2, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6017,11 +5680,11 @@ lean_dec(x_2); return x_18; } } -lean_object* l_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__17___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_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__20___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_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__17(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_Lean_activateScoped___at_Lean_Elab_Tactic_evalOpen___spec__20(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_dec(x_9); lean_dec(x_8); @@ -6034,7 +5697,7 @@ lean_dec(x_2); return x_12; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__19___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* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { size_t x_15; size_t x_16; lean_object* x_17; @@ -6042,7 +5705,7 @@ x_15 = lean_unbox_usize(x_2); lean_dec(x_2); x_16 = lean_unbox_usize(x_3); lean_dec(x_3); -x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__19(x_1, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__22(x_1, x_15, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -6056,11 +5719,11 @@ lean_dec(x_1); return x_17; } } -lean_object* l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__16___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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__19___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__16(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___private_Lean_Elab_Open_0__Lean_Elab_OpenDecl_elabOpenSimple___at_Lean_Elab_Tactic_evalOpen___spec__19(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_dec(x_9); lean_dec(x_8); @@ -6092,7 +5755,7 @@ lean_dec(x_1); return x_12; } } -lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21___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* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__24___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) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -6100,7 +5763,7 @@ x_14 = lean_unbox_usize(x_2); lean_dec(x_2); x_15 = lean_unbox_usize(x_3); lean_dec(x_3); -x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__21(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalOpen___spec__24(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -6113,11 +5776,11 @@ lean_dec(x_1); return x_16; } } -lean_object* l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20___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_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23___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_popScope___at_Lean_Elab_Tactic_evalOpen___spec__20(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_popScope___at_Lean_Elab_Tactic_evalOpen___spec__23(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); @@ -6693,7 +6356,7 @@ static lean_object* _init_l_Lean_Elab_elabSetOption___at_Lean_Elab_Tactic_elabSe _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1; +x_1 = l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -15039,14 +14702,18 @@ l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5___closed__1 = _ lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5___closed__1); l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5___closed__2 = _init_l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5___closed__2(); lean_mark_persistent(l_Lean_resolveNamespace___at_Lean_Elab_Tactic_evalOpen___spec__5___closed__2); -l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1 = _init_l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1(); -lean_mark_persistent(l_Lean_Elab_logAt___at_Lean_Elab_Tactic_evalOpen___spec__9___closed__1); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__1 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__1(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__1); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__2 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__2(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__2); -l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__3 = _init_l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__3(); -lean_mark_persistent(l_Lean_Elab_logUnknownDecl___at_Lean_Elab_Tactic_evalOpen___spec__7___closed__3); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__1 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__1(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__1); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__2 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__2(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__2); +l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__3 = _init_l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__3(); +lean_mark_persistent(l_Lean_throwUnknownConstant___at_Lean_Elab_Tactic_evalOpen___spec__11___closed__3); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__1 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__1(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__1); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__2 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__2(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__2); +l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3 = _init_l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3(); +lean_mark_persistent(l_Lean_resolveGlobalConstNoOverloadCore___at_Lean_Elab_Tactic_evalOpen___spec__8___closed__3); l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__1 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__1(); lean_mark_persistent(l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__1); l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__2 = _init_l_Lean_Elab_OpenDecl_elabOpenDecl___at_Lean_Elab_Tactic_evalOpen___spec__3___closed__2(); diff --git a/stage0/stdlib/Lean/Expr.c b/stage0/stdlib/Lean/Expr.c index 039dda07d4..dad5dbd938 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -18,6 +18,7 @@ lean_object* l_Lean_Expr_isBinding___boxed(lean_object*); static lean_object* l_Lean_Expr_letName_x21___closed__2; lean_object* l_Lean_Expr_data_match__1(lean_object*); static lean_object* l_Lean_Expr_ctorName___closed__7; +static lean_object* l_Lean_mkNatLit___closed__8; lean_object* l_Lean_instLTLiteral; lean_object* l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_312__match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_bindingInfo_x21(lean_object*); @@ -32,6 +33,7 @@ lean_object* l_Lean_Expr_Data_hash___boxed(lean_object*); lean_object* l_Lean_Expr_isApp_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__1; lean_object* l_Lean_Expr_hasAnyFVar_visit_match__1(lean_object*); +static lean_object* l_Lean_mkNatLit___closed__4; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprLiteral____x40_Lean_Expr___hyg_98____closed__2; @@ -54,6 +56,7 @@ uint8_t l_UInt64_decEq(uint64_t, uint64_t); static lean_object* l_Lean_Expr_bindingDomain_x21___closed__2; lean_object* l_Lean_Expr_abstract___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Expr_getRevArg_x21___closed__1; +static lean_object* l_Lean_mkNatLit___closed__1; lean_object* l_Lean_Expr_isAtomic_match__1(lean_object*); lean_object* l_Lean_Expr_updateConst___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkDecIsTrue___closed__3; @@ -96,6 +99,7 @@ lean_object* l_Lean_ExprStructEq_instHashableExprStructEq; lean_object* l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_312__match__1(lean_object*); uint64_t l_Bool_toUInt64(uint8_t); static lean_object* l_Lean_Expr_updateMData_x21___closed__2; +static lean_object* l_Lean_mkNatLit___closed__9; lean_object* l_Lean_Expr_instantiateLevelParamsArray___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isArrow(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux(lean_object*, lean_object*, lean_object*, lean_object*); @@ -186,6 +190,7 @@ lean_object* l_Lean_Expr_getRevArgD(lean_object*, lean_object*, lean_object*); uint64_t l_List_foldl___at_Lean_mkConst___spec__1(uint64_t, lean_object*); lean_object* l_Lean_Expr_bindingName_x21_match__1(lean_object*); static lean_object* l_Lean_Expr_getAppArgs___closed__1; +static lean_object* l_Lean_mkNatLit___closed__2; uint8_t l_Lean_Level_hasParam(lean_object*); lean_object* l_Lean_Expr_updateApp_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mkAppRevRange(lean_object*, lean_object*, lean_object*, lean_object*); @@ -294,6 +299,8 @@ lean_object* l_Lean_Expr_getRevArg_x21_match__1(lean_object*); lean_object* l_Lean_Expr_isConstOf_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isLambda_match__1(lean_object*); uint8_t lean_expr_has_mvar(lean_object*); +lean_object* l_Lean_mkRawNatLit(lean_object*); +static lean_object* l_Lean_mkNatLit___closed__6; uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Expr_ctorName___closed__5; lean_object* l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -464,6 +471,7 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux___boxed(lean_object*, static lean_object* l_Lean_Expr_ctorName___closed__9; lean_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLooseBVarInExplicitDomain_match__1___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +static lean_object* l_Lean_mkNatLit___closed__7; uint8_t l_Lean_instInhabitedBinderInfo; static lean_object* l_Lean_Expr_updateLambda_x21___closed__1; lean_object* l_Lean_mkAppN___boxed(lean_object*, lean_object*); @@ -471,6 +479,7 @@ lean_object* l_Lean_Expr_mkDataForLet___boxed__const__1; static lean_object* l_Lean_Expr_updateProj_x21___closed__1; lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__4; +static lean_object* l_Lean_mkNatLit___closed__3; lean_object* l_Lean_ExprStructEq_beq_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isProj___boxed(lean_object*); static lean_object* l_Lean_Expr_updateLambda_x21___closed__2; @@ -532,6 +541,7 @@ lean_object* l_Lean_BinderInfo_isImplicit_match__1(lean_object*); lean_object* l_Lean_Expr_mkDataForBinder___boxed__const__1; static lean_object* l_Lean_Expr_bvarIdx_x21___closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); +static lean_object* l_Lean_mkNatLit___closed__10; lean_object* l_Lean_Expr_withApp___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_isAppOfArity___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21___boxed(lean_object*); @@ -551,6 +561,7 @@ lean_object* lean_expr_mk_proj(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isMVar_match__1(lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux_match__1(lean_object*); static lean_object* l_Lean_Expr_appFn_x21___closed__2; +static lean_object* l_Lean_mkNatLit___closed__5; lean_object* l_Lean_Expr_Data_hasExprMVar___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__5; lean_object* l_Lean_Expr_etaExpanded_x3f(lean_object*); @@ -690,7 +701,6 @@ lean_object* l_List_map___at_Lean_Expr_instantiateLevelParams___spec__4___boxed( lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp10(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_Expr_isApp___boxed(lean_object*); -static lean_object* l_Lean_Expr_isCharLit___closed__4; lean_object* l_Lean_mkApp8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkBVar(lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); @@ -4121,42 +4131,6 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Lean_mkLit(lean_object* x_1) { -_start: -{ -uint64_t x_2; uint64_t x_3; uint64_t x_4; lean_object* x_5; uint8_t x_6; uint64_t x_7; lean_object* x_8; -x_2 = 3; -x_3 = l_Lean_Literal_hash(x_1); -x_4 = lean_uint64_mix_hash(x_2, x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = 0; -x_7 = l_Lean_Expr_mkData(x_4, x_5, x_6, x_6, x_6, x_6); -x_8 = lean_alloc_ctor(9, 1, 8); -lean_ctor_set(x_8, 0, x_1); -lean_ctor_set_uint64(x_8, sizeof(void*)*1, x_7); -return x_8; -} -} -lean_object* l_Lean_mkNatLit(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -x_3 = l_Lean_mkLit(x_2); -return x_3; -} -} -lean_object* l_Lean_mkStrLit(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -x_3 = l_Lean_mkLit(x_2); -return x_3; -} -} uint64_t l_List_foldl___at_Lean_mkConst___spec__1(uint64_t x_1, lean_object* x_2) { _start: { @@ -5813,6 +5787,241 @@ x_7 = l_Lean_mkLet(x_1, x_2, x_3, x_4, x_6); return x_7; } } +lean_object* l_Lean_mkAppB(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = l_Lean_mkApp(x_1, x_2); +x_5 = l_Lean_mkApp(x_4, x_3); +return x_5; +} +} +lean_object* l_Lean_mkApp2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_mkAppB(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_mkApp3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_mkAppB(x_1, x_2, x_3); +x_6 = l_Lean_mkApp(x_5, x_4); +return x_6; +} +} +lean_object* l_Lean_mkApp4(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 = l_Lean_mkAppB(x_1, x_2, x_3); +x_7 = l_Lean_mkAppB(x_6, x_4, x_5); +return x_7; +} +} +lean_object* l_Lean_mkApp5(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; +x_7 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); +x_8 = l_Lean_mkApp(x_7, x_6); +return x_8; +} +} +lean_object* l_Lean_mkApp6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); +x_9 = l_Lean_mkAppB(x_8, x_6, x_7); +return x_9; +} +} +lean_object* l_Lean_mkApp7(lean_object* x_1, lean_object* x_2, 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; +x_9 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); +x_10 = l_Lean_mkApp3(x_9, x_6, x_7, x_8); +return x_10; +} +} +lean_object* l_Lean_mkApp8(lean_object* x_1, lean_object* x_2, 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; +x_10 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); +x_11 = l_Lean_mkApp4(x_10, x_6, x_7, x_8, x_9); +return x_11; +} +} +lean_object* l_Lean_mkApp9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); +x_12 = l_Lean_mkApp5(x_11, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +lean_object* l_Lean_mkApp10(lean_object* x_1, lean_object* x_2, 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; +x_12 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); +x_13 = l_Lean_mkApp6(x_12, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* l_Lean_mkLit(lean_object* x_1) { +_start: +{ +uint64_t x_2; uint64_t x_3; uint64_t x_4; lean_object* x_5; uint8_t x_6; uint64_t x_7; lean_object* x_8; +x_2 = 3; +x_3 = l_Lean_Literal_hash(x_1); +x_4 = lean_uint64_mix_hash(x_2, x_3); +x_5 = lean_unsigned_to_nat(0u); +x_6 = 0; +x_7 = l_Lean_Expr_mkData(x_4, x_5, x_6, x_6, x_6, x_6); +x_8 = lean_alloc_ctor(9, 1, 8); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set_uint64(x_8, sizeof(void*)*1, x_7); +return x_8; +} +} +lean_object* l_Lean_mkRawNatLit(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +x_3 = l_Lean_mkLit(x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("OfNat"); +return x_1; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_mkNatLit___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ofNat"); +return x_1; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkNatLit___closed__2; +x_2 = l_Lean_mkNatLit___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_levelZero; +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_mkNatLit___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkNatLit___closed__4; +x_2 = l_Lean_mkNatLit___closed__5; +x_3 = l_Lean_mkConst(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Literal_type___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("instOfNatNat"); +return x_1; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_mkNatLit___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_mkNatLit___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_mkNatLit___closed__9; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_mkNatLit(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_2 = l_Lean_mkRawNatLit(x_1); +x_3 = l_Lean_mkNatLit___closed__10; +lean_inc(x_2); +x_4 = l_Lean_mkApp(x_3, x_2); +x_5 = l_Lean_mkNatLit___closed__6; +x_6 = l_Lean_mkNatLit___closed__7; +x_7 = l_Lean_mkApp3(x_5, x_6, x_2, x_4); +return x_7; +} +} +lean_object* l_Lean_mkStrLit(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +x_3 = l_Lean_mkLit(x_2); +return x_3; +} +} lean_object* lean_expr_mk_bvar(lean_object* x_1) { _start: { @@ -7719,7 +7928,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_getRevArg_x21___closed__1; -x_3 = lean_unsigned_to_nat(485u); +x_3 = lean_unsigned_to_nat(500u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_getRevArg_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8034,7 +8243,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_appFn_x21___closed__1; -x_3 = lean_unsigned_to_nat(505u); +x_3 = lean_unsigned_to_nat(520u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8084,7 +8293,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_appArg_x21___closed__1; -x_3 = lean_unsigned_to_nat(509u); +x_3 = lean_unsigned_to_nat(524u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8351,17 +8560,9 @@ return x_3; static lean_object* _init_l_Lean_Expr_isCharLit___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ofNat"); -return x_1; -} -} -static lean_object* _init_l_Lean_Expr_isCharLit___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Expr_isCharLit___closed__2; -x_2 = l_Lean_Expr_isCharLit___closed__3; +x_2 = l_Lean_mkNatLit___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -8370,7 +8571,7 @@ uint8_t l_Lean_Expr_isCharLit(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; -x_2 = l_Lean_Expr_isCharLit___closed__4; +x_2 = l_Lean_Expr_isCharLit___closed__3; x_3 = lean_unsigned_to_nat(1u); x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3); if (x_4 == 0) @@ -8421,7 +8622,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_constName_x21___closed__1; -x_3 = lean_unsigned_to_nat(528u); +x_3 = lean_unsigned_to_nat(543u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8500,7 +8701,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_constLevels_x21___closed__1; -x_3 = lean_unsigned_to_nat(536u); +x_3 = lean_unsigned_to_nat(551u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8558,7 +8759,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bvarIdx_x21___closed__1; -x_3 = lean_unsigned_to_nat(540u); +x_3 = lean_unsigned_to_nat(555u); x_4 = lean_unsigned_to_nat(18u); x_5 = l_Lean_Expr_bvarIdx_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8616,7 +8817,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_fvarId_x21___closed__1; -x_3 = lean_unsigned_to_nat(544u); +x_3 = lean_unsigned_to_nat(559u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_fvarId_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8674,7 +8875,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_mvarId_x21___closed__1; -x_3 = lean_unsigned_to_nat(548u); +x_3 = lean_unsigned_to_nat(563u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_mvarId_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8789,7 +8990,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingName_x21___closed__1; -x_3 = lean_unsigned_to_nat(553u); +x_3 = lean_unsigned_to_nat(568u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8848,7 +9049,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingDomain_x21___closed__1; -x_3 = lean_unsigned_to_nat(558u); +x_3 = lean_unsigned_to_nat(573u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8907,7 +9108,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingBody_x21___closed__1; -x_3 = lean_unsigned_to_nat(563u); +x_3 = lean_unsigned_to_nat(578u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -8966,7 +9167,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_bindingInfo_x21___closed__1; -x_3 = lean_unsigned_to_nat(568u); +x_3 = lean_unsigned_to_nat(583u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_bindingName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9037,7 +9238,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_letName_x21___closed__1; -x_3 = lean_unsigned_to_nat(572u); +x_3 = lean_unsigned_to_nat(587u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_letName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -9838,95 +10039,6 @@ x_3 = lean_box(x_2); return x_3; } } -lean_object* l_Lean_mkAppB(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = l_Lean_mkApp(x_1, x_2); -x_5 = l_Lean_mkApp(x_4, x_3); -return x_5; -} -} -lean_object* l_Lean_mkApp2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_mkAppB(x_1, x_2, x_3); -return x_4; -} -} -lean_object* l_Lean_mkApp3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_mkAppB(x_1, x_2, x_3); -x_6 = l_Lean_mkApp(x_5, x_4); -return x_6; -} -} -lean_object* l_Lean_mkApp4(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 = l_Lean_mkAppB(x_1, x_2, x_3); -x_7 = l_Lean_mkAppB(x_6, x_4, x_5); -return x_7; -} -} -lean_object* l_Lean_mkApp5(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; -x_7 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); -x_8 = l_Lean_mkApp(x_7, x_6); -return x_8; -} -} -lean_object* l_Lean_mkApp6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; -x_8 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); -x_9 = l_Lean_mkAppB(x_8, x_6, x_7); -return x_9; -} -} -lean_object* l_Lean_mkApp7(lean_object* x_1, lean_object* x_2, 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; -x_9 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); -x_10 = l_Lean_mkApp3(x_9, x_6, x_7, x_8); -return x_10; -} -} -lean_object* l_Lean_mkApp8(lean_object* x_1, lean_object* x_2, 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; -x_10 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); -x_11 = l_Lean_mkApp4(x_10, x_6, x_7, x_8, x_9); -return x_11; -} -} -lean_object* l_Lean_mkApp9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); -x_12 = l_Lean_mkApp5(x_11, x_6, x_7, x_8, x_9, x_10); -return x_12; -} -} -lean_object* l_Lean_mkApp10(lean_object* x_1, lean_object* x_2, 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; -x_12 = l_Lean_mkApp4(x_1, x_2, x_3, x_4, x_5); -x_13 = l_Lean_mkApp6(x_12, x_6, x_7, x_8, x_9, x_10, x_11); -return x_13; -} -} static lean_object* _init_l_Lean_mkDecIsTrue___closed__1() { _start: { @@ -11532,7 +11644,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateApp_x21___closed__1; -x_3 = lean_unsigned_to_nat(855u); +x_3 = lean_unsigned_to_nat(859u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_appFn_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11604,7 +11716,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateConst_x21___closed__1; -x_3 = lean_unsigned_to_nat(864u); +x_3 = lean_unsigned_to_nat(868u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_constName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11683,7 +11795,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateSort_x21___closed__1; -x_3 = lean_unsigned_to_nat(873u); +x_3 = lean_unsigned_to_nat(877u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_Expr_updateSort_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11767,7 +11879,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateMData_x21___closed__1; -x_3 = lean_unsigned_to_nat(890u); +x_3 = lean_unsigned_to_nat(894u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateMData_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11838,7 +11950,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateProj_x21___closed__1; -x_3 = lean_unsigned_to_nat(895u); +x_3 = lean_unsigned_to_nat(899u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Expr_updateProj_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11922,7 +12034,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateForall_x21___closed__1; -x_3 = lean_unsigned_to_nat(904u); +x_3 = lean_unsigned_to_nat(908u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_updateForall_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11999,7 +12111,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateForallE_x21___closed__1; -x_3 = lean_unsigned_to_nat(909u); +x_3 = lean_unsigned_to_nat(913u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Expr_updateForall_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12087,7 +12199,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateLambda_x21___closed__1; -x_3 = lean_unsigned_to_nat(918u); +x_3 = lean_unsigned_to_nat(922u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateLambda_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12164,7 +12276,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_3 = lean_unsigned_to_nat(923u); +x_3 = lean_unsigned_to_nat(927u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Expr_updateLambda_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -12242,7 +12354,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Expr_0__Lean_Expr_mkDataCore___closed__2; x_2 = l_Lean_Expr_updateLet_x21___closed__1; -x_3 = lean_unsigned_to_nat(932u); +x_3 = lean_unsigned_to_nat(936u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Expr_letName_x21___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -15656,6 +15768,26 @@ l_Lean_mkSimpleThunk___closed__1 = _init_l_Lean_mkSimpleThunk___closed__1(); lean_mark_persistent(l_Lean_mkSimpleThunk___closed__1); l_Lean_mkSimpleThunk___closed__2 = _init_l_Lean_mkSimpleThunk___closed__2(); lean_mark_persistent(l_Lean_mkSimpleThunk___closed__2); +l_Lean_mkNatLit___closed__1 = _init_l_Lean_mkNatLit___closed__1(); +lean_mark_persistent(l_Lean_mkNatLit___closed__1); +l_Lean_mkNatLit___closed__2 = _init_l_Lean_mkNatLit___closed__2(); +lean_mark_persistent(l_Lean_mkNatLit___closed__2); +l_Lean_mkNatLit___closed__3 = _init_l_Lean_mkNatLit___closed__3(); +lean_mark_persistent(l_Lean_mkNatLit___closed__3); +l_Lean_mkNatLit___closed__4 = _init_l_Lean_mkNatLit___closed__4(); +lean_mark_persistent(l_Lean_mkNatLit___closed__4); +l_Lean_mkNatLit___closed__5 = _init_l_Lean_mkNatLit___closed__5(); +lean_mark_persistent(l_Lean_mkNatLit___closed__5); +l_Lean_mkNatLit___closed__6 = _init_l_Lean_mkNatLit___closed__6(); +lean_mark_persistent(l_Lean_mkNatLit___closed__6); +l_Lean_mkNatLit___closed__7 = _init_l_Lean_mkNatLit___closed__7(); +lean_mark_persistent(l_Lean_mkNatLit___closed__7); +l_Lean_mkNatLit___closed__8 = _init_l_Lean_mkNatLit___closed__8(); +lean_mark_persistent(l_Lean_mkNatLit___closed__8); +l_Lean_mkNatLit___closed__9 = _init_l_Lean_mkNatLit___closed__9(); +lean_mark_persistent(l_Lean_mkNatLit___closed__9); +l_Lean_mkNatLit___closed__10 = _init_l_Lean_mkNatLit___closed__10(); +lean_mark_persistent(l_Lean_mkNatLit___closed__10); l_Lean_Expr_instBEqExpr___closed__1 = _init_l_Lean_Expr_instBEqExpr___closed__1(); lean_mark_persistent(l_Lean_Expr_instBEqExpr___closed__1); l_Lean_Expr_instBEqExpr = _init_l_Lean_Expr_instBEqExpr(); @@ -15684,8 +15816,6 @@ l_Lean_Expr_isCharLit___closed__2 = _init_l_Lean_Expr_isCharLit___closed__2(); lean_mark_persistent(l_Lean_Expr_isCharLit___closed__2); l_Lean_Expr_isCharLit___closed__3 = _init_l_Lean_Expr_isCharLit___closed__3(); lean_mark_persistent(l_Lean_Expr_isCharLit___closed__3); -l_Lean_Expr_isCharLit___closed__4 = _init_l_Lean_Expr_isCharLit___closed__4(); -lean_mark_persistent(l_Lean_Expr_isCharLit___closed__4); l_Lean_Expr_constName_x21___closed__1 = _init_l_Lean_Expr_constName_x21___closed__1(); lean_mark_persistent(l_Lean_Expr_constName_x21___closed__1); l_Lean_Expr_constName_x21___closed__2 = _init_l_Lean_Expr_constName_x21___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/AppBuilder.c b/stage0/stdlib/Lean/Meta/AppBuilder.c index 979aa42d16..339d76e0cb 100644 --- a/stage0/stdlib/Lean/Meta/AppBuilder.c +++ b/stage0/stdlib/Lean/Meta/AppBuilder.c @@ -176,6 +176,7 @@ lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal(lean_obje static lean_object* l_Lean_Meta_mkProjection___closed__5; lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkHEqTrans_match__1(lean_object*); +lean_object* l_Lean_mkRawNatLit(lean_object*); static lean_object* l_Lean_Meta_mkNoConfusion___closed__3; static lean_object* l_Lean_Meta_mkImpCongrCtx___closed__2; lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -378,7 +379,6 @@ lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_ob static lean_object* l___private_Lean_Meta_AppBuilder_0__Lean_Meta_throwAppBuilderException___rarg___closed__4; lean_object* l_Lean_Meta_mkFreshLevelMVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkAppM___closed__3; -lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_Meta_mkHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkEq___closed__1; static lean_object* l_Lean_Meta_mkEqOfHEq___closed__5; @@ -12891,7 +12891,7 @@ lean_ctor_set(x_12, 1, x_11); x_13 = l_Lean_Meta_mkNumeral___closed__2; lean_inc(x_12); x_14 = l_Lean_mkConst(x_13, x_12); -x_15 = l_Lean_mkNatLit(x_2); +x_15 = l_Lean_mkRawNatLit(x_2); lean_inc(x_15); lean_inc(x_1); x_16 = l_Lean_mkAppB(x_14, x_1, x_15); diff --git a/stage0/stdlib/Lean/Meta/Closure.c b/stage0/stdlib/Lean/Meta/Closure.c index 28a7a380d6..6bf428e646 100644 --- a/stage0/stdlib/Lean/Meta/Closure.c +++ b/stage0/stdlib/Lean/Meta/Closure.c @@ -4156,7 +4156,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__2; -x_3 = lean_unsigned_to_nat(890u); +x_3 = lean_unsigned_to_nat(894u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4185,7 +4185,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__5; -x_3 = lean_unsigned_to_nat(895u); +x_3 = lean_unsigned_to_nat(899u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__6; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4214,7 +4214,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__8; -x_3 = lean_unsigned_to_nat(855u); +x_3 = lean_unsigned_to_nat(859u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__9; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4243,7 +4243,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__11; -x_3 = lean_unsigned_to_nat(923u); +x_3 = lean_unsigned_to_nat(927u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__12; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4272,7 +4272,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__14; -x_3 = lean_unsigned_to_nat(909u); +x_3 = lean_unsigned_to_nat(913u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__15; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4301,7 +4301,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Closure_collectExprAux___closed__1; x_2 = l_Lean_Meta_Closure_collectExprAux___closed__17; -x_3 = lean_unsigned_to_nat(932u); +x_3 = lean_unsigned_to_nat(936u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Meta_Closure_collectExprAux___closed__18; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index f56c921804..1e25cf5d45 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -14721,7 +14721,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__2; -x_3 = lean_unsigned_to_nat(890u); +x_3 = lean_unsigned_to_nat(894u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14750,7 +14750,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__5; -x_3 = lean_unsigned_to_nat(895u); +x_3 = lean_unsigned_to_nat(899u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__6; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14779,7 +14779,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__8; -x_3 = lean_unsigned_to_nat(923u); +x_3 = lean_unsigned_to_nat(927u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__9; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14808,7 +14808,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__11; -x_3 = lean_unsigned_to_nat(909u); +x_3 = lean_unsigned_to_nat(913u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__12; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -14837,7 +14837,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_CheckAssignment_check___closed__1; x_2 = l_Lean_Meta_CheckAssignment_check___closed__14; -x_3 = lean_unsigned_to_nat(932u); +x_3 = lean_unsigned_to_nat(936u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Meta_CheckAssignment_check___closed__15; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c index 397237fe9e..bd6a251617 100644 --- a/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c +++ b/stage0/stdlib/Lean/Meta/Match/CaseArraySizes.c @@ -56,6 +56,7 @@ lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, l static lean_object* l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit_loop___closed__3; lean_object* l_Lean_Meta_caseArraySizes_match__1___rarg(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_mkRawNatLit(lean_object*); lean_object* l_Lean_Meta_getArrayArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_getArrayArgType___closed__5; @@ -108,7 +109,6 @@ lean_object* l_Lean_Meta_caseArraySizes_match__1(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_caseArraySizes___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit_loop___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(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_Array_mapIdxM_map___at_Lean_Meta_caseArraySizes___spec__3___boxed(lean_object**); @@ -427,8 +427,8 @@ lean_object* l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_mkArrayGetL _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_Lean_mkNatLit(x_2); -x_11 = l_Lean_mkNatLit(x_3); +x_10 = l_Lean_mkRawNatLit(x_2); +x_11 = l_Lean_mkRawNatLit(x_3); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); @@ -797,7 +797,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_Lean_mkNatLit(x_3); +x_23 = l_Lean_mkRawNatLit(x_3); x_24 = l___private_Lean_Meta_Match_CaseArraySizes_0__Lean_Meta_introArrayLit_loop___closed__3; x_25 = lean_array_push(x_24, x_2); x_26 = lean_array_push(x_25, x_23); @@ -1221,7 +1221,7 @@ x_6 = lean_array_uget(x_3, x_2); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_3, x_2, x_7); x_9 = x_6; -x_10 = l_Lean_mkNatLit(x_9); +x_10 = l_Lean_mkRawNatLit(x_9); x_11 = 1; x_12 = x_2 + x_11; x_13 = x_10; diff --git a/stage0/stdlib/Lean/Meta/Match/Match.c b/stage0/stdlib/Lean/Meta/Match/Match.c index fb6b1dba9d..bd6e33652a 100644 --- a/stage0/stdlib/Lean/Meta/Match/Match.c +++ b/stage0/stdlib/Lean/Meta/Match/Match.c @@ -353,6 +353,7 @@ lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_Match_0__Lean_Meta lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processAsPattern___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_hasArrayLitPattern(lean_object*); static lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_withAlts_loop___rarg___lambda__1___closed__1; +lean_object* l_Lean_mkRawNatLit(lean_object*); lean_object* l_Lean_Meta_Match_mkMatcher___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Match_processInaccessibleAsCtor___closed__2; lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_throwCasesException_match__1___rarg(lean_object*, lean_object*, lean_object*); @@ -815,7 +816,6 @@ lean_object* l_Lean_Meta_Match_mkMatcherAuxDefinition___lambda__5(lean_object*, lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Match_mkMatcher___lambda__5___closed__3; static lean_object* l_Lean_Meta_Match_mkMatcher___lambda__5___closed__7; -lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_processLeaf___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_process_tryToProcess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); @@ -18524,7 +18524,7 @@ x_28 = lean_unsigned_to_nat(1u); x_29 = lean_nat_sub(x_25, x_28); lean_dec(x_25); x_30 = lean_box(0); -x_31 = l_Lean_mkNatLit(x_29); +x_31 = l_Lean_mkRawNatLit(x_29); lean_ctor_set(x_12, 0, x_31); lean_ctor_set(x_10, 1, x_30); x_32 = l_List_map___at___private_Lean_Meta_Match_Match_0__Lean_Meta_Match_expandNatValuePattern___spec__1___closed__4; @@ -18570,7 +18570,7 @@ x_40 = lean_unsigned_to_nat(1u); x_41 = lean_nat_sub(x_37, x_40); lean_dec(x_37); x_42 = lean_box(0); -x_43 = l_Lean_mkNatLit(x_41); +x_43 = l_Lean_mkRawNatLit(x_41); lean_ctor_set(x_12, 0, x_43); x_44 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_44, 0, x_12); @@ -18630,7 +18630,7 @@ x_55 = lean_unsigned_to_nat(1u); x_56 = lean_nat_sub(x_52, x_55); lean_dec(x_52); x_57 = lean_box(0); -x_58 = l_Lean_mkNatLit(x_56); +x_58 = l_Lean_mkRawNatLit(x_56); lean_ctor_set(x_12, 0, x_58); if (lean_is_scalar(x_51)) { x_59 = lean_alloc_ctor(1, 2, 0); @@ -18797,7 +18797,7 @@ x_83 = lean_unsigned_to_nat(1u); x_84 = lean_nat_sub(x_80, x_83); lean_dec(x_80); x_85 = lean_box(0); -x_86 = l_Lean_mkNatLit(x_84); +x_86 = l_Lean_mkRawNatLit(x_84); x_87 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_87, 0, x_86); if (lean_is_scalar(x_79)) { @@ -19035,7 +19035,7 @@ x_123 = lean_unsigned_to_nat(1u); x_124 = lean_nat_sub(x_120, x_123); lean_dec(x_120); x_125 = lean_box(0); -x_126 = l_Lean_mkNatLit(x_124); +x_126 = l_Lean_mkRawNatLit(x_124); if (lean_is_scalar(x_115)) { x_127 = lean_alloc_ctor(3, 1, 0); } else { diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c index 48a55e0711..e34a3cd1aa 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpLemmas.c @@ -10428,7 +10428,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_SimpLemma_getValue___closed__1; x_2 = l_Lean_Meta_SimpLemma_getValue___closed__2; -x_3 = lean_unsigned_to_nat(864u); +x_3 = lean_unsigned_to_nat(868u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_SimpLemma_getValue___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/Transform.c b/stage0/stdlib/Lean/Meta/Transform.c index 3e0d7f08b5..45b5e8a361 100644 --- a/stage0/stdlib/Lean/Meta/Transform.c +++ b/stage0/stdlib/Lean/Meta/Transform.c @@ -873,7 +873,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__2; -x_3 = lean_unsigned_to_nat(923u); +x_3 = lean_unsigned_to_nat(927u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -980,7 +980,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__4___closed__1; -x_3 = lean_unsigned_to_nat(909u); +x_3 = lean_unsigned_to_nat(913u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__4___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1087,7 +1087,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__6___closed__1; -x_3 = lean_unsigned_to_nat(932u); +x_3 = lean_unsigned_to_nat(936u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__6___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1225,7 +1225,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__1; -x_3 = lean_unsigned_to_nat(890u); +x_3 = lean_unsigned_to_nat(894u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__9___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1299,7 +1299,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Core_transform_visit___rarg___lambda__2___closed__1; x_2 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__1; -x_3 = lean_unsigned_to_nat(895u); +x_3 = lean_unsigned_to_nat(899u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Core_transform_visit___rarg___lambda__10___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/WHNF.c b/stage0/stdlib/Lean/Meta/WHNF.c index 1b5f50e083..6883ce4eef 100644 --- a/stage0/stdlib/Lean/Meta/WHNF.c +++ b/stage0/stdlib/Lean/Meta/WHNF.c @@ -176,6 +176,7 @@ lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_useWHNFCache(lean_object*, lean_object* l_Lean_Meta_reduceRecMatcher_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_toCtorIfLit___closed__3; +lean_object* l_Lean_mkRawNatLit(lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_isRecStuck_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfHeadPred___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1732,7 +1733,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_unsigned_to_nat(1u); x_7 = lean_nat_sub(x_3, x_6); lean_dec(x_3); -x_8 = l_Lean_mkNatLit(x_7); +x_8 = l_Lean_mkRawNatLit(x_7); x_9 = l_Lean_Meta_toCtorIfLit___closed__5; x_10 = l_Lean_mkApp(x_9, x_8); return x_10; @@ -16427,7 +16428,7 @@ else lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_23 = lean_unsigned_to_nat(0u); x_24 = lean_apply_1(x_1, x_23); -x_25 = l_Lean_mkNatLit(x_24); +x_25 = l_Lean_mkRawNatLit(x_24); x_26 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_8, 0, x_26); @@ -16482,7 +16483,7 @@ else lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; x_38 = lean_unsigned_to_nat(0u); x_39 = lean_apply_1(x_1, x_38); -x_40 = l_Lean_mkNatLit(x_39); +x_40 = l_Lean_mkRawNatLit(x_39); x_41 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_41, 0, x_40); x_42 = lean_alloc_ctor(0, 2, 0); @@ -16602,7 +16603,7 @@ x_64 = lean_ctor_get(x_61, 0); lean_inc(x_64); lean_dec(x_61); x_65 = lean_apply_1(x_1, x_64); -x_66 = l_Lean_mkNatLit(x_65); +x_66 = l_Lean_mkRawNatLit(x_65); x_67 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_67, 0, x_66); lean_ctor_set(x_8, 0, x_67); @@ -16618,7 +16619,7 @@ x_69 = lean_ctor_get(x_61, 0); lean_inc(x_69); lean_dec(x_61); x_70 = lean_apply_1(x_1, x_69); -x_71 = l_Lean_mkNatLit(x_70); +x_71 = l_Lean_mkRawNatLit(x_70); x_72 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_72, 0, x_71); x_73 = lean_alloc_ctor(0, 2, 0); @@ -16717,7 +16718,7 @@ _start: lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_8 = lean_unsigned_to_nat(0u); x_9 = lean_apply_2(x_1, x_8, x_8); -x_10 = l_Lean_mkNatLit(x_9); +x_10 = l_Lean_mkRawNatLit(x_9); x_11 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_11, 0, x_10); x_12 = lean_alloc_ctor(0, 2, 0); @@ -16732,7 +16733,7 @@ _start: lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_9 = lean_unsigned_to_nat(0u); x_10 = lean_apply_2(x_1, x_9, x_2); -x_11 = l_Lean_mkNatLit(x_10); +x_11 = l_Lean_mkRawNatLit(x_10); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -16747,7 +16748,7 @@ _start: lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_9 = lean_unsigned_to_nat(0u); x_10 = lean_apply_2(x_1, x_2, x_9); -x_11 = l_Lean_mkNatLit(x_10); +x_11 = l_Lean_mkRawNatLit(x_10); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); x_13 = lean_alloc_ctor(0, 2, 0); @@ -16761,7 +16762,7 @@ _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_10 = lean_apply_2(x_1, x_2, x_3); -x_11 = l_Lean_mkNatLit(x_10); +x_11 = l_Lean_mkRawNatLit(x_10); x_12 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_12, 0, x_11); x_13 = lean_alloc_ctor(0, 2, 0); diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index 95b3c3a4f8..48bdf6655c 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -11117,7 +11117,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__2; -x_3 = lean_unsigned_to_nat(873u); +x_3 = lean_unsigned_to_nat(877u); x_4 = lean_unsigned_to_nat(16u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11200,7 +11200,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__11___closed__1; -x_3 = lean_unsigned_to_nat(864u); +x_3 = lean_unsigned_to_nat(868u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__11___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11286,7 +11286,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12___closed__1; -x_3 = lean_unsigned_to_nat(923u); +x_3 = lean_unsigned_to_nat(927u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__12___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11393,7 +11393,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__1; -x_3 = lean_unsigned_to_nat(909u); +x_3 = lean_unsigned_to_nat(913u); x_4 = lean_unsigned_to_nat(23u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__14___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11500,7 +11500,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__16___closed__1; -x_3 = lean_unsigned_to_nat(932u); +x_3 = lean_unsigned_to_nat(936u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__16___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11634,7 +11634,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__19___closed__1; -x_3 = lean_unsigned_to_nat(890u); +x_3 = lean_unsigned_to_nat(894u); x_4 = lean_unsigned_to_nat(19u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__19___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -11720,7 +11720,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__10___closed__1; x_2 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20___closed__1; -x_3 = lean_unsigned_to_nat(895u); +x_3 = lean_unsigned_to_nat(899u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_MetavarContext_instantiateExprMVars___rarg___lambda__20___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Parser/Extension.c b/stage0/stdlib/Lean/Parser/Extension.c index 9d38e1ff7e..928f529af3 100644 --- a/stage0/stdlib/Lean/Parser/Extension.c +++ b/stage0/stdlib/Lean/Parser/Extension.c @@ -261,6 +261,7 @@ lean_object* l_Lean_Parser_nonReservedSymbolInfo(lean_object*, uint8_t); lean_object* l_Lean_Parser_ParserExtension_instInhabitedState; static lean_object* l___private_Lean_Parser_Extension_0__Lean_Parser_registerParserAttributeImplBuilder___closed__1; static lean_object* l_Lean_Parser_parserExtension___closed__6; +lean_object* l_Lean_mkRawNatLit(lean_object*); lean_object* l_List_forM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkParserOfConstantUnsafe(lean_object*); lean_object* l_Lean_registerAttributeOfBuilder(lean_object*, lean_object*, lean_object*, lean_object*); @@ -541,7 +542,6 @@ static lean_object* l_Std_PersistentHashMap_foldlMAux___at_Lean_Parser_getSyntax lean_object* l_Lean_Parser_addLeadingParser_match__2(lean_object*); lean_object* l_Std_PersistentHashMap_foldlM___at___private_Lean_Parser_Extension_0__Lean_Parser_ParserAttribute_add___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_getParserPriority___closed__3; -lean_object* l_Lean_mkNatLit(lean_object*); static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_2883____closed__5; static lean_object* l_Lean_Parser_initFn____x40_Lean_Parser_Extension___hyg_4322____closed__4; lean_object* l_Std_PersistentHashMap_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -10422,7 +10422,7 @@ lean_inc(x_4); x_12 = l_Lean_Name_toExprAux(x_4); lean_inc(x_4); x_13 = l_Lean_mkConst(x_4, x_9); -x_14 = l_Lean_mkNatLit(x_5); +x_14 = l_Lean_mkRawNatLit(x_5); x_15 = l_Lean_Parser_declareBuiltinParser___closed__10; x_16 = lean_array_push(x_15, x_11); x_17 = lean_array_push(x_16, x_12); diff --git a/stage0/stdlib/Lean/Structure.c b/stage0/stdlib/Lean/Structure.c index 05c3e1d778..0338428c80 100644 --- a/stage0/stdlib/Lean/Structure.c +++ b/stage0/stdlib/Lean/Structure.c @@ -21,83 +21,176 @@ static lean_object* l_Lean_getStructureCtor___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at_Lean_getParentStructures___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_getStructureCtor___closed__2; lean_object* l_Lean_isInternalSubobjectFieldName_match__1(lean_object*); +uint8_t l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___lambda__1(lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_deinternalizeFieldName_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkInternalSubobjectFieldName___closed__1; +lean_object* l_Lean_instInhabitedStructureDescr; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsAux_match__1(lean_object*); +lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructureAux_match__1(lean_object*); lean_object* l_Lean_isInternalSubobjectFieldName_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getStructureCtor___closed__4; +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__1(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_Lean_structureExt___elambda__1(lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Lean_instInhabitedStructureState; +uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_registerStructure___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_structureExt___closed__7; +lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__5(lean_object*, lean_object*, size_t, size_t); +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__2___boxed(lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_getPathToBaseStructureAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +extern lean_object* l_Lean_instHashableName; +lean_object* l_Lean_registerStructure(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4(lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_registerStructure___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); uint8_t l_Lean_isInternalSubobjectFieldName(lean_object*); lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux_match__2(lean_object*); +lean_object* lean_string_append(lean_object*, lean_object*); +static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__1; lean_object* l_Lean_deinternalizeFieldName_match__1(lean_object*); +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getProjFnForField_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_structureExt___elambda__4___boxed(lean_object*, lean_object*); uint8_t l_USize_decLt(size_t, size_t); lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_findField_x3f___spec__2(lean_object*, lean_object*, size_t, size_t); lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__3; lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFieldsFlattened___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_structureExt___elambda__3___boxed(lean_object*, lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_structureExt___elambda__3(lean_object*, lean_object*); +static lean_object* l_Lean_instInhabitedStructureFieldInfo___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux___spec__1(lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_isStructureLike___boxed(lean_object*, lean_object*); lean_object* l_Lean_getStructureCtor_match__1(lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3(lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_getParentStructures___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedConstructorVal; lean_object* l_Lean_findField_x3f___lambda__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_instInhabitedStructureFieldInfo; +lean_object* lean_st_ref_take(lean_object*, lean_object*); +lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__5; lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint8_t); -static lean_object* l_Lean_getStructureFields___closed__1; +lean_object* l_Lean_Name_toString(lean_object*, uint8_t); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_instInhabitedStructureEntry___closed__2; static lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__3; +lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getStructureCtor___closed__5; static lean_object* l_Lean_getStructureCtor___closed__3; +lean_object* l_Nat_repr(lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__3(lean_object*, lean_object*); +lean_object* l_Lean_structureExt; uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__6; +static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__2; lean_object* l_Lean_getStructureFields(lean_object*, lean_object*); uint8_t l_Array_anyMUnsafe_any___at_Lean_getProjFnForField_x3f___spec__1(lean_object*, lean_object*, size_t, size_t); uint32_t lean_string_utf8_get(lean_object*, lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_persistentEnvExtensionsRef; +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_structureExt___closed__4; +lean_object* l_Lean_structureExt___elambda__2___boxed(lean_object*); +lean_object* l_Lean_instInhabitedStructureEntry; lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findField_x3f___lambda__1(lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isStructureLike_match__1(lean_object*); +lean_object* l_Std_PersistentHashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_structureExt___closed__1; +lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2___lambda__1___boxed(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_getStructureCtor_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__2; lean_object* l_Array_forInUnsafe_loop___at_Lean_findField_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_projectionFnInfoExt; +lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default; lean_object* l___private_Lean_Structure_0__Lean_hasProjFn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyMUnsafe_any___at_Lean_findField_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getAllParentStructures(lean_object*, lean_object*); +uint8_t l_Array_qsort_sort___at_Lean_registerStructure___spec__2___lambda__1(lean_object*, lean_object*); +lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_structureExt___elambda__4___rarg(lean_object*); +lean_object* l_Lean_structureExt___elambda__4(lean_object*, lean_object*); static lean_object* l_Lean_getStructureCtor___closed__6; +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__4; +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_structureExt___closed__3; uint8_t l_UInt32_decEq(uint32_t, uint32_t); +lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Array_contains___at_Lean_findField_x3f___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_structureExt___elambda__1___boxed(lean_object*); uint8_t l___private_Lean_Structure_0__Lean_hasProjFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__1; +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___boxed(lean_object*); lean_object* l_Lean_getParentStructures(lean_object*, lean_object*); +static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__1; lean_object* l_Lean_mkInternalSubobjectFieldName(lean_object*); +static lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__3(lean_object*); +static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___closed__1; +lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___closed__1; +static lean_object* l_Lean_instInhabitedStructureEntry___closed__1; +static lean_object* l_Lean_structureExt___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105_(lean_object*); +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3; +static lean_object* l_Lean_structureExt___closed__5; +static lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__2; lean_object* l_Lean_getParentStructures_match__1(lean_object*); lean_object* l_Lean_getStructureCtor(lean_object*, lean_object*); lean_object* l_Lean_isStructure___boxed(lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__2; static lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__2; +lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_getAllParentStructures_visit___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +lean_object* l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1(size_t, size_t, lean_object*); +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__2(lean_object*); +static lean_object* l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_getPathToBaseStructureAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_isSubobjectField_x3f(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getParentStructures_match__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__1; lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_structureExt___elambda__2(lean_object*); lean_object* lean_string_length(lean_object*); lean_object* l_Lean_deinternalizeFieldName(lean_object*); lean_object* l_Lean_findField_x3f(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_structureExt___closed__6; lean_object* l_Lean_getPathToBaseStructureAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findField_x3f___closed__1; lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -109,17 +202,1555 @@ lean_object* l_Lean_getAllParentStructures_visit(lean_object*, lean_object*, lea lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_getPathToBaseStructureAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Structure_0__Lean_isSubobjectFieldAux_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); lean_object* l_String_drop(lean_object*, lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4(lean_object*, lean_object*); +lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); uint8_t l_Lean_isStructureLike(lean_object*, lean_object*); +uint32_t lean_uint32_of_nat(lean_object*); +static lean_object* l_Lean_instInhabitedStructureDescr___closed__1; lean_object* l_Lean_findField_x3f___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isInternalSubobjectFieldName___boxed(lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_findField_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_structureExt___elambda__4___rarg___closed__3; +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1; lean_object* l___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_forInUnsafe_loop___at_Lean_getAllParentStructures_visit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isStructure(lean_object*, lean_object*); +static uint32_t l_Lean_structureExt___elambda__4___rarg___closed__1; lean_object* l_Lean_getPathToBaseStructureAux(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +extern lean_object* l_Lean_Name_instBEqName; +static lean_object* l_Lean_structureExt___elambda__4___rarg___closed__2; +static lean_object* _init_l_Lean_instInhabitedStructureFieldInfo___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = 0; +x_3 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*2, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instInhabitedStructureFieldInfo() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instInhabitedStructureFieldInfo___closed__1; +return x_1; +} +} +static lean_object* _init_l_Lean_instInhabitedStructureEntry___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_instInhabitedStructureEntry___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_instInhabitedStructureEntry___closed__1; +x_3 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 2, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instInhabitedStructureEntry() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instInhabitedStructureEntry___closed__2; +return x_1; +} +} +static lean_object* _init_l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Structure_0__Lean_StructureState_map___default___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___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__2; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Structure_0__Lean_StructureState_map___default() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3; +return x_1; +} +} +static lean_object* _init_l_Lean_instInhabitedStructureState() { +_start: +{ +lean_object* x_1; +x_1 = l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3; +return x_1; +} +} +lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_nat_dec_lt(x_6, x_2); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_array_swap(x_4, x_5, x_2); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = l_Lean_instInhabitedStructureEntry; +x_11 = lean_array_get(x_10, x_4, x_6); +lean_inc(x_1); +lean_inc(x_3); +x_12 = lean_apply_2(x_1, x_11, x_3); +x_13 = lean_unbox(x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_6, x_14); +lean_dec(x_6); +x_6 = x_15; +goto _start; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_array_swap(x_4, x_5, x_6); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); +lean_dec(x_5); +x_20 = lean_nat_add(x_6, x_18); +lean_dec(x_6); +x_4 = x_17; +x_5 = x_19; +x_6 = x_20; +goto _start; +} +} +} +} +uint8_t l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_2, 0); +x_5 = l_Lean_Name_quickLt(x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___lambda__1___boxed), 2, 0); +return x_1; +} +} +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_13; +x_13 = lean_nat_dec_lt(x_2, x_3); +if (x_13 == 0) +{ +lean_dec(x_2); +return x_1; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_14 = lean_nat_add(x_2, x_3); +x_15 = lean_unsigned_to_nat(2u); +x_16 = lean_nat_div(x_14, x_15); +lean_dec(x_14); +x_46 = l_Lean_instInhabitedStructureEntry; +x_47 = lean_array_get(x_46, x_1, x_16); +x_48 = lean_array_get(x_46, x_1, x_2); +x_49 = lean_ctor_get(x_47, 0); +lean_inc(x_49); +lean_dec(x_47); +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +lean_dec(x_48); +x_51 = l_Lean_Name_quickLt(x_49, x_50); +lean_dec(x_50); +lean_dec(x_49); +if (x_51 == 0) +{ +x_17 = x_1; +goto block_45; +} +else +{ +lean_object* x_52; +x_52 = lean_array_swap(x_1, x_2, x_16); +x_17 = x_52; +goto block_45; +} +block_45: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_18 = l_Lean_instInhabitedStructureEntry; +x_19 = lean_array_get(x_18, x_17, x_3); +x_20 = lean_array_get(x_18, x_17, x_2); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Name_quickLt(x_21, x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_array_get(x_18, x_17, x_16); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lean_Name_quickLt(x_25, x_21); +lean_dec(x_21); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_16); +x_27 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1; +lean_inc_n(x_2, 2); +x_28 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2(x_27, x_3, x_19, x_17, x_2, x_2); +x_4 = x_28; +goto block_12; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_19); +x_29 = lean_array_swap(x_17, x_16, x_3); +lean_dec(x_16); +x_30 = lean_array_get(x_18, x_29, x_3); +x_31 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1; +lean_inc_n(x_2, 2); +x_32 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2(x_31, x_3, x_30, x_29, x_2, x_2); +x_4 = x_32; +goto block_12; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +lean_dec(x_21); +lean_dec(x_19); +x_33 = lean_array_swap(x_17, x_2, x_3); +x_34 = lean_array_get(x_18, x_33, x_16); +x_35 = lean_array_get(x_18, x_33, x_3); +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +x_38 = l_Lean_Name_quickLt(x_36, x_37); +lean_dec(x_37); +lean_dec(x_36); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_16); +x_39 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1; +lean_inc_n(x_2, 2); +x_40 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2(x_39, x_3, x_35, x_33, x_2, x_2); +x_4 = x_40; +goto block_12; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_35); +x_41 = lean_array_swap(x_33, x_16, x_3); +lean_dec(x_16); +x_42 = lean_array_get(x_18, x_41, x_3); +x_43 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1; +lean_inc_n(x_2, 2); +x_44 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2(x_43, x_3, x_42, x_41, x_2, x_2); +x_4 = x_44; +goto block_12; +} +} +} +} +block_12: +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_nat_dec_le(x_3, x_5); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1(x_6, x_2, x_5); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_5, x_9); +lean_dec(x_5); +x_1 = x_8; +x_2 = x_10; +goto _start; +} +else +{ +lean_dec(x_5); +lean_dec(x_2); +return x_6; +} +} +} +} +uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__5(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +_start: +{ +uint8_t x_5; +x_5 = x_3 == x_4; +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_array_uget(x_2, x_3); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +x_8 = lean_ctor_get(x_1, 0); +x_9 = lean_name_eq(x_7, x_8); +lean_dec(x_7); +if (x_9 == 0) +{ +size_t x_10; size_t x_11; +x_10 = 1; +x_11 = x_3 + x_10; +x_3 = x_11; +goto _start; +} +else +{ +uint8_t x_13; +x_13 = 1; +return x_13; +} +} +else +{ +uint8_t x_14; +x_14 = 0; +return x_14; +} +} +} +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = l_Lean_instInhabitedStructureEntry___closed__1; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_1); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_2); +return x_5; +} +} +static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__1), 2, 0); +return x_1; +} +} +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 2); +lean_inc(x_6); +x_7 = lean_ctor_get(x_1, 3); +lean_inc(x_7); +x_8 = lean_ctor_get(x_1, 4); +lean_inc(x_8); +x_9 = lean_ctor_get(x_1, 5); +lean_inc(x_9); +lean_dec(x_1); +x_10 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___closed__1; +x_11 = lean_alloc_closure((void*)(l_EStateM_bind___rarg), 3, 2); +lean_closure_set(x_11, 0, x_5); +lean_closure_set(x_11, 1, x_10); +x_12 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_11, x_3); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_4); +lean_ctor_set(x_15, 2, x_6); +lean_ctor_set(x_15, 3, x_7); +lean_ctor_set(x_15, 4, x_8); +lean_ctor_set(x_15, 5, x_9); +x_16 = l_Lean_persistentEnvExtensionsRef; +x_17 = lean_st_ref_take(x_16, x_14); +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); +lean_inc(x_15); +x_20 = x_15; +x_21 = lean_array_push(x_18, x_20); +x_22 = lean_st_ref_set(x_16, x_21, x_19); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +lean_ctor_set(x_22, 0, x_15); +return x_22; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 1); +lean_inc(x_25); +lean_dec(x_22); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_15); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_27 = !lean_is_exclusive(x_12); +if (x_27 == 0) +{ +return x_12; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_12, 0); +x_29 = lean_ctor_get(x_12, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_12); +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; +} +} +} +} +static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid environment extension, '"); +return x_1; +} +} +static lean_object* _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' has already been used"); +return x_1; +} +} +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lean_persistentEnvExtensionsRef; +x_4 = lean_st_ref_get(x_3, x_2); +x_5 = !lean_is_exclusive(x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_4, 0); +x_7 = lean_ctor_get(x_4, 1); +x_8 = lean_array_get_size(x_6); +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_lt(x_9, x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_8); +lean_free_object(x_4); +lean_dec(x_6); +x_11 = lean_box(0); +x_12 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(x_1, x_11, x_7); +return x_12; +} +else +{ +uint8_t x_13; +x_13 = lean_nat_dec_le(x_8, x_8); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +lean_free_object(x_4); +lean_dec(x_6); +x_14 = lean_box(0); +x_15 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(x_1, x_14, x_7); +return x_15; +} +else +{ +size_t x_16; size_t x_17; uint8_t x_18; +x_16 = 0; +x_17 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_18 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__5(x_1, x_6, x_16, x_17); +lean_dec(x_6); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; +lean_free_object(x_4); +x_19 = lean_box(0); +x_20 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(x_1, x_19, x_7); +return x_20; +} +else +{ +lean_object* x_21; uint8_t 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_21 = lean_ctor_get(x_1, 0); +lean_inc(x_21); +lean_dec(x_1); +x_22 = 1; +x_23 = l_Lean_Name_toString(x_21, x_22); +x_24 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__1; +x_25 = lean_string_append(x_24, x_23); +lean_dec(x_23); +x_26 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__2; +x_27 = lean_string_append(x_25, x_26); +x_28 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set_tag(x_4, 1); +lean_ctor_set(x_4, 0, x_28); +return x_4; +} +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_29 = lean_ctor_get(x_4, 0); +x_30 = lean_ctor_get(x_4, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_4); +x_31 = lean_array_get_size(x_29); +x_32 = lean_unsigned_to_nat(0u); +x_33 = lean_nat_dec_lt(x_32, x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_31); +lean_dec(x_29); +x_34 = lean_box(0); +x_35 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(x_1, x_34, x_30); +return x_35; +} +else +{ +uint8_t x_36; +x_36 = lean_nat_dec_le(x_31, x_31); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_31); +lean_dec(x_29); +x_37 = lean_box(0); +x_38 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(x_1, x_37, x_30); +return x_38; +} +else +{ +size_t x_39; size_t x_40; uint8_t x_41; +x_39 = 0; +x_40 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_41 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__5(x_1, x_29, x_39, x_40); +lean_dec(x_29); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_box(0); +x_43 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(x_1, x_42, x_30); +return x_43; +} +else +{ +lean_object* x_44; uint8_t 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_44 = lean_ctor_get(x_1, 0); +lean_inc(x_44); +lean_dec(x_1); +x_45 = 1; +x_46 = l_Lean_Name_toString(x_44, x_45); +x_47 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__1; +x_48 = lean_string_append(x_47, x_46); +lean_dec(x_46); +x_49 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__2; +x_50 = lean_string_append(x_48, x_49); +x_51 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_51, 0, x_50); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_30); +return x_52; +} +} +} +} +} +} +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_apply_1(x_1, x_3); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_2); +lean_ctor_set(x_7, 1, x_6); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_5); +return x_8; +} +} +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_ctor_get(x_2, 0); +x_6 = lean_ctor_get(x_2, 1); +lean_inc(x_3); +x_7 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_7, 0, x_3); +lean_ctor_set(x_7, 1, x_5); +x_8 = lean_ctor_get(x_1, 1); +lean_inc(x_8); +lean_dec(x_1); +x_9 = lean_apply_2(x_8, x_6, x_3); +lean_ctor_set(x_2, 1, x_9); +lean_ctor_set(x_2, 0, x_7); +return x_2; +} +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; +x_10 = lean_ctor_get(x_2, 0); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_2); +lean_inc(x_3); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_3); +lean_ctor_set(x_12, 1, x_10); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_apply_2(x_13, x_11, x_3); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_12); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_1, 3); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = l_List_reverse___rarg(x_4); +x_6 = lean_apply_1(x_3, x_5); +return x_6; +} +} +static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("number of local entries: "); +return x_1; +} +} +static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_List_lengthAux___rarg(x_2, x_3); +x_5 = l_Nat_repr(x_4); +x_6 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_6, 0, x_5); +x_7 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__2; +x_8 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +return x_8; +} +} +static lean_object* _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___boxed), 1, 0); +return x_1; +} +} +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +x_5 = lean_box(0); +x_6 = l_Lean_instInhabitedStructureEntry___closed__1; +lean_inc(x_4); +x_7 = lean_apply_1(x_4, x_6); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_5); +lean_ctor_set(x_8, 1, x_7); +x_9 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1); +lean_closure_set(x_9, 0, x_8); +x_10 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__1___boxed), 5, 2); +lean_closure_set(x_10, 0, x_4); +lean_closure_set(x_10, 1, x_5); +lean_inc(x_1); +x_11 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__2), 3, 1); +lean_closure_set(x_11, 0, x_1); +x_12 = lean_alloc_closure((void*)(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__3), 2, 1); +lean_closure_set(x_12, 0, x_1); +x_13 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___closed__1; +x_14 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_14, 0, x_3); +lean_ctor_set(x_14, 1, x_9); +lean_ctor_set(x_14, 2, x_10); +lean_ctor_set(x_14, 3, x_11); +lean_ctor_set(x_14, 4, x_12); +lean_ctor_set(x_14, 5, x_13); +x_15 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4(x_14, x_2); +return x_15; +} +} +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = l_Lean_Name_instBEqName; +x_5 = l_Lean_instHashableName; +x_6 = l_Std_PersistentHashMap_insert___rarg(x_4, x_5, x_1, x_3, x_2); +return x_6; +} +} +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3; +return x_2; +} +} +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_2 = l_List_redLength___rarg(x_1); +x_3 = lean_mk_empty_array_with_capacity(x_2); +lean_dec(x_2); +x_4 = l_List_toArrayAux___rarg(x_1, x_3); +x_5 = lean_array_get_size(x_4); +x_6 = lean_unsigned_to_nat(1u); +x_7 = lean_nat_sub(x_5, x_6); +lean_dec(x_5); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1(x_4, x_8, x_7); +lean_dec(x_7); +return x_9; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("structExt"); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__1), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__3), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__3; +x_3 = l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__4; +x_4 = l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__5; +x_5 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_4); +return x_5; +} +} +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__6; +x_3 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3(x_2, x_1); +return x_3; +} +} +lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} +lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__5(x_1, x_2, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +return x_6; +} +} +lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__2___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_initFn____x40_Lean_Structure___hyg_105____lambda__2(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_structureExt___elambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_box(0); +return x_2; +} +} +lean_object* l_Lean_structureExt___elambda__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_instInhabitedStructureEntry___closed__1; +return x_2; +} +} +lean_object* l_Lean_structureExt___elambda__3(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +static uint32_t _init_l_Lean_structureExt___elambda__4___rarg___closed__1() { +_start: +{ +lean_object* x_1; uint32_t x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_uint32_of_nat(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_structureExt___elambda__4___rarg___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +static lean_object* _init_l_Lean_structureExt___elambda__4___rarg___closed__3() { +_start: +{ +lean_object* x_1; uint32_t x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(0); +x_2 = l_Lean_structureExt___elambda__4___rarg___closed__1; +x_3 = l_Lean_structureExt___elambda__4___rarg___closed__2; +x_4 = lean_alloc_ctor(0, 2, 4); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_3); +lean_ctor_set_uint32(x_4, sizeof(void*)*2, x_2); +return x_4; +} +} +lean_object* l_Lean_structureExt___elambda__4___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_structureExt___elambda__4___rarg___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; +} +} +lean_object* l_Lean_structureExt___elambda__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_structureExt___elambda__4___rarg), 1, 0); +return x_3; +} +} +static lean_object* _init_l_Lean_structureExt___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_structureExt___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_structureExt___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_structureExt___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_structureExt___elambda__4___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_structureExt___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_structureExt___elambda__3___boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_structureExt___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_structureExt___elambda__2___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_structureExt___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_structureExt___elambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_structureExt___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_1 = l_Lean_structureExt___closed__2; +x_2 = lean_box(0); +x_3 = l_Lean_structureExt___closed__3; +x_4 = l_Lean_structureExt___closed__4; +x_5 = l_Lean_structureExt___closed__5; +x_6 = l_Lean_structureExt___closed__6; +x_7 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_7, 0, x_1); +lean_ctor_set(x_7, 1, x_2); +lean_ctor_set(x_7, 2, x_3); +lean_ctor_set(x_7, 3, x_4); +lean_ctor_set(x_7, 4, x_5); +lean_ctor_set(x_7, 5, x_6); +return x_7; +} +} +lean_object* l_Lean_structureExt___elambda__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_structureExt___elambda__1(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_structureExt___elambda__2___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_structureExt___elambda__2(x_1); +lean_dec(x_1); +return x_2; +} +} +lean_object* l_Lean_structureExt___elambda__3___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_structureExt___elambda__3(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +lean_object* l_Lean_structureExt___elambda__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_structureExt___elambda__4(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_instInhabitedStructureDescr___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_instInhabitedStructureEntry___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instInhabitedStructureDescr() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instInhabitedStructureDescr___closed__1; +return x_1; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = x_2 < x_1; +if (x_4 == 0) +{ +lean_object* x_5; +x_5 = x_3; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; 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_6 = lean_array_uget(x_3, x_2); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_uset(x_3, x_2, x_7); +x_9 = x_6; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = 1; +x_12 = x_2 + x_11; +x_13 = x_10; +x_14 = lean_array_uset(x_8, x_2, x_13); +x_2 = x_12; +x_3 = x_14; +goto _start; +} +} +} +lean_object* l_Array_qpartition_loop___at_Lean_registerStructure___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: +{ +uint8_t x_7; +x_7 = lean_nat_dec_lt(x_6, x_2); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_array_swap(x_4, x_5, x_2); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = l_Lean_instInhabitedStructureFieldInfo; +x_11 = lean_array_get(x_10, x_4, x_6); +lean_inc(x_1); +lean_inc(x_3); +x_12 = lean_apply_2(x_1, x_11, x_3); +x_13 = lean_unbox(x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_add(x_6, x_14); +lean_dec(x_6); +x_6 = x_15; +goto _start; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_array_swap(x_4, x_5, x_6); +x_18 = lean_unsigned_to_nat(1u); +x_19 = lean_nat_add(x_5, x_18); +lean_dec(x_5); +x_20 = lean_nat_add(x_6, x_18); +lean_dec(x_6); +x_4 = x_17; +x_5 = x_19; +x_6 = x_20; +goto _start; +} +} +} +} +uint8_t l_Array_qsort_sort___at_Lean_registerStructure___spec__2___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_2, 0); +x_5 = l_Lean_Name_quickLt(x_3, x_4); +return x_5; +} +} +static lean_object* _init_l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_qsort_sort___at_Lean_registerStructure___spec__2___lambda__1___boxed), 2, 0); +return x_1; +} +} +lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_13; +x_13 = lean_nat_dec_lt(x_2, x_3); +if (x_13 == 0) +{ +lean_dec(x_2); +return x_1; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_14 = lean_nat_add(x_2, x_3); +x_15 = lean_unsigned_to_nat(2u); +x_16 = lean_nat_div(x_14, x_15); +lean_dec(x_14); +x_46 = l_Lean_instInhabitedStructureFieldInfo; +x_47 = lean_array_get(x_46, x_1, x_16); +x_48 = lean_array_get(x_46, x_1, x_2); +x_49 = lean_ctor_get(x_47, 0); +lean_inc(x_49); +lean_dec(x_47); +x_50 = lean_ctor_get(x_48, 0); +lean_inc(x_50); +lean_dec(x_48); +x_51 = l_Lean_Name_quickLt(x_49, x_50); +lean_dec(x_50); +lean_dec(x_49); +if (x_51 == 0) +{ +x_17 = x_1; +goto block_45; +} +else +{ +lean_object* x_52; +x_52 = lean_array_swap(x_1, x_2, x_16); +x_17 = x_52; +goto block_45; +} +block_45: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_18 = l_Lean_instInhabitedStructureFieldInfo; +x_19 = lean_array_get(x_18, x_17, x_3); +x_20 = lean_array_get(x_18, x_17, x_2); +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Name_quickLt(x_21, x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_array_get(x_18, x_17, x_16); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_Lean_Name_quickLt(x_25, x_21); +lean_dec(x_21); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_16); +x_27 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1; +lean_inc_n(x_2, 2); +x_28 = l_Array_qpartition_loop___at_Lean_registerStructure___spec__3(x_27, x_3, x_19, x_17, x_2, x_2); +x_4 = x_28; +goto block_12; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_19); +x_29 = lean_array_swap(x_17, x_16, x_3); +lean_dec(x_16); +x_30 = lean_array_get(x_18, x_29, x_3); +x_31 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1; +lean_inc_n(x_2, 2); +x_32 = l_Array_qpartition_loop___at_Lean_registerStructure___spec__3(x_31, x_3, x_30, x_29, x_2, x_2); +x_4 = x_32; +goto block_12; +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +lean_dec(x_21); +lean_dec(x_19); +x_33 = lean_array_swap(x_17, x_2, x_3); +x_34 = lean_array_get(x_18, x_33, x_16); +x_35 = lean_array_get(x_18, x_33, x_3); +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +x_38 = l_Lean_Name_quickLt(x_36, x_37); +lean_dec(x_37); +lean_dec(x_36); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_16); +x_39 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1; +lean_inc_n(x_2, 2); +x_40 = l_Array_qpartition_loop___at_Lean_registerStructure___spec__3(x_39, x_3, x_35, x_33, x_2, x_2); +x_4 = x_40; +goto block_12; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +lean_dec(x_35); +x_41 = lean_array_swap(x_33, x_16, x_3); +lean_dec(x_16); +x_42 = lean_array_get(x_18, x_41, x_3); +x_43 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1; +lean_inc_n(x_2, 2); +x_44 = l_Array_qpartition_loop___at_Lean_registerStructure___spec__3(x_43, x_3, x_42, x_41, x_2, x_2); +x_4 = x_44; +goto block_12; +} +} +} +} +block_12: +{ +lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_nat_dec_le(x_3, x_5); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2(x_6, x_2, x_5); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_5, x_9); +lean_dec(x_5); +x_1 = x_8; +x_2 = x_10; +goto _start; +} +else +{ +lean_dec(x_5); +lean_dec(x_2); +return x_6; +} +} +} +} +lean_object* l_Lean_registerStructure(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; size_t x_6; size_t 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_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_array_get_size(x_4); +x_6 = lean_usize_of_nat(x_5); +x_7 = 0; +lean_inc(x_4); +x_8 = x_4; +x_9 = l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1(x_6, x_7, x_8); +x_10 = x_9; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_5, x_11); +lean_dec(x_5); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2(x_4, x_13, x_12); +lean_dec(x_12); +x_15 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_15, 0, x_3); +lean_ctor_set(x_15, 1, x_10); +lean_ctor_set(x_15, 2, x_14); +x_16 = l_Lean_structureExt; +x_17 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_16, x_1, x_15); +return x_17; +} +} +lean_object* l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; lean_object* x_6; +x_4 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_5 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_6 = l_Array_mapMUnsafe_map___at_Lean_registerStructure___spec__1(x_4, x_5, x_3); +return x_6; +} +} +lean_object* l_Array_qpartition_loop___at_Lean_registerStructure___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_Array_qpartition_loop___at_Lean_registerStructure___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_Array_qsort_sort___at_Lean_registerStructure___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Array_qsort_sort___at_Lean_registerStructure___spec__2(x_1, x_2, x_3); +lean_dec(x_3); +return x_4; +} +} lean_object* l_Lean_isStructureLike_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -574,7 +2205,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_getStructureCtor___closed__1; x_2 = l_Lean_getStructureCtor___closed__2; -x_3 = lean_unsigned_to_nat(44u); +x_3 = lean_unsigned_to_nat(80u); x_4 = lean_unsigned_to_nat(9u); x_5 = l_Lean_getStructureCtor___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -595,7 +2226,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_getStructureCtor___closed__1; x_2 = l_Lean_getStructureCtor___closed__2; -x_3 = lean_unsigned_to_nat(43u); +x_3 = lean_unsigned_to_nat(79u); x_4 = lean_unsigned_to_nat(11u); x_5 = l_Lean_getStructureCtor___closed__5; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -819,15 +2450,6 @@ lean_dec(x_1); return x_5; } } -static lean_object* _init_l_Lean_getStructureFields___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} lean_object* l_Lean_getStructureFields(lean_object* x_1, lean_object* x_2) { _start: { @@ -842,7 +2464,7 @@ x_6 = lean_ctor_get(x_5, 2); lean_inc(x_6); lean_dec(x_5); x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Lean_getStructureFields___closed__1; +x_8 = l_Lean_instInhabitedStructureEntry___closed__1; x_9 = l___private_Lean_Structure_0__Lean_getStructureFieldsAux(x_4, x_7, x_6, x_8); lean_dec(x_4); return x_9; @@ -940,7 +2562,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_getStructureCtor___closed__1; x_2 = l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__1; -x_3 = lean_unsigned_to_nat(66u); +x_3 = lean_unsigned_to_nat(104u); x_4 = lean_unsigned_to_nat(13u); x_5 = l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -1138,7 +2760,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_7 = l_Lean_getStructureFields___closed__1; +x_7 = l_Lean_instInhabitedStructureEntry___closed__1; return x_7; } else @@ -1152,7 +2774,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_9 = l_Lean_getStructureFields___closed__1; +x_9 = l_Lean_instInhabitedStructureEntry___closed__1; return x_9; } else @@ -1161,7 +2783,7 @@ size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; x_10 = 0; x_11 = lean_usize_of_nat(x_4); lean_dec(x_4); -x_12 = l_Lean_getStructureFields___closed__1; +x_12 = l_Lean_instInhabitedStructureEntry___closed__1; x_13 = l_Array_foldlMUnsafe_fold___at_Lean_getParentStructures___spec__1(x_1, x_2, x_3, x_10, x_11, x_12); lean_dec(x_3); return x_13; @@ -1270,7 +2892,7 @@ lean_object* l_Lean_getAllParentStructures(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_Lean_getStructureFields___closed__1; +x_3 = l_Lean_instInhabitedStructureEntry___closed__1; x_4 = l_Lean_getAllParentStructures_visit(x_1, x_2, x_3); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); @@ -1692,7 +3314,7 @@ lean_object* l_Lean_getStructureFieldsFlattened(lean_object* x_1, lean_object* x _start: { lean_object* x_4; lean_object* x_5; -x_4 = l_Lean_getStructureFields___closed__1; +x_4 = l_Lean_instInhabitedStructureEntry___closed__1; x_5 = l___private_Lean_Structure_0__Lean_getStructureFieldsFlattenedAux(x_1, x_2, x_4, x_3); return x_5; } @@ -2190,6 +3812,82 @@ lean_dec_ref(res); res = initialize_Lean_ProjFns(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_instInhabitedStructureFieldInfo___closed__1 = _init_l_Lean_instInhabitedStructureFieldInfo___closed__1(); +lean_mark_persistent(l_Lean_instInhabitedStructureFieldInfo___closed__1); +l_Lean_instInhabitedStructureFieldInfo = _init_l_Lean_instInhabitedStructureFieldInfo(); +lean_mark_persistent(l_Lean_instInhabitedStructureFieldInfo); +l_Lean_instInhabitedStructureEntry___closed__1 = _init_l_Lean_instInhabitedStructureEntry___closed__1(); +lean_mark_persistent(l_Lean_instInhabitedStructureEntry___closed__1); +l_Lean_instInhabitedStructureEntry___closed__2 = _init_l_Lean_instInhabitedStructureEntry___closed__2(); +lean_mark_persistent(l_Lean_instInhabitedStructureEntry___closed__2); +l_Lean_instInhabitedStructureEntry = _init_l_Lean_instInhabitedStructureEntry(); +lean_mark_persistent(l_Lean_instInhabitedStructureEntry); +l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__1 = _init_l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__1(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__1); +l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__2 = _init_l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__2(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__2); +l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3 = _init_l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_StructureState_map___default___closed__3); +l___private_Lean_Structure_0__Lean_StructureState_map___default = _init_l___private_Lean_Structure_0__Lean_StructureState_map___default(); +lean_mark_persistent(l___private_Lean_Structure_0__Lean_StructureState_map___default); +l_Lean_instInhabitedStructureState = _init_l_Lean_instInhabitedStructureState(); +lean_mark_persistent(l_Lean_instInhabitedStructureState); +l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1 = _init_l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1(); +lean_mark_persistent(l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__1___closed__1); +l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___closed__1 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___lambda__2___closed__1); +l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__1 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__1(); +lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__1); +l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__2 = _init_l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__2(); +lean_mark_persistent(l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__4___closed__2); +l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__1); +l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__2 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___lambda__4___closed__2); +l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___closed__1 = _init_l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___closed__1(); +lean_mark_persistent(l_Lean_registerSimplePersistentEnvExtension___at_Lean_initFn____x40_Lean_Structure___hyg_105____spec__3___closed__1); +l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__1 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__1); +l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__2 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__2); +l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__3 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__3); +l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__4 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__4); +l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__5 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__5); +l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__6 = _init_l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Structure___hyg_105____closed__6); +l_Lean_structureExt___elambda__4___rarg___closed__1 = _init_l_Lean_structureExt___elambda__4___rarg___closed__1(); +l_Lean_structureExt___elambda__4___rarg___closed__2 = _init_l_Lean_structureExt___elambda__4___rarg___closed__2(); +lean_mark_persistent(l_Lean_structureExt___elambda__4___rarg___closed__2); +l_Lean_structureExt___elambda__4___rarg___closed__3 = _init_l_Lean_structureExt___elambda__4___rarg___closed__3(); +lean_mark_persistent(l_Lean_structureExt___elambda__4___rarg___closed__3); +l_Lean_structureExt___closed__1 = _init_l_Lean_structureExt___closed__1(); +lean_mark_persistent(l_Lean_structureExt___closed__1); +l_Lean_structureExt___closed__2 = _init_l_Lean_structureExt___closed__2(); +lean_mark_persistent(l_Lean_structureExt___closed__2); +l_Lean_structureExt___closed__3 = _init_l_Lean_structureExt___closed__3(); +lean_mark_persistent(l_Lean_structureExt___closed__3); +l_Lean_structureExt___closed__4 = _init_l_Lean_structureExt___closed__4(); +lean_mark_persistent(l_Lean_structureExt___closed__4); +l_Lean_structureExt___closed__5 = _init_l_Lean_structureExt___closed__5(); +lean_mark_persistent(l_Lean_structureExt___closed__5); +l_Lean_structureExt___closed__6 = _init_l_Lean_structureExt___closed__6(); +lean_mark_persistent(l_Lean_structureExt___closed__6); +l_Lean_structureExt___closed__7 = _init_l_Lean_structureExt___closed__7(); +lean_mark_persistent(l_Lean_structureExt___closed__7); +res = l_Lean_initFn____x40_Lean_Structure___hyg_105_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_structureExt = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_structureExt); +lean_dec_ref(res); +l_Lean_instInhabitedStructureDescr___closed__1 = _init_l_Lean_instInhabitedStructureDescr___closed__1(); +lean_mark_persistent(l_Lean_instInhabitedStructureDescr___closed__1); +l_Lean_instInhabitedStructureDescr = _init_l_Lean_instInhabitedStructureDescr(); +lean_mark_persistent(l_Lean_instInhabitedStructureDescr); +l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1 = _init_l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1(); +lean_mark_persistent(l_Array_qsort_sort___at_Lean_registerStructure___spec__2___closed__1); l_Lean_mkInternalSubobjectFieldName___closed__1 = _init_l_Lean_mkInternalSubobjectFieldName___closed__1(); lean_mark_persistent(l_Lean_mkInternalSubobjectFieldName___closed__1); l_Lean_getStructureCtor___closed__1 = _init_l_Lean_getStructureCtor___closed__1(); @@ -2204,8 +3902,6 @@ l_Lean_getStructureCtor___closed__5 = _init_l_Lean_getStructureCtor___closed__5( lean_mark_persistent(l_Lean_getStructureCtor___closed__5); l_Lean_getStructureCtor___closed__6 = _init_l_Lean_getStructureCtor___closed__6(); lean_mark_persistent(l_Lean_getStructureCtor___closed__6); -l_Lean_getStructureFields___closed__1 = _init_l_Lean_getStructureFields___closed__1(); -lean_mark_persistent(l_Lean_getStructureFields___closed__1); l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__1 = _init_l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__1(); lean_mark_persistent(l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__1); l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__2 = _init_l___private_Lean_Structure_0__Lean_isSubobjectFieldAux___closed__2(); diff --git a/stage0/stdlib/Std/Data/PersistentHashMap.c b/stage0/stdlib/Std/Data/PersistentHashMap.c index 14ad646ba6..b20b7409a2 100644 --- a/stage0/stdlib/Std/Data/PersistentHashMap.c +++ b/stage0/stdlib/Std/Data/PersistentHashMap.c @@ -61,7 +61,6 @@ lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentHashMap_toList___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize_match__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_PersistentHashMap_collectStats_match__2(lean_object*, lean_object*, lean_object*); lean_object* l_Nat_max(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize(lean_object*, lean_object*); @@ -90,6 +89,7 @@ lean_object* l_Std_PersistentHashMap_empty___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_erase_match__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PersistentHashMap_find_x21___rarg___closed__4; lean_object* l_Std_PersistentHashMap_foldlMAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_containsAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldl___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentHashMap_toList___spec__3___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); @@ -134,7 +134,7 @@ lean_object* l_Std_PersistentHashMap_containsAtAux___rarg___boxed(lean_object*, lean_object* l_Std_PersistentHashMap_collectStats(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findEntry_x3f(lean_object*, lean_object*); -lean_object* l_Std_PersistentHashMap_collectStats_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_collectStats_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_foldlMAux___at_Std_PersistentHashMap_toList___spec__2___rarg(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_stats___rarg(lean_object*); lean_object* l_Std_PersistentHashMap_forM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -200,7 +200,7 @@ lean_object* l_Std_PersistentHashMap_eraseAux___rarg___boxed(lean_object*, lean_ lean_object* l_Std_PersistentHashMap_isUnaryNode_match__1(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_isEmpty___rarg___boxed(lean_object*); lean_object* l_Std_PersistentHashMap_contains(lean_object*, lean_object*); -lean_object* l_Std_PersistentHashMap_collectStats_match__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_containsAux_match__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Std_PersistentHashMap_Stats_toString___closed__5; lean_object* l_Std_PersistentHashMap_insert_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_findD(lean_object*, lean_object*); @@ -2213,6 +2213,54 @@ x_8 = lean_box(x_7); return x_8; } } +lean_object* l_Std_PersistentHashMap_containsAux_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_2(x_4, x_5, x_6); +return x_7; +} +case 1: +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_2); +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; +} +default: +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_4); +lean_dec(x_3); +x_10 = lean_box(0); +x_11 = lean_apply_1(x_2, x_10); +return x_11; +} +} +} +} +lean_object* l_Std_PersistentHashMap_containsAux_match__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_containsAux_match__1___rarg), 4, 0); +return x_4; +} +} lean_object* l_Std_PersistentHashMap_containsAux___rarg(lean_object* x_1, lean_object* x_2, size_t x_3, lean_object* x_4) { _start: { @@ -4129,55 +4177,7 @@ x_1 = lean_unsigned_to_nat(0u); return x_1; } } -lean_object* l_Std_PersistentHashMap_collectStats_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -lean_dec(x_3); -lean_dec(x_2); -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_2(x_4, x_5, x_6); -return x_7; -} -case 1: -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_4); -lean_dec(x_2); -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; -} -default: -{ -lean_object* x_10; lean_object* x_11; -lean_dec(x_4); -lean_dec(x_3); -x_10 = lean_box(0); -x_11 = lean_apply_1(x_2, x_10); -return x_11; -} -} -} -} -lean_object* l_Std_PersistentHashMap_collectStats_match__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_collectStats_match__1___rarg), 4, 0); -return x_4; -} -} -lean_object* l_Std_PersistentHashMap_collectStats_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* l_Std_PersistentHashMap_collectStats_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) @@ -4204,11 +4204,11 @@ return x_10; } } } -lean_object* l_Std_PersistentHashMap_collectStats_match__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_PersistentHashMap_collectStats_match__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_collectStats_match__2___rarg), 5, 0); +x_4 = lean_alloc_closure((void*)(l_Std_PersistentHashMap_collectStats_match__1___rarg), 5, 0); return x_4; } }