From 7b3a6745554836cfb49032f212b2866a881978ba Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Fri, 11 Feb 2022 09:31:02 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Classical.lean | 2 +- stage0/src/Init/Data/Array.lean | 1 + stage0/src/Init/Data/Array/Basic.lean | 6 +- stage0/src/Init/Data/Array/DecidableEq.lean | 52 + stage0/src/Init/Data/Nat/Basic.lean | 5 + stage0/src/Init/SimpLemmas.lean | 4 + stage0/src/Lean/Elab/AutoBound.lean | 18 +- stage0/src/Lean/Elab/LetRec.lean | 40 +- stage0/src/Lean/Elab/Level.lean | 2 +- stage0/src/Lean/Elab/PreDefinition/Basic.lean | 12 + stage0/src/Lean/Elab/PreDefinition/Eqns.lean | 13 +- stage0/src/Lean/Elab/PreDefinition/Main.lean | 13 + .../Elab/PreDefinition/Structural/BRecOn.lean | 35 +- .../Elab/PreDefinition/Structural/Basic.lean | 12 - .../Elab/PreDefinition/Structural/Eqns.lean | 19 +- .../src/Lean/Elab/PreDefinition/WF/Eqns.lean | 14 +- .../src/Lean/Elab/PreDefinition/WF/Fix.lean | 20 +- .../Elab/PreDefinition/WF/PackDomain.lean | 81 +- stage0/src/Lean/Elab/Tactic/Simp.lean | 9 - stage0/src/Lean/Elab/Term.lean | 4 +- stage0/src/Lean/Expr.lean | 73 +- stage0/src/Lean/Meta/Basic.lean | 11 + stage0/src/Lean/Meta/CongrTheorems.lean | 75 +- .../src/Lean/Meta/Tactic/Contradiction.lean | 15 + stage0/src/Lean/Meta/Tactic/Delta.lean | 2 +- stage0/src/Lean/Meta/Tactic/Simp/Main.lean | 156 +- stage0/src/Lean/Meta/Tactic/Simp/Types.lean | 8 +- stage0/src/Lean/Meta/Tactic/Split.lean | 48 +- stage0/src/Lean/Meta/Tactic/Util.lean | 14 + stage0/src/Lean/Meta/Transform.lean | 6 +- .../PrettyPrinter/Delaborator/Builtins.lean | 3 +- .../Server/FileWorker/RequestHandling.lean | 4 +- stage0/src/shell/CMakeLists.txt | 12 +- stage0/stdlib/Init/Classical.c | 844 +- stage0/stdlib/Init/Data/Array.c | 6 +- stage0/stdlib/Init/Data/Array/Basic.c | 2 +- stage0/stdlib/Init/Data/Array/DecidableEq.c | 154 + stage0/stdlib/Lean/Elab/AutoBound.c | 318 +- stage0/stdlib/Lean/Elab/Level.c | 2232 +-- stage0/stdlib/Lean/Elab/MutualDef.c | 4 +- stage0/stdlib/Lean/Elab/PreDefinition/Basic.c | 232 + stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c | 3477 ++-- stage0/stdlib/Lean/Elab/PreDefinition/Main.c | 958 +- .../Elab/PreDefinition/Structural/BRecOn.c | 2158 ++- .../Elab/PreDefinition/Structural/Basic.c | 229 - .../Lean/Elab/PreDefinition/Structural/Eqns.c | 1024 +- .../Elab/PreDefinition/Structural/IndPred.c | 4 +- .../Lean/Elab/PreDefinition/Structural/Main.c | 8 +- .../PreDefinition/Structural/Preprocess.c | 43 +- .../stdlib/Lean/Elab/PreDefinition/WF/Eqns.c | 926 +- .../stdlib/Lean/Elab/PreDefinition/WF/Fix.c | 2095 ++- .../stdlib/Lean/Elab/PreDefinition/WF/Main.c | 4 +- .../Lean/Elab/PreDefinition/WF/PackDomain.c | 3997 +++- stage0/stdlib/Lean/Elab/StructInst.c | 682 +- stage0/stdlib/Lean/Elab/Tactic/Simp.c | 1133 +- stage0/stdlib/Lean/Elab/Tactic/Split.c | 288 +- stage0/stdlib/Lean/Elab/Term.c | 149 +- stage0/stdlib/Lean/Expr.c | 302 +- stage0/stdlib/Lean/Meta/Basic.c | 849 +- stage0/stdlib/Lean/Meta/Closure.c | 12 +- stage0/stdlib/Lean/Meta/Coe.c | 207 +- stage0/stdlib/Lean/Meta/CongrTheorems.c | 1257 +- stage0/stdlib/Lean/Meta/ExprDefEq.c | 10 +- stage0/stdlib/Lean/Meta/IndPredBelow.c | 207 +- stage0/stdlib/Lean/Meta/InferType.c | 50 +- stage0/stdlib/Lean/Meta/Match/MatchEqs.c | 414 +- stage0/stdlib/Lean/Meta/SynthInstance.c | 172 +- .../stdlib/Lean/Meta/Tactic/Contradiction.c | 771 +- stage0/stdlib/Lean/Meta/Tactic/Delta.c | 276 +- stage0/stdlib/Lean/Meta/Tactic/Induction.c | 21 +- stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c | 15429 ++++++++++++++-- .../Lean/Meta/Tactic/Simp/SimpTheorems.c | 2 +- stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c | 680 +- stage0/stdlib/Lean/Meta/Tactic/Split.c | 4477 ++--- stage0/stdlib/Lean/Meta/Tactic/Util.c | 1082 ++ stage0/stdlib/Lean/Meta/Transform.c | 90 +- stage0/stdlib/Lean/Meta/WHNF.c | 190 +- stage0/stdlib/Lean/MetavarContext.c | 4694 ++--- .../Lean/PrettyPrinter/Delaborator/Builtins.c | 82 +- .../Lean/Server/FileWorker/RequestHandling.c | 1542 +- .../Lean/Server/FileWorker/WidgetRequests.c | 16 +- 81 files changed, 37486 insertions(+), 17102 deletions(-) create mode 100644 stage0/src/Init/Data/Array/DecidableEq.lean create mode 100644 stage0/stdlib/Init/Data/Array/DecidableEq.c diff --git a/stage0/src/Init/Classical.lean b/stage0/src/Init/Classical.lean index 3e63cdfdec..95262b0173 100644 --- a/stage0/src/Init/Classical.lean +++ b/stage0/src/Init/Classical.lean @@ -125,7 +125,7 @@ theorem byCases {p q : Prop} (hpq : p → q) (hnpq : ¬p → q) : q := theorem byContradiction {p : Prop} (h : ¬p → False) : p := Decidable.byContradiction (dec := propDecidable _) h -macro "byCases" h:ident ":" e:term : tactic => +macro "by_cases" h:ident ":" e:term : tactic => `(cases em $e:term with | inl $h:ident => _ | inr $h:ident => _) diff --git a/stage0/src/Init/Data/Array.lean b/stage0/src/Init/Data/Array.lean index 26b67484ca..daaced8f1c 100644 --- a/stage0/src/Init/Data/Array.lean +++ b/stage0/src/Init/Data/Array.lean @@ -8,3 +8,4 @@ import Init.Data.Array.Basic import Init.Data.Array.QSort import Init.Data.Array.BinSearch import Init.Data.Array.InsertionSort +import Init.Data.Array.DecidableEq diff --git a/stage0/src/Init/Data/Array/Basic.lean b/stage0/src/Init/Data/Array/Basic.lean index 6b56e5ff22..d5a434ddcc 100644 --- a/stage0/src/Init/Data/Array/Basic.lean +++ b/stage0/src/Init/Data/Array/Basic.lean @@ -514,11 +514,7 @@ namespace Array @[specialize] def isEqvAux (a b : Array α) (hsz : a.size = b.size) (p : α → α → Bool) (i : Nat) : Bool := if h : i < a.size then - let aidx : Fin a.size := ⟨i, h⟩; - let bidx : Fin b.size := ⟨i, hsz ▸ h⟩; - match p (a.get aidx) (b.get bidx) with - | true => isEqvAux a b hsz p (i+1) - | false => false + p (a.get ⟨i, h⟩) (b.get ⟨i, hsz ▸ h⟩) && isEqvAux a b hsz p (i+1) else true termination_by _ => a.size - i diff --git a/stage0/src/Init/Data/Array/DecidableEq.lean b/stage0/src/Init/Data/Array/DecidableEq.lean new file mode 100644 index 0000000000..489b30220e --- /dev/null +++ b/stage0/src/Init/Data/Array/DecidableEq.lean @@ -0,0 +1,52 @@ +/- +Copyright (c) 2022 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +prelude +import Init.Data.Array.Basic +import Init.Classical + +namespace Array + +theorem eq_of_isEqvAux [DecidableEq α] (a b : Array α) (hsz : a.size = b.size) (i : Nat) (hi : i ≤ a.size) (heqv : Array.isEqvAux a b hsz (fun x y => x = y) i) : ∀ (j : Nat) (hl : i ≤ j) (hj : j < a.size), a.get ⟨j, hj⟩ = b.get ⟨j, hsz ▸ hj⟩ := by + by_cases h : i < a.size + . intro j low high + unfold Array.isEqvAux at heqv + simp [h] at heqv + have hind := eq_of_isEqvAux a b hsz (i+1) (Nat.succ_le_of_lt h) heqv.2 + by_cases heq : i = j + . subst heq; exact heqv.1 + . exact hind j (Nat.succ_le_of_lt (Nat.lt_of_le_and_ne low heq)) high + . intro j low high + have heq : i = a.size := Nat.le_antisymm hi (Nat.ge_of_not_lt h) + subst heq + exact absurd (Nat.lt_of_lt_of_le high low) (Nat.lt_irrefl j) +termination_by _ => a.size - i + +theorem eq_of_isEqv [DecidableEq α] (a b : Array α) : Array.isEqv a b (fun x y => x = y) → a = b := by + simp [Array.isEqv] + split + case inr => intro; contradiction + case inl hsz => + intro h + have aux := eq_of_isEqvAux a b hsz 0 (Nat.zero_le ..) h + exact ext a b hsz fun i h _ => aux i (Nat.zero_le ..) _ + +theorem isEqvAux_self [DecidableEq α] (a : Array α) (i : Nat) : Array.isEqvAux a a rfl (fun x y => x = y) i = true := by + unfold Array.isEqvAux + split + case inl h => simp [h, isEqvAux_self a (i+1)] + case inr h => simp [h] +termination_by _ => a.size - i + +theorem isEqv_self [DecidableEq α] (a : Array α) : Array.isEqv a a (fun x y => x = y) = true := by + simp [isEqv, isEqvAux_self] + +instance [DecidableEq α] : DecidableEq (Array α) := + fun a b => + match h:isEqv a b (fun a b => a = b) with + | true => isTrue (eq_of_isEqv a b h) + | false => isFalse fun h' => by subst h'; rw [isEqv_self] at h; contradiction + +end Array diff --git a/stage0/src/Init/Data/Nat/Basic.lean b/stage0/src/Init/Data/Nat/Basic.lean index 8d71a7b674..416376e8a2 100644 --- a/stage0/src/Init/Data/Nat/Basic.lean +++ b/stage0/src/Init/Data/Nat/Basic.lean @@ -306,6 +306,11 @@ theorem gt_of_not_le {n m : Nat} (h : ¬ n ≤ m) : n > m := | Or.inl h₁ => h₁ | Or.inr h₁ => absurd h₁ h +theorem ge_of_not_lt {n m : Nat} (h : ¬ n < m) : n ≥ m := + match Nat.lt_or_ge n m with + | Or.inl h₁ => absurd h₁ h + | Or.inr h₁ => h₁ + protected theorem add_le_add_left {n m : Nat} (h : n ≤ m) (k : Nat) : k + n ≤ k + m := match le.dest h with | ⟨w, hw⟩ => diff --git a/stage0/src/Init/SimpLemmas.lean b/stage0/src/Init/SimpLemmas.lean index 78c5fbcee1..5143e46eeb 100644 --- a/stage0/src/Init/SimpLemmas.lean +++ b/stage0/src/Init/SimpLemmas.lean @@ -117,9 +117,13 @@ theorem dite_congr {s : Decidable b} [Decidable c] @[simp] theorem Bool.false_or (b : Bool) : (false || b) = b := by cases b <;> rfl @[simp] theorem Bool.true_or (b : Bool) : (true || b) = true := by cases b <;> rfl @[simp] theorem Bool.or_self (b : Bool) : (b || b) = b := by cases b <;> rfl +@[simp] theorem Bool.or_eq_true (a b : Bool) : ((a || b) = true) = (a = true ∨ b = true) := by cases a <;> cases b <;> decide @[simp] theorem Bool.and_false (b : Bool) : (b && false) = false := by cases b <;> rfl @[simp] theorem Bool.and_true (b : Bool) : (b && true) = b := by cases b <;> rfl @[simp] theorem Bool.false_and (b : Bool) : (false && b) = false := by cases b <;> rfl @[simp] theorem Bool.true_and (b : Bool) : (true && b) = b := by cases b <;> rfl @[simp] theorem Bool.and_self (b : Bool) : (b && b) = b := by cases b <;> rfl +@[simp] theorem Bool.and_eq_true (a b : Bool) : ((a && b) = true) = (a = true ∧ b = true) := by cases a <;> cases b <;> decide + +@[simp] theorem decide_eq_true_eq [Decidable p] : (decide p = true) = p := propext <| Iff.intro of_decide_eq_true decide_eq_true diff --git a/stage0/src/Lean/Elab/AutoBound.lean b/stage0/src/Lean/Elab/AutoBound.lean index 7331ded00a..6f6d9f90c6 100644 --- a/stage0/src/Lean/Elab/AutoBound.lean +++ b/stage0/src/Lean/Elab/AutoBound.lean @@ -9,11 +9,17 @@ import Lean.Data.Options namespace Lean.Elab -register_builtin_option autoBoundImplicitLocal : Bool := { +register_builtin_option autoImplicit : Bool := { defValue := true - descr := "Unbound local variables in declaration headers become implicit arguments if they are a lower case or greek letter followed by numeric digits. For example, `def f (x : Vector α n) : Vector α n :=` automatically introduces the implicit variables {α n}." + descr := "Unbound local variables in declaration headers become implicit arguments. In \"relaxed\" mode (default), any atomic identifier is eligible, otherwise only a lower case or greek letter followed by numeric digits are eligible. For example, `def f (x : Vector α n) : Vector α n :=` automatically introduces the implicit variables {α n}." } +register_builtin_option relaxedAutoImplicit : Bool := { + defValue := true + descr := "When \"relaxed\" mode is enabled, any atomic nonempty identifier is eligible for auto bound implicit locals (see optin `autoBoundImplicitLocal`." + } + + private def isValidAutoBoundSuffix (s : String) : Bool := s.toSubstring.drop 1 |>.all fun c => c.isDigit || isSubScriptAlnum c || c == '_' || c == '\'' @@ -31,14 +37,14 @@ When, we try again, a `x` with a new macro scope is created and this process kee Therefore, we do consider identifier with macro scopes anymore. -/ -def isValidAutoBoundImplicitName (n : Name) : Bool := +def isValidAutoBoundImplicitName (n : Name) (relaxed : Bool) : Bool := match n with - | Name.str Name.anonymous s _ => s.length > 0 && (isGreek s[0] || s[0].isLower) && isValidAutoBoundSuffix s + | Name.str Name.anonymous s _ => s.length > 0 && (relaxed || ((isGreek s[0] || s[0].isLower) && isValidAutoBoundSuffix s)) | _ => false -def isValidAutoBoundLevelName (n : Name) : Bool := +def isValidAutoBoundLevelName (n : Name) (relaxed : Bool) : Bool := match n with - | Name.str Name.anonymous s _ => s.length > 0 && s[0].isLower && isValidAutoBoundSuffix s + | Name.str Name.anonymous s _ => s.length > 0 && (relaxed || (s[0].isLower && isValidAutoBoundSuffix s)) | _ => false end Lean.Elab diff --git a/stage0/src/Lean/Elab/LetRec.lean b/stage0/src/Lean/Elab/LetRec.lean index 5a0f539223..8669931858 100644 --- a/stage0/src/Lean/Elab/LetRec.lean +++ b/stage0/src/Lean/Elab/LetRec.lean @@ -57,23 +57,11 @@ private def mkLetRecDeclView (letRec : Syntax) : TermElabM LetRecView := do if decl.isOfKind `Lean.Parser.Term.letIdDecl then pure decl[4] else - liftMacroM $ expandMatchAltsIntoMatch decl decl[3] - pure { - ref := declId - attrs := attrs - shortDeclName := shortDeclName - declName := declName - binderIds := binderIds - type := type - mvar := mvar - valStx := valStx - : LetRecDeclView } + liftMacroM <| expandMatchAltsIntoMatch decl decl[3] + pure { ref := declId, attrs, shortDeclName, declName, binderIds, type, mvar, valStx : LetRecDeclView } else throwUnsupportedSyntax - pure { - decls := decls, - body := letRec[3] - } + return { decls, body := letRec[3] } private partial def withAuxLocalDecls {α} (views : Array LetRecDeclView) (k : Array Expr → TermElabM α) : TermElabM α := let rec loop (i : Nat) (fvars : Array Expr) : TermElabM α := @@ -101,17 +89,17 @@ private def registerLetRecsToLift (views : Array LetRecDeclView) (fvars : Array withRef view.ref do throwError "'{view.declName}' has already been declared" let lctx ← getLCtx - let localInsts ← getLocalInstances + let localInstances ← getLocalInstances let toLift := views.mapIdx fun i view => { - ref := view.ref, - fvarId := fvars[i].fvarId!, - attrs := view.attrs, - shortDeclName := view.shortDeclName, - declName := view.declName, - lctx := lctx, - localInstances := localInsts, - type := view.type, - val := values[i], + ref := view.ref + fvarId := fvars[i].fvarId! + attrs := view.attrs + shortDeclName := view.shortDeclName + declName := view.declName + lctx + localInstances + type := view.type + val := values[i] mvarId := view.mvar.mvarId! : LetRecToLift } modify fun s => { s with letRecsToLift := toLift.toList ++ s.letRecsToLift } @@ -125,6 +113,6 @@ private def registerLetRecsToLift (views : Array LetRecDeclView) (fvars : Array let body ← elabTermEnsuringType view.body expectedType? registerLetRecsToLift view.decls fvars values let mvars := view.decls.map (·.mvar) - pure $ mkAppN (← mkLambdaFVars fvars body) mvars + return mkAppN (← mkLambdaFVars fvars body) mvars end Lean.Elab.Term diff --git a/stage0/src/Lean/Elab/Level.lean b/stage0/src/Lean/Elab/Level.lean index 406e7be8d0..5f41bd5b10 100644 --- a/stage0/src/Lean/Elab/Level.lean +++ b/stage0/src/Lean/Elab/Level.lean @@ -72,7 +72,7 @@ partial def elabLevel (stx : Syntax) : LevelElabM Level := withRef stx do else if kind == identKind then let paramName := stx.getId unless (← get).levelNames.contains paramName do - if (← read).autoBoundImplicit && isValidAutoBoundLevelName paramName then + if (← read).autoBoundImplicit && isValidAutoBoundLevelName paramName (relaxedAutoImplicit.get (← read).options) then modify fun s => { s with levelNames := paramName :: s.levelNames } else throwError "unknown universe level '{paramName}'" diff --git a/stage0/src/Lean/Elab/PreDefinition/Basic.lean b/stage0/src/Lean/Elab/PreDefinition/Basic.lean index 7585f4b970..71d3911341 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Basic.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Basic.lean @@ -170,4 +170,16 @@ def addAndCompilePartialRec (preDefs : Array PreDefinition) : TermElabM Unit := | _ => none modifiers := {} } +private def containsRecFn (recFnName : Name) (e : Expr) : Bool := + (e.find? fun e => e.isConstOf recFnName).isSome + +def ensureNoRecFn (recFnName : Name) (e : Expr) : MetaM Expr := do + if containsRecFn recFnName e then + Meta.forEachExpr e fun e => do + if e.isAppOf recFnName then + throwError "unexpected occurrence of recursive application{indentExpr e}" + pure e + else + pure e + end Lean.Elab diff --git a/stage0/src/Lean/Elab/PreDefinition/Eqns.lean b/stage0/src/Lean/Elab/PreDefinition/Eqns.lean index 940d77919c..230c925618 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Eqns.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Eqns.lean @@ -125,15 +125,17 @@ private def saveEqn (mvarId : MVarId) : StateRefT (Array Expr) MetaM Unit := wit return collectFVars fvarState (← instantiateMVars decl.type) else return fvarState + let mut fvarSet := fvarState.fvarSet let mut fvarIds ← sortFVarIds <| fvarState.fvarSet.toArray - -- Include propositions that are not in fvarState.fvarSet, and only contains variables in + -- Include propositions that are not in fvarState.fvarSet, and only contains variables in fvarSet for decl in (← getLCtx) do - unless fvarState.fvarSet.contains decl.fvarId do + unless fvarSet.contains decl.fvarId do if (← isProp decl.type) then let type ← instantiateMVars decl.type - let missing? := type.find? fun e => e.isFVar && !fvarState.fvarSet.contains e.fvarId! + let missing? := type.find? fun e => e.isFVar && !fvarSet.contains e.fvarId! if missing?.isNone then fvarIds := fvarIds.push decl.fvarId + fvarSet := fvarSet.insert decl.fvarId let type ← mkForallFVars (fvarIds.map mkFVar) target let type ← simpEqnType type modify (·.push type) @@ -143,6 +145,7 @@ partial def mkEqnTypes (declNames : Array Name) (mvarId : MVarId) : MetaM (Array return eqnTypes where go (mvarId : MVarId) : ReaderT Context (StateRefT (Array Expr) MetaM) Unit := do + trace[Elab.definition.structural.eqns] "mkEqnTypes step\n{MessageData.ofGoal mvarId}" if !(← keepGoing mvarId) then saveEqn mvarId else if let some mvarId ← expandRHS? mvarId then @@ -151,7 +154,7 @@ where go mvarId else if let some mvarId ← simpMatch? mvarId then go mvarId - else if let some mvarIds ← splitTarget? mvarId then + else if let some mvarIds ← splitTarget? mvarId (splitIte := false) then mvarIds.forM go else saveEqn mvarId @@ -236,7 +239,7 @@ partial def mkUnfoldProof (declName : Name) (mvarId : MVarId) : MetaM Unit := do go mvarId else if let some mvarId ← simpMatch? mvarId then go mvarId - else if let some mvarIds ← splitTarget? mvarId then + else if let some mvarIds ← splitTarget? mvarId (splitIte := false) then mvarIds.forM go else throwError "failed to generate unfold theorem for '{declName}'\n{MessageData.ofGoal mvarId}" diff --git a/stage0/src/Lean/Elab/PreDefinition/Main.lean b/stage0/src/Lean/Elab/PreDefinition/Main.lean index 0cdcb5a44f..a6ba86795f 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Main.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Main.lean @@ -63,10 +63,23 @@ private def ensureNoUnassignedMVarsAtPreDef (preDef : PreDefinition) : TermElabM else return preDef +/-- + Letrec declarations produce terms of the form `(fun .. => ..) d` where `d` is a (partial) application of an auxiliary declaration for a letrec declaration. + This method beta-reduces them to make sure they can be eliminated by the well-founded recursion module. -/ +private def betaReduceLetRecApps (preDefs : Array PreDefinition) : MetaM (Array PreDefinition) := + preDefs.mapM fun preDef => do + let value ← transform preDef.value fun e => do + if e.isApp && e.getAppFn.isLambda && e.getAppArgs.all fun arg => arg.getAppFn.isConst && preDefs.any fun preDef => preDef.declName == arg.getAppFn.constName! then + return TransformStep.visit e.headBeta + else + return TransformStep.visit e + return { preDef with value } + def addPreDefinitions (preDefs : Array PreDefinition) (hints : TerminationHints) : TermElabM Unit := withLCtx {} {} do for preDef in preDefs do trace[Elab.definition.body] "{preDef.declName} : {preDef.type} :=\n{preDef.value}" let preDefs ← preDefs.mapM ensureNoUnassignedMVarsAtPreDef + let preDefs ← betaReduceLetRecApps preDefs let cliques := partitionPreDefs preDefs let mut terminationBy ← liftMacroM <| WF.expandTerminationBy hints.terminationBy? (cliques.map fun ds => ds.map (·.declName)) let mut decreasingBy ← liftMacroM <| WF.expandTerminationHint hints.decreasingBy? (cliques.map fun ds => ds.map (·.declName)) diff --git a/stage0/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean b/stage0/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean index dbd98408d8..2fefbb0f3b 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Structural/BRecOn.lean @@ -5,6 +5,7 @@ Authors: Leonardo de Moura -/ import Lean.Meta.Match.Match import Lean.Elab.RecAppSyntax +import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.Structural.Basic namespace Lean.Elab.Structural @@ -80,6 +81,21 @@ private partial def toBelow (below : Expr) (numIndParams : Nat) (recArg : Expr) withBelowDict below numIndParams fun C belowDict => toBelowAux C belowDict recArg below +/-- + This method is used after `matcherApp.addArg arg` to check whether the new type of `arg` has been "refined/modified" + in at least one alternative. +-/ +def refinedArgType (matcherApp : MatcherApp) (arg : Expr) : MetaM Bool := do + let argType ← inferType arg + (Array.zip matcherApp.alts matcherApp.altNumParams).anyM fun (alt, numParams) => + lambdaTelescope alt fun xs altBody => do + if xs.size >= numParams then + let refinedArg := xs[numParams - 1] + trace[Meta.debug] "refinedArgType {argType} =?= {← inferType refinedArg}" + return !(← isDefEq (← inferType refinedArg) argType) + else + return false + private partial def replaceRecApps (recFnName : Name) (recArgInfo : RecArgInfo) (below : Expr) (e : Expr) : M Expr := let rec loop (below : Expr) (e : Expr) : M Expr := do match e with @@ -146,14 +162,17 @@ private partial def replaceRecApps (recFnName : Name) (recArgInfo : RecArgInfo) this may generate weird error messages, when it doesn't work. -/ trace[Elab.definition.structural] "below before matcherApp.addArg: {below} : {← inferType below}" let matcherApp ← mapError (matcherApp.addArg below) (fun msg => "failed to add `below` argument to 'matcher' application" ++ indentD msg) - let altsNew ← (Array.zip matcherApp.alts matcherApp.altNumParams).mapM fun (alt, numParams) => - lambdaTelescope alt fun xs altBody => do - trace[Elab.definition.structural] "altNumParams: {numParams}, xs: {xs}" - unless xs.size >= numParams do - throwError "unexpected matcher application alternative{indentExpr alt}\nat application{indentExpr e}" - let belowForAlt := xs[numParams - 1] - mkLambdaFVars xs (← loop belowForAlt altBody) - pure { matcherApp with alts := altsNew }.toExpr + if !(← refinedArgType matcherApp below) then + processApp e + else + let altsNew ← (Array.zip matcherApp.alts matcherApp.altNumParams).mapM fun (alt, numParams) => + lambdaTelescope alt fun xs altBody => do + trace[Elab.definition.structural] "altNumParams: {numParams}, xs: {xs}" + unless xs.size >= numParams do + throwError "unexpected matcher application alternative{indentExpr alt}\nat application{indentExpr e}" + let belowForAlt := xs[numParams - 1] + mkLambdaFVars xs (← loop belowForAlt altBody) + pure { matcherApp with alts := altsNew }.toExpr | none => processApp e | e => ensureNoRecFn recFnName e loop below e diff --git a/stage0/src/Lean/Elab/PreDefinition/Structural/Basic.lean b/stage0/src/Lean/Elab/PreDefinition/Structural/Basic.lean index 6d0862783a..14bbb60b73 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Structural/Basic.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Structural/Basic.lean @@ -54,16 +54,4 @@ def recArgHasLooseBVarsAt (recFnName : Name) (recArgPos : Nat) (e : Expr) : Bool e.isAppOf recFnName && e.getAppNumArgs > recArgPos && (e.getArg! recArgPos).hasLooseBVars app?.isSome -private def containsRecFn (recFnName : Name) (e : Expr) : Bool := - (e.find? fun e => e.isConstOf recFnName).isSome - -def ensureNoRecFn (recFnName : Name) (e : Expr) : MetaM Expr := do - if containsRecFn recFnName e then - Meta.forEachExpr e fun e => do - if e.isAppOf recFnName then - throwError "unexpected occurrence of recursive application{indentExpr e}" - pure e - else - pure e - end Lean.Elab.Structural diff --git a/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean b/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean index 1c8cb13d38..f902d4af2b 100644 --- a/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean +++ b/stage0/src/Lean/Elab/PreDefinition/Structural/Eqns.lean @@ -5,6 +5,7 @@ Authors: Leonardo de Moura -/ import Lean.Meta.Eqns import Lean.Meta.Tactic.Split +import Lean.Meta.Tactic.Simp.Main import Lean.Meta.Tactic.Apply import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.Eqns @@ -41,12 +42,18 @@ where go mvarId else if let some mvarId ← whnfReducibleLHS? mvarId then go mvarId - else if let some mvarId ← deltaRHS? mvarId declName then - go mvarId - else if let some mvarIds ← casesOnStuckLHS? mvarId then - mvarIds.forM go - else - throwError "failed to generate equational theorem for '{declName}'\n{MessageData.ofGoal mvarId}" + else match (← simpTargetStar mvarId {}) with + | TacticResultCNM.closed => return () + | TacticResultCNM.modified mvarId => go mvarId + | TacticResultCNM.noChange => + if let some mvarId ← deltaRHS? mvarId declName then + go mvarId + else if let some mvarIds ← casesOnStuckLHS? mvarId then + mvarIds.forM go + else if let some mvarIds ← splitTarget? mvarId then + mvarIds.forM go + else + throwError "failed to generate equational theorem for '{declName}'\n{MessageData.ofGoal mvarId}" def mkEqns (info : EqnInfo) : MetaM (Array Name) := withOptions (tactic.hygienic.set . false) do diff --git a/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean b/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean index cfa908bc3f..b82d44bfa5 100644 --- a/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean +++ b/stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean @@ -51,10 +51,16 @@ where go mvarId else if let some mvarId ← whnfReducibleLHS? mvarId then go mvarId - else if let some mvarIds ← casesOnStuckLHS? mvarId then - mvarIds.forM go - else - throwError "failed to generate equational theorem for '{declName}'\n{MessageData.ofGoal mvarId}" + else match (← simpTargetStar mvarId {}) with + | TacticResultCNM.closed => return () + | TacticResultCNM.modified mvarId => go mvarId + | TacticResultCNM.noChange => + if let some mvarIds ← casesOnStuckLHS? mvarId then + mvarIds.forM go + else if let some mvarIds ← splitTarget? mvarId then + mvarIds.forM go + else + throwError "failed to generate equational theorem for '{declName}'\n{MessageData.ofGoal mvarId}" def mkEqns (declName : Name) (info : EqnInfo) : MetaM (Array Name) := withOptions (tactic.hygienic.set . false) do diff --git a/stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean b/stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean index c0cd20558e..5a482d4aa2 100644 --- a/stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean +++ b/stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean @@ -10,6 +10,7 @@ import Lean.Elab.Tactic.Basic import Lean.Elab.RecAppSyntax import Lean.Elab.PreDefinition.Basic import Lean.Elab.PreDefinition.Structural.Basic +import Lean.Elab.PreDefinition.Structural.BRecOn namespace Lean.Elab.WF open Meta @@ -62,15 +63,18 @@ private partial def replaceRecApps (recFnName : Name) (decrTactic? : Option Synt processApp e else let matcherApp ← mapError (matcherApp.addArg F) (fun msg => "failed to add functional argument to 'matcher' application" ++ indentD msg) - let altsNew ← (Array.zip matcherApp.alts matcherApp.altNumParams).mapM fun (alt, numParams) => - lambdaTelescope alt fun xs altBody => do - unless xs.size >= numParams do - throwError "unexpected matcher application alternative{indentExpr alt}\nat application{indentExpr e}" - let FAlt := xs[numParams - 1] - mkLambdaFVars xs (← loop FAlt altBody) - return { matcherApp with alts := altsNew, discrs := (← matcherApp.discrs.mapM (loop F)) }.toExpr + if !(← Structural.refinedArgType matcherApp F) then + processApp e + else + let altsNew ← (Array.zip matcherApp.alts matcherApp.altNumParams).mapM fun (alt, numParams) => + lambdaTelescope alt fun xs altBody => do + unless xs.size >= numParams do + throwError "unexpected matcher application alternative{indentExpr alt}\nat application{indentExpr e}" + let FAlt := xs[numParams - 1] + mkLambdaFVars xs (← loop FAlt altBody) + return { matcherApp with alts := altsNew, discrs := (← matcherApp.discrs.mapM (loop F)) }.toExpr | none => processApp e - | e => Structural.ensureNoRecFn recFnName e + | e => ensureNoRecFn recFnName e loop F e /-- Refine `F` over `Sum.casesOn` -/ diff --git a/stage0/src/Lean/Elab/PreDefinition/WF/PackDomain.lean b/stage0/src/Lean/Elab/PreDefinition/WF/PackDomain.lean index dd4d1caa24..a791ee25f2 100644 --- a/stage0/src/Lean/Elab/PreDefinition/WF/PackDomain.lean +++ b/stage0/src/Lean/Elab/PreDefinition/WF/PackDomain.lean @@ -57,7 +57,7 @@ private partial def mkPSigmaCasesOn (y : Expr) (codomain : Expr) (xs : Array Exp Convert the given pre-definitions into unary functions. We "pack" the arguments using `PSigma`. -/ -def packDomain (preDefs : Array PreDefinition) : MetaM (Array PreDefinition) := do +partial def packDomain (preDefs : Array PreDefinition) : MetaM (Array PreDefinition) := do let mut preDefsNew := #[] let mut arities := #[] let mut modified := false @@ -86,16 +86,6 @@ def packDomain (preDefs : Array PreDefinition) : MetaM (Array PreDefinition) := preDefsNew := preDefsNew.push preDefNew if !modified then return preDefs - /- Return `some i` if `e` is a `preDefs[i]` application -/ - let isAppOfPreDef? (e : Expr) : OptionM Nat := do - let f := e.getAppFn - guard f.isConst - preDefs.findIdx? (·.declName == f.constName!) - /- Return `some i` if `e` is a `preDefs[i]` application with `arities[i]` arguments. -/ - let isTargetApp? (e : Expr) : OptionM Nat := do - let i ← isAppOfPreDef? e - guard (e.getAppNumArgs == arities[i]) - return i -- Update values for i in [:preDefs.size] do let preDef := preDefs[i] @@ -105,20 +95,67 @@ def packDomain (preDefs : Array PreDefinition) : MetaM (Array PreDefinition) := forallBoundedTelescope preDefNew.type (some 1) fun y codomain => do let y := y[0] let newBody ← mkPSigmaCasesOn y codomain xs body - let visit (e : Expr) : MetaM TransformStep := do - if let some idx := isTargetApp? e |>.run then - let f := e.getAppFn - let fNew := mkConst preDefsNew[idx].declName f.constLevels! - let Expr.forallE _ d .. ← inferType fNew | unreachable! - let argNew ← mkUnaryArg d e.getAppArgs - return TransformStep.done <| mkApp fNew argNew - else - return TransformStep.done e - mkLambdaFVars #[y] (← transform newBody (post := visit)) - if let some bad := valueNew.find? fun e => (isAppOfPreDef? e).isSome && e.getAppNumArgs > 1 then + mkLambdaFVars #[y] (← packApplications newBody arities preDefsNew) + let isBad (e : Expr) : Bool := + match isAppOfPreDef? e with + | none => false + | some i => e.getAppNumArgs > 1 || preDefsNew[i].declName != preDefs[i].declName + if let some bad := valueNew.find? isBad then if let some i := isAppOfPreDef? bad then throwErrorAt preDef.ref "well-founded recursion cannot be used, function '{preDef.declName}' contains application of function '{preDefs[i].declName}' with #{bad.getAppNumArgs} argument(s), but function has arity {arities[i]}" preDefsNew := preDefsNew.set! i { preDefNew with value := valueNew } return preDefsNew +where + /-- Return `some i` if `e` is a `preDefs[i]` application -/ + isAppOfPreDef? (e : Expr) : OptionM Nat := do + let f := e.getAppFn + guard f.isConst + preDefs.findIdx? (·.declName == f.constName!) + + packApplications (e : Expr) (arities : Array Nat) (preDefsNew : Array PreDefinition) : MetaM Expr := do + let pack (e : Expr) (funIdx : Nat) : MetaM Expr := do + let f := e.getAppFn + let fNew := mkConst preDefsNew[funIdx].declName f.constLevels! + let Expr.forallE _ d .. ← inferType fNew | unreachable! + let argNew ← mkUnaryArg d e.getAppArgs + return mkApp fNew argNew + let rec + visit (e : Expr) : MetaM Expr := do + match e with + | Expr.lam .. => lambdaTelescope e fun xs b => do mkLambdaFVars (usedLetOnly := false) xs (← visit b) + | Expr.letE n t v b _ => withLetDecl n t (← visit v) fun x => do mkLambdaFVars (usedLetOnly := false) #[x] (← visit (b.instantiate1 x)) + | Expr.forallE .. => forallTelescope e fun xs b => do mkForallFVars (usedLetOnly := false) xs (← visit b) + | Expr.proj n i s .. => return mkProj n i (← visit s) + | Expr.mdata d b _ => return mkMData d (← visit b) + | Expr.app .. => visitApp e + | Expr.const .. => visitApp e + | e => return e, + visitApp (e : Expr) : MetaM Expr := e.withApp fun f args => do + let args ← args.mapM visit + if let some funIdx := isAppOfPreDef? f then + let numArgs := args.size + let arity := arities[funIdx] + if numArgs < arity then + -- Partial application + let extra := arity - numArgs + withDefault do forallBoundedTelescope (← inferType e) extra fun xs _ => do + if xs.size != extra then + return (mkAppN f args) -- It will fail later + else + mkLambdaFVars xs (← pack (mkAppN (mkAppN f args) xs) funIdx) + else if numArgs > arity then + -- Over application + let r ← pack (mkAppN f args[:arity]) funIdx + let rType ← inferType r + -- Make sure the new auxiliary definition has only one argument. + withLetDecl (← mkFreshUserName `aux) rType r fun aux => + mkLetFVars #[aux] (mkAppN aux args[arity:]) + else + pack (mkAppN f args) funIdx + else if args.isEmpty then + return f + else + return mkAppN (← visit f) args + visit e end Lean.Elab.WF diff --git a/stage0/src/Lean/Elab/Tactic/Simp.lean b/stage0/src/Lean/Elab/Tactic/Simp.lean index e4f48348b0..95a933d1ea 100644 --- a/stage0/src/Lean/Elab/Tactic/Simp.lean +++ b/stage0/src/Lean/Elab/Tactic/Simp.lean @@ -162,15 +162,6 @@ where else Term.elabCDotFunctionAlias? simpArgTerm --- TODO: move? -private def getPropHyps : MetaM (Array FVarId) := do - let mut result := #[] - for localDecl in (← getLCtx) do - unless localDecl.isAuxDecl do - if (← isProp localDecl.type) then - result := result.push localDecl.fvarId - return result - structure MkSimpContextResult where ctx : Simp.Context dischargeWrapper : Simp.DischargeWrapper diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index aa1ab4af62..866ede26d1 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -1297,7 +1297,7 @@ def elabType (stx : Syntax) : TermElabM Expr := do Enable auto-bound implicits, and execute `k` while catching auto bound implicit exceptions. When an exception is caught, a new local declaration is created, registered, and `k` is tried to be executed again. -/ partial def withAutoBoundImplicit (k : TermElabM α) : TermElabM α := do - let flag := autoBoundImplicitLocal.get (← getOptions) + let flag := autoImplicit.get (← getOptions) if flag then withReader (fun ctx => { ctx with autoBoundImplicit := flag, autoBoundImplicits := {} }) do let rec loop (s : SavedState) : TermElabM α := do @@ -1418,7 +1418,7 @@ def resolveName (stx : Syntax) (n : Name) (preresolved : List (Name × List Stri throw ex where process (candidates : List (Name × List String)) : TermElabM (List (Expr × List String)) := do if candidates.isEmpty then - if (← read).autoBoundImplicit && isValidAutoBoundImplicitName n then + if (← read).autoBoundImplicit && isValidAutoBoundImplicitName n (relaxedAutoImplicit.get (← getOptions)) then throwAutoBoundImplicitLocal n else throwError "unknown identifier '{Lean.mkConst n}'" diff --git a/stage0/src/Lean/Expr.lean b/stage0/src/Lean/Expr.lean index 83e95a435b..9e54c625d0 100644 --- a/stage0/src/Lean/Expr.lean +++ b/stage0/src/Lean/Expr.lean @@ -841,46 +841,59 @@ private partial def mkAppRevRangeAux (revArgs : Array Expr) (start : Nat) (b : E def mkAppRevRange (f : Expr) (beginIdx endIdx : Nat) (revArgs : Array Expr) : Expr := mkAppRevRangeAux revArgs beginIdx f endIdx -private def betaRevAux (revArgs : Array Expr) (sz : Nat) : Expr → Nat → Expr - | Expr.lam _ _ b _, i => - if i + 1 < sz then - betaRevAux revArgs sz b (i+1) - else - let n := sz - (i + 1) - mkAppRevRange (b.instantiateRange n sz revArgs) 0 n revArgs - | Expr.mdata _ b _, i => betaRevAux revArgs sz b i - | b, i => - let n := sz - i - mkAppRevRange (b.instantiateRange n sz revArgs) 0 n revArgs +/-- + If `f` is a lambda expression, than "beta-reduce" it using `revArgs`. + This function is often used with `getAppRev` or `withAppRev`. + Examples: + - `betaRev (fun x y => t x y) #[]` ==> `fun x y => t x y` + - `betaRev (fun x y => t x y) #[a]` ==> `fun y => t a y` + - `betaRev (fun x y => t x y) #[a, b]` ==> t b a` + - `betaRev (fun x y => t x y) #[a, b, c, d]` ==> t d c b a` + Suppose `t` is `(fun x y => t x y) a b c d`, then + `args := t.getAppRev` is `#[d, c, b, a]`, + and `betaRev (fun x y => t x y) #[d, c, b, a]` is `t a b c d`. -/-- If `f` is a lambda expression, than "beta-reduce" it using `revArgs`. - This function is often used with `getAppRev` or `withAppRev`. - Examples: - - `betaRev (fun x y => t x y) #[]` ==> `fun x y => t x y` - - `betaRev (fun x y => t x y) #[a]` ==> `fun y => t a y` - - `betaRev (fun x y => t x y) #[a, b]` ==> t b a` - - `betaRev (fun x y => t x y) #[a, b, c, d]` ==> t d c b a` - Suppose `t` is `(fun x y => t x y) a b c d`, then - `args := t.getAppRev` is `#[d, c, b, a]`, - and `betaRev (fun x y => t x y) #[d, c, b, a]` is `t a b c d`. -/ -def betaRev (f : Expr) (revArgs : Array Expr) : Expr := + If `useZeta` is true, the function also performs zeta-reduction to create further + opportunities for beta reduction. +-/ +partial def betaRev (f : Expr) (revArgs : Array Expr) (useZeta := false) : Expr := if revArgs.size == 0 then f - else betaRevAux revArgs revArgs.size f 0 + else + let sz := revArgs.size + let rec go : Expr → Nat → Expr + | Expr.lam _ _ b _, i => + if i + 1 < sz then + go b (i+1) + else + let n := sz - (i + 1) + mkAppRevRange (b.instantiateRange n sz revArgs) 0 n revArgs + | e@(Expr.letE _ _ v b _), i => + if useZeta && i < sz then + go (b.instantiate1 v) i + else + let n := sz - i + mkAppRevRange (e.instantiateRange n sz revArgs) 0 n revArgs + | Expr.mdata _ b _, i => go b i + | b, i => + let n := sz - i + mkAppRevRange (b.instantiateRange n sz revArgs) 0 n revArgs + go f 0 def beta (f : Expr) (args : Array Expr) : Expr := betaRev f args.reverse -def isHeadBetaTargetFn : Expr → Bool - | Expr.lam _ _ _ _ => true - | Expr.mdata _ b _ => isHeadBetaTargetFn b - | _ => false +def isHeadBetaTargetFn (useZeta : Bool) : Expr → Bool + | Expr.lam .. => true + | Expr.letE _ _ _ b _ => useZeta && isHeadBetaTargetFn useZeta b + | Expr.mdata _ b _ => isHeadBetaTargetFn useZeta b + | _ => false def headBeta (e : Expr) : Expr := let f := e.getAppFn - if f.isHeadBetaTargetFn then betaRev f e.getAppRevArgs else e + if f.isHeadBetaTargetFn false then betaRev f e.getAppRevArgs else e -def isHeadBetaTarget (e : Expr) : Bool := - e.getAppFn.isHeadBetaTargetFn +def isHeadBetaTarget (e : Expr) (useZeta := false) : Bool := + e.getAppFn.isHeadBetaTargetFn useZeta private def etaExpandedBody : Expr → Nat → Nat → Option Expr | app f (bvar j _) _, n+1, i => if j == i then etaExpandedBody f n (i+1) else none diff --git a/stage0/src/Lean/Meta/Basic.lean b/stage0/src/Lean/Meta/Basic.lean index 5bd016337d..b133ca6e8c 100644 --- a/stage0/src/Lean/Meta/Basic.lean +++ b/stage0/src/Lean/Meta/Basic.lean @@ -1295,6 +1295,17 @@ abbrev isDefEqGuarded (t s : Expr) : MetaM Bool := def isDefEqNoConstantApprox (t s : Expr) : MetaM Bool := approxDefEq <| isDefEq t s +/-- + Eta expand the given expression. + Example: + ``` + etaExpand (mkConst `Nat.add) + ``` + produces `fun x y => Nat.add x y` +-/ +def etaExpand (e : Expr) : MetaM Expr := + withDefault do forallTelescopeReducing (← inferType e) fun xs _ => mkLambdaFVars xs (mkAppN e xs) + end Meta builtin_initialize diff --git a/stage0/src/Lean/Meta/CongrTheorems.lean b/stage0/src/Lean/Meta/CongrTheorems.lean index 93c7b924bc..9bf1cb671b 100644 --- a/stage0/src/Lean/Meta/CongrTheorems.lean +++ b/stage0/src/Lean/Meta/CongrTheorems.lean @@ -160,12 +160,44 @@ private def hasCastLike (kinds : Array CongrArgKind) : Bool := private def withNext (type : Expr) (k : Expr → Expr → MetaM α) : MetaM α := do forallBoundedTelescope type (some 1) fun xs type => k xs[0] type +/-- + Test whether we should use `subsingletonInst` kind for instances which depend on `eq`. + (Otherwise `fixKindsForDependencies`will downgrade them to Fixed -/ +private def shouldUseSubsingletonInst (info : FunInfo) (kinds : Array CongrArgKind) (i : Nat) : Bool := Id.run do + if info.paramInfo[i].isDecInst then + for j in info.paramInfo[i].backDeps do + if kinds[j] matches CongrArgKind.eq then + return true + return false + +def getCongrSimpKinds (info : FunInfo) : Array CongrArgKind := Id.run do + /- The default `CongrArgKind` is `eq`, which allows `simp` to rewrite this + argument. However, if there are references from `i` to `j`, we cannot + rewrite both `i` and `j`. So we must change the `CongrArgKind` at + either `i` or `j`. In principle, if there is a dependency with `i` + appearing after `j`, then we set `j` to `fixed` (or `cast`). But there is + an optimization: if `i` is a subsingleton, we can fix it instead of + `j`, since all subsingletons are equal anyway. The fixing happens in + two loops: one for the special cases, and one for the general case. -/ + let mut result := #[] + for i in [:info.paramInfo.size] do + if info.resultDeps.contains i then + result := result.push CongrArgKind.fixed + else if info.paramInfo[i].isProp then + result := result.push CongrArgKind.cast + else if info.paramInfo[i].isInstImplicit then + if shouldUseSubsingletonInst info result i then + result := result.push CongrArgKind.subsingletonInst + else + result := result.push CongrArgKind.fixed + else + result := result.push CongrArgKind.eq + return fixKindsForDependencies info result + /-- Create a congruence theorem that is useful for the simplifier. -/ -partial def mkCongrSimpWithArity? (f : Expr) (numArgs : Nat) : MetaM (Option CongrTheorem) := do - let info ← getFunInfo f - let kinds := getKinds info +partial def mkCongrSimpCore? (f : Expr) (info : FunInfo) (kinds : Array CongrArgKind) : MetaM (Option CongrTheorem) := do if let some result ← mk? f info kinds then return some result else if hasCastLike kinds then @@ -246,41 +278,8 @@ where mkLambdaFVars #[lhs, rhs] (← mkEqNDRec motive proofSub heq) go 0 type - getKinds (info : FunInfo) : Array CongrArgKind := Id.run do - /- The default `CongrArgKind` is `eq`, which allows `simp` to rewrite this - argument. However, if there are references from `i` to `j`, we cannot - rewrite both `i` and `j`. So we must change the `CongrArgKind` at - either `i` or `j`. In principle, if there is a dependency with `i` - appearing after `j`, then we set `j` to `fixed` (or `cast`). But there is - an optimization: if `i` is a subsingleton, we can fix it instead of - `j`, since all subsingletons are equal anyway. The fixing happens in - two loops: one for the special cases, and one for the general case. -/ - let mut result := #[] - for i in [:info.paramInfo.size] do - if info.resultDeps.contains i then - result := result.push CongrArgKind.fixed - else if info.paramInfo[i].isProp then - result := result.push CongrArgKind.cast - else if info.paramInfo[i].isInstImplicit then - if shouldUseSubsingletonInst info result i then - result := result.push CongrArgKind.subsingletonInst - else - result := result.push CongrArgKind.fixed - else - result := result.push CongrArgKind.eq - return fixKindsForDependencies info result - - /-- - Test whether we should use `subsingletonInst` kind for instances which depend on `eq`. - (Otherwise `fixKindsForDependencies`will downgrade them to Fixed -/ - shouldUseSubsingletonInst (info : FunInfo) (kinds : Array CongrArgKind) (i : Nat) : Bool := Id.run do - if info.paramInfo[i].isDecInst then - for j in info.paramInfo[i].backDeps do - if kinds[j] matches CongrArgKind.eq then - return true - return false - def mkCongrSimp? (f : Expr) : MetaM (Option CongrTheorem) := do - mkCongrSimpWithArity? f (← getFunInfo f).getArity + let info ← getFunInfo f + mkCongrSimpCore? f info (getCongrSimpKinds info) end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Contradiction.lean b/stage0/src/Lean/Meta/Tactic/Contradiction.lean index 2ae0002013..52e51d9b95 100644 --- a/stage0/src/Lean/Meta/Tactic/Contradiction.lean +++ b/stage0/src/Lean/Meta/Tactic/Contradiction.lean @@ -21,6 +21,19 @@ structure Contradiction.Config where This kind of hypotheses appear when proving conditional equation theorems for match expressions. -/ genDiseq : Bool := false +/-- + Try to close the current goal by looking for a proof of `False` nested in a `False.Elim` application in the target. + Return `true` iff the goal has been closed. +-/ +private def nestedFalseElim (mvarId : MVarId) : MetaM Bool := do + let target ← getMVarType mvarId + if let some falseElim := target.find? fun e => e.isAppOfArity ``False.elim 2 && !e.appArg!.hasLooseBVars then + let falseProof := falseElim.appArg! + assignExprMVar mvarId (← mkFalseElim (← getMVarType mvarId) falseProof) + return true + else + return false + -- We only consider inductives with no constructors and indexed families private def isElimEmptyInductiveCandidate (fvarId : FVarId) : MetaM Bool := do let localDecl ← getLocalDecl fvarId @@ -106,6 +119,8 @@ private def processGenDiseq (mvarId : MVarId) (localDecl : LocalDecl) : MetaM Bo def contradictionCore (mvarId : MVarId) (config : Contradiction.Config) : MetaM Bool := do withMVarContext mvarId do checkNotAssigned mvarId `contradiction + if (← nestedFalseElim mvarId) then + return true for localDecl in (← getLCtx) do unless localDecl.isAuxDecl do -- (h : ¬ p) (h' : p) diff --git a/stage0/src/Lean/Meta/Tactic/Delta.lean b/stage0/src/Lean/Meta/Tactic/Delta.lean index 0e8a4f3505..eac9744a9a 100644 --- a/stage0/src/Lean/Meta/Tactic/Delta.lean +++ b/stage0/src/Lean/Meta/Tactic/Delta.lean @@ -12,7 +12,7 @@ def delta? (e : Expr) (p : Name → Bool := fun _ => true) : CoreM (Option Expr) matchConst e.getAppFn (fun _ => return none) fun fInfo fLvls => do if p fInfo.name && fInfo.hasValue && fInfo.levelParams.length == fLvls.length then let f := fInfo.instantiateValueLevelParams fLvls - return some (f.betaRev e.getAppRevArgs) + return some (f.betaRev e.getAppRevArgs (useZeta := true)) else return none diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean index 574b20a6e5..4cce84f87d 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Main.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Main.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Meta.Transform +import Lean.Meta.CongrTheorems import Lean.Meta.Tactic.Replace import Lean.Meta.Tactic.Util import Lean.Meta.Tactic.Clear @@ -141,6 +142,29 @@ def getSimpLetCase (n : Name) (t : Expr) (v : Expr) (b : Expr) : MetaM SimpLetCa else return SimpLetCase.dep +/-- Given the application `e`, remove unnecessary casts of the form `Eq.rec a rfl` and `Eq.ndrec a rfl`. -/ +partial def removeUnnecessaryCasts (e : Expr) : MetaM Expr := do + let mut args := e.getAppArgs + let mut modified := false + for i in [:args.size] do + let arg := args[i] + if isDummyEqRec arg then + args := args.set! i (elimDummyEqRec arg) + modified := true + if modified then + return mkAppN e.getAppFn args + else + return e +where + isDummyEqRec (e : Expr) : Bool := + (e.isAppOfArity ``Eq.rec 6 || e.isAppOfArity ``Eq.ndrec 6) && e.appArg!.isAppOf ``Eq.refl + + elimDummyEqRec (e : Expr) : Expr := + if isDummyEqRec e then + elimDummyEqRec e.appFn!.appFn!.appArg! + else + e + partial def simp (e : Expr) : M Result := withIncRecDepth do checkMaxHeartbeats "simp" let cfg ← getConfig @@ -243,9 +267,106 @@ where i := i + 1 return r - congrDefault (e : Expr) : M Result := - withParent e <| e.withApp fun f args => do - congrArgs (← simp f) args + visitFn (e : Expr) : M Result := do + let f := e.getAppFn + let fNew ← simp f + if fNew.expr == f then + return { expr := e } + else + let args := e.getAppArgs + let eNew := mkAppN fNew.expr args + if fNew.proof?.isNone then return { expr := eNew } + let mut proof ← fNew.getProof + for arg in args do + proof ← Meta.mkCongrFun proof arg + return { expr := eNew, proof? := proof } + + mkCongrSimp? (f : Expr) : M (Option CongrTheorem) := do + if f.isConst then if (← isMatcher f.constName!) then + -- We always use simple congruence theorems for auxiliary match applications + return none + let info ← getFunInfo f + let kinds := getCongrSimpKinds info + if kinds.all fun k => match k with | CongrArgKind.fixed => true | CongrArgKind.eq => true | _ => false then + /- If all argument kinds are `fixed` or `eq`, then using + simple congruence theorems `congr`, `congrArg`, and `congrFun` produces a more compact proof -/ + return none + match (← get).congrCache.find? f with + | some thm? => return thm? + | none => + let thm? ← mkCongrSimpCore? f info kinds + modify fun s => { s with congrCache := s.congrCache.insert f thm? } + return thm? + + /-- Try to use automatically generated congruence theorems. See `mkCongrSimp?`. -/ + tryAutoCongrTheorem? (e : Expr) : M (Option Result) := do + let f := e.getAppFn + -- TODO: cache + let some cgrThm ← mkCongrSimp? f | return none + if cgrThm.argKinds.size != e.getAppNumArgs then return none + let mut simplified := false + let mut hasProof := false + let mut hasCast := false + let mut argsNew := #[] + let mut argResults := #[] + let args := e.getAppArgs + for arg in args, kind in cgrThm.argKinds do + match kind with + | CongrArgKind.fixed => argsNew := argsNew.push arg + | CongrArgKind.cast => hasCast := true; argsNew := argsNew.push arg + | CongrArgKind.subsingletonInst => argsNew := argsNew.push arg + | CongrArgKind.eq => + let argResult ← simp arg + argResults := argResults.push argResult + argsNew := argsNew.push argResult.expr + if argResult.proof?.isSome then hasProof := true + if arg != argResult.expr then simplified := true + | _ => unreachable! + if !simplified then return some { expr := e } + if !hasProof then return some { expr := mkAppN f argsNew } + let mut proof := cgrThm.proof + let mut type := cgrThm.type + let mut j := 0 -- index at argResults + let mut subst := #[] + for arg in args, kind in cgrThm.argKinds do + proof := mkApp proof arg + subst := subst.push arg + type := type.bindingBody! + match kind with + | CongrArgKind.fixed => pure () + | CongrArgKind.cast => pure () + | CongrArgKind.subsingletonInst => + let clsNew := type.bindingDomain!.instantiateRev subst + let instNew ← + if (← isDefEq (← inferType arg) clsNew) then + pure arg + else + match (← trySynthInstance clsNew) with + | LOption.some val => pure val + | _ => + trace[Meta.Tactic.simp.congr] "failed to synthesize instance{indentExpr clsNew}" + return none + proof := mkApp proof instNew + subst := subst.push instNew + type := type.bindingBody! + | CongrArgKind.eq => + let argResult := argResults[j] + let argProof ← argResult.getProof + j := j + 1 + proof := mkApp2 proof argResult.expr argProof + subst := subst.push argResult.expr |>.push argProof + type := type.bindingBody!.bindingBody! + | _ => unreachable! + let some (_, _, rhs) := type.instantiateRev subst |>.eq? | unreachable! + let rhs ← if hasCast then removeUnnecessaryCasts rhs else pure rhs + return some { expr := rhs, proof? := proof } + + congrDefault (e : Expr) : M Result := do + if let some result ← tryAutoCongrTheorem? e then + mkEqTrans result (← visitFn result.expr) + else + withParent e <| e.withApp fun f args => do + congrArgs (← simp f) args /- Return true iff processing the given congruence theorem hypothesis produced a non-refl proof. -/ processCongrHypothesis (h : Expr) : M Bool := do @@ -264,8 +385,8 @@ where /- Try to rewrite `e` children using the given congruence theorem -/ trySimpCongrTheorem? (c : SimpCongrTheorem) (e : Expr) : M (Option Result) := withNewMCtxDepth do trace[Debug.Meta.Tactic.simp.congr] "{c.theoremName}, {e}" - let lemma ← mkConstWithFreshMVarLevels c.theoremName - let (xs, bis, type) ← forallMetaTelescopeReducing (← inferType lemma) + let thm ← mkConstWithFreshMVarLevels c.theoremName + let (xs, bis, type) ← forallMetaTelescopeReducing (← inferType thm) if c.hypothesesPos.any (· ≥ xs.size) then return none let lhs := type.appFn!.appArg! @@ -298,7 +419,7 @@ where trace[Meta.Tactic.simp.congr] "{c.theoremName} synthesizeArgs failed" return none let eNew ← instantiateMVars rhs - let proof ← instantiateMVars (mkAppN lemma xs) + let proof ← instantiateMVars (mkAppN thm xs) congrArgs { expr := eNew, proof? := proof } extraArgs else return none @@ -430,7 +551,10 @@ where def main (e : Expr) (ctx : Context) (methods : Methods := {}) : MetaM Result := withConfig (fun c => { c with etaStruct := ctx.config.etaStruct }) <| withReducible do - simp e methods ctx |>.run' {} + try + simp e methods ctx |>.run' {} + catch ex => + if ex.isMaxHeartbeat then throwNestedTacticEx `simp ex else throw ex partial def isEqnThmHypothesis (e : Expr) : Bool := e.isForall && go e @@ -610,4 +734,22 @@ def simpGoal (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Di let mvarIdNew ← tryClearMany mvarIdNew fvarIdsToSimp return (fvarIdsNew, mvarIdNew) +def simpTargetStar (mvarId : MVarId) (ctx : Simp.Context) (discharge? : Option Simp.Discharge := none) : MetaM TacticResultCNM := withMVarContext mvarId do + trace[Meta.debug] "simpTargetStar:\n{mvarId}" + let mut ctx := ctx + for h in (← getPropHyps) do + let localDecl ← getLocalDecl h + let proof := localDecl.toExpr + trace[Meta.debug] "adding {localDecl.toExpr}" + let simpTheorems ← ctx.simpTheorems.add #[] proof + ctx := { ctx with simpTheorems } + match (← simpTarget mvarId ctx discharge?) with + | none => return TacticResultCNM.closed + | some mvarId' => + trace[Meta.debug] "simpTargetStar result:\n{mvarId'}" + if (← getMVarType mvarId) == (← getMVarType mvarId') then + return TacticResultCNM.noChange + else + return TacticResultCNM.modified mvarId' + end Lean.Meta diff --git a/stage0/src/Lean/Meta/Tactic/Simp/Types.lean b/stage0/src/Lean/Meta/Tactic/Simp/Types.lean index 975119dc1b..fdb314f5f3 100644 --- a/stage0/src/Lean/Meta/Tactic/Simp/Types.lean +++ b/stage0/src/Lean/Meta/Tactic/Simp/Types.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Meta.AppBuilder +import Lean.Meta.CongrTheorems import Lean.Meta.Tactic.Simp.SimpTheorems import Lean.Meta.Tactic.Simp.SimpCongrTheorems @@ -17,6 +18,8 @@ structure Result where abbrev Cache := ExprMap Result +abbrev CongrCache := ExprMap (Option CongrTheorem) + structure Context where config : Config := {} simpTheorems : SimpTheorems := {} @@ -29,8 +32,9 @@ def Context.mkDefault : MetaM Context := return { config := {}, simpTheorems := (← getSimpTheorems), congrTheorems := (← getSimpCongrTheorems) } structure State where - cache : Cache := {} - numSteps : Nat := 0 + cache : Cache := {} + congrCache : CongrCache := {} + numSteps : Nat := 0 abbrev SimpM := ReaderT Context $ StateRefT State MetaM diff --git a/stage0/src/Lean/Meta/Tactic/Split.lean b/stage0/src/Lean/Meta/Tactic/Split.lean index 0307dd6fef..c3630e0c68 100644 --- a/stage0/src/Lean/Meta/Tactic/Split.lean +++ b/stage0/src/Lean/Meta/Tactic/Split.lean @@ -119,19 +119,24 @@ def splitMatch (mvarId : MVarId) (e : Expr) : MetaM (List MVarId) := do throwNestedTacticEx `splitMatch ex /-- Return an `if-then-else` or `match-expr` to split. -/ -partial def findSplit? (env : Environment) (e : Expr) : Option Expr := - if let some target := e.find? isCandidate then - if e.isIte || e.isDIte then - let cond := target.getArg! 1 5 - -- Try to find a nested `if` in `cond` - findSplit? env cond |>.getD target - else - some target - else - none +partial def findSplit? (env : Environment) (e : Expr) (splitIte := true) (exceptionSet : ExprSet := {}) : Option Expr := + go e where + go (e : Expr) : Option Expr := + if let some target := e.find? isCandidate then + if e.isIte || e.isDIte then + let cond := target.getArg! 1 5 + -- Try to find a nested `if` in `cond` + go cond |>.getD target + else + some target + else + none + isCandidate (e : Expr) : Bool := Id.run <| do - if e.isIte || e.isDIte then + if exceptionSet.contains e then + false + else if splitIte && (e.isIte || e.isDIte) then !(e.getArg! 1 5).hasLooseBVars else if let some info := isMatcherAppCore? env e then let args := e.getAppArgs @@ -146,15 +151,20 @@ end Split open Split -def splitTarget? (mvarId : MVarId) : MetaM (Option (List MVarId)) := commitWhenSome? do - if let some e := findSplit? (← getEnv) (← instantiateMVars (← getMVarType mvarId)) then - if e.isIte || e.isDIte then - return (← splitIfTarget? mvarId).map fun (s₁, s₂) => [s₁.mvarId, s₂.mvarId] +partial def splitTarget? (mvarId : MVarId) (splitIte := true) : MetaM (Option (List MVarId)) := commitWhenSome? do + let rec go (badCases : ExprSet) : MetaM (Option (List MVarId)) := do + if let some e := findSplit? (← getEnv) (← instantiateMVars (← getMVarType mvarId)) splitIte badCases then + if e.isIte || e.isDIte then + return (← splitIfTarget? mvarId).map fun (s₁, s₂) => [s₁.mvarId, s₂.mvarId] + else + try + splitMatch mvarId e + catch _ => + go (badCases.insert e) else - splitMatch mvarId e - else - trace[Meta.Tactic.split] "did not find term to split\n{MessageData.ofGoal mvarId}" - return none + trace[Meta.Tactic.split] "did not find term to split\n{MessageData.ofGoal mvarId}" + return none + go {} def splitLocalDecl? (mvarId : MVarId) (fvarId : FVarId) : MetaM (Option (List MVarId)) := commitWhenSome? do withMVarContext mvarId do diff --git a/stage0/src/Lean/Meta/Tactic/Util.lean b/stage0/src/Lean/Meta/Tactic/Util.lean index 38ce3821ba..79023bb51b 100644 --- a/stage0/src/Lean/Meta/Tactic/Util.lean +++ b/stage0/src/Lean/Meta/Tactic/Util.lean @@ -109,4 +109,18 @@ def ensureAtMostOne (mvarIds : List MVarId) (msg : MessageData := "unexpected nu | [mvarId] => return some mvarId | _ => throwError msg +/-- Return all propositions in the local context. -/ +def getPropHyps : MetaM (Array FVarId) := do + let mut result := #[] + for localDecl in (← getLCtx) do + unless localDecl.isAuxDecl do + if (← isProp localDecl.type) then + result := result.push localDecl.fvarId + return result + +inductive TacticResultCNM where + | closed + | noChange + | modified (mvarId : MVarId) + end Lean.Meta diff --git a/stage0/src/Lean/Meta/Transform.lean b/stage0/src/Lean/Meta/Transform.lean index 49f6423c27..30a1188c60 100644 --- a/stage0/src/Lean/Meta/Transform.lean +++ b/stage0/src/Lean/Meta/Transform.lean @@ -79,19 +79,19 @@ partial def transform {m} [Monad m] [MonadLiftT MetaM m] [MonadControlT MetaM m] | Expr.lam n d b c => withLocalDecl n c.binderInfo (← visit (d.instantiateRev fvars)) fun x => visitLambda (fvars.push x) b - | e => visitPost (← mkLambdaFVars fvars (← visit (e.instantiateRev fvars))) + | e => visitPost (← mkLambdaFVars (usedLetOnly := false) fvars (← visit (e.instantiateRev fvars))) let rec visitForall (fvars : Array Expr) (e : Expr) : MonadCacheT ExprStructEq Expr m Expr := do match e with | Expr.forallE n d b c => withLocalDecl n c.binderInfo (← visit (d.instantiateRev fvars)) fun x => visitForall (fvars.push x) b - | e => visitPost (← mkForallFVars fvars (← visit (e.instantiateRev fvars))) + | e => visitPost (← mkForallFVars (usedLetOnly := false) fvars (← visit (e.instantiateRev fvars))) let rec visitLet (fvars : Array Expr) (e : Expr) : MonadCacheT ExprStructEq Expr m Expr := do match e with | Expr.letE n t v b _ => withLetDecl n (← visit (t.instantiateRev fvars)) (← visit (v.instantiateRev fvars)) fun x => visitLet (fvars.push x) b - | e => visitPost (← mkLetFVars fvars (← visit (e.instantiateRev fvars))) + | e => visitPost (← mkLetFVars (usedLetOnly := false) fvars (← visit (e.instantiateRev fvars))) let visitApp (e : Expr) : MonadCacheT ExprStructEq Expr m Expr := e.withApp fun f args => do visitPost (mkAppN (← visit f) (← args.mapM visit)) diff --git a/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean b/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean index 2ca7e719f4..a5a11cef17 100644 --- a/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean +++ b/stage0/src/Lean/PrettyPrinter/Delaborator/Builtins.lean @@ -311,7 +311,8 @@ structure AppMatchState where private partial def delabPatterns (st : AppMatchState) : DelabM (Array (Array Syntax)) := withReader (fun ctx => { ctx with inPattern := true, optionsPerPos := {} }) do let ty ← instantiateForall st.matcherTy st.params - forallTelescope ty fun params _ => do + -- need to reduce `let`s that are lifted into the matcher type + forallTelescopeReducing ty fun params _ => do -- skip motive and discriminators let alts := Array.ofSubarray params[1 + st.discrs.size:] alts.mapIdxM fun idx alt => do diff --git a/stage0/src/Lean/Server/FileWorker/RequestHandling.lean b/stage0/src/Lean/Server/FileWorker/RequestHandling.lean index e7ab77390f..9ee44fec3a 100644 --- a/stage0/src/Lean/Server/FileWorker/RequestHandling.lean +++ b/stage0/src/Lean/Server/FileWorker/RequestHandling.lean @@ -252,8 +252,7 @@ partial def handleDocumentHighlight (p : DocumentHighlightParams) return #[hi] return #[] -section -- TODO https://github.com/leanprover/lean4/issues/529 -open Parser.Command +open Parser.Command in partial def handleDocumentSymbol (p : DocumentSymbolParams) : RequestM (RequestTask DocumentSymbolResult) := do let doc ← readDoc @@ -313,7 +312,6 @@ partial def handleDocumentSymbol (p : DocumentSymbolParams) selectionRange := selection.getRange? |>.map (·.toLspRange text) |>.getD range children? := syms.toArray } :: syms', stxs'') -end def noHighlightKinds : Array SyntaxNodeKind := #[ -- usually have special highlighting by the client diff --git a/stage0/src/shell/CMakeLists.txt b/stage0/src/shell/CMakeLists.txt index d8c9a40ec3..78493d2513 100644 --- a/stage0/src/shell/CMakeLists.txt +++ b/stage0/src/shell/CMakeLists.txt @@ -126,6 +126,17 @@ FOREACH(T ${LEANT0TESTS}) COMMAND bash -c "${TEST_VARS} ./test_single.sh ${T_NAME}") ENDFOREACH(T) +# LEAN PACKAGE TESTS +file(GLOB LEANPKGTESTS "${LEAN_SOURCE_DIR}/../tests/pkg/*") +FOREACH(T ${LEANPKGTESTS}) + if(IS_DIRECTORY ${T}) + GET_FILENAME_COMPONENT(T_NAME ${T} NAME) + add_test(NAME "leanpkgtest_${T_NAME}" + WORKING_DIRECTORY "${T}" + COMMAND bash -c "${TEST_VARS} ./test.sh") + endif() +ENDFOREACH(T) + # LEAN SERVER TESTS file(GLOB LEANTESTS "${LEAN_SOURCE_DIR}/../tests/lean/server/*.lean") FOREACH(T ${LEANTESTS}) @@ -149,7 +160,6 @@ FOREACH(T ${LEANTESTS}) ENDFOREACH(T) # Create a lake test for each subdirectory of `lake/examples` which contains a `test.sh` file. -# We skip the subdirectories `lean_packages` and `bootstrap` since `lake/examples/Makefile` does not consider them either. file(GLOB_RECURSE LEANLAKETESTS "${LEAN_SOURCE_DIR}/lake/examples/test.sh") FOREACH(T ${LEANLAKETESTS}) if(NOT T MATCHES ".*lean_packages.*") diff --git a/stage0/stdlib/Init/Classical.c b/stage0/stdlib/Init/Classical.c index 34ef8f575c..e8d76edcbe 100644 --- a/stage0/stdlib/Init/Classical.c +++ b/stage0/stdlib/Init/Classical.c @@ -13,90 +13,90 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__44; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__17; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__8; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -static lean_object* l_Classical_tacticByCases_____x3a_____closed__13; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__1; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__5; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16; lean_object* lean_name_mk_string(lean_object*, lean_object*); -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__45; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__11; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__24; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__2; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__24; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__9; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__49; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__7; lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(lean_object*, lean_object*); +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__13; lean_object* lean_array_push(lean_object*, lean_object*); -static lean_object* l_Classical_tacticByCases_____x3a_____closed__7; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__20; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__16; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__14; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__5; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__18; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__20; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__15; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__43; lean_object* lean_string_utf8_byte_size(lean_object*); -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__43; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__52; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__33; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__20; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__19; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__51; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__10; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__27; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__35; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__12; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__31; -LEAN_EXPORT lean_object* l_Classical_tacticByCases_____x3a__; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__36; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__38; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__3; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__15; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__32; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__7; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__14; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__18; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__32; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__26; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__6; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__12; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__20; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__36; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__19; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__51; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__16; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__3; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__44; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__10; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__31; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__35; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__1; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__17; +LEAN_EXPORT lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1(lean_object*, lean_object*, lean_object*); +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__8; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__45; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__9; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__7; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__34; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__4; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__5; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__40; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__9; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__34; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__23; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__13; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__41; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__4; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__50; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__47; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__2; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__9; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__26; -LEAN_EXPORT lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Classical_tacticByCases_____x3a_____closed__19; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__4; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__27; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__13; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__23; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__40; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__41; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__11; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__2; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__38; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__47; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__33; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__8; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__17; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__52; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__25; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__46; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__53; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__42; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__12; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__25; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__12; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__3; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__53; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__42; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__49; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__1; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__8; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__37; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__17; -static lean_object* l_Classical_tacticByCases_____x3a_____closed__6; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__28; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__22; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__14; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__15; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__18; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__5; -static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__30; -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__1() { +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__2; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__50; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__1; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__3; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__4; +LEAN_EXPORT lean_object* l_Classical_tacticBy__cases_____x3a__; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__46; +static lean_object* l_Classical_tacticBy__cases_____x3a_____closed__19; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__14; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__15; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__18; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__30; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__28; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__22; +static lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__37; +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__1() { _start: { lean_object* x_1; @@ -104,35 +104,35 @@ x_1 = lean_mk_string("Classical"); return x_1; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__2() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical_tacticByCases_____x3a_____closed__1; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__3() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("tacticByCases__:_"); +x_1 = lean_mk_string("tacticBy_cases__:_"); return x_1; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__4() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical_tacticByCases_____x3a_____closed__2; -x_2 = l_Classical_tacticByCases_____x3a_____closed__3; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__2; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__5() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__5() { _start: { lean_object* x_1; @@ -140,29 +140,29 @@ x_1 = lean_mk_string("andthen"); return x_1; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__6() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical_tacticByCases_____x3a_____closed__5; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__7() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string("byCases"); +x_1 = lean_mk_string("by_cases"); return x_1; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__8() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__8() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Classical_tacticByCases_____x3a_____closed__7; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__7; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -170,7 +170,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__9() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__9() { _start: { lean_object* x_1; @@ -178,33 +178,33 @@ x_1 = lean_mk_string("ident"); return x_1; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__10() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical_tacticByCases_____x3a_____closed__9; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__9; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__11() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Classical_tacticByCases_____x3a_____closed__10; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__10; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__12() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Classical_tacticByCases_____x3a_____closed__6; -x_2 = l_Classical_tacticByCases_____x3a_____closed__8; -x_3 = l_Classical_tacticByCases_____x3a_____closed__11; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__6; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__8; +x_3 = l_Classical_tacticBy__cases_____x3a_____closed__11; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -212,7 +212,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__13() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__13() { _start: { lean_object* x_1; @@ -220,23 +220,23 @@ x_1 = lean_mk_string(":"); return x_1; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__14() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Classical_tacticByCases_____x3a_____closed__13; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__13; x_2 = lean_alloc_ctor(5, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__15() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Classical_tacticByCases_____x3a_____closed__6; -x_2 = l_Classical_tacticByCases_____x3a_____closed__12; -x_3 = l_Classical_tacticByCases_____x3a_____closed__14; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__6; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__12; +x_3 = l_Classical_tacticBy__cases_____x3a_____closed__14; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -244,7 +244,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__16() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__16() { _start: { lean_object* x_1; @@ -252,21 +252,21 @@ x_1 = lean_mk_string("term"); return x_1; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__17() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical_tacticByCases_____x3a_____closed__16; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__16; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__18() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical_tacticByCases_____x3a_____closed__17; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__17; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -274,13 +274,13 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__19() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Classical_tacticByCases_____x3a_____closed__6; -x_2 = l_Classical_tacticByCases_____x3a_____closed__15; -x_3 = l_Classical_tacticByCases_____x3a_____closed__18; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__6; +x_2 = l_Classical_tacticBy__cases_____x3a_____closed__15; +x_3 = l_Classical_tacticBy__cases_____x3a_____closed__18; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -288,13 +288,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a_____closed__20() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a_____closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Classical_tacticByCases_____x3a_____closed__4; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__4; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Classical_tacticByCases_____x3a_____closed__19; +x_3 = l_Classical_tacticBy__cases_____x3a_____closed__19; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -302,15 +302,15 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical_tacticByCases_____x3a__() { +static lean_object* _init_l_Classical_tacticBy__cases_____x3a__() { _start: { lean_object* x_1; -x_1 = l_Classical_tacticByCases_____x3a_____closed__20; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__20; return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__1() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__1() { _start: { lean_object* x_1; @@ -318,17 +318,17 @@ x_1 = lean_mk_string("Lean"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__2() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__1; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__3() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__3() { _start: { lean_object* x_1; @@ -336,17 +336,17 @@ x_1 = lean_mk_string("Parser"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__4() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__2; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__3; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__2; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__5() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__5() { _start: { lean_object* x_1; @@ -354,17 +354,17 @@ x_1 = lean_mk_string("Tactic"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__4; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__5; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__4; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__7() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__7() { _start: { lean_object* x_1; @@ -372,17 +372,17 @@ x_1 = lean_mk_string("seq1"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__8() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__7; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__9() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__9() { _start: { lean_object* x_1; @@ -390,17 +390,17 @@ x_1 = lean_mk_string("null"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__9; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__9; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11() { _start: { lean_object* x_1; @@ -408,17 +408,17 @@ x_1 = lean_mk_string("cases"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__12() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__13() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__13() { _start: { lean_object* x_1; @@ -426,17 +426,17 @@ x_1 = lean_mk_string("casesTarget"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__14() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__13; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__13; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__15() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; @@ -445,13 +445,13 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = lean_box(2); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10; -x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__15; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10; +x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__15; x_4 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -459,7 +459,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__17() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__17() { _start: { lean_object* x_1; @@ -467,17 +467,17 @@ x_1 = lean_mk_string("Term"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__18() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__18() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__4; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__17; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__4; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__17; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__19() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__19() { _start: { lean_object* x_1; @@ -485,17 +485,17 @@ x_1 = lean_mk_string("app"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__20() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__20() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__18; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__19; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__18; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__19; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21() { _start: { lean_object* x_1; @@ -503,22 +503,22 @@ x_1 = lean_mk_string("em"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__22() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__22() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__23() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__22; +x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__22; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -526,51 +526,51 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__24() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__25() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical_tacticByCases_____x3a_____closed__2; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21; +x_1 = l_Classical_tacticBy__cases_____x3a_____closed__2; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__26() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__25; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__25; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__27() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__26; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__26; 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_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__28() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__28() { _start: { lean_object* x_1; lean_object* x_2; @@ -579,7 +579,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29() { _start: { lean_object* x_1; lean_object* x_2; @@ -588,17 +588,17 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__30() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16; x_3 = lean_array_push(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__31() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__31() { _start: { lean_object* x_1; @@ -606,17 +606,17 @@ x_1 = lean_mk_string("inductionAlts"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__32() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__31; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__31; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__33() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__33() { _start: { lean_object* x_1; @@ -624,7 +624,7 @@ x_1 = lean_mk_string("with"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__34() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__34() { _start: { lean_object* x_1; @@ -632,17 +632,17 @@ x_1 = lean_mk_string("inductionAlt"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__35() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__35() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__34; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__34; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__36() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__36() { _start: { lean_object* x_1; @@ -650,7 +650,7 @@ x_1 = lean_mk_string("|"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__37() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__37() { _start: { lean_object* x_1; @@ -658,17 +658,17 @@ x_1 = lean_mk_string("group"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__38() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__38() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__37; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__37; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39() { _start: { lean_object* x_1; @@ -676,22 +676,22 @@ x_1 = lean_mk_string("inl"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__40() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__40() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__41() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__41() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__40; +x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__40; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -699,17 +699,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__42() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__42() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__43() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__43() { _start: { lean_object* x_1; @@ -717,7 +717,7 @@ x_1 = lean_mk_string("=>"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__44() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__44() { _start: { lean_object* x_1; @@ -725,17 +725,17 @@ x_1 = lean_mk_string("hole"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__45() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__45() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__18; -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__44; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__18; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__44; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__46() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__46() { _start: { lean_object* x_1; @@ -743,7 +743,7 @@ x_1 = lean_mk_string("_"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__47() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__47() { _start: { lean_object* x_1; lean_object* x_2; @@ -752,7 +752,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48() { _start: { lean_object* x_1; @@ -760,22 +760,22 @@ x_1 = lean_mk_string("inr"); return x_1; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__49() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__49() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__50() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__50() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48; +x_1 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__49; +x_3 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__49; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -783,17 +783,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__51() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__51() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48; +x_2 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__52() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__52() { _start: { lean_object* x_1; lean_object* x_2; @@ -802,7 +802,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__53() { +static lean_object* _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__53() { _start: { lean_object* x_1; lean_object* x_2; @@ -811,11 +811,11 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; -x_4 = l_Classical_tacticByCases_____x3a_____closed__4; +x_4 = l_Classical_tacticBy__cases_____x3a_____closed__4; lean_inc(x_1); x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); if (x_5 == 0) @@ -849,43 +849,43 @@ lean_inc(x_15); x_16 = lean_ctor_get(x_2, 1); lean_inc(x_16); lean_dec(x_2); -x_17 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11; +x_17 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11; lean_inc(x_14); x_18 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_18, 0, x_14); lean_ctor_set(x_18, 1, x_17); -x_19 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__24; +x_19 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__24; lean_inc(x_15); lean_inc(x_16); x_20 = l_Lean_addMacroScope(x_16, x_19, x_15); x_21 = lean_box(0); -x_22 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__23; -x_23 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__27; +x_22 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__23; +x_23 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__27; lean_inc(x_14); x_24 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_24, 0, x_14); lean_ctor_set(x_24, 1, x_22); lean_ctor_set(x_24, 2, x_20); lean_ctor_set(x_24, 3, x_23); -x_25 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__28; +x_25 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__28; x_26 = lean_array_push(x_25, x_11); x_27 = lean_box(2); -x_28 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10; +x_28 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10; x_29 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); lean_ctor_set(x_29, 2, x_26); -x_30 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29; +x_30 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29; x_31 = lean_array_push(x_30, x_24); x_32 = lean_array_push(x_31, x_29); -x_33 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__20; +x_33 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__20; x_34 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_34, 0, x_27); lean_ctor_set(x_34, 1, x_33); lean_ctor_set(x_34, 2, x_32); -x_35 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__30; +x_35 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__30; x_36 = lean_array_push(x_35, x_34); -x_37 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__14; +x_37 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__14; x_38 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_38, 0, x_27); lean_ctor_set(x_38, 1, x_37); @@ -895,21 +895,21 @@ x_40 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_40, 0, x_27); lean_ctor_set(x_40, 1, x_28); lean_ctor_set(x_40, 2, x_39); -x_41 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__33; +x_41 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__33; lean_inc(x_14); x_42 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_42, 0, x_14); lean_ctor_set(x_42, 1, x_41); -x_43 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__36; +x_43 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__36; lean_inc(x_14); x_44 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_44, 0, x_14); lean_ctor_set(x_44, 1, x_43); -x_45 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__42; +x_45 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__42; lean_inc(x_15); lean_inc(x_16); x_46 = l_Lean_addMacroScope(x_16, x_45, x_15); -x_47 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__41; +x_47 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__41; lean_inc(x_14); x_48 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_48, 0, x_14); @@ -917,7 +917,7 @@ lean_ctor_set(x_48, 1, x_47); lean_ctor_set(x_48, 2, x_46); lean_ctor_set(x_48, 3, x_21); x_49 = lean_array_push(x_35, x_48); -x_50 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__38; +x_50 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__38; x_51 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_51, 0, x_27); lean_ctor_set(x_51, 1, x_50); @@ -927,23 +927,23 @@ x_53 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_53, 0, x_27); lean_ctor_set(x_53, 1, x_28); lean_ctor_set(x_53, 2, x_52); -x_54 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__43; +x_54 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__43; lean_inc(x_14); x_55 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_55, 0, x_14); lean_ctor_set(x_55, 1, x_54); -x_56 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__46; +x_56 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__46; lean_inc(x_14); x_57 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_57, 0, x_14); lean_ctor_set(x_57, 1, x_56); x_58 = lean_array_push(x_25, x_57); -x_59 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__45; +x_59 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__45; x_60 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_60, 0, x_27); lean_ctor_set(x_60, 1, x_59); lean_ctor_set(x_60, 2, x_58); -x_61 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__47; +x_61 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__47; x_62 = lean_array_push(x_61, x_44); lean_inc(x_62); x_63 = lean_array_push(x_62, x_51); @@ -953,14 +953,14 @@ lean_inc(x_55); x_65 = lean_array_push(x_64, x_55); lean_inc(x_60); x_66 = lean_array_push(x_65, x_60); -x_67 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__35; +x_67 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__35; x_68 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_68, 0, x_27); lean_ctor_set(x_68, 1, x_67); lean_ctor_set(x_68, 2, x_66); -x_69 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__51; +x_69 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__51; x_70 = l_Lean_addMacroScope(x_16, x_69, x_15); -x_71 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__50; +x_71 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__50; x_72 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_72, 0, x_14); lean_ctor_set(x_72, 1, x_71); @@ -985,12 +985,12 @@ x_82 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_82, 0, x_27); lean_ctor_set(x_82, 1, x_28); lean_ctor_set(x_82, 2, x_81); -x_83 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__52; +x_83 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__52; x_84 = lean_array_push(x_83, x_42); -x_85 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16; +x_85 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16; x_86 = lean_array_push(x_84, x_85); x_87 = lean_array_push(x_86, x_82); -x_88 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__32; +x_88 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__32; x_89 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_89, 0, x_27); lean_ctor_set(x_89, 1, x_88); @@ -1000,12 +1000,12 @@ x_91 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_91, 0, x_27); lean_ctor_set(x_91, 1, x_28); lean_ctor_set(x_91, 2, x_90); -x_92 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__53; +x_92 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__53; x_93 = lean_array_push(x_92, x_18); x_94 = lean_array_push(x_93, x_40); x_95 = lean_array_push(x_94, x_85); x_96 = lean_array_push(x_95, x_91); -x_97 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__12; +x_97 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__12; x_98 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_98, 0, x_27); lean_ctor_set(x_98, 1, x_97); @@ -1016,7 +1016,7 @@ lean_ctor_set(x_100, 0, x_27); lean_ctor_set(x_100, 1, x_28); lean_ctor_set(x_100, 2, x_99); x_101 = lean_array_push(x_25, x_100); -x_102 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__8; +x_102 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__8; x_103 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_103, 0, x_27); lean_ctor_set(x_103, 1, x_102); @@ -1037,43 +1037,43 @@ lean_inc(x_106); x_107 = lean_ctor_get(x_2, 1); lean_inc(x_107); lean_dec(x_2); -x_108 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11; +x_108 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11; lean_inc(x_104); x_109 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_109, 0, x_104); lean_ctor_set(x_109, 1, x_108); -x_110 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__24; +x_110 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__24; lean_inc(x_106); lean_inc(x_107); x_111 = l_Lean_addMacroScope(x_107, x_110, x_106); x_112 = lean_box(0); -x_113 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__23; -x_114 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__27; +x_113 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__23; +x_114 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__27; lean_inc(x_104); x_115 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_115, 0, x_104); lean_ctor_set(x_115, 1, x_113); lean_ctor_set(x_115, 2, x_111); lean_ctor_set(x_115, 3, x_114); -x_116 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__28; +x_116 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__28; x_117 = lean_array_push(x_116, x_11); x_118 = lean_box(2); -x_119 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10; +x_119 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10; x_120 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_120, 0, x_118); lean_ctor_set(x_120, 1, x_119); lean_ctor_set(x_120, 2, x_117); -x_121 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29; +x_121 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29; x_122 = lean_array_push(x_121, x_115); x_123 = lean_array_push(x_122, x_120); -x_124 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__20; +x_124 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__20; x_125 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_125, 0, x_118); lean_ctor_set(x_125, 1, x_124); lean_ctor_set(x_125, 2, x_123); -x_126 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__30; +x_126 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__30; x_127 = lean_array_push(x_126, x_125); -x_128 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__14; +x_128 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__14; x_129 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_129, 0, x_118); lean_ctor_set(x_129, 1, x_128); @@ -1083,21 +1083,21 @@ x_131 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_131, 0, x_118); lean_ctor_set(x_131, 1, x_119); lean_ctor_set(x_131, 2, x_130); -x_132 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__33; +x_132 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__33; lean_inc(x_104); x_133 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_133, 0, x_104); lean_ctor_set(x_133, 1, x_132); -x_134 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__36; +x_134 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__36; lean_inc(x_104); x_135 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_135, 0, x_104); lean_ctor_set(x_135, 1, x_134); -x_136 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__42; +x_136 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__42; lean_inc(x_106); lean_inc(x_107); x_137 = l_Lean_addMacroScope(x_107, x_136, x_106); -x_138 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__41; +x_138 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__41; lean_inc(x_104); x_139 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_139, 0, x_104); @@ -1105,7 +1105,7 @@ lean_ctor_set(x_139, 1, x_138); lean_ctor_set(x_139, 2, x_137); lean_ctor_set(x_139, 3, x_112); x_140 = lean_array_push(x_126, x_139); -x_141 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__38; +x_141 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__38; x_142 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_142, 0, x_118); lean_ctor_set(x_142, 1, x_141); @@ -1115,23 +1115,23 @@ x_144 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_144, 0, x_118); lean_ctor_set(x_144, 1, x_119); lean_ctor_set(x_144, 2, x_143); -x_145 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__43; +x_145 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__43; lean_inc(x_104); x_146 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_146, 0, x_104); lean_ctor_set(x_146, 1, x_145); -x_147 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__46; +x_147 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__46; lean_inc(x_104); x_148 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_148, 0, x_104); lean_ctor_set(x_148, 1, x_147); x_149 = lean_array_push(x_116, x_148); -x_150 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__45; +x_150 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__45; x_151 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_151, 0, x_118); lean_ctor_set(x_151, 1, x_150); lean_ctor_set(x_151, 2, x_149); -x_152 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__47; +x_152 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__47; x_153 = lean_array_push(x_152, x_135); lean_inc(x_153); x_154 = lean_array_push(x_153, x_142); @@ -1141,14 +1141,14 @@ lean_inc(x_146); x_156 = lean_array_push(x_155, x_146); lean_inc(x_151); x_157 = lean_array_push(x_156, x_151); -x_158 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__35; +x_158 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__35; x_159 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_159, 0, x_118); lean_ctor_set(x_159, 1, x_158); lean_ctor_set(x_159, 2, x_157); -x_160 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__51; +x_160 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__51; x_161 = l_Lean_addMacroScope(x_107, x_160, x_106); -x_162 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__50; +x_162 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__50; x_163 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_163, 0, x_104); lean_ctor_set(x_163, 1, x_162); @@ -1173,12 +1173,12 @@ x_173 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_173, 0, x_118); lean_ctor_set(x_173, 1, x_119); lean_ctor_set(x_173, 2, x_172); -x_174 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__52; +x_174 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__52; x_175 = lean_array_push(x_174, x_133); -x_176 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16; +x_176 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16; x_177 = lean_array_push(x_175, x_176); x_178 = lean_array_push(x_177, x_173); -x_179 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__32; +x_179 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__32; x_180 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_180, 0, x_118); lean_ctor_set(x_180, 1, x_179); @@ -1188,12 +1188,12 @@ x_182 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_182, 0, x_118); lean_ctor_set(x_182, 1, x_119); lean_ctor_set(x_182, 2, x_181); -x_183 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__53; +x_183 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__53; x_184 = lean_array_push(x_183, x_109); x_185 = lean_array_push(x_184, x_131); x_186 = lean_array_push(x_185, x_176); x_187 = lean_array_push(x_186, x_182); -x_188 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__12; +x_188 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__12; x_189 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_189, 0, x_118); lean_ctor_set(x_189, 1, x_188); @@ -1204,7 +1204,7 @@ lean_ctor_set(x_191, 0, x_118); lean_ctor_set(x_191, 1, x_119); lean_ctor_set(x_191, 2, x_190); x_192 = lean_array_push(x_116, x_191); -x_193 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__8; +x_193 = l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__8; x_194 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_194, 0, x_118); lean_ctor_set(x_194, 1, x_193); @@ -1230,154 +1230,154 @@ lean_dec_ref(res); res = initialize_Init_NotationExtra(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Classical_tacticByCases_____x3a_____closed__1 = _init_l_Classical_tacticByCases_____x3a_____closed__1(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__1); -l_Classical_tacticByCases_____x3a_____closed__2 = _init_l_Classical_tacticByCases_____x3a_____closed__2(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__2); -l_Classical_tacticByCases_____x3a_____closed__3 = _init_l_Classical_tacticByCases_____x3a_____closed__3(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__3); -l_Classical_tacticByCases_____x3a_____closed__4 = _init_l_Classical_tacticByCases_____x3a_____closed__4(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__4); -l_Classical_tacticByCases_____x3a_____closed__5 = _init_l_Classical_tacticByCases_____x3a_____closed__5(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__5); -l_Classical_tacticByCases_____x3a_____closed__6 = _init_l_Classical_tacticByCases_____x3a_____closed__6(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__6); -l_Classical_tacticByCases_____x3a_____closed__7 = _init_l_Classical_tacticByCases_____x3a_____closed__7(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__7); -l_Classical_tacticByCases_____x3a_____closed__8 = _init_l_Classical_tacticByCases_____x3a_____closed__8(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__8); -l_Classical_tacticByCases_____x3a_____closed__9 = _init_l_Classical_tacticByCases_____x3a_____closed__9(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__9); -l_Classical_tacticByCases_____x3a_____closed__10 = _init_l_Classical_tacticByCases_____x3a_____closed__10(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__10); -l_Classical_tacticByCases_____x3a_____closed__11 = _init_l_Classical_tacticByCases_____x3a_____closed__11(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__11); -l_Classical_tacticByCases_____x3a_____closed__12 = _init_l_Classical_tacticByCases_____x3a_____closed__12(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__12); -l_Classical_tacticByCases_____x3a_____closed__13 = _init_l_Classical_tacticByCases_____x3a_____closed__13(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__13); -l_Classical_tacticByCases_____x3a_____closed__14 = _init_l_Classical_tacticByCases_____x3a_____closed__14(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__14); -l_Classical_tacticByCases_____x3a_____closed__15 = _init_l_Classical_tacticByCases_____x3a_____closed__15(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__15); -l_Classical_tacticByCases_____x3a_____closed__16 = _init_l_Classical_tacticByCases_____x3a_____closed__16(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__16); -l_Classical_tacticByCases_____x3a_____closed__17 = _init_l_Classical_tacticByCases_____x3a_____closed__17(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__17); -l_Classical_tacticByCases_____x3a_____closed__18 = _init_l_Classical_tacticByCases_____x3a_____closed__18(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__18); -l_Classical_tacticByCases_____x3a_____closed__19 = _init_l_Classical_tacticByCases_____x3a_____closed__19(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__19); -l_Classical_tacticByCases_____x3a_____closed__20 = _init_l_Classical_tacticByCases_____x3a_____closed__20(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a_____closed__20); -l_Classical_tacticByCases_____x3a__ = _init_l_Classical_tacticByCases_____x3a__(); -lean_mark_persistent(l_Classical_tacticByCases_____x3a__); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__1 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__1(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__1); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__2 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__2(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__2); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__3 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__3(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__3); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__4 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__4(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__4); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__5 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__5(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__5); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__6); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__7 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__7(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__7); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__8 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__8(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__8); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__9 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__9(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__9); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__10); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__11); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__12 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__12(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__12); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__13 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__13(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__13); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__14 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__14(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__14); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__15 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__15(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__15); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__16); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__17 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__17(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__17); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__18 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__18(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__18); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__19 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__19(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__19); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__20 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__20(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__20); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__21); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__22 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__22(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__22); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__23 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__23(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__23); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__24 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__24(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__24); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__25 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__25(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__25); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__26 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__26(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__26); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__27 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__27(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__27); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__28 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__28(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__28); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__29); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__30 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__30(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__30); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__31 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__31(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__31); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__32 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__32(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__32); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__33 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__33(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__33); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__34 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__34(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__34); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__35 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__35(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__35); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__36 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__36(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__36); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__37 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__37(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__37); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__38 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__38(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__38); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__39); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__40 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__40(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__40); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__41 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__41(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__41); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__42 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__42(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__42); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__43 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__43(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__43); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__44 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__44(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__44); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__45 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__45(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__45); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__46 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__46(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__46); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__47 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__47(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__47); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__48); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__49 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__49(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__49); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__50 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__50(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__50); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__51 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__51(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__51); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__52 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__52(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__52); -l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__53 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__53(); -lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticByCases_____x3a____1___closed__53); +l_Classical_tacticBy__cases_____x3a_____closed__1 = _init_l_Classical_tacticBy__cases_____x3a_____closed__1(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__1); +l_Classical_tacticBy__cases_____x3a_____closed__2 = _init_l_Classical_tacticBy__cases_____x3a_____closed__2(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__2); +l_Classical_tacticBy__cases_____x3a_____closed__3 = _init_l_Classical_tacticBy__cases_____x3a_____closed__3(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__3); +l_Classical_tacticBy__cases_____x3a_____closed__4 = _init_l_Classical_tacticBy__cases_____x3a_____closed__4(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__4); +l_Classical_tacticBy__cases_____x3a_____closed__5 = _init_l_Classical_tacticBy__cases_____x3a_____closed__5(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__5); +l_Classical_tacticBy__cases_____x3a_____closed__6 = _init_l_Classical_tacticBy__cases_____x3a_____closed__6(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__6); +l_Classical_tacticBy__cases_____x3a_____closed__7 = _init_l_Classical_tacticBy__cases_____x3a_____closed__7(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__7); +l_Classical_tacticBy__cases_____x3a_____closed__8 = _init_l_Classical_tacticBy__cases_____x3a_____closed__8(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__8); +l_Classical_tacticBy__cases_____x3a_____closed__9 = _init_l_Classical_tacticBy__cases_____x3a_____closed__9(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__9); +l_Classical_tacticBy__cases_____x3a_____closed__10 = _init_l_Classical_tacticBy__cases_____x3a_____closed__10(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__10); +l_Classical_tacticBy__cases_____x3a_____closed__11 = _init_l_Classical_tacticBy__cases_____x3a_____closed__11(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__11); +l_Classical_tacticBy__cases_____x3a_____closed__12 = _init_l_Classical_tacticBy__cases_____x3a_____closed__12(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__12); +l_Classical_tacticBy__cases_____x3a_____closed__13 = _init_l_Classical_tacticBy__cases_____x3a_____closed__13(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__13); +l_Classical_tacticBy__cases_____x3a_____closed__14 = _init_l_Classical_tacticBy__cases_____x3a_____closed__14(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__14); +l_Classical_tacticBy__cases_____x3a_____closed__15 = _init_l_Classical_tacticBy__cases_____x3a_____closed__15(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__15); +l_Classical_tacticBy__cases_____x3a_____closed__16 = _init_l_Classical_tacticBy__cases_____x3a_____closed__16(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__16); +l_Classical_tacticBy__cases_____x3a_____closed__17 = _init_l_Classical_tacticBy__cases_____x3a_____closed__17(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__17); +l_Classical_tacticBy__cases_____x3a_____closed__18 = _init_l_Classical_tacticBy__cases_____x3a_____closed__18(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__18); +l_Classical_tacticBy__cases_____x3a_____closed__19 = _init_l_Classical_tacticBy__cases_____x3a_____closed__19(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__19); +l_Classical_tacticBy__cases_____x3a_____closed__20 = _init_l_Classical_tacticBy__cases_____x3a_____closed__20(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a_____closed__20); +l_Classical_tacticBy__cases_____x3a__ = _init_l_Classical_tacticBy__cases_____x3a__(); +lean_mark_persistent(l_Classical_tacticBy__cases_____x3a__); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__1 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__1(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__1); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__2 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__2(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__2); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__3 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__3(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__3); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__4 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__4(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__4); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__5 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__5(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__5); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__6); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__7 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__7(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__7); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__8 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__8(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__8); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__9 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__9(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__9); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__10); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__11); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__12 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__12(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__12); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__13 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__13(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__13); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__14 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__14(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__14); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__15 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__15(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__15); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__16); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__17 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__17(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__17); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__18 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__18(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__18); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__19 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__19(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__19); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__20 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__20(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__20); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__21); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__22 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__22(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__22); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__23 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__23(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__23); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__24 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__24(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__24); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__25 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__25(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__25); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__26 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__26(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__26); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__27 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__27(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__27); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__28 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__28(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__28); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__29); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__30 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__30(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__30); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__31 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__31(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__31); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__32 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__32(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__32); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__33 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__33(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__33); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__34 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__34(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__34); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__35 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__35(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__35); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__36 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__36(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__36); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__37 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__37(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__37); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__38 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__38(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__38); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__39); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__40 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__40(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__40); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__41 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__41(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__41); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__42 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__42(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__42); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__43 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__43(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__43); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__44 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__44(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__44); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__45 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__45(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__45); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__46 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__46(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__46); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__47 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__47(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__47); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__48); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__49 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__49(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__49); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__50 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__50(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__50); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__51 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__51(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__51); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__52 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__52(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__52); +l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__53 = _init_l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__53(); +lean_mark_persistent(l_Classical___aux__Init__Classical______macroRules__Classical__tacticBy__cases_____x3a____1___closed__53); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Array.c b/stage0/stdlib/Init/Data/Array.c index c6b9865fe8..c44d6d39f4 100644 --- a/stage0/stdlib/Init/Data/Array.c +++ b/stage0/stdlib/Init/Data/Array.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Array -// Imports: Init.Data.Array.Basic Init.Data.Array.QSort Init.Data.Array.BinSearch Init.Data.Array.InsertionSort +// Imports: Init.Data.Array.Basic Init.Data.Array.QSort Init.Data.Array.BinSearch Init.Data.Array.InsertionSort Init.Data.Array.DecidableEq #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -17,6 +17,7 @@ lean_object* initialize_Init_Data_Array_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Array_QSort(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Array_BinSearch(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Array_InsertionSort(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Array_DecidableEq(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Array(uint8_t builtin, lean_object* w) { lean_object * res; @@ -34,6 +35,9 @@ lean_dec_ref(res); res = initialize_Init_Data_Array_InsertionSort(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Array_DecidableEq(builtin, 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)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Array/Basic.c b/stage0/stdlib/Init/Data/Array/Basic.c index 4b9b28d0e6..921e35c52d 100644 --- a/stage0/stdlib/Init/Data/Array/Basic.c +++ b/stage0/stdlib/Init/Data/Array/Basic.c @@ -8753,7 +8753,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_Array_swapAt_x21___rarg___closed__3; x_2 = l_Array_insertAt___rarg___closed__1; -x_3 = lean_unsigned_to_nat(686u); +x_3 = lean_unsigned_to_nat(682u); x_4 = lean_unsigned_to_nat(22u); x_5 = l_Array_insertAt___rarg___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/Init/Data/Array/DecidableEq.c b/stage0/stdlib/Init/Data/Array/DecidableEq.c new file mode 100644 index 0000000000..e026721c87 --- /dev/null +++ b/stage0/stdlib/Init/Data/Array/DecidableEq.c @@ -0,0 +1,154 @@ +// Lean compiler output +// Module: Init.Data.Array.DecidableEq +// Imports: Init.Data.Array.Basic Init.Classical +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Array_instDecidableEqArray(lean_object*); +lean_object* lean_array_get_size(lean_object*); +LEAN_EXPORT lean_object* l_Array_instDecidableEqArray___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_instDecidableEqArray___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Array_instDecidableEqArray___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) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_5); +x_9 = lean_nat_dec_lt(x_7, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +lean_dec(x_7); +lean_dec(x_1); +x_10 = 1; +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_array_fget(x_5, x_7); +x_12 = lean_array_fget(x_6, x_7); +lean_inc(x_1); +x_13 = lean_apply_2(x_1, x_11, x_12); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +uint8_t x_15; +lean_dec(x_7); +lean_dec(x_1); +x_15 = 0; +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_add(x_7, x_16); +lean_dec(x_7); +x_4 = lean_box(0); +x_7 = x_17; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1___rarg___boxed), 7, 0); +return x_2; +} +} +LEAN_EXPORT uint8_t l_Array_instDecidableEqArray___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_array_get_size(x_2); +x_5 = lean_array_get_size(x_3); +x_6 = lean_nat_dec_eq(x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_1); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1___rarg(x_1, x_2, x_3, lean_box(0), x_2, x_3, x_8); +return x_9; +} +} +} +LEAN_EXPORT lean_object* l_Array_instDecidableEqArray(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_instDecidableEqArray___rarg___boxed), 3, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = l_Array_isEqvAux___at_Array_instDecidableEqArray___spec__1___rarg(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_3); +lean_dec(x_2); +x_9 = lean_box(x_8); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_instDecidableEqArray___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = l_Array_instDecidableEqArray___rarg(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; +} +} +lean_object* initialize_Init_Data_Array_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Classical(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Data_Array_DecidableEq(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Data_Array_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Classical(builtin, 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)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Elab/AutoBound.c b/stage0/stdlib/Lean/Elab/AutoBound.c index 4ce553ccf9..76b62e8bfd 100644 --- a/stage0/stdlib/Lean/Elab/AutoBound.c +++ b/stage0/stdlib/Lean/Elab/AutoBound.c @@ -14,36 +14,42 @@ extern "C" { #endif static lean_object* l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_relaxedAutoImplicit; LEAN_EXPORT lean_object* l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___boxed(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object*, uint8_t); uint8_t l_String_anyAux_loop(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_autoBoundImplicitLocal; uint8_t l_Char_isDigit(uint32_t); +LEAN_EXPORT lean_object* l_Lean_Elab_autoImplicit; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__3; static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__5; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__3; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__1; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__2; uint8_t l_Char_isLower(uint32_t); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__1; uint32_t lean_string_utf8_get(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__4; static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__2; lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___lambda__1___boxed(lean_object*); static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__4; uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); LEAN_EXPORT uint8_t l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix(lean_object*); -LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundLevelName(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundImplicitName___boxed(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundLevelName(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundImplicitName___boxed(lean_object*, lean_object*); uint8_t l_Lean_isGreek(uint32_t); lean_object* lean_register_option(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6_(lean_object*); lean_object* lean_string_length(lean_object*); uint8_t l_Lean_isSubScriptAlnum(uint32_t); LEAN_EXPORT uint8_t l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___lambda__1(uint32_t); LEAN_EXPORT lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundLevelName___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundLevelName___boxed(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: @@ -124,7 +130,7 @@ static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6_ _start: { lean_object* x_1; -x_1 = lean_mk_string("autoBoundImplicitLocal"); +x_1 = lean_mk_string("autoImplicit"); return x_1; } } @@ -150,7 +156,7 @@ static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6_ _start: { lean_object* x_1; -x_1 = lean_mk_string("Unbound local variables in declaration headers become implicit arguments if they are a lower case or greek letter followed by numeric digits. For example, `def f (x : Vector α n) : Vector α n :=` automatically introduces the implicit variables {α n}."); +x_1 = lean_mk_string("Unbound local variables in declaration headers become implicit arguments. In \"relaxed\" mode (default), any atomic identifier is eligible, otherwise only a lower case or greek letter followed by numeric digits are eligible. For example, `def f (x : Vector α n) : Vector α n :=` automatically introduces the implicit variables {α n}."); return x_1; } } @@ -188,6 +194,57 @@ lean_dec(x_2); return x_4; } } +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("relaxedAutoImplicit"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("When \"relaxed\" mode is enabled, any atomic nonempty identifier is eligible for auto bound implicit locals (see optin `autoBoundImplicitLocal`."); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__4() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = 1; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__3; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__3; +x_4 = lean_box(x_1); +x_5 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set(x_5, 2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29_(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__2; +x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__4; +x_4 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(x_2, x_3, x_1); +return x_4; +} +} LEAN_EXPORT uint8_t l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___lambda__1(uint32_t x_1) { _start: { @@ -305,58 +362,152 @@ x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object* x_1) { +LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object* x_1, uint8_t x_2) { _start: { if (lean_obj_tag(x_1) == 1) { -lean_object* x_2; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_1, 1); +lean_object* x_3; +x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_string_length(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -lean_dec(x_4); -if (x_6 == 0) +if (lean_obj_tag(x_3) == 0) { -uint8_t x_7; -lean_dec(x_3); -x_7 = 0; -return x_7; +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_string_length(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +lean_dec(x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_4); +x_8 = 0; +return x_8; } else { -uint32_t x_8; uint8_t x_9; -x_8 = lean_string_utf8_get(x_3, x_5); -x_9 = l_Lean_isGreek(x_8); -if (x_9 == 0) +if (x_2 == 0) { -uint8_t x_10; -x_10 = l_Char_isLower(x_8); +uint32_t x_9; uint8_t x_10; +x_9 = lean_string_utf8_get(x_4, x_6); +x_10 = l_Lean_isGreek(x_9); if (x_10 == 0) { uint8_t x_11; +x_11 = l_Char_isLower(x_9); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_4); +x_12 = 0; +return x_12; +} +else +{ +uint8_t x_13; +x_13 = l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix(x_4); +return x_13; +} +} +else +{ +uint8_t x_14; +x_14 = l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix(x_4); +return x_14; +} +} +else +{ +uint8_t x_15; +lean_dec(x_4); +x_15 = 1; +return x_15; +} +} +} +else +{ +uint8_t x_16; lean_dec(x_3); +lean_dec(x_1); +x_16 = 0; +return x_16; +} +} +else +{ +uint8_t x_17; +lean_dec(x_1); +x_17 = 0; +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundImplicitName___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_2); +lean_dec(x_2); +x_4 = l_Lean_Elab_isValidAutoBoundImplicitName(x_1, x_3); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundLevelName(lean_object* x_1, uint8_t x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_3; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_string_length(x_4); +x_6 = lean_unsigned_to_nat(0u); +x_7 = lean_nat_dec_lt(x_6, x_5); +lean_dec(x_5); +if (x_7 == 0) +{ +uint8_t x_8; +lean_dec(x_4); +x_8 = 0; +return x_8; +} +else +{ +if (x_2 == 0) +{ +uint32_t x_9; uint8_t x_10; +x_9 = lean_string_utf8_get(x_4, x_6); +x_10 = l_Char_isLower(x_9); +if (x_10 == 0) +{ +uint8_t x_11; +lean_dec(x_4); x_11 = 0; return x_11; } else { uint8_t x_12; -x_12 = l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix(x_3); +x_12 = l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix(x_4); return x_12; } } else { uint8_t x_13; -x_13 = l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix(x_3); +lean_dec(x_4); +x_13 = 1; return x_13; } } @@ -364,7 +515,7 @@ return x_13; else { uint8_t x_14; -lean_dec(x_2); +lean_dec(x_3); lean_dec(x_1); x_14 = 0; return x_14; @@ -379,85 +530,15 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundImplicitName___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundLevelName___boxed(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Elab_isValidAutoBoundImplicitName(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -LEAN_EXPORT uint8_t l_Lean_Elab_isValidAutoBoundLevelName(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_2; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; -x_3 = lean_ctor_get(x_1, 1); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_string_length(x_3); -x_5 = lean_unsigned_to_nat(0u); -x_6 = lean_nat_dec_lt(x_5, x_4); -lean_dec(x_4); -if (x_6 == 0) -{ -uint8_t x_7; -lean_dec(x_3); -x_7 = 0; -return x_7; -} -else -{ -uint32_t x_8; uint8_t x_9; -x_8 = lean_string_utf8_get(x_3, x_5); -x_9 = l_Char_isLower(x_8); -if (x_9 == 0) -{ -uint8_t x_10; -lean_dec(x_3); -x_10 = 0; -return x_10; -} -else -{ -uint8_t x_11; -x_11 = l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix(x_3); -return x_11; -} -} -} -else -{ -uint8_t x_12; +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_2); lean_dec(x_2); -lean_dec(x_1); -x_12 = 0; -return x_12; -} -} -else -{ -uint8_t x_13; -lean_dec(x_1); -x_13 = 0; -return x_13; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_isValidAutoBoundLevelName___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Elab_isValidAutoBoundLevelName(x_1); -x_3 = lean_box(x_2); -return x_3; +x_4 = l_Lean_Elab_isValidAutoBoundLevelName(x_1, x_3); +x_5 = lean_box(x_4); +return x_5; } } lean_object* initialize_Init(uint8_t builtin, lean_object*); @@ -485,8 +566,21 @@ l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__5 = _init_l_Lea lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____closed__5); if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; -l_Lean_Elab_autoBoundImplicitLocal = lean_io_result_get_value(res); -lean_mark_persistent(l_Lean_Elab_autoBoundImplicitLocal); +l_Lean_Elab_autoImplicit = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_autoImplicit); +lean_dec_ref(res); +}l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__3); +l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__4 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__4(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29____closed__4); +if (builtin) {res = l_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_29_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +l_Lean_Elab_relaxedAutoImplicit = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_relaxedAutoImplicit); lean_dec_ref(res); }l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___closed__1 = _init_l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___closed__1(); lean_mark_persistent(l___private_Lean_Elab_AutoBound_0__Lean_Elab_isValidAutoBoundSuffix___closed__1); diff --git a/stage0/stdlib/Lean/Elab/Level.c b/stage0/stdlib/Lean/Elab/Level.c index 30c74b1869..db9c57a255 100644 --- a/stage0/stdlib/Lean/Elab/Level.c +++ b/stage0/stdlib/Lean/Elab/Level.c @@ -21,6 +21,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__10; LEAN_EXPORT lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___closed__3; +extern lean_object* l_Lean_Elab_relaxedAutoImplicit; LEAN_EXPORT lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__7; lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -71,6 +72,7 @@ lean_object* lean_level_mk_imax_simp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Level_initFn____x40_Lean_Elab_Level___hyg_254_(lean_object*); static lean_object* l_Lean_Elab_Level_elabLevel___closed__12; lean_object* l_Nat_repr(lean_object*); +uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Level_addOffsetAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1(lean_object*, lean_object*, lean_object*); @@ -96,7 +98,7 @@ LEAN_EXPORT lean_object* l_Lean_mkFreshId___at_Lean_Elab_Level_mkFreshLevelMVar_ static lean_object* l_Lean_Elab_Level_elabLevel___closed__1; extern lean_object* l_Lean_identKind; uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*); -uint8_t l_Lean_Elab_isValidAutoBoundLevelName(lean_object*); +uint8_t l_Lean_Elab_isValidAutoBoundLevelName(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___rarg___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5___boxed(lean_object*, lean_object*, lean_object*); @@ -140,6 +142,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM___la LEAN_EXPORT lean_object* l_Lean_Elab_Level_instMonadNameGeneratorLevelElabM; static lean_object* l_Lean_Elab_Level_initFn____x40_Lean_Elab_Level___hyg_254____closed__2; static lean_object* l_Lean_Elab_Level_elabLevel___closed__13; +static lean_object* l_Lean_Elab_Level_elabLevel___closed__23; static lean_object* l_Lean_Elab_Level_elabLevel___closed__21; LEAN_EXPORT lean_object* l_Lean_Elab_Level_elabLevel___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -1380,6 +1383,14 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } +static lean_object* _init_l_Lean_Elab_Level_elabLevel___closed__23() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_relaxedAutoImplicit; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Level_elabLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -1391,386 +1402,395 @@ x_6 = lean_name_eq(x_4, x_5); x_7 = !lean_is_exclusive(x_2); if (x_7 == 0) { -lean_object* x_8; uint8_t x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_2, 1); -x_9 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); -x_10 = l_Lean_replaceRef(x_1, x_8); -lean_dec(x_8); -lean_ctor_set(x_2, 1, x_10); +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +x_11 = l_Lean_replaceRef(x_1, x_9); +lean_dec(x_9); +lean_inc(x_8); +lean_ctor_set(x_2, 1, x_11); if (x_6 == 0) { -lean_object* x_11; uint8_t x_12; -x_11 = l_Lean_Elab_Level_elabLevel___closed__10; -x_12 = lean_name_eq(x_4, x_11); -if (x_12 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = l_Lean_Elab_Level_elabLevel___closed__10; +x_13 = lean_name_eq(x_4, x_12); +if (x_13 == 0) { -lean_object* x_13; uint8_t x_14; -x_13 = l_Lean_Elab_Level_elabLevel___closed__12; -x_14 = lean_name_eq(x_4, x_13); -if (x_14 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = l_Lean_Elab_Level_elabLevel___closed__12; +x_15 = lean_name_eq(x_4, x_14); +if (x_15 == 0) { -lean_object* x_15; uint8_t x_16; -x_15 = l_Lean_Elab_Level_elabLevel___closed__14; -x_16 = lean_name_eq(x_4, x_15); -if (x_16 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = l_Lean_Elab_Level_elabLevel___closed__14; +x_17 = lean_name_eq(x_4, x_16); +if (x_17 == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = l_Lean_numLitKind; -x_18 = lean_name_eq(x_4, x_17); -if (x_18 == 0) +lean_object* x_18; uint8_t x_19; +x_18 = l_Lean_numLitKind; +x_19 = lean_name_eq(x_4, x_18); +if (x_19 == 0) { -lean_object* x_19; uint8_t x_20; -x_19 = l_Lean_identKind; -x_20 = lean_name_eq(x_4, x_19); -if (x_20 == 0) +lean_object* x_20; uint8_t x_21; +x_20 = l_Lean_identKind; +x_21 = lean_name_eq(x_4, x_20); +if (x_21 == 0) { -lean_object* x_21; uint8_t x_22; -x_21 = l_Lean_Elab_Level_elabLevel___closed__16; -x_22 = lean_name_eq(x_4, x_21); +lean_object* x_22; uint8_t x_23; +lean_dec(x_8); +x_22 = l_Lean_Elab_Level_elabLevel___closed__16; +x_23 = lean_name_eq(x_4, x_22); lean_dec(x_4); -if (x_22 == 0) +if (x_23 == 0) { -lean_object* x_23; lean_object* x_24; +lean_object* x_24; lean_object* x_25; lean_dec(x_1); -x_23 = l_Lean_Elab_Level_elabLevel___closed__18; -x_24 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1(x_23, x_2, x_3); +x_24 = l_Lean_Elab_Level_elabLevel___closed__18; +x_25 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1(x_24, x_2, x_3); lean_dec(x_2); -return x_24; +return x_25; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_unsigned_to_nat(0u); -x_26 = l_Lean_Syntax_getArg(x_1, x_25); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_unsigned_to_nat(0u); +x_27 = l_Lean_Syntax_getArg(x_1, x_26); lean_inc(x_2); -x_27 = l_Lean_Elab_Level_elabLevel(x_26, x_2, x_3); -if (lean_obj_tag(x_27) == 0) +x_28 = l_Lean_Elab_Level_elabLevel(x_27, x_2, x_3); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); +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_28, 0); lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_unsigned_to_nat(2u); -x_31 = l_Lean_Syntax_getArg(x_1, x_30); -lean_dec(x_1); -x_32 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_17, x_31); -lean_dec(x_31); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); lean_dec(x_28); -x_33 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_2, x_29); -return x_33; -} -else -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_32, 0); -lean_inc(x_34); +x_31 = lean_unsigned_to_nat(2u); +x_32 = l_Lean_Syntax_getArg(x_1, x_31); +lean_dec(x_1); +x_33 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_18, x_32); lean_dec(x_32); -lean_inc(x_34); -x_35 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_34, x_2, x_29); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; +lean_dec(x_29); +x_34 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_2, x_30); +return x_34; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +lean_dec(x_33); +lean_inc(x_35); +x_36 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_35, x_2, x_30); lean_dec(x_2); -if (lean_obj_tag(x_35) == 0) +if (lean_obj_tag(x_36) == 0) { -uint8_t x_36; -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_35, 0); -lean_dec(x_37); -x_38 = l_Lean_Level_addOffsetAux(x_34, x_28); -lean_ctor_set(x_35, 0, x_38); -return x_35; +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +x_39 = l_Lean_Level_addOffsetAux(x_35, x_29); +lean_ctor_set(x_36, 0, x_39); +return x_36; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_35, 1); -lean_inc(x_39); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +lean_dec(x_36); +x_41 = l_Lean_Level_addOffsetAux(x_35, x_29); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +else +{ +uint8_t x_43; lean_dec(x_35); -x_40 = l_Lean_Level_addOffsetAux(x_34, x_28); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -return x_41; -} +lean_dec(x_29); +x_43 = !lean_is_exclusive(x_36); +if (x_43 == 0) +{ +return x_36; } else { -uint8_t x_42; -lean_dec(x_34); -lean_dec(x_28); -x_42 = !lean_is_exclusive(x_35); -if (x_42 == 0) -{ -return x_35; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_35, 0); -x_44 = lean_ctor_get(x_35, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_36, 0); +x_45 = lean_ctor_get(x_36, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_35); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_dec(x_36); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } } else { -uint8_t x_46; +uint8_t x_47; lean_dec(x_2); lean_dec(x_1); -x_46 = !lean_is_exclusive(x_27); -if (x_46 == 0) +x_47 = !lean_is_exclusive(x_28); +if (x_47 == 0) { -return x_27; +return x_28; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_27, 0); -x_48 = lean_ctor_get(x_27, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_28, 0); +x_49 = lean_ctor_get(x_28, 1); +lean_inc(x_49); lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_27); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_dec(x_28); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_dec(x_4); -x_50 = l_Lean_Syntax_getId(x_1); +x_51 = l_Lean_Syntax_getId(x_1); lean_dec(x_1); -x_51 = lean_ctor_get(x_3, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_3, 1); +x_52 = lean_ctor_get(x_3, 0); lean_inc(x_52); -x_53 = lean_ctor_get(x_3, 2); +x_53 = lean_ctor_get(x_3, 1); lean_inc(x_53); -x_54 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_50, x_53); -if (x_54 == 0) +x_54 = lean_ctor_get(x_3, 2); +lean_inc(x_54); +x_55 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_51, x_54); +if (x_55 == 0) { -if (x_9 == 0) +if (x_10 == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_dec(x_54); lean_dec(x_53); lean_dec(x_52); -lean_dec(x_51); -x_55 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_55, 0, x_50); -x_56 = l_Lean_Elab_Level_elabLevel___closed__20; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_Elab_Level_elabLevel___closed__22; -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -x_60 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_59, x_2, x_3); +lean_dec(x_8); +x_56 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_56, 0, x_51); +x_57 = l_Lean_Elab_Level_elabLevel___closed__20; +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_56); +x_59 = l_Lean_Elab_Level_elabLevel___closed__22; +x_60 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_60, x_2, x_3); lean_dec(x_2); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) { -return x_60; +return x_61; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); +lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_60); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_dec(x_61); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +return x_65; } } else { -uint8_t x_65; -lean_inc(x_50); -x_65 = l_Lean_Elab_isValidAutoBoundLevelName(x_50); -if (x_65 == 0) +lean_object* x_66; uint8_t x_67; uint8_t x_68; +x_66 = l_Lean_Elab_Level_elabLevel___closed__23; +x_67 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_8, x_66); +lean_dec(x_8); +lean_inc(x_51); +x_68 = l_Lean_Elab_isValidAutoBoundLevelName(x_51, x_67); +if (x_68 == 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; uint8_t x_72; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +lean_dec(x_54); lean_dec(x_53); lean_dec(x_52); -lean_dec(x_51); -x_66 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_66, 0, x_50); -x_67 = l_Lean_Elab_Level_elabLevel___closed__20; -x_68 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_66); -x_69 = l_Lean_Elab_Level_elabLevel___closed__22; -x_70 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -x_71 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_70, x_2, x_3); +x_69 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_69, 0, x_51); +x_70 = l_Lean_Elab_Level_elabLevel___closed__20; +x_71 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = l_Lean_Elab_Level_elabLevel___closed__22; +x_73 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_73, x_2, x_3); lean_dec(x_2); -x_72 = !lean_is_exclusive(x_71); -if (x_72 == 0) +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) { -return x_71; +return x_74; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_71, 0); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_71); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_74, 0); +x_77 = lean_ctor_get(x_74, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_74); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } } else { -uint8_t x_76; -x_76 = !lean_is_exclusive(x_3); -if (x_76 == 0) +uint8_t x_79; +x_79 = !lean_is_exclusive(x_3); +if (x_79 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_77 = lean_ctor_get(x_3, 2); -lean_dec(x_77); -x_78 = lean_ctor_get(x_3, 1); -lean_dec(x_78); -x_79 = lean_ctor_get(x_3, 0); -lean_dec(x_79); -lean_inc(x_50); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_50); -lean_ctor_set(x_80, 1, x_53); -lean_ctor_set(x_3, 2, x_80); -x_81 = lean_box(0); -x_82 = l_Lean_Elab_Level_elabLevel___lambda__1(x_50, x_81, x_2, x_3); -lean_dec(x_2); -return x_82; -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_3); -lean_inc(x_50); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_80 = lean_ctor_get(x_3, 2); +lean_dec(x_80); +x_81 = lean_ctor_get(x_3, 1); +lean_dec(x_81); +x_82 = lean_ctor_get(x_3, 0); +lean_dec(x_82); +lean_inc(x_51); x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_50); -lean_ctor_set(x_83, 1, x_53); -x_84 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_84, 0, x_51); -lean_ctor_set(x_84, 1, x_52); -lean_ctor_set(x_84, 2, x_83); -x_85 = lean_box(0); -x_86 = l_Lean_Elab_Level_elabLevel___lambda__1(x_50, x_85, x_2, x_84); +lean_ctor_set(x_83, 0, x_51); +lean_ctor_set(x_83, 1, x_54); +lean_ctor_set(x_3, 2, x_83); +x_84 = lean_box(0); +x_85 = l_Lean_Elab_Level_elabLevel___lambda__1(x_51, x_84, x_2, x_3); lean_dec(x_2); -return x_86; +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_dec(x_3); +lean_inc(x_51); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_51); +lean_ctor_set(x_86, 1, x_54); +x_87 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_87, 0, x_52); +lean_ctor_set(x_87, 1, x_53); +lean_ctor_set(x_87, 2, x_86); +x_88 = lean_box(0); +x_89 = l_Lean_Elab_Level_elabLevel___lambda__1(x_51, x_88, x_2, x_87); +lean_dec(x_2); +return x_89; } } } } else { -lean_object* x_87; lean_object* x_88; +lean_object* x_90; lean_object* x_91; +lean_dec(x_54); lean_dec(x_53); lean_dec(x_52); -lean_dec(x_51); -x_87 = lean_box(0); -x_88 = l_Lean_Elab_Level_elabLevel___lambda__1(x_50, x_87, x_2, x_3); +lean_dec(x_8); +x_90 = lean_box(0); +x_91 = l_Lean_Elab_Level_elabLevel___lambda__1(x_51, x_90, x_2, x_3); lean_dec(x_2); -return x_88; +return x_91; } } } else { -lean_object* x_89; +lean_object* x_92; +lean_dec(x_8); lean_dec(x_4); -x_89 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_17, x_1); +x_92 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_18, x_1); lean_dec(x_1); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; -x_90 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_2, x_3); -return x_90; -} -else -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_89, 0); -lean_inc(x_91); -lean_dec(x_89); -lean_inc(x_91); -x_92 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_91, x_2, x_3); -lean_dec(x_2); if (lean_obj_tag(x_92) == 0) { -uint8_t x_93; -x_93 = !lean_is_exclusive(x_92); -if (x_93 == 0) +lean_object* x_93; +x_93 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_2, x_3); +return x_93; +} +else { lean_object* x_94; lean_object* x_95; x_94 = lean_ctor_get(x_92, 0); +lean_inc(x_94); +lean_dec(x_92); +lean_inc(x_94); +x_95 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_94, x_2, x_3); +lean_dec(x_2); +if (lean_obj_tag(x_95) == 0) +{ +uint8_t x_96; +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_95, 0); +lean_dec(x_97); +x_98 = l_Lean_Level_ofNat(x_94); lean_dec(x_94); -x_95 = l_Lean_Level_ofNat(x_91); -lean_dec(x_91); -lean_ctor_set(x_92, 0, x_95); -return x_92; +lean_ctor_set(x_95, 0, x_98); +return x_95; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_92, 1); -lean_inc(x_96); -lean_dec(x_92); -x_97 = l_Lean_Level_ofNat(x_91); -lean_dec(x_91); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -return x_98; +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_95, 1); +lean_inc(x_99); +lean_dec(x_95); +x_100 = l_Lean_Level_ofNat(x_94); +lean_dec(x_94); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +return x_101; } } else { -uint8_t x_99; -lean_dec(x_91); -x_99 = !lean_is_exclusive(x_92); -if (x_99 == 0) +uint8_t x_102; +lean_dec(x_94); +x_102 = !lean_is_exclusive(x_95); +if (x_102 == 0) { -return x_92; +return x_95; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_92, 0); -x_101 = lean_ctor_get(x_92, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_92); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_95, 0); +x_104 = lean_ctor_get(x_95, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_95); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +return x_105; } } } @@ -1778,1101 +1798,1117 @@ return x_102; } else { -lean_object* x_103; +lean_object* x_106; +lean_dec(x_8); lean_dec(x_4); lean_dec(x_1); -x_103 = l_Lean_Elab_Level_mkFreshLevelMVar(x_2, x_3); +x_106 = l_Lean_Elab_Level_mkFreshLevelMVar(x_2, x_3); lean_dec(x_2); -return x_103; +return x_106; } } 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_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_8); lean_dec(x_4); -x_104 = lean_unsigned_to_nat(1u); -x_105 = l_Lean_Syntax_getArg(x_1, x_104); +x_107 = lean_unsigned_to_nat(1u); +x_108 = l_Lean_Syntax_getArg(x_1, x_107); lean_dec(x_1); -x_106 = l_Lean_Syntax_getArgs(x_105); -lean_dec(x_105); -x_107 = l_Lean_instInhabitedSyntax; -x_108 = l_Array_back___rarg(x_107, x_106); +x_109 = l_Lean_Syntax_getArgs(x_108); +lean_dec(x_108); +x_110 = l_Lean_instInhabitedSyntax; +x_111 = l_Array_back___rarg(x_110, x_109); lean_inc(x_2); -x_109 = l_Lean_Elab_Level_elabLevel(x_108, x_2, x_3); -if (lean_obj_tag(x_109) == 0) +x_112 = l_Lean_Elab_Level_elabLevel(x_111, x_2, x_3); +if (lean_obj_tag(x_112) == 0) { -uint8_t x_110; -x_110 = !lean_is_exclusive(x_109); -if (x_110 == 0) +uint8_t x_113; +x_113 = !lean_is_exclusive(x_112); +if (x_113 == 0) { -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; uint8_t x_121; -x_111 = lean_ctor_get(x_109, 0); -x_112 = lean_ctor_get(x_109, 1); -x_113 = lean_array_get_size(x_106); -x_114 = lean_nat_sub(x_113, x_104); -lean_dec(x_113); -x_115 = lean_unsigned_to_nat(0u); -x_116 = l_Array_toSubarray___rarg(x_106, x_115, x_114); -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 2); -lean_inc(x_118); -x_119 = lean_ctor_get(x_116, 1); -lean_inc(x_119); +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; uint8_t x_124; +x_114 = lean_ctor_get(x_112, 0); +x_115 = lean_ctor_get(x_112, 1); +x_116 = lean_array_get_size(x_109); +x_117 = lean_nat_sub(x_116, x_107); lean_dec(x_116); -x_120 = lean_array_get_size(x_117); -x_121 = lean_nat_dec_le(x_118, x_120); -if (x_121 == 0) -{ -uint8_t x_122; -lean_dec(x_118); -x_122 = lean_nat_dec_lt(x_119, x_120); -if (x_122 == 0) -{ -lean_dec(x_120); +x_118 = lean_unsigned_to_nat(0u); +x_119 = l_Array_toSubarray___rarg(x_109, x_118, x_117); +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 2); +lean_inc(x_121); +x_122 = lean_ctor_get(x_119, 1); +lean_inc(x_122); lean_dec(x_119); -lean_dec(x_117); +x_123 = lean_array_get_size(x_120); +x_124 = lean_nat_dec_le(x_121, x_123); +if (x_124 == 0) +{ +uint8_t x_125; +lean_dec(x_121); +x_125 = lean_nat_dec_lt(x_122, x_123); +if (x_125 == 0) +{ +lean_dec(x_123); +lean_dec(x_122); +lean_dec(x_120); lean_dec(x_2); -return x_109; +return x_112; } else { -size_t x_123; size_t x_124; lean_object* x_125; -lean_free_object(x_109); -x_123 = lean_usize_of_nat(x_120); +size_t x_126; size_t x_127; lean_object* x_128; +lean_free_object(x_112); +x_126 = lean_usize_of_nat(x_123); +lean_dec(x_123); +x_127 = lean_usize_of_nat(x_122); +lean_dec(x_122); +x_128 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_120, x_126, x_127, x_114, x_2, x_115); lean_dec(x_120); -x_124 = lean_usize_of_nat(x_119); -lean_dec(x_119); -x_125 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_117, x_123, x_124, x_111, x_2, x_112); -lean_dec(x_117); -return x_125; +return x_128; } } else { -uint8_t x_126; -lean_dec(x_120); -x_126 = lean_nat_dec_lt(x_119, x_118); -if (x_126 == 0) +uint8_t x_129; +lean_dec(x_123); +x_129 = lean_nat_dec_lt(x_122, x_121); +if (x_129 == 0) { -lean_dec(x_119); -lean_dec(x_118); -lean_dec(x_117); +lean_dec(x_122); +lean_dec(x_121); +lean_dec(x_120); lean_dec(x_2); -return x_109; +return x_112; } else { -size_t x_127; size_t x_128; lean_object* x_129; -lean_free_object(x_109); -x_127 = lean_usize_of_nat(x_118); -lean_dec(x_118); -x_128 = lean_usize_of_nat(x_119); -lean_dec(x_119); -x_129 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_117, x_127, x_128, x_111, x_2, x_112); -lean_dec(x_117); -return x_129; +size_t x_130; size_t x_131; lean_object* x_132; +lean_free_object(x_112); +x_130 = lean_usize_of_nat(x_121); +lean_dec(x_121); +x_131 = lean_usize_of_nat(x_122); +lean_dec(x_122); +x_132 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_120, x_130, x_131, x_114, x_2, x_115); +lean_dec(x_120); +return x_132; } } } else { -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; uint8_t x_140; -x_130 = lean_ctor_get(x_109, 0); -x_131 = lean_ctor_get(x_109, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_109); -x_132 = lean_array_get_size(x_106); -x_133 = lean_nat_sub(x_132, x_104); -lean_dec(x_132); -x_134 = lean_unsigned_to_nat(0u); -x_135 = l_Array_toSubarray___rarg(x_106, x_134, x_133); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 2); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); -lean_inc(x_138); +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; uint8_t x_143; +x_133 = lean_ctor_get(x_112, 0); +x_134 = lean_ctor_get(x_112, 1); +lean_inc(x_134); +lean_inc(x_133); +lean_dec(x_112); +x_135 = lean_array_get_size(x_109); +x_136 = lean_nat_sub(x_135, x_107); lean_dec(x_135); -x_139 = lean_array_get_size(x_136); -x_140 = lean_nat_dec_le(x_137, x_139); -if (x_140 == 0) -{ -uint8_t x_141; -lean_dec(x_137); -x_141 = lean_nat_dec_lt(x_138, x_139); -if (x_141 == 0) -{ -lean_object* x_142; -lean_dec(x_139); +x_137 = lean_unsigned_to_nat(0u); +x_138 = l_Array_toSubarray___rarg(x_109, x_137, x_136); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 2); +lean_inc(x_140); +x_141 = lean_ctor_get(x_138, 1); +lean_inc(x_141); lean_dec(x_138); -lean_dec(x_136); +x_142 = lean_array_get_size(x_139); +x_143 = lean_nat_dec_le(x_140, x_142); +if (x_143 == 0) +{ +uint8_t x_144; +lean_dec(x_140); +x_144 = lean_nat_dec_lt(x_141, x_142); +if (x_144 == 0) +{ +lean_object* x_145; +lean_dec(x_142); +lean_dec(x_141); +lean_dec(x_139); lean_dec(x_2); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_130); -lean_ctor_set(x_142, 1, x_131); -return x_142; -} -else -{ -size_t x_143; size_t x_144; lean_object* x_145; -x_143 = lean_usize_of_nat(x_139); -lean_dec(x_139); -x_144 = lean_usize_of_nat(x_138); -lean_dec(x_138); -x_145 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_136, x_143, x_144, x_130, x_2, x_131); -lean_dec(x_136); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_133); +lean_ctor_set(x_145, 1, x_134); return x_145; } -} else { -uint8_t x_146; +size_t x_146; size_t x_147; lean_object* x_148; +x_146 = lean_usize_of_nat(x_142); +lean_dec(x_142); +x_147 = lean_usize_of_nat(x_141); +lean_dec(x_141); +x_148 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_139, x_146, x_147, x_133, x_2, x_134); lean_dec(x_139); -x_146 = lean_nat_dec_lt(x_138, x_137); -if (x_146 == 0) -{ -lean_object* x_147; -lean_dec(x_138); -lean_dec(x_137); -lean_dec(x_136); -lean_dec(x_2); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_130); -lean_ctor_set(x_147, 1, x_131); -return x_147; +return x_148; +} } else { -size_t x_148; size_t x_149; lean_object* x_150; -x_148 = lean_usize_of_nat(x_137); -lean_dec(x_137); -x_149 = lean_usize_of_nat(x_138); -lean_dec(x_138); -x_150 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_136, x_148, x_149, x_130, x_2, x_131); -lean_dec(x_136); +uint8_t x_149; +lean_dec(x_142); +x_149 = lean_nat_dec_lt(x_141, x_140); +if (x_149 == 0) +{ +lean_object* x_150; +lean_dec(x_141); +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_2); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_133); +lean_ctor_set(x_150, 1, x_134); return x_150; } +else +{ +size_t x_151; size_t x_152; lean_object* x_153; +x_151 = lean_usize_of_nat(x_140); +lean_dec(x_140); +x_152 = lean_usize_of_nat(x_141); +lean_dec(x_141); +x_153 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_139, x_151, x_152, x_133, x_2, x_134); +lean_dec(x_139); +return x_153; +} } } } else { -uint8_t x_151; -lean_dec(x_106); -lean_dec(x_2); -x_151 = !lean_is_exclusive(x_109); -if (x_151 == 0) -{ -return x_109; -} -else -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_109, 0); -x_153 = lean_ctor_get(x_109, 1); -lean_inc(x_153); -lean_inc(x_152); +uint8_t x_154; lean_dec(x_109); -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; +lean_dec(x_2); +x_154 = !lean_is_exclusive(x_112); +if (x_154 == 0) +{ +return x_112; +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_112, 0); +x_156 = lean_ctor_get(x_112, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_112); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +return x_157; } } } } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_8); lean_dec(x_4); -x_155 = lean_unsigned_to_nat(1u); -x_156 = l_Lean_Syntax_getArg(x_1, x_155); +x_158 = lean_unsigned_to_nat(1u); +x_159 = l_Lean_Syntax_getArg(x_1, x_158); lean_dec(x_1); -x_157 = l_Lean_Syntax_getArgs(x_156); -lean_dec(x_156); -x_158 = l_Lean_instInhabitedSyntax; -x_159 = l_Array_back___rarg(x_158, x_157); +x_160 = l_Lean_Syntax_getArgs(x_159); +lean_dec(x_159); +x_161 = l_Lean_instInhabitedSyntax; +x_162 = l_Array_back___rarg(x_161, x_160); lean_inc(x_2); -x_160 = l_Lean_Elab_Level_elabLevel(x_159, x_2, x_3); -if (lean_obj_tag(x_160) == 0) +x_163 = l_Lean_Elab_Level_elabLevel(x_162, x_2, x_3); +if (lean_obj_tag(x_163) == 0) { -uint8_t x_161; -x_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) +uint8_t x_164; +x_164 = !lean_is_exclusive(x_163); +if (x_164 == 0) { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_162 = lean_ctor_get(x_160, 0); -x_163 = lean_ctor_get(x_160, 1); -x_164 = lean_array_get_size(x_157); -x_165 = lean_nat_sub(x_164, x_155); -lean_dec(x_164); -x_166 = lean_unsigned_to_nat(0u); -x_167 = l_Array_toSubarray___rarg(x_157, x_166, x_165); -x_168 = lean_ctor_get(x_167, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 2); -lean_inc(x_169); -x_170 = lean_ctor_get(x_167, 1); -lean_inc(x_170); +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; uint8_t x_175; +x_165 = lean_ctor_get(x_163, 0); +x_166 = lean_ctor_get(x_163, 1); +x_167 = lean_array_get_size(x_160); +x_168 = lean_nat_sub(x_167, x_158); lean_dec(x_167); -x_171 = lean_array_get_size(x_168); -x_172 = lean_nat_dec_le(x_169, x_171); -if (x_172 == 0) -{ -uint8_t x_173; -lean_dec(x_169); -x_173 = lean_nat_dec_lt(x_170, x_171); -if (x_173 == 0) -{ -lean_dec(x_171); +x_169 = lean_unsigned_to_nat(0u); +x_170 = l_Array_toSubarray___rarg(x_160, x_169, x_168); +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 2); +lean_inc(x_172); +x_173 = lean_ctor_get(x_170, 1); +lean_inc(x_173); lean_dec(x_170); -lean_dec(x_168); +x_174 = lean_array_get_size(x_171); +x_175 = lean_nat_dec_le(x_172, x_174); +if (x_175 == 0) +{ +uint8_t x_176; +lean_dec(x_172); +x_176 = lean_nat_dec_lt(x_173, x_174); +if (x_176 == 0) +{ +lean_dec(x_174); +lean_dec(x_173); +lean_dec(x_171); lean_dec(x_2); -return x_160; +return x_163; } else { -size_t x_174; size_t x_175; lean_object* x_176; -lean_free_object(x_160); -x_174 = lean_usize_of_nat(x_171); +size_t x_177; size_t x_178; lean_object* x_179; +lean_free_object(x_163); +x_177 = lean_usize_of_nat(x_174); +lean_dec(x_174); +x_178 = lean_usize_of_nat(x_173); +lean_dec(x_173); +x_179 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_171, x_177, x_178, x_165, x_2, x_166); lean_dec(x_171); -x_175 = lean_usize_of_nat(x_170); -lean_dec(x_170); -x_176 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_168, x_174, x_175, x_162, x_2, x_163); -lean_dec(x_168); -return x_176; +return x_179; } } else { -uint8_t x_177; -lean_dec(x_171); -x_177 = lean_nat_dec_lt(x_170, x_169); -if (x_177 == 0) +uint8_t x_180; +lean_dec(x_174); +x_180 = lean_nat_dec_lt(x_173, x_172); +if (x_180 == 0) { -lean_dec(x_170); -lean_dec(x_169); -lean_dec(x_168); +lean_dec(x_173); +lean_dec(x_172); +lean_dec(x_171); lean_dec(x_2); -return x_160; +return x_163; } else { -size_t x_178; size_t x_179; lean_object* x_180; -lean_free_object(x_160); -x_178 = lean_usize_of_nat(x_169); -lean_dec(x_169); -x_179 = lean_usize_of_nat(x_170); -lean_dec(x_170); -x_180 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_168, x_178, x_179, x_162, x_2, x_163); -lean_dec(x_168); -return x_180; +size_t x_181; size_t x_182; lean_object* x_183; +lean_free_object(x_163); +x_181 = lean_usize_of_nat(x_172); +lean_dec(x_172); +x_182 = lean_usize_of_nat(x_173); +lean_dec(x_173); +x_183 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_171, x_181, x_182, x_165, x_2, x_166); +lean_dec(x_171); +return x_183; } } } 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; uint8_t x_191; -x_181 = lean_ctor_get(x_160, 0); -x_182 = lean_ctor_get(x_160, 1); -lean_inc(x_182); -lean_inc(x_181); -lean_dec(x_160); -x_183 = lean_array_get_size(x_157); -x_184 = lean_nat_sub(x_183, x_155); -lean_dec(x_183); -x_185 = lean_unsigned_to_nat(0u); -x_186 = l_Array_toSubarray___rarg(x_157, x_185, x_184); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 2); -lean_inc(x_188); -x_189 = lean_ctor_get(x_186, 1); -lean_inc(x_189); +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; uint8_t x_194; +x_184 = lean_ctor_get(x_163, 0); +x_185 = lean_ctor_get(x_163, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_163); +x_186 = lean_array_get_size(x_160); +x_187 = lean_nat_sub(x_186, x_158); lean_dec(x_186); -x_190 = lean_array_get_size(x_187); -x_191 = lean_nat_dec_le(x_188, x_190); -if (x_191 == 0) -{ -uint8_t x_192; -lean_dec(x_188); -x_192 = lean_nat_dec_lt(x_189, x_190); -if (x_192 == 0) -{ -lean_object* x_193; -lean_dec(x_190); +x_188 = lean_unsigned_to_nat(0u); +x_189 = l_Array_toSubarray___rarg(x_160, x_188, x_187); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 2); +lean_inc(x_191); +x_192 = lean_ctor_get(x_189, 1); +lean_inc(x_192); lean_dec(x_189); -lean_dec(x_187); +x_193 = lean_array_get_size(x_190); +x_194 = lean_nat_dec_le(x_191, x_193); +if (x_194 == 0) +{ +uint8_t x_195; +lean_dec(x_191); +x_195 = lean_nat_dec_lt(x_192, x_193); +if (x_195 == 0) +{ +lean_object* x_196; +lean_dec(x_193); +lean_dec(x_192); +lean_dec(x_190); lean_dec(x_2); -x_193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_193, 0, x_181); -lean_ctor_set(x_193, 1, x_182); -return x_193; -} -else -{ -size_t x_194; size_t x_195; lean_object* x_196; -x_194 = lean_usize_of_nat(x_190); -lean_dec(x_190); -x_195 = lean_usize_of_nat(x_189); -lean_dec(x_189); -x_196 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_187, x_194, x_195, x_181, x_2, x_182); -lean_dec(x_187); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_184); +lean_ctor_set(x_196, 1, x_185); return x_196; } -} else { -uint8_t x_197; +size_t x_197; size_t x_198; lean_object* x_199; +x_197 = lean_usize_of_nat(x_193); +lean_dec(x_193); +x_198 = lean_usize_of_nat(x_192); +lean_dec(x_192); +x_199 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_190, x_197, x_198, x_184, x_2, x_185); lean_dec(x_190); -x_197 = lean_nat_dec_lt(x_189, x_188); -if (x_197 == 0) -{ -lean_object* x_198; -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_187); -lean_dec(x_2); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_181); -lean_ctor_set(x_198, 1, x_182); -return x_198; +return x_199; +} } else { -size_t x_199; size_t x_200; lean_object* x_201; -x_199 = lean_usize_of_nat(x_188); -lean_dec(x_188); -x_200 = lean_usize_of_nat(x_189); -lean_dec(x_189); -x_201 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_187, x_199, x_200, x_181, x_2, x_182); -lean_dec(x_187); +uint8_t x_200; +lean_dec(x_193); +x_200 = lean_nat_dec_lt(x_192, x_191); +if (x_200 == 0) +{ +lean_object* x_201; +lean_dec(x_192); +lean_dec(x_191); +lean_dec(x_190); +lean_dec(x_2); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_184); +lean_ctor_set(x_201, 1, x_185); return x_201; } +else +{ +size_t x_202; size_t x_203; lean_object* x_204; +x_202 = lean_usize_of_nat(x_191); +lean_dec(x_191); +x_203 = lean_usize_of_nat(x_192); +lean_dec(x_192); +x_204 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_190, x_202, x_203, x_184, x_2, x_185); +lean_dec(x_190); +return x_204; +} } } } else { -uint8_t x_202; -lean_dec(x_157); -lean_dec(x_2); -x_202 = !lean_is_exclusive(x_160); -if (x_202 == 0) -{ -return x_160; -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; -x_203 = lean_ctor_get(x_160, 0); -x_204 = lean_ctor_get(x_160, 1); -lean_inc(x_204); -lean_inc(x_203); +uint8_t x_205; lean_dec(x_160); -x_205 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_205, 0, x_203); -lean_ctor_set(x_205, 1, x_204); -return x_205; +lean_dec(x_2); +x_205 = !lean_is_exclusive(x_163); +if (x_205 == 0) +{ +return x_163; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_163, 0); +x_207 = lean_ctor_get(x_163, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_163); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } } } else { -lean_object* x_206; lean_object* x_207; +lean_object* x_209; lean_object* x_210; +lean_dec(x_8); lean_dec(x_4); -x_206 = lean_unsigned_to_nat(1u); -x_207 = l_Lean_Syntax_getArg(x_1, x_206); +x_209 = lean_unsigned_to_nat(1u); +x_210 = l_Lean_Syntax_getArg(x_1, x_209); lean_dec(x_1); -x_1 = x_207; +x_1 = x_210; goto _start; } } else { -lean_object* x_209; lean_object* x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; -x_209 = lean_ctor_get(x_2, 0); -x_210 = lean_ctor_get(x_2, 1); -x_211 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); -lean_inc(x_210); -lean_inc(x_209); +lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; lean_object* x_216; +x_212 = lean_ctor_get(x_2, 0); +x_213 = lean_ctor_get(x_2, 1); +x_214 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +lean_inc(x_213); +lean_inc(x_212); lean_dec(x_2); -x_212 = l_Lean_replaceRef(x_1, x_210); -lean_dec(x_210); -x_213 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_213, 0, x_209); -lean_ctor_set(x_213, 1, x_212); -lean_ctor_set_uint8(x_213, sizeof(void*)*2, x_211); +x_215 = l_Lean_replaceRef(x_1, x_213); +lean_dec(x_213); +lean_inc(x_212); +x_216 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_216, 0, x_212); +lean_ctor_set(x_216, 1, x_215); +lean_ctor_set_uint8(x_216, sizeof(void*)*2, x_214); if (x_6 == 0) { -lean_object* x_214; uint8_t x_215; -x_214 = l_Lean_Elab_Level_elabLevel___closed__10; -x_215 = lean_name_eq(x_4, x_214); -if (x_215 == 0) +lean_object* x_217; uint8_t x_218; +x_217 = l_Lean_Elab_Level_elabLevel___closed__10; +x_218 = lean_name_eq(x_4, x_217); +if (x_218 == 0) { -lean_object* x_216; uint8_t x_217; -x_216 = l_Lean_Elab_Level_elabLevel___closed__12; -x_217 = lean_name_eq(x_4, x_216); -if (x_217 == 0) +lean_object* x_219; uint8_t x_220; +x_219 = l_Lean_Elab_Level_elabLevel___closed__12; +x_220 = lean_name_eq(x_4, x_219); +if (x_220 == 0) { -lean_object* x_218; uint8_t x_219; -x_218 = l_Lean_Elab_Level_elabLevel___closed__14; -x_219 = lean_name_eq(x_4, x_218); -if (x_219 == 0) +lean_object* x_221; uint8_t x_222; +x_221 = l_Lean_Elab_Level_elabLevel___closed__14; +x_222 = lean_name_eq(x_4, x_221); +if (x_222 == 0) { -lean_object* x_220; uint8_t x_221; -x_220 = l_Lean_numLitKind; -x_221 = lean_name_eq(x_4, x_220); -if (x_221 == 0) +lean_object* x_223; uint8_t x_224; +x_223 = l_Lean_numLitKind; +x_224 = lean_name_eq(x_4, x_223); +if (x_224 == 0) { -lean_object* x_222; uint8_t x_223; -x_222 = l_Lean_identKind; -x_223 = lean_name_eq(x_4, x_222); -if (x_223 == 0) +lean_object* x_225; uint8_t x_226; +x_225 = l_Lean_identKind; +x_226 = lean_name_eq(x_4, x_225); +if (x_226 == 0) { -lean_object* x_224; uint8_t x_225; -x_224 = l_Lean_Elab_Level_elabLevel___closed__16; -x_225 = lean_name_eq(x_4, x_224); +lean_object* x_227; uint8_t x_228; +lean_dec(x_212); +x_227 = l_Lean_Elab_Level_elabLevel___closed__16; +x_228 = lean_name_eq(x_4, x_227); lean_dec(x_4); -if (x_225 == 0) +if (x_228 == 0) { -lean_object* x_226; lean_object* x_227; +lean_object* x_229; lean_object* x_230; lean_dec(x_1); -x_226 = l_Lean_Elab_Level_elabLevel___closed__18; -x_227 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1(x_226, x_213, x_3); -lean_dec(x_213); -return x_227; +x_229 = l_Lean_Elab_Level_elabLevel___closed__18; +x_230 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__1(x_229, x_216, x_3); +lean_dec(x_216); +return x_230; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_228 = lean_unsigned_to_nat(0u); -x_229 = l_Lean_Syntax_getArg(x_1, x_228); -lean_inc(x_213); -x_230 = l_Lean_Elab_Level_elabLevel(x_229, x_213, x_3); -if (lean_obj_tag(x_230) == 0) +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_unsigned_to_nat(0u); +x_232 = l_Lean_Syntax_getArg(x_1, x_231); +lean_inc(x_216); +x_233 = l_Lean_Elab_Level_elabLevel(x_232, x_216, x_3); +if (lean_obj_tag(x_233) == 0) { -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_231 = lean_ctor_get(x_230, 0); -lean_inc(x_231); -x_232 = lean_ctor_get(x_230, 1); -lean_inc(x_232); -lean_dec(x_230); -x_233 = lean_unsigned_to_nat(2u); -x_234 = l_Lean_Syntax_getArg(x_1, x_233); +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_234 = lean_ctor_get(x_233, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_233, 1); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_unsigned_to_nat(2u); +x_237 = l_Lean_Syntax_getArg(x_1, x_236); lean_dec(x_1); -x_235 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_220, x_234); -lean_dec(x_234); -if (lean_obj_tag(x_235) == 0) -{ -lean_object* x_236; -lean_dec(x_231); -x_236 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_213, x_232); -return x_236; -} -else -{ -lean_object* x_237; lean_object* x_238; -x_237 = lean_ctor_get(x_235, 0); -lean_inc(x_237); -lean_dec(x_235); -lean_inc(x_237); -x_238 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_237, x_213, x_232); -lean_dec(x_213); +x_238 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_223, x_237); +lean_dec(x_237); if (lean_obj_tag(x_238) == 0) { -lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_239 = lean_ctor_get(x_238, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_240 = x_238; -} else { - lean_dec_ref(x_238); - x_240 = lean_box(0); -} -x_241 = l_Lean_Level_addOffsetAux(x_237, x_231); -if (lean_is_scalar(x_240)) { - x_242 = lean_alloc_ctor(0, 2, 0); -} else { - x_242 = x_240; -} -lean_ctor_set(x_242, 0, x_241); -lean_ctor_set(x_242, 1, x_239); -return x_242; +lean_object* x_239; +lean_dec(x_234); +x_239 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_216, x_235); +return x_239; } else { -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -lean_dec(x_237); -lean_dec(x_231); -x_243 = lean_ctor_get(x_238, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_238, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_238)) { - lean_ctor_release(x_238, 0); - lean_ctor_release(x_238, 1); - x_245 = x_238; +lean_object* x_240; lean_object* x_241; +x_240 = lean_ctor_get(x_238, 0); +lean_inc(x_240); +lean_dec(x_238); +lean_inc(x_240); +x_241 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_240, x_216, x_235); +lean_dec(x_216); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_243 = x_241; } else { - lean_dec_ref(x_238); - x_245 = lean_box(0); + lean_dec_ref(x_241); + x_243 = lean_box(0); } -if (lean_is_scalar(x_245)) { - x_246 = lean_alloc_ctor(1, 2, 0); +x_244 = l_Lean_Level_addOffsetAux(x_240, x_234); +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(0, 2, 0); } else { - x_246 = x_245; -} -lean_ctor_set(x_246, 0, x_243); -lean_ctor_set(x_246, 1, x_244); -return x_246; -} + x_245 = x_243; } +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_242); +return x_245; } else { -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -lean_dec(x_213); -lean_dec(x_1); -x_247 = lean_ctor_get(x_230, 0); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_240); +lean_dec(x_234); +x_246 = lean_ctor_get(x_241, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_241, 1); lean_inc(x_247); -x_248 = lean_ctor_get(x_230, 1); -lean_inc(x_248); -if (lean_is_exclusive(x_230)) { - lean_ctor_release(x_230, 0); - lean_ctor_release(x_230, 1); - x_249 = x_230; +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_248 = x_241; } else { - lean_dec_ref(x_230); - x_249 = lean_box(0); + lean_dec_ref(x_241); + x_248 = lean_box(0); } -if (lean_is_scalar(x_249)) { - x_250 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_248)) { + x_249 = lean_alloc_ctor(1, 2, 0); } else { - x_250 = x_249; + x_249 = x_248; } -lean_ctor_set(x_250, 0, x_247); -lean_ctor_set(x_250, 1, x_248); -return x_250; +lean_ctor_set(x_249, 0, x_246); +lean_ctor_set(x_249, 1, x_247); +return x_249; } } } else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; -lean_dec(x_4); -x_251 = l_Lean_Syntax_getId(x_1); +lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +lean_dec(x_216); lean_dec(x_1); -x_252 = lean_ctor_get(x_3, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_3, 1); -lean_inc(x_253); -x_254 = lean_ctor_get(x_3, 2); -lean_inc(x_254); -x_255 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_251, x_254); -if (x_255 == 0) -{ -if (x_211 == 0) -{ -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_dec(x_254); -lean_dec(x_253); -lean_dec(x_252); -x_256 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_256, 0, x_251); -x_257 = l_Lean_Elab_Level_elabLevel___closed__20; -x_258 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_256); -x_259 = l_Lean_Elab_Level_elabLevel___closed__22; -x_260 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_260, 0, x_258); -lean_ctor_set(x_260, 1, x_259); -x_261 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_260, x_213, x_3); -lean_dec(x_213); -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_264 = x_261; -} else { - lean_dec_ref(x_261); - x_264 = lean_box(0); -} -if (lean_is_scalar(x_264)) { - x_265 = lean_alloc_ctor(1, 2, 0); -} else { - x_265 = x_264; -} -lean_ctor_set(x_265, 0, x_262); -lean_ctor_set(x_265, 1, x_263); -return x_265; -} -else -{ -uint8_t x_266; +x_250 = lean_ctor_get(x_233, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_233, 1); lean_inc(x_251); -x_266 = l_Lean_Elab_isValidAutoBoundLevelName(x_251); -if (x_266 == 0) -{ -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_dec(x_254); -lean_dec(x_253); -lean_dec(x_252); -x_267 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_267, 0, x_251); -x_268 = l_Lean_Elab_Level_elabLevel___closed__20; -x_269 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_267); -x_270 = l_Lean_Elab_Level_elabLevel___closed__22; -x_271 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_271, 0, x_269); -lean_ctor_set(x_271, 1, x_270); -x_272 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_271, x_213, x_3); -lean_dec(x_213); -x_273 = lean_ctor_get(x_272, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_272, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - x_275 = x_272; +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + x_252 = x_233; } else { - lean_dec_ref(x_272); - x_275 = lean_box(0); + lean_dec_ref(x_233); + x_252 = lean_box(0); } -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_252)) { + x_253 = lean_alloc_ctor(1, 2, 0); } else { - x_276 = x_275; + x_253 = x_252; +} +lean_ctor_set(x_253, 0, x_250); +lean_ctor_set(x_253, 1, x_251); +return x_253; +} } -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_274); -return x_276; } else { -lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; +lean_dec(x_4); +x_254 = l_Lean_Syntax_getId(x_1); +lean_dec(x_1); +x_255 = lean_ctor_get(x_3, 0); +lean_inc(x_255); +x_256 = lean_ctor_get(x_3, 1); +lean_inc(x_256); +x_257 = lean_ctor_get(x_3, 2); +lean_inc(x_257); +x_258 = l_List_elem___at_Lean_NameHashSet_insert___spec__2(x_254, x_257); +if (x_258 == 0) +{ +if (x_214 == 0) +{ +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_dec(x_257); +lean_dec(x_256); +lean_dec(x_255); +lean_dec(x_212); +x_259 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_259, 0, x_254); +x_260 = l_Lean_Elab_Level_elabLevel___closed__20; +x_261 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_261, 0, x_260); +lean_ctor_set(x_261, 1, x_259); +x_262 = l_Lean_Elab_Level_elabLevel___closed__22; +x_263 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +x_264 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_263, x_216, x_3); +lean_dec(x_216); +x_265 = lean_ctor_get(x_264, 0); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_264)) { + lean_ctor_release(x_264, 0); + lean_ctor_release(x_264, 1); + x_267 = x_264; +} else { + lean_dec_ref(x_264); + x_267 = lean_box(0); +} +if (lean_is_scalar(x_267)) { + x_268 = lean_alloc_ctor(1, 2, 0); +} else { + x_268 = x_267; +} +lean_ctor_set(x_268, 0, x_265); +lean_ctor_set(x_268, 1, x_266); +return x_268; +} +else +{ +lean_object* x_269; uint8_t x_270; uint8_t x_271; +x_269 = l_Lean_Elab_Level_elabLevel___closed__23; +x_270 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_212, x_269); +lean_dec(x_212); +lean_inc(x_254); +x_271 = l_Lean_Elab_isValidAutoBoundLevelName(x_254, x_270); +if (x_271 == 0) +{ +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_dec(x_257); +lean_dec(x_256); +lean_dec(x_255); +x_272 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_272, 0, x_254); +x_273 = l_Lean_Elab_Level_elabLevel___closed__20; +x_274 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_274, 0, x_273); +lean_ctor_set(x_274, 1, x_272); +x_275 = l_Lean_Elab_Level_elabLevel___closed__22; +x_276 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_276, 0, x_274); +lean_ctor_set(x_276, 1, x_275); +x_277 = l_Lean_throwError___at_Lean_Elab_Level_elabLevel___spec__5(x_276, x_216, x_3); +lean_dec(x_216); +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_280 = x_277; +} else { + lean_dec_ref(x_277); + x_280 = lean_box(0); +} +if (lean_is_scalar(x_280)) { + x_281 = lean_alloc_ctor(1, 2, 0); +} else { + x_281 = x_280; +} +lean_ctor_set(x_281, 0, x_278); +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; if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); lean_ctor_release(x_3, 2); - x_277 = x_3; + x_282 = x_3; } else { lean_dec_ref(x_3); - x_277 = lean_box(0); + x_282 = lean_box(0); } -lean_inc(x_251); -x_278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_278, 0, x_251); -lean_ctor_set(x_278, 1, x_254); -if (lean_is_scalar(x_277)) { - x_279 = lean_alloc_ctor(0, 3, 0); +lean_inc(x_254); +x_283 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_283, 0, x_254); +lean_ctor_set(x_283, 1, x_257); +if (lean_is_scalar(x_282)) { + x_284 = lean_alloc_ctor(0, 3, 0); } else { - x_279 = x_277; + x_284 = x_282; } -lean_ctor_set(x_279, 0, x_252); -lean_ctor_set(x_279, 1, x_253); -lean_ctor_set(x_279, 2, x_278); -x_280 = lean_box(0); -x_281 = l_Lean_Elab_Level_elabLevel___lambda__1(x_251, x_280, x_213, x_279); -lean_dec(x_213); -return x_281; +lean_ctor_set(x_284, 0, x_255); +lean_ctor_set(x_284, 1, x_256); +lean_ctor_set(x_284, 2, x_283); +x_285 = lean_box(0); +x_286 = l_Lean_Elab_Level_elabLevel___lambda__1(x_254, x_285, x_216, x_284); +lean_dec(x_216); +return x_286; } } } else { -lean_object* x_282; lean_object* x_283; -lean_dec(x_254); -lean_dec(x_253); -lean_dec(x_252); -x_282 = lean_box(0); -x_283 = l_Lean_Elab_Level_elabLevel___lambda__1(x_251, x_282, x_213, x_3); -lean_dec(x_213); -return x_283; +lean_object* x_287; lean_object* x_288; +lean_dec(x_257); +lean_dec(x_256); +lean_dec(x_255); +lean_dec(x_212); +x_287 = lean_box(0); +x_288 = l_Lean_Elab_Level_elabLevel___lambda__1(x_254, x_287, x_216, x_3); +lean_dec(x_216); +return x_288; } } } else { -lean_object* x_284; +lean_object* x_289; +lean_dec(x_212); lean_dec(x_4); -x_284 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_220, x_1); +x_289 = l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(x_223, x_1); lean_dec(x_1); -if (lean_obj_tag(x_284) == 0) +if (lean_obj_tag(x_289) == 0) { -lean_object* x_285; -x_285 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_213, x_3); -return x_285; +lean_object* x_290; +x_290 = l_Lean_Elab_throwIllFormedSyntax___at_Lean_Elab_Level_elabLevel___spec__2(x_216, x_3); +return x_290; } else { -lean_object* x_286; lean_object* x_287; -x_286 = lean_ctor_get(x_284, 0); -lean_inc(x_286); -lean_dec(x_284); -lean_inc(x_286); -x_287 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_286, x_213, x_3); -lean_dec(x_213); -if (lean_obj_tag(x_287) == 0) +lean_object* x_291; lean_object* x_292; +x_291 = lean_ctor_get(x_289, 0); +lean_inc(x_291); +lean_dec(x_289); +lean_inc(x_291); +x_292 = l___private_Lean_Elab_Level_0__Lean_Elab_Level_checkUniverseOffset___at_Lean_Elab_Level_elabLevel___spec__3(x_291, x_216, x_3); +lean_dec(x_216); +if (lean_obj_tag(x_292) == 0) { -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -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 = l_Lean_Level_ofNat(x_286); -lean_dec(x_286); -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_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; -lean_dec(x_286); -x_292 = lean_ctor_get(x_287, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_287, 1); +lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; +x_293 = lean_ctor_get(x_292, 1); lean_inc(x_293); -if (lean_is_exclusive(x_287)) { - lean_ctor_release(x_287, 0); - lean_ctor_release(x_287, 1); - x_294 = x_287; +if (lean_is_exclusive(x_292)) { + lean_ctor_release(x_292, 0); + lean_ctor_release(x_292, 1); + x_294 = x_292; } else { - lean_dec_ref(x_287); + lean_dec_ref(x_292); x_294 = lean_box(0); } +x_295 = l_Lean_Level_ofNat(x_291); +lean_dec(x_291); if (lean_is_scalar(x_294)) { - x_295 = lean_alloc_ctor(1, 2, 0); + x_296 = lean_alloc_ctor(0, 2, 0); } else { - x_295 = x_294; + x_296 = x_294; } -lean_ctor_set(x_295, 0, x_292); -lean_ctor_set(x_295, 1, x_293); -return x_295; -} -} -} -} -else -{ -lean_object* x_296; -lean_dec(x_4); -lean_dec(x_1); -x_296 = l_Lean_Elab_Level_mkFreshLevelMVar(x_213, x_3); -lean_dec(x_213); +lean_ctor_set(x_296, 0, x_295); +lean_ctor_set(x_296, 1, x_293); return x_296; } +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +lean_dec(x_291); +x_297 = lean_ctor_get(x_292, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_292, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_292)) { + lean_ctor_release(x_292, 0); + lean_ctor_release(x_292, 1); + x_299 = x_292; +} else { + lean_dec_ref(x_292); + x_299 = lean_box(0); +} +if (lean_is_scalar(x_299)) { + x_300 = lean_alloc_ctor(1, 2, 0); +} else { + x_300 = x_299; +} +lean_ctor_set(x_300, 0, x_297); +lean_ctor_set(x_300, 1, x_298); +return x_300; +} +} +} } else { -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; +lean_object* x_301; +lean_dec(x_212); lean_dec(x_4); -x_297 = lean_unsigned_to_nat(1u); -x_298 = l_Lean_Syntax_getArg(x_1, x_297); lean_dec(x_1); -x_299 = l_Lean_Syntax_getArgs(x_298); -lean_dec(x_298); -x_300 = l_Lean_instInhabitedSyntax; -x_301 = l_Array_back___rarg(x_300, x_299); -lean_inc(x_213); -x_302 = l_Lean_Elab_Level_elabLevel(x_301, x_213, x_3); -if (lean_obj_tag(x_302) == 0) -{ -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; uint8_t x_314; -x_303 = lean_ctor_get(x_302, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_302, 1); -lean_inc(x_304); -if (lean_is_exclusive(x_302)) { - lean_ctor_release(x_302, 0); - lean_ctor_release(x_302, 1); - x_305 = x_302; -} else { - lean_dec_ref(x_302); - x_305 = lean_box(0); +x_301 = l_Lean_Elab_Level_mkFreshLevelMVar(x_216, x_3); +lean_dec(x_216); +return x_301; } -x_306 = lean_array_get_size(x_299); -x_307 = lean_nat_sub(x_306, x_297); -lean_dec(x_306); -x_308 = lean_unsigned_to_nat(0u); -x_309 = l_Array_toSubarray___rarg(x_299, x_308, x_307); -x_310 = lean_ctor_get(x_309, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 2); -lean_inc(x_311); -x_312 = lean_ctor_get(x_309, 1); -lean_inc(x_312); -lean_dec(x_309); -x_313 = lean_array_get_size(x_310); -x_314 = lean_nat_dec_le(x_311, x_313); -if (x_314 == 0) +} +else { -uint8_t x_315; +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_dec(x_212); +lean_dec(x_4); +x_302 = lean_unsigned_to_nat(1u); +x_303 = l_Lean_Syntax_getArg(x_1, x_302); +lean_dec(x_1); +x_304 = l_Lean_Syntax_getArgs(x_303); +lean_dec(x_303); +x_305 = l_Lean_instInhabitedSyntax; +x_306 = l_Array_back___rarg(x_305, x_304); +lean_inc(x_216); +x_307 = l_Lean_Elab_Level_elabLevel(x_306, x_216, x_3); +if (lean_obj_tag(x_307) == 0) +{ +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; uint8_t x_319; +x_308 = lean_ctor_get(x_307, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_307, 1); +lean_inc(x_309); +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + lean_ctor_release(x_307, 1); + x_310 = x_307; +} else { + lean_dec_ref(x_307); + x_310 = lean_box(0); +} +x_311 = lean_array_get_size(x_304); +x_312 = lean_nat_sub(x_311, x_302); lean_dec(x_311); -x_315 = lean_nat_dec_lt(x_312, x_313); -if (x_315 == 0) -{ -lean_object* x_316; -lean_dec(x_313); -lean_dec(x_312); -lean_dec(x_310); -lean_dec(x_213); -if (lean_is_scalar(x_305)) { - x_316 = lean_alloc_ctor(0, 2, 0); -} else { - x_316 = x_305; -} -lean_ctor_set(x_316, 0, x_303); -lean_ctor_set(x_316, 1, x_304); -return x_316; -} -else -{ -size_t x_317; size_t x_318; lean_object* x_319; -lean_dec(x_305); -x_317 = lean_usize_of_nat(x_313); -lean_dec(x_313); -x_318 = lean_usize_of_nat(x_312); -lean_dec(x_312); -x_319 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_310, x_317, x_318, x_303, x_213, x_304); -lean_dec(x_310); -return x_319; -} -} -else +x_313 = lean_unsigned_to_nat(0u); +x_314 = l_Array_toSubarray___rarg(x_304, x_313, x_312); +x_315 = lean_ctor_get(x_314, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_314, 2); +lean_inc(x_316); +x_317 = lean_ctor_get(x_314, 1); +lean_inc(x_317); +lean_dec(x_314); +x_318 = lean_array_get_size(x_315); +x_319 = lean_nat_dec_le(x_316, x_318); +if (x_319 == 0) { uint8_t x_320; -lean_dec(x_313); -x_320 = lean_nat_dec_lt(x_312, x_311); +lean_dec(x_316); +x_320 = lean_nat_dec_lt(x_317, x_318); if (x_320 == 0) { lean_object* x_321; -lean_dec(x_312); -lean_dec(x_311); -lean_dec(x_310); -lean_dec(x_213); -if (lean_is_scalar(x_305)) { +lean_dec(x_318); +lean_dec(x_317); +lean_dec(x_315); +lean_dec(x_216); +if (lean_is_scalar(x_310)) { x_321 = lean_alloc_ctor(0, 2, 0); } else { - x_321 = x_305; + x_321 = x_310; } -lean_ctor_set(x_321, 0, x_303); -lean_ctor_set(x_321, 1, x_304); +lean_ctor_set(x_321, 0, x_308); +lean_ctor_set(x_321, 1, x_309); return x_321; } else { size_t x_322; size_t x_323; lean_object* x_324; -lean_dec(x_305); -x_322 = lean_usize_of_nat(x_311); -lean_dec(x_311); -x_323 = lean_usize_of_nat(x_312); -lean_dec(x_312); -x_324 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_310, x_322, x_323, x_303, x_213, x_304); lean_dec(x_310); +x_322 = lean_usize_of_nat(x_318); +lean_dec(x_318); +x_323 = lean_usize_of_nat(x_317); +lean_dec(x_317); +x_324 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_315, x_322, x_323, x_308, x_216, x_309); +lean_dec(x_315); return x_324; } } +else +{ +uint8_t x_325; +lean_dec(x_318); +x_325 = lean_nat_dec_lt(x_317, x_316); +if (x_325 == 0) +{ +lean_object* x_326; +lean_dec(x_317); +lean_dec(x_316); +lean_dec(x_315); +lean_dec(x_216); +if (lean_is_scalar(x_310)) { + x_326 = lean_alloc_ctor(0, 2, 0); +} else { + x_326 = x_310; +} +lean_ctor_set(x_326, 0, x_308); +lean_ctor_set(x_326, 1, x_309); +return x_326; } else { -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; -lean_dec(x_299); -lean_dec(x_213); -x_325 = lean_ctor_get(x_302, 0); -lean_inc(x_325); -x_326 = lean_ctor_get(x_302, 1); -lean_inc(x_326); -if (lean_is_exclusive(x_302)) { - lean_ctor_release(x_302, 0); - lean_ctor_release(x_302, 1); - x_327 = x_302; -} else { - lean_dec_ref(x_302); - x_327 = lean_box(0); -} -if (lean_is_scalar(x_327)) { - x_328 = lean_alloc_ctor(1, 2, 0); -} else { - x_328 = x_327; -} -lean_ctor_set(x_328, 0, x_325); -lean_ctor_set(x_328, 1, x_326); -return x_328; +size_t x_327; size_t x_328; lean_object* x_329; +lean_dec(x_310); +x_327 = lean_usize_of_nat(x_316); +lean_dec(x_316); +x_328 = lean_usize_of_nat(x_317); +lean_dec(x_317); +x_329 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__6(x_315, x_327, x_328, x_308, x_216, x_309); +lean_dec(x_315); +return x_329; } } } else { -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_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +lean_dec(x_304); +lean_dec(x_216); +x_330 = lean_ctor_get(x_307, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_307, 1); +lean_inc(x_331); +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + lean_ctor_release(x_307, 1); + x_332 = x_307; +} else { + lean_dec_ref(x_307); + x_332 = lean_box(0); +} +if (lean_is_scalar(x_332)) { + x_333 = lean_alloc_ctor(1, 2, 0); +} else { + x_333 = x_332; +} +lean_ctor_set(x_333, 0, x_330); +lean_ctor_set(x_333, 1, x_331); +return x_333; +} +} +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; +lean_dec(x_212); lean_dec(x_4); -x_329 = lean_unsigned_to_nat(1u); -x_330 = l_Lean_Syntax_getArg(x_1, x_329); +x_334 = lean_unsigned_to_nat(1u); +x_335 = l_Lean_Syntax_getArg(x_1, x_334); lean_dec(x_1); -x_331 = l_Lean_Syntax_getArgs(x_330); -lean_dec(x_330); -x_332 = l_Lean_instInhabitedSyntax; -x_333 = l_Array_back___rarg(x_332, x_331); -lean_inc(x_213); -x_334 = l_Lean_Elab_Level_elabLevel(x_333, x_213, x_3); -if (lean_obj_tag(x_334) == 0) +x_336 = l_Lean_Syntax_getArgs(x_335); +lean_dec(x_335); +x_337 = l_Lean_instInhabitedSyntax; +x_338 = l_Array_back___rarg(x_337, x_336); +lean_inc(x_216); +x_339 = l_Lean_Elab_Level_elabLevel(x_338, x_216, x_3); +if (lean_obj_tag(x_339) == 0) { -lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_334, 1); -lean_inc(x_336); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_337 = x_334; +lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; uint8_t x_351; +x_340 = lean_ctor_get(x_339, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_339, 1); +lean_inc(x_341); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_342 = x_339; } else { - lean_dec_ref(x_334); - x_337 = lean_box(0); + lean_dec_ref(x_339); + x_342 = lean_box(0); } -x_338 = lean_array_get_size(x_331); -x_339 = lean_nat_sub(x_338, x_329); -lean_dec(x_338); -x_340 = lean_unsigned_to_nat(0u); -x_341 = l_Array_toSubarray___rarg(x_331, x_340, x_339); -x_342 = lean_ctor_get(x_341, 0); -lean_inc(x_342); -x_343 = lean_ctor_get(x_341, 2); -lean_inc(x_343); -x_344 = lean_ctor_get(x_341, 1); -lean_inc(x_344); -lean_dec(x_341); -x_345 = lean_array_get_size(x_342); -x_346 = lean_nat_dec_le(x_343, x_345); -if (x_346 == 0) -{ -uint8_t x_347; +x_343 = lean_array_get_size(x_336); +x_344 = lean_nat_sub(x_343, x_334); lean_dec(x_343); -x_347 = lean_nat_dec_lt(x_344, x_345); -if (x_347 == 0) -{ -lean_object* x_348; -lean_dec(x_345); -lean_dec(x_344); -lean_dec(x_342); -lean_dec(x_213); -if (lean_is_scalar(x_337)) { - x_348 = lean_alloc_ctor(0, 2, 0); -} else { - x_348 = x_337; -} -lean_ctor_set(x_348, 0, x_335); -lean_ctor_set(x_348, 1, x_336); -return x_348; -} -else -{ -size_t x_349; size_t x_350; lean_object* x_351; -lean_dec(x_337); -x_349 = lean_usize_of_nat(x_345); -lean_dec(x_345); -x_350 = lean_usize_of_nat(x_344); -lean_dec(x_344); -x_351 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_342, x_349, x_350, x_335, x_213, x_336); -lean_dec(x_342); -return x_351; -} -} -else +x_345 = lean_unsigned_to_nat(0u); +x_346 = l_Array_toSubarray___rarg(x_336, x_345, x_344); +x_347 = lean_ctor_get(x_346, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_346, 2); +lean_inc(x_348); +x_349 = lean_ctor_get(x_346, 1); +lean_inc(x_349); +lean_dec(x_346); +x_350 = lean_array_get_size(x_347); +x_351 = lean_nat_dec_le(x_348, x_350); +if (x_351 == 0) { uint8_t x_352; -lean_dec(x_345); -x_352 = lean_nat_dec_lt(x_344, x_343); +lean_dec(x_348); +x_352 = lean_nat_dec_lt(x_349, x_350); if (x_352 == 0) { lean_object* x_353; -lean_dec(x_344); -lean_dec(x_343); -lean_dec(x_342); -lean_dec(x_213); -if (lean_is_scalar(x_337)) { +lean_dec(x_350); +lean_dec(x_349); +lean_dec(x_347); +lean_dec(x_216); +if (lean_is_scalar(x_342)) { x_353 = lean_alloc_ctor(0, 2, 0); } else { - x_353 = x_337; + x_353 = x_342; } -lean_ctor_set(x_353, 0, x_335); -lean_ctor_set(x_353, 1, x_336); +lean_ctor_set(x_353, 0, x_340); +lean_ctor_set(x_353, 1, x_341); return x_353; } else { size_t x_354; size_t x_355; lean_object* x_356; -lean_dec(x_337); -x_354 = lean_usize_of_nat(x_343); -lean_dec(x_343); -x_355 = lean_usize_of_nat(x_344); -lean_dec(x_344); -x_356 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_342, x_354, x_355, x_335, x_213, x_336); lean_dec(x_342); +x_354 = lean_usize_of_nat(x_350); +lean_dec(x_350); +x_355 = lean_usize_of_nat(x_349); +lean_dec(x_349); +x_356 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_347, x_354, x_355, x_340, x_216, x_341); +lean_dec(x_347); return x_356; } } +else +{ +uint8_t x_357; +lean_dec(x_350); +x_357 = lean_nat_dec_lt(x_349, x_348); +if (x_357 == 0) +{ +lean_object* x_358; +lean_dec(x_349); +lean_dec(x_348); +lean_dec(x_347); +lean_dec(x_216); +if (lean_is_scalar(x_342)) { + x_358 = lean_alloc_ctor(0, 2, 0); +} else { + x_358 = x_342; +} +lean_ctor_set(x_358, 0, x_340); +lean_ctor_set(x_358, 1, x_341); +return x_358; } else { -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; -lean_dec(x_331); -lean_dec(x_213); -x_357 = lean_ctor_get(x_334, 0); -lean_inc(x_357); -x_358 = lean_ctor_get(x_334, 1); -lean_inc(x_358); -if (lean_is_exclusive(x_334)) { - lean_ctor_release(x_334, 0); - lean_ctor_release(x_334, 1); - x_359 = x_334; -} else { - lean_dec_ref(x_334); - x_359 = lean_box(0); -} -if (lean_is_scalar(x_359)) { - x_360 = lean_alloc_ctor(1, 2, 0); -} else { - x_360 = x_359; -} -lean_ctor_set(x_360, 0, x_357); -lean_ctor_set(x_360, 1, x_358); -return x_360; +size_t x_359; size_t x_360; lean_object* x_361; +lean_dec(x_342); +x_359 = lean_usize_of_nat(x_348); +lean_dec(x_348); +x_360 = lean_usize_of_nat(x_349); +lean_dec(x_349); +x_361 = l_Array_foldrMUnsafe_fold___at_Lean_Elab_Level_elabLevel___spec__7(x_347, x_359, x_360, x_340, x_216, x_341); +lean_dec(x_347); +return x_361; } } } else { -lean_object* x_361; lean_object* x_362; +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +lean_dec(x_336); +lean_dec(x_216); +x_362 = lean_ctor_get(x_339, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_339, 1); +lean_inc(x_363); +if (lean_is_exclusive(x_339)) { + lean_ctor_release(x_339, 0); + lean_ctor_release(x_339, 1); + x_364 = x_339; +} else { + lean_dec_ref(x_339); + x_364 = lean_box(0); +} +if (lean_is_scalar(x_364)) { + x_365 = lean_alloc_ctor(1, 2, 0); +} else { + x_365 = x_364; +} +lean_ctor_set(x_365, 0, x_362); +lean_ctor_set(x_365, 1, x_363); +return x_365; +} +} +} +else +{ +lean_object* x_366; lean_object* x_367; +lean_dec(x_212); lean_dec(x_4); -x_361 = lean_unsigned_to_nat(1u); -x_362 = l_Lean_Syntax_getArg(x_1, x_361); +x_366 = lean_unsigned_to_nat(1u); +x_367 = l_Lean_Syntax_getArg(x_1, x_366); lean_dec(x_1); -x_1 = x_362; -x_2 = x_213; +x_1 = x_367; +x_2 = x_216; goto _start; } } @@ -3072,6 +3108,8 @@ l_Lean_Elab_Level_elabLevel___closed__21 = _init_l_Lean_Elab_Level_elabLevel___c lean_mark_persistent(l_Lean_Elab_Level_elabLevel___closed__21); l_Lean_Elab_Level_elabLevel___closed__22 = _init_l_Lean_Elab_Level_elabLevel___closed__22(); lean_mark_persistent(l_Lean_Elab_Level_elabLevel___closed__22); +l_Lean_Elab_Level_elabLevel___closed__23 = _init_l_Lean_Elab_Level_elabLevel___closed__23(); +lean_mark_persistent(l_Lean_Elab_Level_elabLevel___closed__23); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/MutualDef.c b/stage0/stdlib/Lean/Elab/MutualDef.c index 79477f6b58..a35348929a 100644 --- a/stage0/stdlib/Lean/Elab/MutualDef.c +++ b/stage0/stdlib/Lean/Elab/MutualDef.c @@ -595,6 +595,7 @@ LEAN_EXPORT lean_object* l_Std_RBNode_fold___at___private_Lean_Elab_MutualDef_0_ LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_MutualClosure_Replacement_apply___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addDeclarationRanges___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Elab_Term_elabMutualDef_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_MutualClosure_ClosureState_newLetDecls___default; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereStructInst___spec__2___lambda__3___closed__1; @@ -726,7 +727,6 @@ lean_object* l_Lean_Elab_Term_withAutoBoundImplicit___rarg(lean_object*, lean_ob static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1___closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabFunValues___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_processDefDeriving___spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_collectUsed___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__2___closed__5; @@ -16520,7 +16520,7 @@ lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_2); lean_closure_set(x_13, 2, x_10); lean_closure_set(x_13, 3, x_11); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg), 9, 2); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg), 9, 2); lean_closure_set(x_14, 0, x_12); lean_closure_set(x_14, 1, x_13); x_15 = l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(x_10, x_11, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c index 2a6c954c18..349151e65d 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Basic.c @@ -23,9 +23,12 @@ size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_levelMVarToParamPreDeclsAux___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_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addAndCompilePartialRec___spec__3(lean_object*, size_t, size_t); +lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instantiateMVarsAtPreDecls___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* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); @@ -40,6 +43,8 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__4___boxed(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_EXPORT lean_object* l_Lean_Elab_ensureNoRecFn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addAndCompilePartialRec___spec__1(lean_object*, lean_object*, size_t, size_t); @@ -60,8 +65,10 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompileUnsa uint32_t lean_uint32_add(uint32_t, uint32_t); LEAN_EXPORT lean_object* l_Lean_Elab_addAndCompileUnsafe(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___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_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Elab_instInhabitedPreDefinition___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_applyAttributesOf(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_ensureNoRecFn___lambda__1___closed__3; lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_instantiateMVarsAtPreDecls___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__12(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,6 +79,7 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRe LEAN_EXPORT lean_object* l_Lean_Elab_levelMVarToParamPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forEachExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRec___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_instInhabitedPreDefinition___closed__1; @@ -103,6 +111,7 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_compi LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___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_getMaxHeight(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___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_EXPORT lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -117,6 +126,7 @@ lean_object* l_Lean_addDecl___at_Lean_Elab_Term_evalExpr___spec__3(lean_object*, lean_object* l_Lean_Elab_Term_levelMVarToParam_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAndCompileUnsafe___lambda__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn(lean_object*, lean_object*); lean_object* l_Lean_Meta_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addNonRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAsAxiom___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -124,6 +134,7 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_addAndCompilePart uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Elab_addAndCompileUnsafe___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAndCompileUnsafe___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_addTermInfo(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_EXPORT lean_object* l_Lean_Elab_applyAttributesOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -141,16 +152,22 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePart LEAN_EXPORT lean_object* l_Lean_Elab_instantiateMVarsAtPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_fixLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAndCompileUnsafe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_compileDecl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_getLevelParamsPreDecls(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_ensureNoRecFn___lambda__1___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_ensureNoRecFn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_ensureNoRecFn___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_fixLevelParams___spec__2___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_fixLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__11(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addAndCompileNonRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapMAux___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_levelMVarToParamPreDeclsAux___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_mkConst(lean_object*, lean_object*); @@ -162,6 +179,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_withSaveInfoContext___at___private_Lean_Ela LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_levelMVarToParamPreDeclsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_applyAttributesOf___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_eraseRecAppSyntaxExpr___closed__1; +static lean_object* l_Lean_Elab_ensureNoRecFn___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_addAndCompileUnsafe___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux___spec__7(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -6077,6 +6095,212 @@ x_7 = lean_box(x_6); return x_7; } } +LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___lambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lean_Expr_isConstOf(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___lambda__1___boxed), 2, 1); +lean_closure_set(x_3, 0, x_1); +x_4 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_3, x_2); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +uint8_t x_6; +lean_dec(x_4); +x_6 = 1; +return x_6; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn(x_1, x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected occurrence of recursive application"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_ensureNoRecFn___lambda__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_ensureNoRecFn___lambda__1___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_ensureNoRecFn___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: +{ +uint8_t x_8; +x_8 = l_Lean_Expr_isAppOf(x_2, x_1); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_2); +x_9 = lean_box(0); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = l_Lean_indentExpr(x_2); +x_12 = l_Lean_Elab_ensureNoRecFn___lambda__1___closed__2; +x_13 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +x_14 = l_Lean_Elab_ensureNoRecFn___lambda__1___closed__4; +x_15 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +x_16 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_15, x_3, x_4, x_5, x_6, x_7); +return x_16; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_ensureNoRecFn(lean_object* x_1, 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_inc(x_2); +lean_inc(x_1); +x_8 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_containsRecFn(x_1, x_2); +if (x_8 == 0) +{ +lean_object* x_9; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_2); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_alloc_closure((void*)(l_Lean_Elab_ensureNoRecFn___lambda__1___boxed), 7, 1); +lean_closure_set(x_10, 0, x_1); +lean_inc(x_2); +x_11 = l_Lean_Meta_forEachExpr(x_2, x_10, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +lean_ctor_set(x_11, 0, x_2); +return x_11; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +lean_dec(x_2); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_ensureNoRecFn___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_Elab_ensureNoRecFn___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_1); +return x_8; +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Util_SCC(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_AbstractNestedProofs(uint8_t builtin, lean_object*); @@ -6139,6 +6363,14 @@ l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRec___spec__2___lambda lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRec___spec__2___lambda__1___closed__1); l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRec___spec__2___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRec___spec__2___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompilePartialRec___spec__2___closed__1); +l_Lean_Elab_ensureNoRecFn___lambda__1___closed__1 = _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_ensureNoRecFn___lambda__1___closed__1); +l_Lean_Elab_ensureNoRecFn___lambda__1___closed__2 = _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_ensureNoRecFn___lambda__1___closed__2); +l_Lean_Elab_ensureNoRecFn___lambda__1___closed__3 = _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_ensureNoRecFn___lambda__1___closed__3); +l_Lean_Elab_ensureNoRecFn___lambda__1___closed__4 = _init_l_Lean_Elab_ensureNoRecFn___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_ensureNoRecFn___lambda__1___closed__4); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c index da76496ab3..a7ead3c5f9 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c @@ -13,16 +13,16 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378____closed__1; LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__33(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldrMAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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_Meta_replaceTargetDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__33___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_instInhabitedUnfoldEqnExtState; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__10(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__4; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_expandRHS_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_deltaRHS_x3f___lambda__2___closed__1; @@ -32,6 +32,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreD lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_addDecl___at_Lean_Meta_mkAuxLemma___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__1; lean_object* l_Lean_mkSort(lean_object*); static lean_object* l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__1; static lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___closed__4; @@ -54,6 +55,7 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___s lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__4; +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__9; uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Eqns_mkUnfoldProof___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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*); @@ -80,8 +82,10 @@ lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(lean_obj LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_keepGoing___lambda__1___boxed(lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); static lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__2; +lean_object* l_Lean_addTrace_addTraceOptions(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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*); +uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldrMAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Eqns_mkUnfoldProof___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,6 +97,8 @@ uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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_EXPORT lean_object* l_Lean_ForEachExpr_visit___at_Lean_Elab_Eqns_simpEqnType_collect___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_keepGoing___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__3; +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_deltaLHS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); @@ -111,7 +117,6 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreD LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpEqnType_collect___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__17(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__5; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__8(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -127,11 +132,12 @@ static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__2; uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Lean_Meta_whnfI(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(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_EXPORT lean_object* l_Std_PersistentHashMap_insert___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__4(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBTree_toArray___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__26(lean_object*); +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__6; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___closed__2; lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -148,7 +154,7 @@ lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_EqnsExtState_map___default; static lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1; static lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___lambda__1___closed__2; -lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_eqnsExt; lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); @@ -163,10 +169,11 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpMatch_x3f(lean_object*, lean_objec static size_t l_Std_PersistentHashMap_findAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__2___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux_traverse___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__6(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__2___closed__6; static lean_object* l_Lean_Elab_Eqns_tryContradiction___closed__1; +static lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__34___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -181,16 +188,17 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinitio static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___at_Lean_Elab_Eqns_simpEqnType___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3047_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3172_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503_(lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__5; lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Eqns_mkUnfoldProof___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_expandRHS_x3f___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_Eqns_mkUnfoldProof___closed__3; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___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_Expr_fvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -200,10 +208,12 @@ static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__2___closed__5; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__6; uint64_t l_Lean_Name_hash(lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___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_Eqns_simpEqnType___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default; lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__8; static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__2___closed__3; lean_object* lean_st_mk_ref(lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(lean_object*, lean_object*, lean_object*); @@ -212,6 +222,7 @@ static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__4; static lean_object* l_Lean_Elab_Eqns_instInhabitedEqnInfoCore___closed__3; lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__8; +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_whnfReducibleLHS_x3f___lambda__1___closed__2; static lean_object* l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__3; @@ -220,13 +231,13 @@ size_t lean_usize_shift_left(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpEqnType_collect___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_getUnfoldFor_x3f___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___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*); +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__2; static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__2___closed__1; static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__1___closed__2; static uint64_t l_Lean_Elab_Eqns_instInhabitedEqnInfoCore___closed__1; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__5; -static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__3; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_keepGoing___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -242,9 +253,10 @@ lean_object* l_Lean_Expr_consumeMData(lean_object*); static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__3; static lean_object* l_Lean_Elab_Eqns_tryURefl___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_deltaRHS_x3f___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__7; LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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*); @@ -255,12 +267,14 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_deltaRHS_x3f(lean_object*, lean_object LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_keepGoing(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_MatcherApp_addArg___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4; lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -276,6 +290,7 @@ LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreD LEAN_EXPORT lean_object* l_Lean_ForEachExpr_visit___at_Lean_Elab_Eqns_simpEqnType_collect___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_simpEqnType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__2___closed__9; +lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___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_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -285,6 +300,7 @@ uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_getEqnsFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); @@ -294,6 +310,7 @@ lean_object* l_Lean_Meta_Match_unfoldNamedPattern___lambda__3___boxed(lean_objec lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___lambda__2___closed__1; static lean_object* l_Lean_Elab_Eqns_simpEqnType___lambda__1___closed__1; +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__5; static lean_object* l_Lean_Elab_Eqns_expandRHS_x3f___closed__1; static lean_object* l_Std_PersistentHashMap_insertAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__5___closed__1; LEAN_EXPORT lean_object* l_Lean_LocalContext_foldrM___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -319,8 +336,11 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_instInhabitedEqnsExtState; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); +static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__2; +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_getUnfoldFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMap_insert___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__3(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_tryContradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -335,15 +355,14 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_foldrM___at___private_Lean_Elab_P static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___closed__1; lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldProof___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__6; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(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_EXPORT lean_object* l_Lean_Elab_Eqns_expand(lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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* l_Lean_Expr_getAppFn(lean_object*); -static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__4; lean_object* l_Lean_Meta_Match_unfoldNamedPattern___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_unfoldEqnExt; @@ -353,36 +372,38 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_s static lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_expandRHS_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_lhsDependsOn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__1; lean_object* lean_usize_to_nat(size_t); LEAN_EXPORT uint8_t l_Lean_Elab_Eqns_deltaLHS___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___lambda__1___closed__2; lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___closed__5; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -static lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__2; static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof___closed__1; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_lhsDependsOn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_LocalContext_foldrM___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); lean_object* l_Lean_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec__2(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___closed__1; +static lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2; static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof___closed__2; LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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_EXPORT lean_object* l_Lean_Elab_Eqns_deltaLHS___lambda__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Split_simpMatchTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldrMAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLet(lean_object*); lean_object* l_runST___rarg(lean_object*); static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof___closed__4; +static lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___closed__10; lean_object* l_Std_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static uint64_t _init_l_Lean_Elab_Eqns_instInhabitedEqnInfoCore___closed__1() { @@ -7075,259 +7096,252 @@ x_3 = l_Std_RBNode_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab return x_3; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(lean_object* x_1, lean_object* x_2, 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(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* x_11, lean_object* x_12, lean_object* x_13) { _start: { -uint8_t x_15; -x_15 = lean_usize_dec_lt(x_7, x_6); -if (x_15 == 0) +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_6, x_5); +if (x_14 == 0) { -lean_object* x_16; -lean_dec(x_13); +lean_object* x_15; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_4); +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_8); -lean_ctor_set(x_16, 1, x_14); -return x_16; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_7); +lean_ctor_set(x_15, 1, x_13); +return x_15; } else { -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_uget(x_5, x_7); -x_18 = !lean_is_exclusive(x_8); -if (x_18 == 0) +lean_object* x_16; uint8_t x_17; +x_16 = lean_array_uget(x_4, x_6); +x_17 = !lean_is_exclusive(x_7); +if (x_17 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_8, 1); -x_20 = lean_ctor_get(x_8, 0); -lean_dec(x_20); -lean_inc(x_13); +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_7, 1); +x_19 = lean_ctor_get(x_7, 0); +lean_dec(x_19); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_19); -lean_inc(x_3); +lean_inc(x_8); +lean_inc(x_18); lean_inc(x_2); lean_inc(x_1); -x_21 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(x_1, x_2, x_3, x_17, x_19, x_9, x_10, x_11, x_12, x_13, x_14); +x_20 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(x_1, x_2, x_16, x_18, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) -{ -uint8_t x_23; -lean_dec(x_13); +uint8_t x_22; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_4); +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 0); -lean_dec(x_24); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set(x_8, 0, x_25); -lean_ctor_set(x_21, 0, x_8); -return x_21; +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_7, 0, x_24); +lean_ctor_set(x_20, 0, x_7); +return x_20; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); -lean_dec(x_21); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_22); -lean_ctor_set(x_8, 0, x_27); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_8); -lean_ctor_set(x_28, 1, x_26); -return x_28; +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_7, 0, x_26); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_7); +lean_ctor_set(x_27, 1, x_25); +return x_27; } } else { -lean_object* x_29; lean_object* x_30; size_t x_31; size_t x_32; -lean_dec(x_19); -x_29 = lean_ctor_get(x_21, 1); +lean_object* x_28; lean_object* x_29; size_t x_30; size_t x_31; +lean_dec(x_18); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_ctor_get(x_21, 0); lean_inc(x_29); lean_dec(x_21); -x_30 = lean_ctor_get(x_22, 0); -lean_inc(x_30); -lean_dec(x_22); -lean_inc(x_4); -lean_ctor_set(x_8, 1, x_30); -lean_ctor_set(x_8, 0, x_4); -x_31 = 1; -x_32 = lean_usize_add(x_7, x_31); -x_7 = x_32; -x_14 = x_29; +lean_inc(x_3); +lean_ctor_set(x_7, 1, x_29); +lean_ctor_set(x_7, 0, x_3); +x_30 = 1; +x_31 = lean_usize_add(x_6, x_30); +x_6 = x_31; +x_13 = x_28; goto _start; } } else { -uint8_t x_34; -lean_free_object(x_8); -lean_dec(x_19); -lean_dec(x_13); +uint8_t x_33; +lean_free_object(x_7); +lean_dec(x_18); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_4); +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_34 = !lean_is_exclusive(x_21); -if (x_34 == 0) +x_33 = !lean_is_exclusive(x_20); +if (x_33 == 0) { -return x_21; +return x_20; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_21, 0); -x_36 = lean_ctor_get(x_21, 1); -lean_inc(x_36); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_20, 0); +x_35 = lean_ctor_get(x_20, 1); lean_inc(x_35); -lean_dec(x_21); -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_inc(x_34); +lean_dec(x_20); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } } else { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_8, 1); -lean_inc(x_38); -lean_dec(x_8); -lean_inc(x_13); +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_7, 1); +lean_inc(x_37); +lean_dec(x_7); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_38); -lean_inc(x_3); +lean_inc(x_8); +lean_inc(x_37); lean_inc(x_2); lean_inc(x_1); -x_39 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(x_1, x_2, x_3, x_17, x_38, x_9, x_10, x_11, x_12, x_13, x_14); +x_38 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(x_1, x_2, x_16, x_37, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_13); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_4); +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_42 = x_39; +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_41 = x_38; } else { - lean_dec_ref(x_39); - x_42 = lean_box(0); + lean_dec_ref(x_38); + x_41 = lean_box(0); +} +x_42 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_42, 0, x_39); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_37); +if (lean_is_scalar(x_41)) { + x_44 = lean_alloc_ctor(0, 2, 0); +} else { + x_44 = x_41; } -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_40); -x_44 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_38); -if (lean_is_scalar(x_42)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_42; -} -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_41); -return x_45; +lean_ctor_set(x_44, 1, x_40); +return x_44; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; +lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; +lean_dec(x_37); +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); lean_dec(x_38); -x_46 = lean_ctor_get(x_39, 1); +x_46 = lean_ctor_get(x_39, 0); lean_inc(x_46); lean_dec(x_39); -x_47 = lean_ctor_get(x_40, 0); -lean_inc(x_47); -lean_dec(x_40); -lean_inc(x_4); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_4); -lean_ctor_set(x_48, 1, x_47); -x_49 = 1; -x_50 = lean_usize_add(x_7, x_49); -x_7 = x_50; -x_8 = x_48; -x_14 = x_46; +lean_inc(x_3); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_3); +lean_ctor_set(x_47, 1, x_46); +x_48 = 1; +x_49 = lean_usize_add(x_6, x_48); +x_6 = x_49; +x_7 = x_47; +x_13 = x_45; goto _start; } } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_38); -lean_dec(x_13); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_37); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_4); +lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = lean_ctor_get(x_39, 0); +x_51 = lean_ctor_get(x_38, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_38, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_39, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_54 = x_39; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_53 = x_38; } else { - lean_dec_ref(x_39); - x_54 = lean_box(0); + lean_dec_ref(x_38); + x_53 = lean_box(0); } -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_53)) { + x_54 = lean_alloc_ctor(1, 2, 0); } else { - x_55 = x_54; + x_54 = x_53; } -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; +lean_ctor_set(x_54, 0, x_51); +lean_ctor_set(x_54, 1, x_52); +return x_54; } } } @@ -7367,193 +7381,350 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(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* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_14; -x_14 = lean_usize_dec_lt(x_6, x_5); -if (x_14 == 0) +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_5, x_4); +if (x_13 == 0) { -lean_object* x_15; -lean_dec(x_12); +lean_object* x_14; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_3); +lean_dec(x_8); lean_dec(x_2); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_13); -return x_15; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_6); +lean_ctor_set(x_14, 1, x_12); +return x_14; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_array_uget(x_4, x_6); -x_17 = lean_ctor_get(x_7, 1); -lean_inc(x_17); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_18 = x_7; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_array_uget(x_3, x_5); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +if (lean_is_exclusive(x_6)) { + lean_ctor_release(x_6, 0); + lean_ctor_release(x_6, 1); + x_17 = x_6; } else { - lean_dec_ref(x_7); - x_18 = lean_box(0); + lean_dec_ref(x_6); + x_17 = lean_box(0); } -if (lean_obj_tag(x_16) == 0) +if (lean_obj_tag(x_15) == 0) { -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_17); -x_19 = x_27; -x_20 = x_13; -goto block_26; +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_16); +x_18 = x_26; +x_19 = x_12; +goto block_25; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -lean_inc(x_28); -lean_dec(x_16); -x_29 = l_Lean_LocalDecl_fvarId(x_28); -x_30 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_2, x_29); -if (lean_obj_tag(x_30) == 0) +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_15, 0); +lean_inc(x_27); +lean_dec(x_15); +x_28 = !lean_is_exclusive(x_16); +if (x_28 == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = l_Lean_LocalDecl_type(x_28); -lean_dec(x_28); -lean_inc(x_12); +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); +x_31 = l_Lean_LocalDecl_fvarId(x_27); +x_32 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_30, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = l_Lean_LocalDecl_type(x_27); +lean_dec(x_27); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_31); -x_32 = l_Lean_Meta_isProp(x_31, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_8); lean_inc(x_33); -x_34 = lean_unbox(x_33); -lean_dec(x_33); -if (x_34 == 0) +x_34 = l_Lean_Meta_isProp(x_33, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_35; lean_object* x_36; -lean_dec(x_31); -lean_dec(x_29); -x_35 = lean_ctor_get(x_32, 1); +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_17); -x_19 = x_36; -x_20 = x_35; -goto block_26; -} -else +x_36 = lean_unbox(x_35); +lean_dec(x_35); +if (x_36 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_37 = lean_ctor_get(x_32, 1); -lean_inc(x_37); -lean_dec(x_32); -lean_inc(x_10); -x_38 = l_Lean_Meta_instantiateMVars(x_31, x_9, x_10, x_11, x_12, x_37); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -lean_inc(x_2); -x_41 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___lambda__1___boxed), 2, 1); -lean_closure_set(x_41, 0, x_2); -x_42 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_41, x_39); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_array_push(x_17, x_29); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_19 = x_44; -x_20 = x_40; -goto block_26; -} -else -{ -lean_object* x_45; -lean_dec(x_42); -lean_dec(x_29); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_17); -x_19 = x_45; -x_20 = x_40; -goto block_26; -} -} -} -else -{ -uint8_t x_46; +lean_object* x_37; lean_object* x_38; +lean_dec(x_33); lean_dec(x_31); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_16); +x_18 = x_38; +x_19 = x_37; +goto block_25; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_39 = lean_ctor_get(x_34, 1); +lean_inc(x_39); +lean_dec(x_34); +lean_inc(x_9); +x_40 = l_Lean_Meta_instantiateMVars(x_33, x_8, x_9, x_10, x_11, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_30); +x_43 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___lambda__1___boxed), 2, 1); +lean_closure_set(x_43, 0, x_30); +x_44 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_43, x_41); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_inc(x_31); +x_45 = lean_array_push(x_29, x_31); +x_46 = lean_box(0); +x_47 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_30, x_31, x_46); +lean_ctor_set(x_16, 1, x_47); +lean_ctor_set(x_16, 0, x_45); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_16); +x_18 = x_48; +x_19 = x_42; +goto block_25; +} +else +{ +lean_object* x_49; +lean_dec(x_44); +lean_dec(x_31); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_16); +x_18 = x_49; +x_19 = x_42; +goto block_25; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_33); +lean_dec(x_31); +lean_free_object(x_16); +lean_dec(x_30); lean_dec(x_29); -lean_dec(x_18); lean_dec(x_17); -lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_3); +lean_dec(x_8); lean_dec(x_2); -x_46 = !lean_is_exclusive(x_32); -if (x_46 == 0) +x_50 = !lean_is_exclusive(x_34); +if (x_50 == 0) { -return x_32; +return x_34; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_32, 0); -x_48 = lean_ctor_get(x_32, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_34, 0); +x_52 = lean_ctor_get(x_34, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_34); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +else +{ +lean_object* x_54; lean_dec(x_32); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_dec(x_31); +lean_dec(x_27); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_16); +x_18 = x_54; +x_19 = x_12; +goto block_25; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_16, 0); +x_56 = lean_ctor_get(x_16, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_16); +x_57 = l_Lean_LocalDecl_fvarId(x_27); +x_58 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_56, x_57); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; +x_59 = l_Lean_LocalDecl_type(x_27); +lean_dec(x_27); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_59); +x_60 = l_Lean_Meta_isProp(x_59, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; uint8_t x_62; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_unbox(x_61); +lean_dec(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_59); +lean_dec(x_57); +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_55); +lean_ctor_set(x_64, 1, x_56); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_18 = x_65; +x_19 = x_63; +goto block_25; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_dec(x_60); +lean_inc(x_9); +x_67 = l_Lean_Meta_instantiateMVars(x_59, x_8, x_9, x_10, x_11, x_66); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_56); +x_70 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___lambda__1___boxed), 2, 1); +lean_closure_set(x_70, 0, x_56); +x_71 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_70, x_68); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_inc(x_57); +x_72 = lean_array_push(x_55, x_57); +x_73 = lean_box(0); +x_74 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_56, x_57, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_74); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_75); +x_18 = x_76; +x_19 = x_69; +goto block_25; +} +else +{ +lean_object* x_77; lean_object* x_78; +lean_dec(x_71); +lean_dec(x_57); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_55); +lean_ctor_set(x_77, 1, x_56); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_77); +x_18 = x_78; +x_19 = x_69; +goto block_25; } } } else { -lean_object* x_50; -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_28); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_17); -x_19 = x_50; -x_20 = x_13; -goto block_26; -} -} -block_26: -{ -lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -lean_dec(x_19); -lean_inc(x_3); -if (lean_is_scalar(x_18)) { - x_22 = lean_alloc_ctor(0, 2, 0); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_59); +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_55); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_2); +x_79 = lean_ctor_get(x_60, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_60, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_81 = x_60; } else { - x_22 = x_18; + lean_dec_ref(x_60); + x_81 = lean_box(0); } -lean_ctor_set(x_22, 0, x_3); -lean_ctor_set(x_22, 1, x_21); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); -x_6 = x_24; -x_7 = x_22; -x_13 = x_20; +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_27); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_55); +lean_ctor_set(x_83, 1, x_56); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_18 = x_84; +x_19 = x_12; +goto block_25; +} +} +} +block_25: +{ +lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +lean_inc(x_2); +if (lean_is_scalar(x_17)) { + x_21 = lean_alloc_ctor(0, 2, 0); +} else { + x_21 = x_17; +} +lean_ctor_set(x_21, 0, x_2); +lean_ctor_set(x_21, 1, x_20); +x_22 = 1; +x_23 = lean_usize_add(x_5, x_22); +x_5 = x_23; +x_6 = x_21; +x_12 = x_19; goto _start; } } @@ -7571,421 +7742,578 @@ lean_ctor_set(x_10, 1, x_8); return x_10; } } -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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: { -if (lean_obj_tag(x_4) == 0) +if (lean_obj_tag(x_3) == 0) { -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; -x_12 = lean_ctor_get(x_4, 0); -lean_inc(x_12); -lean_dec(x_4); -x_13 = lean_box(0); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_5); -x_15 = lean_array_get_size(x_12); -x_16 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_17 = 0; -lean_inc(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; +x_11 = lean_ctor_get(x_3, 0); +lean_inc(x_11); +lean_dec(x_3); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_4); +x_14 = lean_array_get_size(x_11); +x_15 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_16 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(x_1, x_2, x_3, x_13, x_12, x_16, x_17, x_14, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_12); -if (lean_obj_tag(x_18) == 0) +lean_inc(x_5); +x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(x_1, x_2, x_12, x_11, x_15, x_16, x_13, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_11); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_19; lean_object* x_20; +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -if (lean_obj_tag(x_20) == 0) +if (lean_obj_tag(x_19) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); lean_dec(x_18); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_box(0); -x_24 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29___lambda__1(x_22, x_23, x_6, x_7, x_8, x_9, x_10, x_21); -lean_dec(x_10); +x_22 = lean_box(0); +x_23 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29___lambda__1(x_21, x_22, x_5, x_6, x_7, x_8, x_9, x_20); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_24; +lean_dec(x_5); +return x_23; } else { -uint8_t x_25; -lean_dec(x_19); -lean_dec(x_10); +uint8_t x_24; +lean_dec(x_18); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_25 = !lean_is_exclusive(x_18); -if (x_25 == 0) +lean_dec(x_5); +x_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_18, 0); -lean_dec(x_26); -x_27 = lean_ctor_get(x_20, 0); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_26); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 1); lean_inc(x_27); -lean_dec(x_20); -lean_ctor_set(x_18, 0, x_27); -return x_18; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_18, 1); +lean_dec(x_17); +x_28 = lean_ctor_get(x_19, 0); lean_inc(x_28); -lean_dec(x_18); -x_29 = lean_ctor_get(x_20, 0); -lean_inc(x_29); -lean_dec(x_20); -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; +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; } } } else { -uint8_t x_31; -lean_dec(x_10); +uint8_t x_30; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_31 = !lean_is_exclusive(x_18); -if (x_31 == 0) +lean_dec(x_5); +x_30 = !lean_is_exclusive(x_17); +if (x_30 == 0) { -return x_18; +return x_17; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_18, 0); -x_33 = lean_ctor_get(x_18, 1); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); lean_inc(x_32); -lean_dec(x_18); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_inc(x_31); +lean_dec(x_17); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; lean_object* x_41; +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_2); +x_34 = lean_ctor_get(x_3, 0); +lean_inc(x_34); lean_dec(x_3); -x_35 = lean_ctor_get(x_4, 0); -lean_inc(x_35); -lean_dec(x_4); -x_36 = lean_box(0); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_5); -x_38 = lean_array_get_size(x_35); -x_39 = lean_usize_of_nat(x_38); -lean_dec(x_38); -x_40 = 0; -lean_inc(x_10); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_4); +x_37 = lean_array_get_size(x_34); +x_38 = lean_usize_of_nat(x_37); +lean_dec(x_37); +x_39 = 0; lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_41 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(x_1, x_2, x_36, x_35, x_39, x_40, x_37, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_35); +lean_inc(x_6); +x_40 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(x_1, x_35, x_34, x_38, x_39, x_36, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_34); lean_dec(x_1); -if (lean_obj_tag(x_41) == 0) +if (lean_obj_tag(x_40) == 0) { -lean_object* x_42; lean_object* x_43; +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -if (lean_obj_tag(x_43) == 0) +if (lean_obj_tag(x_42) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); x_44 = lean_ctor_get(x_41, 1); lean_inc(x_44); lean_dec(x_41); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_box(0); -x_47 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29___lambda__1(x_45, x_46, x_6, x_7, x_8, x_9, x_10, x_44); -lean_dec(x_10); +x_45 = lean_box(0); +x_46 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29___lambda__1(x_44, x_45, x_5, x_6, x_7, x_8, x_9, x_43); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -return x_47; +lean_dec(x_5); +return x_46; } else { -uint8_t x_48; -lean_dec(x_42); -lean_dec(x_10); +uint8_t x_47; +lean_dec(x_41); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); -x_48 = !lean_is_exclusive(x_41); -if (x_48 == 0) +lean_dec(x_5); +x_47 = !lean_is_exclusive(x_40); +if (x_47 == 0) { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_41, 0); -lean_dec(x_49); -x_50 = lean_ctor_get(x_43, 0); +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_40, 0); +lean_dec(x_48); +x_49 = lean_ctor_get(x_42, 0); +lean_inc(x_49); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_49); +return x_40; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_40, 1); lean_inc(x_50); -lean_dec(x_43); -lean_ctor_set(x_41, 0, x_50); -return x_41; +lean_dec(x_40); +x_51 = lean_ctor_get(x_42, 0); +lean_inc(x_51); +lean_dec(x_42); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_53 = !lean_is_exclusive(x_40); +if (x_53 == 0) +{ +return x_40; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_40, 0); +x_55 = lean_ctor_get(x_40, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_40); +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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_5, x_4); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_2); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_6); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_array_uget(x_3, x_5); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +if (lean_is_exclusive(x_6)) { + lean_ctor_release(x_6, 0); + lean_ctor_release(x_6, 1); + x_17 = x_6; +} else { + lean_dec_ref(x_6); + x_17 = lean_box(0); +} +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_26; +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_16); +x_18 = x_26; +x_19 = x_12; +goto block_25; +} +else +{ +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_15, 0); +lean_inc(x_27); +lean_dec(x_15); +x_28 = !lean_is_exclusive(x_16); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); +x_31 = l_Lean_LocalDecl_fvarId(x_27); +x_32 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_30, x_31); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = l_Lean_LocalDecl_type(x_27); +lean_dec(x_27); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_33); +x_34 = l_Lean_Meta_isProp(x_33, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_unbox(x_35); +lean_dec(x_35); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_33); +lean_dec(x_31); +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_16); +x_18 = x_38; +x_19 = x_37; +goto block_25; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_39 = lean_ctor_get(x_34, 1); +lean_inc(x_39); +lean_dec(x_34); +lean_inc(x_9); +x_40 = l_Lean_Meta_instantiateMVars(x_33, x_8, x_9, x_10, x_11, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +lean_inc(x_30); +x_43 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___lambda__1___boxed), 2, 1); +lean_closure_set(x_43, 0, x_30); +x_44 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_43, x_41); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_inc(x_31); +x_45 = lean_array_push(x_29, x_31); +x_46 = lean_box(0); +x_47 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_30, x_31, x_46); +lean_ctor_set(x_16, 1, x_47); +lean_ctor_set(x_16, 0, x_45); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_16); +x_18 = x_48; +x_19 = x_42; +goto block_25; +} +else +{ +lean_object* x_49; +lean_dec(x_44); +lean_dec(x_31); +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_16); +x_18 = x_49; +x_19 = x_42; +goto block_25; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_33); +lean_dec(x_31); +lean_free_object(x_16); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_2); +x_50 = !lean_is_exclusive(x_34); +if (x_50 == 0) +{ +return x_34; } else { lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_41, 1); -lean_inc(x_51); -lean_dec(x_41); -x_52 = lean_ctor_get(x_43, 0); +x_51 = lean_ctor_get(x_34, 0); +x_52 = lean_ctor_get(x_34, 1); lean_inc(x_52); -lean_dec(x_43); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); +lean_inc(x_51); +lean_dec(x_34); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); return x_53; } } } else { -uint8_t x_54; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_54 = !lean_is_exclusive(x_41); -if (x_54 == 0) -{ -return x_41; +lean_object* x_54; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_27); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_16); +x_18 = x_54; +x_19 = x_12; +goto block_25; +} } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_41, 0); -x_56 = lean_ctor_get(x_41, 1); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_16, 0); +x_56 = lean_ctor_get(x_16, 1); lean_inc(x_56); lean_inc(x_55); -lean_dec(x_41); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(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* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -uint8_t x_14; -x_14 = lean_usize_dec_lt(x_6, x_5); -if (x_14 == 0) -{ -lean_object* x_15; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_3); -lean_dec(x_2); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -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; -x_16 = lean_array_uget(x_4, x_6); -x_17 = lean_ctor_get(x_7, 1); -lean_inc(x_17); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_18 = x_7; -} else { - lean_dec_ref(x_7); - x_18 = lean_box(0); -} -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_17); -x_19 = x_27; -x_20 = x_13; -goto block_26; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -lean_inc(x_28); lean_dec(x_16); -x_29 = l_Lean_LocalDecl_fvarId(x_28); -x_30 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_2, x_29); -if (lean_obj_tag(x_30) == 0) +x_57 = l_Lean_LocalDecl_fvarId(x_27); +x_58 = l_Std_RBNode_findCore___at_Lean_Meta_ToHide_isMarked___spec__1(x_56, x_57); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = l_Lean_LocalDecl_type(x_28); -lean_dec(x_28); -lean_inc(x_12); +lean_object* x_59; lean_object* x_60; +x_59 = l_Lean_LocalDecl_type(x_27); +lean_dec(x_27); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_31); -x_32 = l_Lean_Meta_isProp(x_31, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_32) == 0) +lean_inc(x_8); +lean_inc(x_59); +x_60 = l_Lean_Meta_isProp(x_59, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_unbox(x_33); -lean_dec(x_33); -if (x_34 == 0) +lean_object* x_61; uint8_t x_62; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_unbox(x_61); +lean_dec(x_61); +if (x_62 == 0) { -lean_object* x_35; lean_object* x_36; -lean_dec(x_31); -lean_dec(x_29); -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_17); -x_19 = x_36; -x_20 = x_35; -goto block_26; +lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_59); +lean_dec(x_57); +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_55); +lean_ctor_set(x_64, 1, x_56); +x_65 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_65, 0, x_64); +x_18 = x_65; +x_19 = x_63; +goto block_25; } 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; -x_37 = lean_ctor_get(x_32, 1); -lean_inc(x_37); -lean_dec(x_32); -lean_inc(x_10); -x_38 = l_Lean_Meta_instantiateMVars(x_31, x_9, x_10, x_11, x_12, x_37); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -lean_inc(x_2); -x_41 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___lambda__1___boxed), 2, 1); -lean_closure_set(x_41, 0, x_2); -x_42 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_41, x_39); -if (lean_obj_tag(x_42) == 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; +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_dec(x_60); +lean_inc(x_9); +x_67 = l_Lean_Meta_instantiateMVars(x_59, x_8, x_9, x_10, x_11, x_66); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_56); +x_70 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___lambda__1___boxed), 2, 1); +lean_closure_set(x_70, 0, x_56); +x_71 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_70, x_68); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_43; lean_object* x_44; -x_43 = lean_array_push(x_17, x_29); -x_44 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_44, 0, x_43); -x_19 = x_44; -x_20 = x_40; -goto block_26; +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_inc(x_57); +x_72 = lean_array_push(x_55, x_57); +x_73 = lean_box(0); +x_74 = l_Std_RBNode_insert___at_Lean_Meta_ToHide_moveToHiddeProp___spec__1(x_56, x_57, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_74); +x_76 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_76, 0, x_75); +x_18 = x_76; +x_19 = x_69; +goto block_25; } else { -lean_object* x_45; -lean_dec(x_42); -lean_dec(x_29); -x_45 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_45, 0, x_17); -x_19 = x_45; -x_20 = x_40; -goto block_26; +lean_object* x_77; lean_object* x_78; +lean_dec(x_71); +lean_dec(x_57); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_55); +lean_ctor_set(x_77, 1, x_56); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_77); +x_18 = x_78; +x_19 = x_69; +goto block_25; } } } else { -uint8_t x_46; -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_18); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_59); +lean_dec(x_57); +lean_dec(x_56); +lean_dec(x_55); lean_dec(x_17); -lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_3); +lean_dec(x_8); lean_dec(x_2); -x_46 = !lean_is_exclusive(x_32); -if (x_46 == 0) -{ -return x_32; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_32, 0); -x_48 = lean_ctor_get(x_32, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_32); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -else -{ -lean_object* x_50; -lean_dec(x_30); -lean_dec(x_29); -lean_dec(x_28); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_17); -x_19 = x_50; -x_20 = x_13; -goto block_26; -} -} -block_26: -{ -lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -lean_dec(x_19); -lean_inc(x_3); -if (lean_is_scalar(x_18)) { - x_22 = lean_alloc_ctor(0, 2, 0); +x_79 = lean_ctor_get(x_60, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_60, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_81 = x_60; } else { - x_22 = x_18; + lean_dec_ref(x_60); + x_81 = lean_box(0); } -lean_ctor_set(x_22, 0, x_3); -lean_ctor_set(x_22, 1, x_21); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); -x_6 = x_24; -x_7 = x_22; -x_13 = x_20; +if (lean_is_scalar(x_81)) { + x_82 = lean_alloc_ctor(1, 2, 0); +} else { + x_82 = x_81; +} +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_80); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_58); +lean_dec(x_57); +lean_dec(x_27); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_55); +lean_ctor_set(x_83, 1, x_56); +x_84 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_84, 0, x_83); +x_18 = x_84; +x_19 = x_12; +goto block_25; +} +} +} +block_25: +{ +lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec(x_18); +lean_inc(x_2); +if (lean_is_scalar(x_17)) { + x_21 = lean_alloc_ctor(0, 2, 0); +} else { + x_21 = x_17; +} +lean_ctor_set(x_21, 0, x_2); +lean_ctor_set(x_21, 1, x_20); +x_22 = 1; +x_23 = lean_usize_add(x_5, x_22); +x_5 = x_23; +x_6 = x_21; +x_12 = x_19; goto _start; } } @@ -8001,209 +8329,206 @@ lean_ctor_set(x_9, 1, x_8); return x_9; } } -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_11; lean_object* x_12; -x_11 = lean_ctor_get(x_3, 0); -lean_inc(x_11); -lean_inc(x_9); +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_2); +lean_inc(x_3); lean_inc(x_1); -x_12 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(x_1, x_2, x_4, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29(x_1, x_3, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); 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) -{ -uint8_t x_14; -lean_dec(x_9); +uint8_t x_13; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_14 = !lean_is_exclusive(x_12); -if (x_14 == 0) +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) { -lean_object* x_15; lean_object* x_16; +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); x_15 = lean_ctor_get(x_12, 0); -lean_dec(x_15); -x_16 = lean_ctor_get(x_13, 0); -lean_inc(x_16); -lean_dec(x_13); -lean_ctor_set(x_12, 0, x_16); -return x_12; +lean_inc(x_15); +lean_dec(x_12); +lean_ctor_set(x_11, 0, x_15); +return x_11; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_12, 1); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_ctor_get(x_12, 0); lean_inc(x_17); lean_dec(x_12); -x_18 = lean_ctor_get(x_13, 0); -lean_inc(x_18); -lean_dec(x_13); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; } } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; size_t x_26; size_t x_27; lean_object* x_28; -x_20 = lean_ctor_get(x_12, 1); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_ctor_get(x_12, 0); lean_inc(x_20); lean_dec(x_12); -x_21 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_2, 1); lean_inc(x_21); -lean_dec(x_13); -x_22 = lean_ctor_get(x_3, 1); -lean_inc(x_22); -lean_dec(x_3); -x_23 = lean_box(0); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -x_25 = lean_array_get_size(x_22); -x_26 = lean_usize_of_nat(x_25); -lean_dec(x_25); -x_27 = 0; -x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(x_1, x_2, x_23, x_22, x_26, x_27, x_24, x_5, x_6, x_7, x_8, x_9, x_20); -lean_dec(x_5); -lean_dec(x_22); +lean_dec(x_2); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_20); +x_24 = lean_array_get_size(x_21); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(x_1, x_22, x_21, x_25, x_26, x_23, x_4, x_5, x_6, x_7, x_8, x_19); +lean_dec(x_4); +lean_dec(x_21); lean_dec(x_1); -if (lean_obj_tag(x_28) == 0) +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); x_29 = lean_ctor_get(x_28, 0); lean_inc(x_29); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -if (lean_obj_tag(x_30) == 0) +if (lean_obj_tag(x_29) == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_28); -if (x_31 == 0) +uint8_t x_30; +x_30 = !lean_is_exclusive(x_27); +if (x_30 == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_28, 0); -lean_dec(x_32); -x_33 = lean_ctor_get(x_29, 1); -lean_inc(x_33); -lean_dec(x_29); -lean_ctor_set(x_28, 0, x_33); -return x_28; +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +lean_ctor_set(x_27, 0, x_32); +return x_27; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_dec(x_27); x_34 = lean_ctor_get(x_28, 1); lean_inc(x_34); lean_dec(x_28); -x_35 = lean_ctor_get(x_29, 1); -lean_inc(x_35); -lean_dec(x_29); -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; +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; } } else { -uint8_t x_37; -lean_dec(x_29); -x_37 = !lean_is_exclusive(x_28); -if (x_37 == 0) +uint8_t x_36; +lean_dec(x_28); +x_36 = !lean_is_exclusive(x_27); +if (x_36 == 0) { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_28, 0); -lean_dec(x_38); -x_39 = lean_ctor_get(x_30, 0); +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_27, 0); +lean_dec(x_37); +x_38 = lean_ctor_get(x_29, 0); +lean_inc(x_38); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_38); +return x_27; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_27, 1); lean_inc(x_39); -lean_dec(x_30); -lean_ctor_set(x_28, 0, x_39); -return x_28; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_28, 1); +lean_dec(x_27); +x_40 = lean_ctor_get(x_29, 0); lean_inc(x_40); -lean_dec(x_28); -x_41 = lean_ctor_get(x_30, 0); -lean_inc(x_41); -lean_dec(x_30); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; +lean_dec(x_29); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; } } } else { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_28); -if (x_43 == 0) +uint8_t x_42; +x_42 = !lean_is_exclusive(x_27); +if (x_42 == 0) { -return x_28; +return x_27; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_28, 0); -x_45 = lean_ctor_get(x_28, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_27, 0); +x_44 = lean_ctor_get(x_27, 1); lean_inc(x_44); -lean_dec(x_28); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +lean_inc(x_43); +lean_dec(x_27); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } } else { -uint8_t x_47; -lean_dec(x_9); +uint8_t x_46; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_3); +lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_47 = !lean_is_exclusive(x_12); -if (x_47 == 0) +x_46 = !lean_is_exclusive(x_11); +if (x_46 == 0) { -return x_12; +return x_11; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_12, 0); -x_49 = lean_ctor_get(x_12, 1); -lean_inc(x_49); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_11, 0); +x_48 = lean_ctor_get(x_11, 1); lean_inc(x_48); -lean_dec(x_12); -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_inc(x_47); +lean_dec(x_11); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } @@ -8351,7 +8676,7 @@ return x_3; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___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; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +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 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___lambda__1___closed__2; lean_inc(x_1); x_9 = l_Lean_CollectFVars_main(x_1, x_8); @@ -8381,167 +8706,173 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = lean_ctor_get(x_10, 1); -lean_inc(x_19); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_14); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_20); lean_dec(x_10); -x_20 = l_Lean_LocalContext_foldrM___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__1___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__25___closed__1; +x_21 = l_Lean_LocalContext_foldrM___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__1___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__25___closed__1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_21 = l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28(x_20, x_14, x_19, x_17, x_2, x_3, x_4, x_5, x_6, x_18); -if (lean_obj_tag(x_21) == 0) +x_22 = l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28(x_21, x_20, x_19, x_2, x_3, x_4, x_5, x_6, x_18); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_array_get_size(x_22); -x_25 = lean_usize_of_nat(x_24); -lean_dec(x_24); -x_26 = 0; -x_27 = l_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(x_25, x_26, x_22); +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 = lean_array_get_size(x_25); +x_27 = lean_usize_of_nat(x_26); +lean_dec(x_26); x_28 = 0; -x_29 = 1; +x_29 = l_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(x_27, x_28, x_25); +x_30 = 0; +x_31 = 1; lean_inc(x_3); -x_30 = l_Lean_Meta_mkForallFVars(x_27, x_1, x_28, x_29, x_3, x_4, x_5, x_6, x_23); -if (lean_obj_tag(x_30) == 0) +x_32 = l_Lean_Meta_mkForallFVars(x_29, x_1, x_30, x_31, x_3, x_4, x_5, x_6, x_24); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_6); -x_33 = l_Lean_Elab_Eqns_simpEqnType(x_31, x_3, x_4, x_5, x_6, x_32); -if (lean_obj_tag(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; uint8_t x_43; -x_34 = lean_ctor_get(x_33, 0); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_st_ref_get(x_6, x_35); -lean_dec(x_6); -x_37 = lean_ctor_get(x_36, 1); +lean_dec(x_32); +lean_inc(x_6); +x_35 = l_Lean_Elab_Eqns_simpEqnType(x_33, x_3, x_4, x_5, x_6, x_34); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_st_ref_take(x_2, x_37); -x_39 = lean_ctor_get(x_38, 0); +lean_dec(x_35); +x_38 = lean_st_ref_get(x_6, x_37); +lean_dec(x_6); +x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); lean_dec(x_38); -x_41 = lean_array_push(x_39, x_34); -x_42 = lean_st_ref_set(x_2, x_41, x_40); +x_40 = lean_st_ref_take(x_2, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = lean_array_push(x_41, x_36); +x_44 = lean_st_ref_set(x_2, x_43, x_42); lean_dec(x_2); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +x_45 = !lean_is_exclusive(x_44); +if (x_45 == 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); +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_44, 0); +lean_dec(x_46); 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; +lean_ctor_set(x_44, 0, x_47); +return x_44; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_44, 1); +lean_inc(x_48); +lean_dec(x_44); +x_49 = lean_box(0); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } else { -uint8_t x_49; +uint8_t x_51; lean_dec(x_6); lean_dec(x_2); -x_49 = !lean_is_exclusive(x_33); -if (x_49 == 0) +x_51 = !lean_is_exclusive(x_35); +if (x_51 == 0) { -return x_33; +return x_35; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_33, 0); -x_51 = lean_ctor_get(x_33, 1); -lean_inc(x_51); -lean_inc(x_50); -lean_dec(x_33); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_35, 0); +x_53 = lean_ctor_get(x_35, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_35); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } else { -uint8_t x_53; +uint8_t x_55; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_53 = !lean_is_exclusive(x_30); -if (x_53 == 0) +x_55 = !lean_is_exclusive(x_32); +if (x_55 == 0) { -return x_30; +return x_32; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_30, 0); -x_55 = lean_ctor_get(x_30, 1); -lean_inc(x_55); -lean_inc(x_54); -lean_dec(x_30); -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* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_32, 0); +x_57 = lean_ctor_get(x_32, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_32); +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; } } } else { -uint8_t x_57; +uint8_t x_59; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_57 = !lean_is_exclusive(x_21); -if (x_57 == 0) +x_59 = !lean_is_exclusive(x_22); +if (x_59 == 0) { -return x_21; +return x_22; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_21, 0); -x_59 = lean_ctor_get(x_21, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_21); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_22, 0); +x_61 = lean_ctor_get(x_22, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_22); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } @@ -8917,17 +9248,17 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_15; size_t x_16; lean_object* x_17; +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_5); +lean_dec(x_5); x_15 = lean_unbox_usize(x_6); lean_dec(x_6); -x_16 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(x_1, x_2, x_3, x_4, x_5, x_15, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_5); -return x_17; +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_4); +return x_16; } } LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { @@ -8940,19 +9271,19 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_14; size_t x_15; lean_object* x_16; +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_4); +lean_dec(x_4); x_14 = lean_unbox_usize(x_5); lean_dec(x_5); -x_15 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_8); -lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__31(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_3); lean_dec(x_1); -return x_16; +return x_15; } } LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__29___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) { @@ -8969,19 +9300,19 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_14; size_t x_15; lean_object* x_16; +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_4); +lean_dec(x_4); x_14 = lean_unbox_usize(x_5); lean_dec(x_5); -x_15 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_8); -lean_dec(x_4); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__32(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_3); lean_dec(x_1); -return x_16; +return x_15; } } LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__28___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) { @@ -9073,322 +9404,805 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +static lean_object* _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__1() { _start: { -lean_object* x_9; +lean_object* x_1; +x_1 = lean_mk_string("_traceMsg"); +return x_1; +} +} +static lean_object* _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("["); +return x_1; +} +} +static lean_object* _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("] "); +return x_1; +} +} +static lean_object* _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +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; uint8_t x_19; +x_10 = lean_ctor_get(x_7, 3); +x_11 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_2, x_5, x_6, x_7, x_8, x_9); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_addTrace_addTraceOptions(x_12); +x_15 = lean_st_ref_take(x_8, x_13); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 3); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_16, 3); +lean_dec(x_20); +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_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_22 = lean_ctor_get(x_17, 0); +x_23 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2; +x_24 = l_Lean_Name_append(x_1, x_23); +x_25 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_25, 0, x_1); +x_26 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +x_28 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_14); +x_31 = l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__4; +x_32 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_33, 0, x_24); +lean_ctor_set(x_33, 1, x_32); +lean_inc(x_10); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_10); +lean_ctor_set(x_34, 1, x_33); +x_35 = l_Std_PersistentArray_push___rarg(x_22, x_34); +lean_ctor_set(x_17, 0, x_35); +x_36 = lean_st_ref_set(x_8, x_16, x_18); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +x_39 = lean_box(0); +lean_ctor_set(x_36, 0, x_39); +return x_36; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +lean_dec(x_36); +x_41 = lean_box(0); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +else +{ +uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_43 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_44 = lean_ctor_get(x_17, 0); +lean_inc(x_44); +lean_dec(x_17); +x_45 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2; +x_46 = l_Lean_Name_append(x_1, x_45); +x_47 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_47, 0, x_1); +x_48 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_14); +x_53 = l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__4; +x_54 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +x_55 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_55, 0, x_46); +lean_ctor_set(x_55, 1, x_54); +lean_inc(x_10); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_10); +lean_ctor_set(x_56, 1, x_55); +x_57 = l_Std_PersistentArray_push___rarg(x_44, x_56); +x_58 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_43); +lean_ctor_set(x_16, 3, x_58); +x_59 = lean_st_ref_set(x_8, x_16, x_18); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_61 = x_59; +} else { + lean_dec_ref(x_59); + x_61 = lean_box(0); +} +x_62 = lean_box(0); +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_61; +} +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; +} +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_64 = lean_ctor_get(x_16, 0); +x_65 = lean_ctor_get(x_16, 1); +x_66 = lean_ctor_get(x_16, 2); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_16); +x_67 = lean_ctor_get_uint8(x_17, sizeof(void*)*1); +x_68 = lean_ctor_get(x_17, 0); +lean_inc(x_68); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + x_69 = x_17; +} else { + lean_dec_ref(x_17); + x_69 = lean_box(0); +} +x_70 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2; +x_71 = l_Lean_Name_append(x_1, x_70); +x_72 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_72, 0, x_1); +x_73 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4; +x_74 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +x_75 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6; +x_76 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_14); +x_78 = l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__4; +x_79 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_alloc_ctor(11, 2, 0); +lean_ctor_set(x_80, 0, x_71); +lean_ctor_set(x_80, 1, x_79); +lean_inc(x_10); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_10); +lean_ctor_set(x_81, 1, x_80); +x_82 = l_Std_PersistentArray_push___rarg(x_68, x_81); +if (lean_is_scalar(x_69)) { + x_83 = lean_alloc_ctor(0, 1, 1); +} else { + x_83 = x_69; +} +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set_uint8(x_83, sizeof(void*)*1, x_67); +x_84 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_84, 0, x_64); +lean_ctor_set(x_84, 1, x_65); +lean_ctor_set(x_84, 2, x_66); +lean_ctor_set(x_84, 3, x_83); +x_85 = lean_st_ref_set(x_8, x_84, x_18); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_87 = x_85; +} else { + lean_dec_ref(x_85); + x_87 = lean_box(0); +} +x_88 = lean_box(0); +if (lean_is_scalar(x_87)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_87; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_86); +return x_89; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_6, 0); +x_10 = l_Lean_checkTraceOption(x_9, x_1); +x_11 = lean_box(x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_8); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___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; +lean_dec(x_2); +lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_2); +lean_inc(x_3); lean_inc(x_1); -x_9 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_keepGoing(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) +x_10 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_keepGoing(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_unbox(x_10); +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_3); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); lean_dec(x_10); -if (x_11 == 0) +x_14 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn(x_1, x_4, x_5, x_6, x_7, x_8, x_13); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_dec(x_10); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_16 = l_Lean_Elab_Eqns_expandRHS_x3f(x_1, x_5, x_6, x_7, x_8, x_15); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_19 = l_Lean_Elab_Eqns_funext_x3f(x_1, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_22 = l_Lean_Elab_Eqns_simpMatch_x3f(x_1, x_5, x_6, x_7, x_8, x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = 0; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_26 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_25, x_5, x_6, x_7, x_8, x_24); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_3); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn(x_1, x_4, x_5, x_6, x_7, x_8, x_28); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_1); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +x_31 = lean_ctor_get(x_27, 0); +lean_inc(x_31); +lean_dec(x_27); +x_32 = l_List_forM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__1(x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +return x_32; +} +} +else +{ +uint8_t x_33; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) +{ +return x_26; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_26, 0); +x_35 = lean_ctor_get(x_26, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_26); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_1); +x_37 = lean_ctor_get(x_22, 1); +lean_inc(x_37); +lean_dec(x_22); +x_38 = lean_ctor_get(x_23, 0); +lean_inc(x_38); +lean_dec(x_23); +x_39 = l_Lean_Elab_Eqns_mkEqnTypes_go(x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_37); +return x_39; +} +} +else +{ +uint8_t x_40; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_22); +if (x_40 == 0) +{ +return x_22; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_22, 0); +x_42 = lean_ctor_get(x_22, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_22); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_1); +x_44 = lean_ctor_get(x_19, 1); +lean_inc(x_44); +lean_dec(x_19); +x_45 = lean_ctor_get(x_20, 0); +lean_inc(x_45); +lean_dec(x_20); +x_46 = l_Lean_Elab_Eqns_mkEqnTypes_go(x_45, x_3, x_4, x_5, x_6, x_7, x_8, x_44); +return x_46; +} +} +else +{ +uint8_t x_47; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_19); +if (x_47 == 0) +{ +return x_19; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_19, 0); +x_49 = lean_ctor_get(x_19, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_19); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_1); +x_51 = lean_ctor_get(x_16, 1); +lean_inc(x_51); +lean_dec(x_16); +x_52 = lean_ctor_get(x_17, 0); +lean_inc(x_52); +lean_dec(x_17); +x_53 = l_Lean_Elab_Eqns_mkEqnTypes_go(x_52, x_3, x_4, x_5, x_6, x_7, x_8, x_51); +return x_53; +} +} +else +{ +uint8_t x_54; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_54 = !lean_is_exclusive(x_16); +if (x_54 == 0) +{ +return x_16; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_16, 0); +x_56 = lean_ctor_get(x_16, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_16); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +} +else +{ +uint8_t x_58; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_58 = !lean_is_exclusive(x_10); +if (x_58 == 0) +{ +return x_10; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_10, 0); +x_60 = lean_ctor_get(x_10, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_10); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Elab"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("definition"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__2; +x_2 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("structural"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__4; +x_2 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("eqns"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__6; +x_2 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("mkEqnTypes step\n"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__9; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_9 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__8; +x_24 = lean_st_ref_get(x_7, x_8); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 3); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_ctor_get_uint8(x_26, sizeof(void*)*1); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +x_29 = 0; +x_10 = x_29; +x_11 = x_28; +goto block_23; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_dec(x_24); +x_31 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__3(x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_unbox(x_32); +lean_dec(x_32); +x_10 = x_34; +x_11 = x_33; +goto block_23; +} +block_23: +{ +if (x_10 == 0) { lean_object* x_12; lean_object* x_13; -lean_dec(x_2); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -x_13 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn(x_1, x_3, x_4, x_5, x_6, x_7, x_12); +x_12 = lean_box(0); +x_13 = l_Lean_Elab_Eqns_mkEqnTypes_go___lambda__1(x_1, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_11); return x_13; } else { -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_inc(x_1); -x_15 = l_Lean_Elab_Eqns_expandRHS_x3f(x_1, x_4, x_5, x_6, x_7, x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_18 = l_Lean_Elab_Eqns_funext_x3f(x_1, x_4, x_5, x_6, x_7, x_17); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 1); +x_14 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_14, 0, x_1); +x_15 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__10; +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_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__4; +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_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2(x_9, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_21 = l_Lean_Elab_Eqns_simpMatch_x3f(x_1, x_4, x_5, x_6, x_7, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_1); -x_24 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_4, x_5, x_6, x_7, x_23); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_2); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn(x_1, x_3, x_4, x_5, x_6, x_7, x_26); -return x_27; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_dec(x_1); -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); -x_29 = lean_ctor_get(x_25, 0); -lean_inc(x_29); -lean_dec(x_25); -x_30 = l_List_forM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__1(x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_28); -return x_30; -} -} -else -{ -uint8_t x_31; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_31 = !lean_is_exclusive(x_24); -if (x_31 == 0) -{ -return x_24; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_24, 0); -x_33 = lean_ctor_get(x_24, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_24); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else -{ -lean_object* x_35; lean_object* x_36; -lean_dec(x_1); -x_35 = lean_ctor_get(x_21, 1); -lean_inc(x_35); -lean_dec(x_21); -x_36 = lean_ctor_get(x_22, 0); -lean_inc(x_36); -lean_dec(x_22); -x_1 = x_36; -x_8 = x_35; -goto _start; -} -} -else -{ -uint8_t x_38; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_21); -if (x_38 == 0) -{ -return x_21; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_21, 0); -x_40 = lean_ctor_get(x_21, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_21); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_1); -x_42 = lean_ctor_get(x_18, 1); -lean_inc(x_42); -lean_dec(x_18); -x_43 = lean_ctor_get(x_19, 0); -lean_inc(x_43); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); lean_dec(x_19); -x_1 = x_43; -x_8 = x_42; -goto _start; +x_22 = l_Lean_Elab_Eqns_mkEqnTypes_go___lambda__1(x_1, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_21); +return x_22; } } -else +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: { -uint8_t x_45; +lean_object* x_10; +x_10 = l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_45 = !lean_is_exclusive(x_18); -if (x_45 == 0) -{ -return x_18; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_18, 0); -x_47 = lean_ctor_get(x_18, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_18); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_1); -x_49 = lean_ctor_get(x_15, 1); -lean_inc(x_49); -lean_dec(x_15); -x_50 = lean_ctor_get(x_16, 0); -lean_inc(x_50); -lean_dec(x_16); -x_1 = x_50; -x_8 = x_49; -goto _start; -} -} -else -{ -uint8_t x_52; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_52 = !lean_is_exclusive(x_15); -if (x_52 == 0) -{ -return x_15; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_15, 0); -x_54 = lean_ctor_get(x_15, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_15); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -else -{ -uint8_t x_56; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_56 = !lean_is_exclusive(x_9); -if (x_56 == 0) -{ return x_9; } -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_9, 0); -x_58 = lean_ctor_get(x_9, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_9); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} } LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes(lean_object* x_1, 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: @@ -9512,7 +10326,7 @@ x_1 = l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__3; return x_1; } } -static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378____closed__1() { +static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503____closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -9522,11 +10336,11 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378____closed__1; +x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503____closed__1; x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1); return x_3; } @@ -11497,11 +12311,11 @@ x_1 = l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__3; return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3047_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3172_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378____closed__1; +x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503____closed__1; x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1); return x_3; } @@ -11669,71 +12483,72 @@ x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); if (lean_obj_tag(x_17) == 0) { -lean_object* x_18; lean_object* x_19; +lean_object* x_18; uint8_t x_19; lean_object* x_20; x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); +x_19 = 0; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_19 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_3, x_4, x_5, x_6, x_7, x_18); -if (lean_obj_tag(x_19) == 0) -{ -lean_object* x_20; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); +x_20 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_3, x_19, x_4, x_5, x_6, x_7, x_18); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 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_2); -x_21 = lean_ctor_get(x_19, 1); +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_22, 0, x_1); -x_23 = l_Lean_Elab_Eqns_mkUnfoldProof_go___closed__2; -x_24 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_22); -x_25 = l_Lean_Elab_Eqns_mkUnfoldProof_go___closed__4; -x_26 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_27, 0, x_3); -x_28 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -x_29 = l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__4; -x_30 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -x_31 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_30, x_4, x_5, x_6, x_7, x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_2); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_23, 0, x_1); +x_24 = l_Lean_Elab_Eqns_mkUnfoldProof_go___closed__2; +x_25 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Elab_Eqns_mkUnfoldProof_go___closed__4; +x_27 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_28, 0, x_3); +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__4; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_31, x_4, x_5, x_6, x_7, x_22); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_31; +return x_32; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_3); -x_32 = lean_ctor_get(x_19, 1); -lean_inc(x_32); -lean_dec(x_19); -x_33 = lean_ctor_get(x_20, 0); +x_33 = lean_ctor_get(x_20, 1); lean_inc(x_33); lean_dec(x_20); -x_34 = l_List_forM___at_Lean_Elab_Eqns_mkUnfoldProof_go___spec__1(x_1, x_2, x_33, x_4, x_5, x_6, x_7, x_32); -return x_34; +x_34 = lean_ctor_get(x_21, 0); +lean_inc(x_34); +lean_dec(x_21); +x_35 = l_List_forM___at_Lean_Elab_Eqns_mkUnfoldProof_go___spec__1(x_1, x_2, x_34, x_4, x_5, x_6, x_7, x_33); +return x_35; } } else { -uint8_t x_35; +uint8_t x_36; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -11741,44 +12556,44 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_19); -if (x_35 == 0) +x_36 = !lean_is_exclusive(x_20); +if (x_36 == 0) { -return x_19; +return x_20; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_19, 0); -x_37 = lean_ctor_get(x_19, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_20, 0); +x_38 = lean_ctor_get(x_20, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_19); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_dec(x_20); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } else { -lean_object* x_39; lean_object* x_40; +lean_object* x_40; lean_object* x_41; lean_dec(x_3); -x_39 = lean_ctor_get(x_16, 1); -lean_inc(x_39); -lean_dec(x_16); -x_40 = lean_ctor_get(x_17, 0); +x_40 = lean_ctor_get(x_16, 1); lean_inc(x_40); +lean_dec(x_16); +x_41 = lean_ctor_get(x_17, 0); +lean_inc(x_41); lean_dec(x_17); -x_3 = x_40; -x_8 = x_39; +x_3 = x_41; +x_8 = x_40; goto _start; } } else { -uint8_t x_42; +uint8_t x_43; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -11786,44 +12601,44 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_16); -if (x_42 == 0) +x_43 = !lean_is_exclusive(x_16); +if (x_43 == 0) { return x_16; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_16, 0); -x_44 = lean_ctor_get(x_16, 1); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_16, 0); +x_45 = lean_ctor_get(x_16, 1); +lean_inc(x_45); lean_inc(x_44); -lean_inc(x_43); lean_dec(x_16); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } else { -lean_object* x_46; lean_object* x_47; +lean_object* x_47; lean_object* x_48; lean_dec(x_3); -x_46 = lean_ctor_get(x_13, 1); -lean_inc(x_46); -lean_dec(x_13); -x_47 = lean_ctor_get(x_14, 0); +x_47 = lean_ctor_get(x_13, 1); lean_inc(x_47); +lean_dec(x_13); +x_48 = lean_ctor_get(x_14, 0); +lean_inc(x_48); lean_dec(x_14); -x_3 = x_47; -x_8 = x_46; +x_3 = x_48; +x_8 = x_47; goto _start; } } else { -uint8_t x_49; +uint8_t x_50; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -11831,29 +12646,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_13); -if (x_49 == 0) +x_50 = !lean_is_exclusive(x_13); +if (x_50 == 0) { return x_13; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_13, 0); -x_51 = lean_ctor_get(x_13, 1); +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_13, 0); +x_52 = lean_ctor_get(x_13, 1); +lean_inc(x_52); lean_inc(x_51); -lean_inc(x_50); lean_dec(x_13); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } else { -uint8_t x_53; +uint8_t x_54; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -11861,33 +12676,33 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_53 = !lean_is_exclusive(x_9); -if (x_53 == 0) +x_54 = !lean_is_exclusive(x_9); +if (x_54 == 0) { -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_9, 0); -lean_dec(x_54); -x_55 = lean_box(0); -lean_ctor_set(x_9, 0, x_55); +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_9, 0); +lean_dec(x_55); +x_56 = lean_box(0); +lean_ctor_set(x_9, 0, x_56); return x_9; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_9, 1); -lean_inc(x_56); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_9, 1); +lean_inc(x_57); lean_dec(x_9); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -return x_58; +x_58 = lean_box(0); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +return x_59; } } } else { -uint8_t x_59; +uint8_t x_60; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -11895,23 +12710,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_59 = !lean_is_exclusive(x_9); -if (x_59 == 0) +x_60 = !lean_is_exclusive(x_9); +if (x_60 == 0) { return x_9; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_9, 0); -x_61 = lean_ctor_get(x_9, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_9, 0); +x_62 = lean_ctor_get(x_9, 1); +lean_inc(x_62); lean_inc(x_61); -lean_inc(x_60); lean_dec(x_9); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -return x_62; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } @@ -14174,43 +14989,7 @@ x_8 = l_Std_PersistentHashMap_insertAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___s return x_8; } } -static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Elab"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("definition"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__2; -x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__5() { +static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__1() { _start: { lean_object* x_1; @@ -14218,21 +14997,21 @@ x_1 = lean_mk_string("unfoldEqn"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__6() { +static lean_object* _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__4; -x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__5; +x_1 = l_Lean_Elab_Eqns_mkEqnTypes_go___closed__4; +x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__6; +x_2 = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -14327,6 +15106,38 @@ l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___lambda__1__ lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___lambda__1___closed__2); l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___closed__1); +l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__1 = _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__1(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__1); +l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2 = _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__2); +l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__3 = _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__3(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__3); +l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4 = _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__4); +l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__5 = _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__5(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__5); +l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6 = _init_l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6(); +lean_mark_persistent(l_Lean_addTrace___at_Lean_Elab_Eqns_mkEqnTypes_go___spec__2___closed__6); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__1 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__1(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__1); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__2 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__2(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__2); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__3 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__3(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__3); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__4 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__4(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__4); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__5 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__5(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__5); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__6 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__6(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__6); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__7 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__7(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__7); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__8 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__8(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__8); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__9 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__9(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__9); +l_Lean_Elab_Eqns_mkEqnTypes_go___closed__10 = _init_l_Lean_Elab_Eqns_mkEqnTypes_go___closed__10(); +lean_mark_persistent(l_Lean_Elab_Eqns_mkEqnTypes_go___closed__10); l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__1 = _init_l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__1(); lean_mark_persistent(l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__1); l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__2 = _init_l_Lean_Elab_Eqns_EqnsExtState_map___default___closed__2(); @@ -14337,9 +15148,9 @@ l_Lean_Elab_Eqns_EqnsExtState_map___default = _init_l_Lean_Elab_Eqns_EqnsExtStat lean_mark_persistent(l_Lean_Elab_Eqns_EqnsExtState_map___default); l_Lean_Elab_Eqns_instInhabitedEqnsExtState = _init_l_Lean_Elab_Eqns_instInhabitedEqnsExtState(); lean_mark_persistent(l_Lean_Elab_Eqns_instInhabitedEqnsExtState); -l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378____closed__1(); -lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378____closed__1); -if (builtin) {res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2378_(lean_io_mk_world()); +l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503____closed__1(); +lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503____closed__1); +if (builtin) {res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_2503_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Eqns_eqnsExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Eqns_eqnsExt); @@ -14386,7 +15197,7 @@ l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default = _init_l_Lean_Elab_Eqns_Unfold lean_mark_persistent(l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default); l_Lean_Elab_Eqns_instInhabitedUnfoldEqnExtState = _init_l_Lean_Elab_Eqns_instInhabitedUnfoldEqnExtState(); lean_mark_persistent(l_Lean_Elab_Eqns_instInhabitedUnfoldEqnExtState); -if (builtin) {res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3047_(lean_io_mk_world()); +if (builtin) {res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3172_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Eqns_unfoldEqnExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Eqns_unfoldEqnExt); @@ -14429,19 +15240,11 @@ l_Std_PersistentHashMap_insertAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__5 lean_mark_persistent(l_Std_PersistentHashMap_insertAux___at_Lean_Elab_Eqns_getUnfoldFor_x3f___spec__5___closed__1); l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__1 = _init_l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__1(); lean_mark_persistent(l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__1); -l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__1(); -lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__1); -l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__2 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__2(); -lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__2); -l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__3 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__3(); -lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__3); -l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__4 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__4(); -lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__4); -l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__5 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__5(); -lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__5); -l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__6 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__6(); -lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782____closed__6); -res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3782_(lean_io_mk_world()); +l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__1 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__1(); +lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__1); +l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__2 = _init_l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__2(); +lean_mark_persistent(l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908____closed__2); +res = l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_3908_(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/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index c552330932..7f6527b84c 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -27,6 +27,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__15(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__23___rarg(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_instInhabitedTerminationHints; lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -34,6 +35,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___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_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_mkSort(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__13___rarg(lean_object*); lean_object* l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(lean_object*); @@ -57,17 +59,21 @@ static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions__ lean_object* l_Lean_Elab_Structural_structuralRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___closed__1; LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__25(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__21(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__1___closed__4; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__4; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___lambda__1___boxed(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isApp(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__8; static lean_object* l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef___spec__1___rarg___closed__1; extern lean_object* l_Lean_Elab_abortCommandExceptionId; @@ -84,11 +90,14 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions lean_object* l_Lean_MessageData_ofList(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___lambda__1(lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__5; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*); @@ -98,7 +107,9 @@ uint8_t lean_usize_dec_lt(size_t, size_t); lean_object* l_Lean_Elab_WF_TerminationHint_markAsUsed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___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*); +extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___lambda__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___closed__1; @@ -109,15 +120,17 @@ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__1___closed__5; lean_object* l_Lean_Elab_addAndCompileUnsafe(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); +lean_object* l_Lean_Meta_transform___at_Lean_Meta_Match_unfoldNamedPattern___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Elab_addPreDefinitions___closed__7; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); 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_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__3; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Main___hyg_1814_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Main___hyg_1915_(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__17___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__6; +lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___closed__2; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_addPreDefinitions___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ResolveName_resolveNamespace_x3f(lean_object*, lean_object*, lean_object*, lean_object*); @@ -133,18 +146,21 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__10; lean_object* l_Lean_Meta_mkSorry(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___lambda__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_AssocList_contains___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__13(lean_object*, lean_object*); lean_object* l_Lean_Elab_expandMacroImpl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addPreDefinitions___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_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Data_Option_Basic_0__beqOption____x40_Init_Data_Option_Basic___hyg_800____at___private_Lean_Meta_Basic_0__Lean_Meta_beqInfoCacheKey____x40_Lean_Meta_Basic___hyg_341____spec__1(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMap_insert___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__12(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_headBeta(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__2(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_WF_expandTerminationBy(lean_object*, lean_object*, lean_object*, lean_object*); @@ -196,10 +212,12 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions size_t lean_usize_modn(size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___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* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isConst(lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_sccAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__10(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addPreDefinitions___closed__6; lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__1(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instMonadMetaM; lean_object* l_Lean_ResolveName_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); @@ -214,6 +232,7 @@ static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinit size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Elab_addAndCompilePartialRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isLambda(lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__8___rarg___closed__2; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_addPreDefinitions___closed__5; @@ -229,6 +248,7 @@ LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonR lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_addPreDefinitions___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -243,6 +263,8 @@ LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at___private_Lean_Elab_PreDefi static lean_object* l_Lean_Elab_addPreDefinitions___closed__4; static lean_object* l_Lean_Elab_addPreDefinitions___closed__8; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__5; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_wfRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_WF_TerminationBy_ensureAllUsed(lean_object*, lean_object*, lean_object*); @@ -286,6 +308,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitio lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__2(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__16___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_addPreDefinitions___lambda__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*); @@ -295,6 +318,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefi static lean_object* l_Lean_Elab_addPreDefinitions___closed__13; lean_object* l_Lean_Elab_WF_TerminationBy_find_x3f(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2; +lean_object* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_WF_expandTerminationHint___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -317,6 +341,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC_add___at__ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__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_Lean_Elab_addPreDefinitions___closed__12; lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x21(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__3(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___closed__4; @@ -3660,6 +3685,528 @@ lean_dec(x_1); return x_7; } } +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_eq(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, 3); +lean_inc(x_7); +lean_dec(x_6); +x_8 = l_Lean_Expr_constName_x21(x_1); +x_9 = lean_name_eq(x_7, x_8); +lean_dec(x_8); +lean_dec(x_7); +if (x_9 == 0) +{ +size_t x_10; size_t x_11; +x_10 = 1; +x_11 = lean_usize_add(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_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_usize_dec_eq(x_3, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_array_uget(x_2, x_3); +x_7 = l_Lean_Expr_getAppFn(x_6); +lean_dec(x_6); +x_8 = l_Lean_Expr_isConst(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_7); +x_9 = 1; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_array_get_size(x_1); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_lt(x_11, x_10); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_10); +lean_dec(x_7); +x_13 = 1; +return x_13; +} +else +{ +uint8_t x_14; +x_14 = lean_nat_dec_le(x_10, x_10); +if (x_14 == 0) +{ +uint8_t x_15; +lean_dec(x_10); +lean_dec(x_7); +x_15 = 1; +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_10); +lean_dec(x_10); +x_18 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__1(x_7, x_1, x_16, x_17); +lean_dec(x_7); +if (x_18 == 0) +{ +uint8_t x_19; +x_19 = 1; +return x_19; +} +else +{ +size_t x_20; size_t x_21; +x_20 = 1; +x_21 = lean_usize_add(x_3, x_20); +x_3 = x_21; +goto _start; +} +} +} +} +} +else +{ +uint8_t x_23; +x_23 = 0; +return x_23; +} +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_levelZero; +x_2 = l_Lean_mkSort(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = l_Lean_Expr_isApp(x_2); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_2); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} +else +{ +lean_object* x_11; uint8_t x_12; +x_11 = l_Lean_Expr_getAppFn(x_2); +x_12 = l_Lean_Expr_isLambda(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_2); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_7); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_15 = lean_unsigned_to_nat(0u); +x_16 = l_Lean_Expr_getAppNumArgsAux(x_2, x_15); +x_17 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___closed__1; +lean_inc(x_16); +x_18 = lean_mk_array(x_16, x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_16, x_19); +lean_dec(x_16); +lean_inc(x_2); +x_21 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_18, x_20); +x_22 = lean_array_get_size(x_21); +x_23 = lean_nat_dec_lt(x_15, x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_22); +lean_dec(x_21); +x_24 = l_Lean_Expr_headBeta(x_2); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_7); +return x_26; +} +else +{ +uint8_t x_27; +x_27 = lean_nat_dec_le(x_22, x_22); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_22); +lean_dec(x_21); +x_28 = l_Lean_Expr_headBeta(x_2); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_7); +return x_30; +} +else +{ +size_t x_31; size_t x_32; uint8_t x_33; +x_31 = 0; +x_32 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_33 = l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__2(x_1, x_21, x_31, x_32); +lean_dec(x_21); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = l_Lean_Expr_headBeta(x_2); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_7); +return x_36; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_2); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_7); +return x_38; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_7, 0, 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; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__2___boxed), 6, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3(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) { +_start: +{ +uint8_t x_10; +x_10 = lean_usize_dec_lt(x_3, x_2); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_4); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_array_uget(x_4, x_3); +x_13 = lean_unsigned_to_nat(0u); +x_14 = lean_array_uset(x_4, x_3, x_13); +x_15 = !lean_is_exclusive(x_12); +if (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; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +x_18 = lean_ctor_get(x_12, 2); +x_19 = lean_ctor_get(x_12, 3); +x_20 = lean_ctor_get(x_12, 4); +x_21 = lean_ctor_get(x_12, 5); +lean_inc(x_1); +x_22 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___boxed), 7, 1); +lean_closure_set(x_22, 0, x_1); +x_23 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___closed__1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_24 = l_Lean_Meta_transform___at_Lean_Meta_Match_unfoldNamedPattern___spec__1(x_21, x_22, x_23, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; size_t x_27; size_t x_28; lean_object* x_29; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_ctor_set(x_12, 5, x_25); +x_27 = 1; +x_28 = lean_usize_add(x_3, x_27); +x_29 = lean_array_uset(x_14, x_3, x_12); +x_3 = x_28; +x_4 = x_29; +x_9 = x_26; +goto _start; +} +else +{ +uint8_t x_31; +lean_free_object(x_12); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_24); +if (x_31 == 0) +{ +return x_24; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_24, 0); +x_33 = lean_ctor_get(x_24, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_24); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +lean_object* x_35; uint8_t 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; +x_35 = lean_ctor_get(x_12, 0); +x_36 = lean_ctor_get_uint8(x_12, sizeof(void*)*6); +x_37 = lean_ctor_get(x_12, 1); +x_38 = lean_ctor_get(x_12, 2); +x_39 = lean_ctor_get(x_12, 3); +x_40 = lean_ctor_get(x_12, 4); +x_41 = lean_ctor_get(x_12, 5); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_35); +lean_dec(x_12); +lean_inc(x_1); +x_42 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___boxed), 7, 1); +lean_closure_set(x_42, 0, x_1); +x_43 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___closed__1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_44 = l_Lean_Meta_transform___at_Lean_Meta_Match_unfoldNamedPattern___spec__1(x_41, x_42, x_43, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; size_t x_48; size_t x_49; lean_object* x_50; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_alloc_ctor(0, 6, 1); +lean_ctor_set(x_47, 0, x_35); +lean_ctor_set(x_47, 1, x_37); +lean_ctor_set(x_47, 2, x_38); +lean_ctor_set(x_47, 3, x_39); +lean_ctor_set(x_47, 4, x_40); +lean_ctor_set(x_47, 5, x_45); +lean_ctor_set_uint8(x_47, sizeof(void*)*6, x_36); +x_48 = 1; +x_49 = lean_usize_add(x_3, x_48); +x_50 = lean_array_uset(x_14, x_3, x_47); +x_3 = x_49; +x_4 = x_50; +x_9 = x_46; +goto _start; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_35); +lean_dec(x_14); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_52 = lean_ctor_get(x_44, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_44, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_44)) { + lean_ctor_release(x_44, 0); + lean_ctor_release(x_44, 1); + x_54 = x_44; +} else { + lean_dec_ref(x_44); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(1, 2, 0); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps(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; size_t x_8; size_t x_9; lean_object* x_10; +x_7 = lean_array_get_size(x_1); +x_8 = lean_usize_of_nat(x_7); +lean_dec(x_7); +x_9 = 0; +lean_inc(x_1); +x_10 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3(x_1, x_8, x_9, x_1, x_2, x_3, x_4, x_5, x_6); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__1___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___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__1(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_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___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; 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___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__2(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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___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, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___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_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +size_t x_10; size_t x_11; lean_object* x_12; +x_10 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1() { _start: { @@ -7733,203 +8280,183 @@ lean_inc(x_7); x_17 = l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__2(x_2, x_3, x_1, x_7, x_8, x_9, x_10, x_11, x_12, x_16); 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; size_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_object* x_18; lean_object* x_19; lean_object* x_20; x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs(x_18); -x_21 = lean_ctor_get(x_4, 0); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_20 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps(x_18, x_9, x_10, x_11, x_12, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; size_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -x_22 = lean_array_get_size(x_20); -x_23 = lean_usize_of_nat(x_22); -lean_dec(x_22); -lean_inc(x_20); -x_24 = l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__3(x_3, x_23, x_3, x_20); -lean_inc(x_24); -x_25 = lean_alloc_closure((void*)(l_Lean_Elab_WF_expandTerminationBy), 4, 2); -lean_closure_set(x_25, 0, x_21); -lean_closure_set(x_25, 1, x_24); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_26 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4(x_25, x_7, x_8, x_9, x_10, x_11, x_12, x_19); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_ctor_get(x_4, 1); -lean_inc(x_29); -lean_dec(x_4); -x_30 = lean_alloc_closure((void*)(l_Lean_Elab_WF_expandTerminationHint___boxed), 4, 2); -lean_closure_set(x_30, 0, x_29); -lean_closure_set(x_30, 1, x_24); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_31 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__9(x_30, x_7, x_8, x_9, x_10, x_11, x_12, x_28); -if (lean_obj_tag(x_31) == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_32); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_35 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18(x_5, x_5, x_6, x_3, x_20, x_23, x_3, x_34, x_7, x_8, x_9, x_10, x_11, x_12, x_33); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); lean_dec(x_20); +x_23 = l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs(x_21); +x_24 = lean_ctor_get(x_4, 0); +lean_inc(x_24); +x_25 = lean_array_get_size(x_23); +x_26 = lean_usize_of_nat(x_25); +lean_dec(x_25); +lean_inc(x_23); +x_27 = l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__3(x_3, x_26, x_3, x_23); +lean_inc(x_27); +x_28 = lean_alloc_closure((void*)(l_Lean_Elab_WF_expandTerminationBy), 4, 2); +lean_closure_set(x_28, 0, x_24); +lean_closure_set(x_28, 1, x_27); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_29 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4(x_28, x_7, x_8, x_9, x_10, x_11, x_12, x_22); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_ctor_get(x_4, 1); +lean_inc(x_32); +lean_dec(x_4); +x_33 = lean_alloc_closure((void*)(l_Lean_Elab_WF_expandTerminationHint___boxed), 4, 2); +lean_closure_set(x_33, 0, x_32); +lean_closure_set(x_33, 1, x_27); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_34 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__9(x_33, x_7, x_8, x_9, x_10, x_11, x_12, x_31); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +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_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 1, x_35); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_38 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18(x_5, x_5, x_6, x_3, x_23, x_26, x_3, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_36); +lean_dec(x_23); lean_dec(x_6); lean_dec(x_5); -if (lean_obj_tag(x_35) == 0) +if (lean_obj_tag(x_38) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = lean_ctor_get(x_36, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_36, 1); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_closure((void*)(l_Lean_Elab_WF_TerminationBy_ensureAllUsed), 3, 1); -lean_closure_set(x_40, 0, x_38); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_alloc_closure((void*)(l_Lean_Elab_WF_TerminationBy_ensureAllUsed), 3, 1); +lean_closure_set(x_43, 0, x_41); lean_inc(x_11); lean_inc(x_7); -x_41 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__19(x_40, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -if (lean_obj_tag(x_41) == 0) +x_44 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__19(x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_40); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = lean_alloc_closure((void*)(l_Lean_Elab_WF_TerminationHint_ensureAllUsed), 3, 1); -lean_closure_set(x_43, 0, x_39); -x_44 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__22(x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_42); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +x_46 = lean_alloc_closure((void*)(l_Lean_Elab_WF_TerminationHint_ensureAllUsed), 3, 1); +lean_closure_set(x_46, 0, x_42); +x_47 = l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__22(x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_45); lean_dec(x_12); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); +return x_47; +} +else +{ +uint8_t x_48; +lean_dec(x_42); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_48 = !lean_is_exclusive(x_44); +if (x_48 == 0) +{ return x_44; } else { -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_45 = !lean_is_exclusive(x_41); -if (x_45 == 0) -{ -return x_41; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_41, 0); -x_47 = lean_ctor_get(x_41, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_41); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -else -{ -uint8_t x_49; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_49 = !lean_is_exclusive(x_35); -if (x_49 == 0) -{ -return x_35; -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_35, 0); -x_51 = lean_ctor_get(x_35, 1); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_44, 0); +x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); -lean_dec(x_35); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +lean_inc(x_49); +lean_dec(x_44); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } else { -uint8_t x_53; -lean_dec(x_27); -lean_dec(x_20); +uint8_t x_52; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_53 = !lean_is_exclusive(x_31); -if (x_53 == 0) +x_52 = !lean_is_exclusive(x_38); +if (x_52 == 0) { -return x_31; +return x_38; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_31, 0); -x_55 = lean_ctor_get(x_31, 1); -lean_inc(x_55); +lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_38, 0); +x_54 = lean_ctor_get(x_38, 1); lean_inc(x_54); -lean_dec(x_31); -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_inc(x_53); +lean_dec(x_38); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } else { -uint8_t x_57; -lean_dec(x_24); -lean_dec(x_20); +uint8_t x_56; +lean_dec(x_30); +lean_dec(x_23); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -7938,30 +8465,31 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -lean_dec(x_4); -x_57 = !lean_is_exclusive(x_26); -if (x_57 == 0) +x_56 = !lean_is_exclusive(x_34); +if (x_56 == 0) { -return x_26; +return x_34; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_26, 0); -x_59 = lean_ctor_get(x_26, 1); -lean_inc(x_59); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_34, 0); +x_58 = lean_ctor_get(x_34, 1); lean_inc(x_58); -lean_dec(x_26); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +lean_inc(x_57); +lean_dec(x_34); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } else { -uint8_t x_61; +uint8_t x_60; +lean_dec(x_27); +lean_dec(x_23); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -7971,23 +8499,87 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_61 = !lean_is_exclusive(x_17); -if (x_61 == 0) +x_60 = !lean_is_exclusive(x_29); +if (x_60 == 0) +{ +return x_29; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_29, 0); +x_62 = lean_ctor_get(x_29, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_29); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_64 = !lean_is_exclusive(x_20); +if (x_64 == 0) +{ +return x_20; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_20, 0); +x_66 = lean_ctor_get(x_20, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_20); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_68 = !lean_is_exclusive(x_17); +if (x_68 == 0) { return x_17; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_17, 0); -x_63 = lean_ctor_get(x_17, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_17, 0); +x_70 = lean_ctor_get(x_17, 1); +lean_inc(x_70); +lean_inc(x_69); lean_dec(x_17); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } @@ -8497,7 +9089,7 @@ x_16 = l_Lean_Elab_addPreDefinitions___lambda__1(x_1, x_14, x_15, x_4, x_5, x_6, return x_16; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Main___hyg_1814_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Main___hyg_1915_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -8618,6 +9210,10 @@ l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDefinition_Main_0__Lea lean_mark_persistent(l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef___spec__1___rarg___closed__1); l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef___spec__1___rarg___closed__2 = _init_l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef___spec__1___rarg___closed__2(); lean_mark_persistent(l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_ensureNoUnassignedMVarsAtPreDef___spec__1___rarg___closed__2); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___lambda__1___closed__1); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_betaReduceLetRecApps___spec__3___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1); l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__2(); @@ -8718,7 +9314,7 @@ l_Lean_Elab_addPreDefinitions___closed__13 = _init_l_Lean_Elab_addPreDefinitions lean_mark_persistent(l_Lean_Elab_addPreDefinitions___closed__13); l_Lean_Elab_addPreDefinitions___boxed__const__1 = _init_l_Lean_Elab_addPreDefinitions___boxed__const__1(); lean_mark_persistent(l_Lean_Elab_addPreDefinitions___boxed__const__1); -res = l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Main___hyg_1814_(lean_io_mk_world()); +res = l_Lean_Elab_initFn____x40_Lean_Elab_PreDefinition_Main___hyg_1915_(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/PreDefinition/Structural/BRecOn.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c index 708e86dc45..fd9a674430 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/BRecOn.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.PreDefinition.Structural.BRecOn -// Imports: Init Lean.Meta.Match.Match Lean.Elab.RecAppSyntax Lean.Elab.PreDefinition.Structural.Basic +// Imports: Init Lean.Meta.Match.Match Lean.Elab.RecAppSyntax Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.Structural.Basic #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,12 +13,14 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__4; +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__8; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelow___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__3(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_array_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___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_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -29,21 +31,22 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); uint8_t l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___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___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__8; lean_object* lean_name_mk_string(lean_object*, lean_object*); +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__2; uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Array_append___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__7; lean_object* l_Lean_Meta_MatcherApp_addArg(lean_object*, lean_object*, 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*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__3; lean_object* l_Lean_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*); @@ -59,11 +62,13 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0 static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__3___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); uint8_t l_Lean_Elab_Structural_recArgHasLooseBVarsAt(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__19(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4(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_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__3; +lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__15___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4; static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__3___closed__2; -static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Structural_mkBRecOn___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__3___boxed(lean_object**); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -71,14 +76,15 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*) lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); -static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__5; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*); +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__3; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__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_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__3___closed__1; -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVars(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); @@ -86,14 +92,14 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0 LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_binductionOnSuffix; static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__6___closed__1; -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_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_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(lean_object*); -static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4; +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_zip___rarg(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__5; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__10___closed__3; static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___closed__1; @@ -102,38 +108,40 @@ uint8_t l_Array_contains___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getM lean_object* l_Lean_mkMData(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___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*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__2___closed__1; +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__3; static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_throwToBelowFailed___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__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*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__3; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__2___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__7___closed__2; lean_object* l_List_mapTRAux___at_Lean_MessageData_instCoeListExprMessageData___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___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*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13(lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__5; +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___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*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___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*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__2; lean_object* l_Lean_Expr_headBeta(lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___closed__2; +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___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*); -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict(lean_object*); @@ -141,6 +149,7 @@ static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinitio lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_throwToBelowFailed___rarg___closed__2; 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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_throwToBelowFailed___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_throwToBelowFailed___rarg___closed__1; @@ -151,21 +160,20 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0 lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__10; -lean_object* l_Lean_Elab_Structural_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__12; -static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__7___closed__1; -static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__2; lean_object* lean_array_to_list(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___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_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__6___boxed(lean_object**); +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l_Lean_Elab_Structural_mkBRecOn___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__6___closed__2; @@ -173,32 +181,37 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__3(lean_object lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___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_EXPORT lean_object* l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_MatcherApp_addArg___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___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*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__5(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_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__2___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__10___closed__2; lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__4; -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__8; +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__4; uint8_t lean_expr_eqv(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___closed__3; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__11; @@ -210,7 +223,9 @@ static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__10___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__4; lean_object* l_Lean_Name_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___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_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg___closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__9; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -218,73 +233,80 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0 LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__8(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* l_Lean_Meta_MatcherApp_toExpr(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__7; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___spec__1___rarg___closed__2; lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__5___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Structural_mkBRecOn___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Structural_mkBRecOn___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__9___closed__2; +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__5; lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__10___closed__1; static lean_object* l_Lean_Elab_Structural_mkBRecOn___closed__2; -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__4; lean_object* l_Lean_Meta_Match_MatcherInfo_arity(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__6; lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__5___closed__2; -lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__11; static lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__9___closed__1; lean_object* l_Lean_indentD(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_throwToBelowFailed___spec__1(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16(lean_object*); +static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__1; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(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* l_Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_brecOnSuffix; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Structural_mkBRecOn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__2; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___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*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__1___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__19___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Structural_RecArgInfo_recArgPos(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_level_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__3; +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__2; lean_object* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__12; lean_object* l_Lean_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkBRecOn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_refinedArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__5___closed__13; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__10; lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__6; uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__10___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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -1509,7 +1531,7 @@ lean_closure_set(x_22, 1, x_2); lean_closure_set(x_22, 2, x_3); lean_closure_set(x_22, 3, x_4); x_23 = 0; -x_24 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(x_20, x_23, x_16, x_22, x_7, x_8, x_9, x_10, x_21); +x_24 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__15___rarg(x_20, x_23, x_16, x_22, x_7, x_8, x_9, x_10, x_21); return x_24; } else @@ -1924,6 +1946,690 @@ x_10 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Struct return x_10; } } +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_9 = lean_infer_type(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +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_Meta_isExprDefEq(x_10, x_2, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 0); +lean_dec(x_16); +x_17 = 1; +x_18 = lean_box(x_17); +lean_ctor_set(x_12, 0, x_18); +return x_12; +} +else +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_dec(x_12); +x_20 = 1; +x_21 = lean_box(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_12); +if (x_23 == 0) +{ +lean_object* x_24; uint8_t x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_12, 0); +lean_dec(x_24); +x_25 = 0; +x_26 = lean_box(x_25); +lean_ctor_set(x_12, 0, x_26); +return x_12; +} +else +{ +lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_12, 1); +lean_inc(x_27); +lean_dec(x_12); +x_28 = 0; +x_29 = lean_box(x_28); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +} +else +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_12); +if (x_31 == 0) +{ +return x_12; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_12, 0); +x_33 = lean_ctor_get(x_12, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_12); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_35; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_35 = !lean_is_exclusive(x_9); +if (x_35 == 0) +{ +return x_9; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_9, 0); +x_37 = lean_ctor_get(x_9, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_9); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Meta"); +return x_1; +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("debug"); +return x_1; +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__2; +x_2 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("refinedArgType "); +return x_1; +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" =?= "); +return x_1; +} +} +static lean_object* _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +lean_dec(x_4); +x_10 = lean_array_get_size(x_3); +x_11 = lean_nat_dec_le(x_1, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_9); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_sub(x_1, x_15); +lean_dec(x_1); +x_17 = l_Lean_instInhabitedExpr; +x_18 = lean_array_get(x_17, x_3, x_16); +lean_dec(x_16); +lean_dec(x_3); +x_19 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__4; +x_45 = lean_st_ref_get(x_8, x_9); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_46, 3); +lean_inc(x_47); +lean_dec(x_46); +x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*1); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_49; uint8_t x_50; +x_49 = lean_ctor_get(x_45, 1); +lean_inc(x_49); +lean_dec(x_45); +x_50 = 0; +x_20 = x_50; +x_21 = x_49; +goto block_44; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_51 = lean_ctor_get(x_45, 1); +lean_inc(x_51); +lean_dec(x_45); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_19, x_5, x_6, x_7, x_8, x_51); +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_unbox(x_53); +lean_dec(x_53); +x_20 = x_55; +x_21 = x_54; +goto block_44; +} +block_44: +{ +if (x_20 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__1(x_18, x_2, x_22, x_5, x_6, x_7, x_8, x_21); +return x_23; +} +else +{ +lean_object* x_24; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_18); +x_24 = lean_infer_type(x_18, x_5, x_6, x_7, x_8, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 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; +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); +lean_inc(x_2); +x_27 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_27, 0, x_2); +x_28 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__6; +x_29 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +x_30 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__8; +x_31 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_32, 0, x_25); +x_33 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +x_34 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__12; +x_35 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_19, x_35, x_5, x_6, x_7, x_8, x_26); +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 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__1(x_18, x_2, x_37, x_5, x_6, x_7, x_8, x_38); +lean_dec(x_37); +return x_39; +} +else +{ +uint8_t x_40; +lean_dec(x_18); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_40 = !lean_is_exclusive(x_24); +if (x_40 == 0) +{ +return x_24; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_24, 0); +x_42 = lean_ctor_get(x_24, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_24); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1(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 = lean_usize_dec_eq(x_3, x_4); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_array_uget(x_2, x_3); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_1); +x_14 = lean_alloc_closure((void*)(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2), 9, 2); +lean_closure_set(x_14, 0, x_13); +lean_closure_set(x_14, 1, x_1); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_15 = l_Lean_Meta_lambdaTelescope___at_Lean_Meta_MatcherApp_addArg___spec__2___rarg(x_12, x_14, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; size_t x_19; size_t x_20; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = 1; +x_20 = lean_usize_add(x_3, x_19); +x_3 = x_20; +x_9 = x_18; +goto _start; +} +else +{ +uint8_t x_22; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_15); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_15, 0); +lean_dec(x_23); +x_24 = 1; +x_25 = lean_box(x_24); +lean_ctor_set(x_15, 0, x_25); +return x_15; +} +else +{ +lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_15, 1); +lean_inc(x_26); +lean_dec(x_15); +x_27 = 1; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_26); +return x_29; +} +} +} +else +{ +uint8_t x_30; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_15); +if (x_30 == 0) +{ +return x_15; +} +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); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_15); +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_object* x_35; lean_object* x_36; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_9); +return x_36; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_refinedArgType(lean_object* x_1, 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_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_8 = lean_infer_type(x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = lean_ctor_get(x_1, 7); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 6); +lean_inc(x_13); +lean_dec(x_1); +x_14 = l_Array_zip___rarg(x_12, x_13); +lean_dec(x_13); +lean_dec(x_12); +x_15 = lean_array_get_size(x_14); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_lt(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; lean_object* x_19; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_18 = 0; +x_19 = lean_box(x_18); +lean_ctor_set(x_8, 0, x_19); +return x_8; +} +else +{ +uint8_t x_20; +x_20 = lean_nat_dec_le(x_15, x_15); +if (x_20 == 0) +{ +uint8_t x_21; lean_object* x_22; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_21 = 0; +x_22 = lean_box(x_21); +lean_ctor_set(x_8, 0, x_22); +return x_8; +} +else +{ +size_t x_23; size_t x_24; lean_object* x_25; +lean_free_object(x_8); +x_23 = 0; +x_24 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_25 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1(x_10, x_14, x_23, x_24, x_3, x_4, x_5, x_6, x_11); +lean_dec(x_14); +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; lean_object* x_32; uint8_t x_33; +x_26 = lean_ctor_get(x_8, 0); +x_27 = lean_ctor_get(x_8, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_8); +x_28 = lean_ctor_get(x_1, 7); +lean_inc(x_28); +x_29 = lean_ctor_get(x_1, 6); +lean_inc(x_29); +lean_dec(x_1); +x_30 = l_Array_zip___rarg(x_28, x_29); +lean_dec(x_29); +lean_dec(x_28); +x_31 = lean_array_get_size(x_30); +x_32 = lean_unsigned_to_nat(0u); +x_33 = lean_nat_dec_lt(x_32, x_31); +if (x_33 == 0) +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_26); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_27); +return x_36; +} +else +{ +uint8_t x_37; +x_37 = lean_nat_dec_le(x_31, x_31); +if (x_37 == 0) +{ +uint8_t x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_26); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_38 = 0; +x_39 = lean_box(x_38); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_27); +return x_40; +} +else +{ +size_t x_41; size_t x_42; lean_object* x_43; +x_41 = 0; +x_42 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_43 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1(x_26, x_30, x_41, x_42, x_3, x_4, x_5, x_6, x_27); +lean_dec(x_30); +return x_43; +} +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) +{ +return x_8; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_8, 0); +x_46 = lean_ctor_get(x_8, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_8); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +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_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1(x_1, x_2, x_10, x_11, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_12; +} +} LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { @@ -3689,7 +4395,641 @@ return x_60; } } } -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__1() { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_5, x_4); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_6); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_array_uget(x_6, x_5); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_array_uset(x_6, x_5, x_16); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_18 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_1, x_2, x_3, x_15, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; +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 = 1; +x_22 = lean_usize_add(x_5, x_21); +x_23 = lean_array_uset(x_17, x_5, x_19); +x_5 = x_22; +x_6 = x_23; +x_12 = x_20; +goto _start; +} +else +{ +uint8_t x_25; +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_18); +if (x_25 == 0) +{ +return x_18; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_18, 0); +x_27 = lean_ctor_get(x_18, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_18); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +uint8_t x_17; +x_17 = lean_nat_dec_le(x_8, x_7); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_eq(x_6, x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_sub(x_6, x_20); +lean_dec(x_6); +x_22 = lean_nat_dec_eq(x_4, x_7); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_2, 3); +lean_inc(x_23); +x_24 = l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(x_23, x_7); +lean_dec(x_23); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = l_Lean_instInhabitedExpr; +x_26 = lean_array_get(x_25, x_5, x_7); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_27 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_1, x_2, x_3, x_26, x_11, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +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_array_push(x_10, x_28); +x_31 = lean_nat_add(x_7, x_9); +lean_dec(x_7); +x_6 = x_21; +x_7 = x_31; +x_10 = x_30; +x_16 = x_29; +goto _start; +} +else +{ +uint8_t x_33; +lean_dec(x_21); +lean_dec(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_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_27); +if (x_33 == 0) +{ +return x_27; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_27, 0); +x_35 = lean_ctor_get(x_27, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_27); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +else +{ +lean_object* x_37; +x_37 = lean_nat_add(x_7, x_9); +lean_dec(x_7); +x_6 = x_21; +x_7 = x_37; +goto _start; +} +} +else +{ +lean_object* x_39; +x_39 = lean_nat_add(x_7, x_9); +lean_dec(x_7); +x_6 = x_21; +x_7 = x_39; +goto _start; +} +} +else +{ +lean_object* x_41; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_10); +lean_ctor_set(x_41, 1, x_16); +return x_41; +} +} +else +{ +lean_object* x_42; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_10); +lean_ctor_set(x_42, 1, x_16); +return x_42; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_array_get_size(x_1); +x_15 = l_Array_extract___rarg(x_1, x_2, x_14); +x_16 = lean_array_get_size(x_15); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_unsigned_to_nat(1u); +x_19 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__1___closed__1; +lean_inc(x_16); +x_20 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_3, x_4, x_5, x_6, x_15, x_16, x_17, x_16, x_18, x_19, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_16); +lean_dec(x_15); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +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); +x_23 = l_Lean_mkAppN(x_7, x_22); +lean_ctor_set(x_20, 0, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_20, 0); +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_20); +x_26 = l_Lean_mkAppN(x_7, x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_7); +x_28 = !lean_is_exclusive(x_20); +if (x_28 == 0) +{ +return x_20; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_20, 0); +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_20); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_9); +x_16 = l_Lean_instInhabitedExpr; +x_17 = lean_array_get(x_16, x_1, x_2); +lean_dec(x_2); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_18 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_3, x_4, x_5, x_17, x_10, x_11, x_12, x_13, x_14, x_15); +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; +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_ctor_get(x_4, 6); +lean_inc(x_21); +x_22 = lean_array_get_size(x_21); +lean_dec(x_21); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_5); +x_23 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelow(x_5, x_22, x_19, x_11, x_12, x_13, x_14, x_20); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_8); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__1(x_1, x_6, x_3, x_4, x_5, x_7, x_24, x_10, x_11, x_12, x_13, x_14, x_25); +lean_dec(x_7); +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; uint8_t x_34; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_27 = lean_ctor_get(x_23, 1); +lean_inc(x_27); +lean_dec(x_23); +x_28 = l_Lean_indentExpr(x_8); +x_29 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__2___closed__2; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__12; +x_32 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__5(x_32, x_10, x_11, x_12, x_13, x_14, x_27); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) +{ +return x_33; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_33); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(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_1); +x_38 = !lean_is_exclusive(x_18); +if (x_38 == 0) +{ +return x_18; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_18, 0); +x_40 = lean_ctor_get(x_18, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_18); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_5) == 5) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_5, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_5, 1); +lean_inc(x_15); +lean_dec(x_5); +x_16 = lean_array_set(x_6, x_7, x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_7, x_17); +lean_dec(x_7); +x_5 = x_14; +x_6 = x_16; +x_7 = x_18; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_7); +x_20 = l_Lean_Expr_isConstOf(x_5, x_1); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_4); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_21 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop(x_1, x_2, x_3, x_5, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; +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_array_get_size(x_6); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_1, x_2, x_3, x_25, x_26, x_6, x_8, x_9, x_10, x_11, x_12, x_23); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +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); +x_30 = l_Lean_mkAppN(x_22, x_29); +lean_ctor_set(x_27, 0, x_30); +return x_27; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_27); +x_33 = l_Lean_mkAppN(x_22, x_31); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +uint8_t x_35; +lean_dec(x_22); +x_35 = !lean_is_exclusive(x_27); +if (x_35 == 0) +{ +return x_27; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_27, 0); +x_37 = lean_ctor_get(x_27, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_27); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_21); +if (x_39 == 0) +{ +return x_21; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_21, 0); +x_41 = lean_ctor_get(x_21, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_21); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +lean_dec(x_5); +x_43 = lean_ctor_get(x_2, 0); +lean_inc(x_43); +x_44 = lean_array_get_size(x_43); +lean_dec(x_43); +x_45 = lean_ctor_get(x_2, 2); +lean_inc(x_45); +x_46 = lean_nat_add(x_44, x_45); +x_47 = lean_array_get_size(x_6); +x_48 = lean_nat_dec_le(x_47, x_46); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_box(0); +x_50 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__2(x_6, x_46, x_1, x_2, x_3, x_44, x_45, x_4, x_49, x_8, x_9, x_10, x_11, x_12, x_13); +return x_50; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_44); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_51 = l_Lean_indentExpr(x_4); +x_52 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___closed__2; +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___closed__12; +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_throwError___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__6(x_55, 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); +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +return x_56; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_56, 0); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_56); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +} +} +} +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__1() { _start: { lean_object* x_1; @@ -3697,17 +5037,17 @@ x_1 = lean_mk_string("_traceMsg"); return x_1; } } -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2() { +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__1; +x_2 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__3() { +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__3() { _start: { lean_object* x_1; @@ -3715,16 +5055,16 @@ x_1 = lean_mk_string("["); return x_1; } } -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4() { +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__3; +x_1 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__5() { +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__5() { _start: { lean_object* x_1; @@ -3732,16 +5072,16 @@ x_1 = lean_mk_string("] "); return x_1; } } -static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6() { +static lean_object* _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__5; +x_1 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -3772,15 +5112,15 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; x_21 = lean_ctor_get(x_16, 0); -x_22 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2; +x_22 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2; x_23 = l_Lean_Name_append(x_1, x_22); x_24 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_24, 0, x_1); -x_25 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4; +x_25 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -x_27 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6; +x_27 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6; x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -3831,15 +5171,15 @@ x_42 = lean_ctor_get_uint8(x_16, sizeof(void*)*1); x_43 = lean_ctor_get(x_16, 0); lean_inc(x_43); lean_dec(x_16); -x_44 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2; +x_44 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2; x_45 = l_Lean_Name_append(x_1, x_44); x_46 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_46, 0, x_1); -x_47 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4; +x_47 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4; x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_47); lean_ctor_set(x_48, 1, x_46); -x_49 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6; +x_49 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6; x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); @@ -3904,15 +5244,15 @@ if (lean_is_exclusive(x_16)) { lean_dec_ref(x_16); x_68 = lean_box(0); } -x_69 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2; +x_69 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2; x_70 = l_Lean_Name_append(x_1, x_69); x_71 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_71, 0, x_1); -x_72 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4; +x_72 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4; x_73 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_73, 0, x_72); lean_ctor_set(x_73, 1, x_71); -x_74 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6; +x_74 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6; x_75 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_75, 0, x_73); lean_ctor_set(x_75, 1, x_74); @@ -3966,7 +5306,7 @@ return x_88; } } } -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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) { _start: { lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; @@ -3979,7 +5319,7 @@ lean_ctor_set(x_11, 1, x_7); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___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_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___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; @@ -3987,11 +5327,11 @@ x_10 = lean_apply_8(x_1, x_3, x_4, x_2, x_5, x_6, x_7, x_8, x_9); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___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_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___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; uint8_t x_10; lean_object* x_11; -x_9 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg___lambda__1), 9, 2); +x_9 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg___lambda__1), 9, 2); lean_closure_set(x_9, 0, x_2); lean_closure_set(x_9, 1, x_3); x_10 = 0; @@ -4042,15 +5382,15 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg), 8, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg), 8, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -4109,7 +5449,7 @@ return x_26; } } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__1() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -4117,16 +5457,16 @@ x_1 = lean_mk_string("unexpected matcher application alternative"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__2() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__1; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__3() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -4134,16 +5474,16 @@ x_1 = lean_mk_string("\nat application"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__4() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__3; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; uint8_t x_16; @@ -4159,11 +5499,11 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); x_17 = l_Lean_indentExpr(x_6); -x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__2; +x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__2; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__4; +x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__4; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -4206,12 +5546,12 @@ lean_object* x_31; lean_object* x_32; lean_dec(x_7); lean_dec(x_6); x_31 = lean_box(0); -x_32 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__1(x_1, x_2, x_3, x_4, x_5, x_31, x_9, x_10, x_11, x_12, x_13, x_14); +x_32 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__1(x_1, x_2, x_3, x_4, x_5, x_31, x_9, x_10, x_11, x_12, x_13, x_14); return x_32; } } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__1() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -4219,16 +5559,16 @@ x_1 = lean_mk_string("altNumParams: "); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__2() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__1; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__3() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__3() { _start: { lean_object* x_1; @@ -4236,16 +5576,16 @@ x_1 = lean_mk_string(", xs: "); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__4() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__3; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { uint8_t x_15; lean_object* x_16; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; @@ -4275,7 +5615,7 @@ x_44 = lean_ctor_get(x_38, 1); lean_inc(x_44); lean_dec(x_38); lean_inc(x_6); -x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_6, x_9, x_10, x_11, x_12, x_13, x_44); +x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_6, x_9, x_10, x_11, x_12, x_13, x_44); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -4294,7 +5634,7 @@ if (x_15 == 0) lean_object* x_17; lean_object* x_18; lean_dec(x_6); x_17 = lean_box(0); -x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2(x_1, x_7, x_2, x_3, x_8, x_4, x_5, x_17, x_9, x_10, x_11, x_12, x_13, x_16); +x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2(x_1, x_7, x_2, x_3, x_8, x_4, x_5, x_17, x_9, x_10, x_11, x_12, x_13, x_16); lean_dec(x_1); return x_18; } @@ -4307,11 +5647,11 @@ 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_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__2; +x_22 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__2; x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__4; +x_24 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__4; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); @@ -4328,20 +5668,20 @@ x_31 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Struct x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_6, x_32, x_9, x_10, x_11, x_12, x_13, x_16); +x_33 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_6, x_32, x_9, x_10, x_11, x_12, x_13, x_16); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); lean_dec(x_33); -x_36 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2(x_1, x_7, x_2, x_3, x_8, x_4, x_5, x_34, x_9, x_10, x_11, x_12, x_13, x_35); +x_36 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2(x_1, x_7, x_2, x_3, x_8, x_4, x_5, x_34, x_9, x_10, x_11, x_12, x_13, x_35); lean_dec(x_1); return x_36; } } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(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* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17(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* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -4379,7 +5719,7 @@ lean_inc(x_3); lean_inc(x_19); lean_inc(x_2); lean_inc(x_1); -x_21 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3), 14, 6); +x_21 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3), 14, 6); lean_closure_set(x_21, 0, x_20); lean_closure_set(x_21, 1, x_1); lean_closure_set(x_21, 2, x_2); @@ -4391,7 +5731,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_22 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg(x_19, x_21, x_8, x_9, x_10, x_11, x_12, x_13); +x_22 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(x_19, x_21, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; @@ -4443,7 +5783,7 @@ return x_32; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___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_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___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; @@ -4451,11 +5791,11 @@ x_9 = lean_apply_7(x_1, x_3, x_2, x_4, x_5, x_6, x_7, x_8); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg___lambda__1), 8, 2); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg___lambda__1), 8, 2); lean_closure_set(x_11, 0, x_4); lean_closure_set(x_11, 1, x_5); x_12 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(x_1, x_2, x_3, x_11, x_6, x_7, x_8, x_9, x_10); @@ -4505,19 +5845,19 @@ return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg___boxed), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg___boxed), 10, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__19___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg___lambda__1), 8, 2); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg___lambda__1), 8, 2); lean_closure_set(x_11, 0, x_4); lean_closure_set(x_11, 1, x_5); x_12 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(x_1, x_2, x_3, x_11, x_6, x_7, x_8, x_9, x_10); @@ -4567,11 +5907,11 @@ return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__19(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg), 10, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__19___rarg), 10, 0); return x_2; } } @@ -4627,6 +5967,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0 _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_7); +lean_inc(x_2); x_14 = lean_alloc_closure((void*)(l_Lean_Meta_MatcherApp_addArg), 7, 2); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_2); @@ -4638,194 +5980,237 @@ lean_inc(x_9); x_16 = l_Lean_Meta_mapErrorImp___rarg(x_14, x_15, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_2); +lean_inc(x_17); +x_19 = l_Lean_Elab_Structural_refinedArgType(x_17, x_2, x_9, x_10, x_11, x_12, x_18); +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; size_t x_31; size_t x_32; lean_object* x_33; -x_20 = lean_ctor_get(x_17, 0); -x_21 = lean_ctor_get(x_17, 1); -x_22 = lean_ctor_get(x_17, 2); -x_23 = lean_ctor_get(x_17, 3); -x_24 = lean_ctor_get(x_17, 4); -x_25 = lean_ctor_get(x_17, 5); -x_26 = lean_ctor_get(x_17, 6); -x_27 = lean_ctor_get(x_17, 7); -x_28 = lean_ctor_get(x_17, 8); -x_29 = l_Array_zip___rarg(x_27, x_26); -lean_dec(x_27); -x_30 = lean_array_get_size(x_29); -x_31 = lean_usize_of_nat(x_30); -lean_dec(x_30); -x_32 = 0; -x_33 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_3, x_4, x_5, x_6, x_31, x_32, x_29, x_8, x_9, x_10, x_11, x_12, x_18); -if (lean_obj_tag(x_33) == 0) -{ -uint8_t x_34; -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -lean_ctor_set(x_17, 7, x_35); -x_36 = l_Lean_Meta_MatcherApp_toExpr(x_17); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_37 = lean_ctor_get(x_33, 0); -x_38 = lean_ctor_get(x_33, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_33); -lean_ctor_set(x_17, 7, x_37); -x_39 = l_Lean_Meta_MatcherApp_toExpr(x_17); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; -} -} -else -{ -uint8_t x_41; -lean_free_object(x_17); -lean_dec(x_28); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_22); -lean_dec(x_21); +lean_object* x_20; uint8_t x_21; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_unbox(x_20); lean_dec(x_20); -x_41 = !lean_is_exclusive(x_33); -if (x_41 == 0) +if (x_21 == 0) { -return x_33; +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_17); +lean_dec(x_6); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_Expr_getAppNumArgsAux(x_3, x_23); +x_25 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_toBelowAux___lambda__4___closed__1; +lean_inc(x_24); +x_26 = lean_mk_array(x_24, x_25); +x_27 = lean_unsigned_to_nat(1u); +x_28 = lean_nat_sub(x_24, x_27); +lean_dec(x_24); +lean_inc(x_3); +x_29 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13(x_4, x_5, x_2, x_3, x_3, x_26, x_28, x_8, x_9, x_10, x_11, x_12, x_22); +return x_29; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_33, 0); -x_43 = lean_ctor_get(x_33, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_33); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} +lean_object* x_30; uint8_t x_31; +lean_dec(x_2); +x_30 = lean_ctor_get(x_19, 1); +lean_inc(x_30); +lean_dec(x_19); +x_31 = !lean_is_exclusive(x_17); +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; size_t x_43; size_t x_44; lean_object* x_45; +x_32 = lean_ctor_get(x_17, 0); +x_33 = lean_ctor_get(x_17, 1); +x_34 = lean_ctor_get(x_17, 2); +x_35 = lean_ctor_get(x_17, 3); +x_36 = lean_ctor_get(x_17, 4); +x_37 = lean_ctor_get(x_17, 5); +x_38 = lean_ctor_get(x_17, 6); +x_39 = lean_ctor_get(x_17, 7); +x_40 = lean_ctor_get(x_17, 8); +x_41 = l_Array_zip___rarg(x_39, x_38); +lean_dec(x_39); +x_42 = lean_array_get_size(x_41); +x_43 = lean_usize_of_nat(x_42); +lean_dec(x_42); +x_44 = 0; +x_45 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17(x_4, x_5, x_3, x_6, x_43, x_44, x_41, x_8, x_9, x_10, x_11, x_12, x_30); +if (lean_obj_tag(x_45) == 0) +{ +uint8_t x_46; +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_45, 0); +lean_ctor_set(x_17, 7, x_47); +x_48 = l_Lean_Meta_MatcherApp_toExpr(x_17); +lean_ctor_set(x_45, 0, x_48); +return x_45; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; size_t x_56; size_t x_57; lean_object* x_58; -x_45 = lean_ctor_get(x_17, 0); -x_46 = lean_ctor_get(x_17, 1); -x_47 = lean_ctor_get(x_17, 2); -x_48 = lean_ctor_get(x_17, 3); -x_49 = lean_ctor_get(x_17, 4); -x_50 = lean_ctor_get(x_17, 5); -x_51 = lean_ctor_get(x_17, 6); -x_52 = lean_ctor_get(x_17, 7); -x_53 = lean_ctor_get(x_17, 8); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = lean_ctor_get(x_45, 0); +x_50 = lean_ctor_get(x_45, 1); lean_inc(x_50); lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_17); -x_54 = l_Array_zip___rarg(x_52, x_51); -lean_dec(x_52); -x_55 = lean_array_get_size(x_54); -x_56 = lean_usize_of_nat(x_55); -lean_dec(x_55); -x_57 = 0; -x_58 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_3, x_4, x_5, x_6, x_56, x_57, x_54, x_8, x_9, x_10, x_11, x_12, x_18); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_61 = x_58; -} else { - lean_dec_ref(x_58); - x_61 = lean_box(0); -} -x_62 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_62, 0, x_45); -lean_ctor_set(x_62, 1, x_46); -lean_ctor_set(x_62, 2, x_47); -lean_ctor_set(x_62, 3, x_48); -lean_ctor_set(x_62, 4, x_49); -lean_ctor_set(x_62, 5, x_50); -lean_ctor_set(x_62, 6, x_51); -lean_ctor_set(x_62, 7, x_59); -lean_ctor_set(x_62, 8, x_53); -x_63 = l_Lean_Meta_MatcherApp_toExpr(x_62); -if (lean_is_scalar(x_61)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_61; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_60); -return x_64; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -lean_dec(x_53); -lean_dec(x_51); -lean_dec(x_50); -lean_dec(x_49); -lean_dec(x_48); -lean_dec(x_47); -lean_dec(x_46); lean_dec(x_45); -x_65 = lean_ctor_get(x_58, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_58, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_67 = x_58; -} else { - lean_dec_ref(x_58); - x_67 = lean_box(0); +lean_ctor_set(x_17, 7, x_49); +x_51 = l_Lean_Meta_MatcherApp_toExpr(x_17); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(1, 2, 0); -} else { - x_68 = x_67; } -lean_ctor_set(x_68, 0, x_65); -lean_ctor_set(x_68, 1, x_66); -return x_68; +else +{ +uint8_t x_53; +lean_free_object(x_17); +lean_dec(x_40); +lean_dec(x_38); +lean_dec(x_37); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_33); +lean_dec(x_32); +x_53 = !lean_is_exclusive(x_45); +if (x_53 == 0) +{ +return x_45; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_45, 0); +x_55 = lean_ctor_get(x_45, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_45); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; } } } else { -uint8_t x_69; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; size_t x_68; size_t x_69; lean_object* x_70; +x_57 = lean_ctor_get(x_17, 0); +x_58 = lean_ctor_get(x_17, 1); +x_59 = lean_ctor_get(x_17, 2); +x_60 = lean_ctor_get(x_17, 3); +x_61 = lean_ctor_get(x_17, 4); +x_62 = lean_ctor_get(x_17, 5); +x_63 = lean_ctor_get(x_17, 6); +x_64 = lean_ctor_get(x_17, 7); +x_65 = lean_ctor_get(x_17, 8); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_17); +x_66 = l_Array_zip___rarg(x_64, x_63); +lean_dec(x_64); +x_67 = lean_array_get_size(x_66); +x_68 = lean_usize_of_nat(x_67); +lean_dec(x_67); +x_69 = 0; +x_70 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17(x_4, x_5, x_3, x_6, x_68, x_69, x_66, x_8, x_9, x_10, x_11, x_12, x_30); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_73 = x_70; +} else { + lean_dec_ref(x_70); + x_73 = lean_box(0); +} +x_74 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_74, 0, x_57); +lean_ctor_set(x_74, 1, x_58); +lean_ctor_set(x_74, 2, x_59); +lean_ctor_set(x_74, 3, x_60); +lean_ctor_set(x_74, 4, x_61); +lean_ctor_set(x_74, 5, x_62); +lean_ctor_set(x_74, 6, x_63); +lean_ctor_set(x_74, 7, x_71); +lean_ctor_set(x_74, 8, x_65); +x_75 = l_Lean_Meta_MatcherApp_toExpr(x_74); +if (lean_is_scalar(x_73)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_73; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_72); +return x_76; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_65); +lean_dec(x_63); +lean_dec(x_62); +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_57); +x_77 = lean_ctor_get(x_70, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_70, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_79 = x_70; +} else { + lean_dec_ref(x_70); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(1, 2, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +return x_80; +} +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_17); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -4835,23 +6220,57 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_69 = !lean_is_exclusive(x_16); -if (x_69 == 0) +lean_dec(x_2); +x_81 = !lean_is_exclusive(x_19); +if (x_81 == 0) +{ +return x_19; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_19, 0); +x_83 = lean_ctor_get(x_19, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_19); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +else +{ +uint8_t x_85; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_85 = !lean_is_exclusive(x_16); +if (x_85 == 0) { return x_16; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_16, 0); -x_71 = lean_ctor_get(x_16, 1); -lean_inc(x_71); -lean_inc(x_70); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_16, 0); +x_87 = lean_ctor_get(x_16, 1); +lean_inc(x_87); +lean_inc(x_86); lean_dec(x_16); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; } } } @@ -5147,7 +6566,7 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint x_64 = lean_ctor_get(x_58, 1); lean_inc(x_64); lean_dec(x_58); -x_65 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_32, x_5, x_6, x_7, x_8, x_9, x_64); +x_65 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_32, x_5, x_6, x_7, x_8, x_9, x_64); x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); x_67 = lean_ctor_get(x_65, 1); @@ -5165,7 +6584,7 @@ if (x_33 == 0) { lean_object* x_35; lean_object* x_36; x_35 = lean_box(0); -x_36 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__2(x_22, x_3, x_1, x_2, x_4, x_32, x_35, x_5, x_6, x_7, x_8, x_9, x_34); +x_36 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__2(x_22, x_3, x_4, x_1, x_2, x_32, x_35, x_5, x_6, x_7, x_8, x_9, x_34); return x_36; } else @@ -5205,14 +6624,13 @@ x_47 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Struct x_48 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_32, x_48, x_5, x_6, x_7, x_8, x_9, x_39); +x_49 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_32, x_48, x_5, x_6, x_7, x_8, x_9, x_39); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_49, 1); lean_inc(x_51); lean_dec(x_49); -x_52 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__2(x_22, x_3, x_1, x_2, x_4, x_32, x_50, x_5, x_6, x_7, x_8, x_9, x_51); -lean_dec(x_50); +x_52 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__2(x_22, x_3, x_4, x_1, x_2, x_32, x_50, x_5, x_6, x_7, x_8, x_9, x_51); return x_52; } else @@ -5286,7 +6704,7 @@ lean_closure_set(x_77, 0, x_71); lean_closure_set(x_77, 1, x_1); lean_closure_set(x_77, 2, x_2); lean_closure_set(x_77, 3, x_3); -x_78 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg(x_69, x_76, x_74, x_77, x_5, x_6, x_7, x_8, x_9, x_75); +x_78 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg(x_69, x_76, x_74, x_77, x_5, x_6, x_7, x_8, x_9, x_75); return x_78; } else @@ -5356,7 +6774,7 @@ lean_closure_set(x_91, 0, x_85); lean_closure_set(x_91, 1, x_1); lean_closure_set(x_91, 2, x_2); lean_closure_set(x_91, 3, x_3); -x_92 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg(x_83, x_90, x_88, x_91, x_5, x_6, x_7, x_8, x_9, x_89); +x_92 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg(x_83, x_90, x_88, x_91, x_5, x_6, x_7, x_8, x_9, x_89); return x_92; } else @@ -5443,7 +6861,7 @@ lean_closure_set(x_107, 0, x_100); lean_closure_set(x_107, 1, x_1); lean_closure_set(x_107, 2, x_2); lean_closure_set(x_107, 3, x_3); -x_108 = l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(x_97, x_102, x_105, x_107, x_5, x_6, x_7, x_8, x_9, x_106); +x_108 = l_Lean_Meta_withLetDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__19___rarg(x_97, x_102, x_105, x_107, x_5, x_6, x_7, x_8, x_9, x_106); return x_108; } else @@ -5655,7 +7073,7 @@ lean_object* x_148; lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_148 = l_Lean_Elab_Structural_ensureNoRecFn(x_1, x_4, x_6, x_7, x_8, x_9, x_10); +x_148 = l_Lean_Elab_ensureNoRecFn(x_1, x_4, x_6, x_7, x_8, x_9, x_10); return x_148; } } @@ -5787,11 +7205,44 @@ lean_dec(x_6); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_14 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_15 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_1, x_2, x_3, x_13, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; +x_17 = l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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, x_13, x_14, x_15, x_16); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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) { _start: { lean_object* x_9; -x_9 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -5800,11 +7251,11 @@ lean_dec(x_3); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(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); @@ -5813,26 +7264,26 @@ lean_dec(x_2); return x_8; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___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_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___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_6); lean_dec(x_1); return x_13; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; -x_15 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_15 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); lean_dec(x_1); return x_15; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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* x_12, lean_object* x_13) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -5840,29 +7291,20 @@ x_14 = lean_unbox_usize(x_5); lean_dec(x_5); x_15 = lean_unbox_usize(x_6); lean_dec(x_6); -x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_16; } } -LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___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_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_2); lean_dec(x_2); -x_12 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__18___rarg(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); return x_12; } } -LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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: -{ -lean_object* x_14; -x_14 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_7); -return x_14; -} -} LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___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) { _start: { @@ -5894,7 +7336,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Struc _start: { lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg___lambda__1), 9, 2); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg___lambda__1), 9, 2); lean_closure_set(x_10, 0, x_3); lean_closure_set(x_10, 1, x_4); x_11 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(x_1, x_2, x_10, x_5, x_6, x_7, x_8, x_9); @@ -6310,7 +7752,7 @@ x_44 = lean_ctor_get(x_38, 1); lean_inc(x_44); lean_dec(x_38); lean_inc(x_9); -x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_9, x_12, x_13, x_14, x_15, x_16, x_44); +x_45 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_9, x_12, x_13, x_14, x_15, x_16, x_44); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -6346,7 +7788,7 @@ x_31 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Struct x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_9, x_32, x_12, x_13, x_14, x_15, x_16, x_25); +x_33 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_9, x_32, x_12, x_13, x_14, x_15, x_16, x_25); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -6463,7 +7905,7 @@ x_37 = lean_ctor_get(x_31, 1); lean_inc(x_37); lean_dec(x_31); lean_inc(x_8); -x_38 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_8, x_11, x_12, x_13, x_14, x_15, x_37); +x_38 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_8, x_11, x_12, x_13, x_14, x_15, x_37); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); @@ -6499,7 +7941,7 @@ x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); lean_inc(x_8); -x_26 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_8, x_25, x_11, x_12, x_13, x_14, x_15, x_18); +x_26 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_8, x_25, x_11, x_12, x_13, x_14, x_15, x_18); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); @@ -6627,7 +8069,7 @@ x_49 = lean_ctor_get(x_43, 1); lean_inc(x_49); lean_dec(x_43); lean_inc(x_8); -x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_8, x_12, x_13, x_14, x_15, x_16, x_49); +x_50 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_8, x_12, x_13, x_14, x_15, x_16, x_49); x_51 = lean_ctor_get(x_50, 0); lean_inc(x_51); x_52 = lean_ctor_get(x_50, 1); @@ -6663,7 +8105,7 @@ x_37 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_37, 0, x_35); lean_ctor_set(x_37, 1, x_36); lean_inc(x_8); -x_38 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_8, x_37, x_12, x_13, x_14, x_15, x_16, x_30); +x_38 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_8, x_37, x_12, x_13, x_14, x_15, x_16, x_30); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); x_40 = lean_ctor_get(x_38, 1); @@ -6812,7 +8254,7 @@ x_43 = lean_ctor_get(x_38, 1); lean_inc(x_43); lean_dec(x_38); lean_inc(x_7); -x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_7, x_11, x_12, x_13, x_14, x_15, x_43); +x_44 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_7, x_11, x_12, x_13, x_14, x_15, x_43); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -6848,7 +8290,7 @@ x_32 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); lean_inc(x_7); -x_33 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_7, x_32, x_11, x_12, x_13, x_14, x_15, x_25); +x_33 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_7, x_32, x_11, x_12, x_13, x_14, x_15, x_25); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -7071,7 +8513,7 @@ x_42 = lean_ctor_get(x_37, 1); lean_inc(x_42); lean_dec(x_37); lean_inc(x_7); -x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_7, x_9, x_10, x_11, x_12, x_13, x_42); +x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_7, x_9, x_10, x_11, x_12, x_13, x_42); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -7107,7 +8549,7 @@ x_31 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_31, 0, x_29); lean_ctor_set(x_31, 1, x_30); lean_inc(x_7); -x_32 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_7, x_31, x_9, x_10, x_11, x_12, x_13, x_24); +x_32 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_7, x_31, x_9, x_10, x_11, x_12, x_13, x_24); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -7316,7 +8758,7 @@ x_54 = lean_ctor_get(x_23, 1); lean_inc(x_54); lean_dec(x_23); lean_inc(x_4); -x_55 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_4, x_6, x_7, x_8, x_9, x_10, x_54); +x_55 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_4, x_6, x_7, x_8, x_9, x_10, x_54); x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); @@ -7368,7 +8810,7 @@ x_43 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_43, 0, x_41); lean_ctor_set(x_43, 1, x_42); lean_inc(x_4); -x_44 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_4, x_43, x_6, x_7, x_8, x_9, x_10, x_26); +x_44 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_4, x_43, x_6, x_7, x_8, x_9, x_10, x_26); x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); x_46 = lean_ctor_get(x_44, 1); @@ -7460,7 +8902,7 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint x_31 = lean_ctor_get(x_25, 1); lean_inc(x_31); lean_dec(x_25); -x_32 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__12(x_10, x_4, x_5, x_6, x_7, x_8, x_31); +x_32 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__15(x_10, x_4, x_5, x_6, x_7, x_8, x_31); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); @@ -7495,7 +8937,7 @@ x_18 = l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Struct x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_17); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11(x_10, x_19, x_4, x_5, x_6, x_7, x_8, x_12); +x_20 = l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14(x_10, x_19, x_4, x_5, x_6, x_7, x_8, x_12); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); @@ -7615,6 +9057,7 @@ return x_18; lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Match_Match(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_RecAppSyntax(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_PreDefinition_Structural_Basic(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_PreDefinition_Structural_BRecOn(uint8_t builtin, lean_object* w) { @@ -7630,6 +9073,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_RecAppSyntax(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_PreDefinition_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Elab_PreDefinition_Structural_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -7703,6 +9149,22 @@ l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_wi lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg___closed__1); l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg___closed__2(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_withBelowDict___rarg___closed__2); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__1 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__1); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__2 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__2); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__3 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__3(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__3); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__4 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__4(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__4); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__5 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__5(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__5); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__6 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__6(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__6); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__7 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__7(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__7); +l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__8 = _init_l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__8(); +lean_mark_persistent(l_Array_anyMUnsafe_any___at_Lean_Elab_Structural_refinedArgType___spec__1___lambda__2___closed__8); l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__1___closed__1 = _init_l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__1___closed__1); l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__2___closed__1 = _init_l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___lambda__2___closed__1(); @@ -7713,34 +9175,34 @@ l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_ lean_mark_persistent(l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___closed__1); l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___closed__2 = _init_l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___closed__2(); lean_mark_persistent(l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__7___closed__2); -l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__1(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__1); -l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__2); -l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__3 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__3(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__3); -l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__4); -l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__5 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__5(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__5); -l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6(); -lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__11___closed__6); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__1); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__2(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__2); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__3 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__3(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__3); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__4(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__2___closed__4); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__1); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__2(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__2); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__3 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__3(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__3); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__4(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___lambda__3___closed__4); +l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__1 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__1(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__1); +l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__2); +l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__3 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__3(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__3); +l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__4); +l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__5 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__5(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__5); +l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6 = _init_l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6(); +lean_mark_persistent(l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__14___closed__6); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__1); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__2); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__3 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__3); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__2___closed__4); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__1); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__2); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__3 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__3); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__17___lambda__3___closed__4); l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__1); l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Basic.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Basic.c index 7cf82aa30f..a95243a5ca 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Basic.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Basic.c @@ -16,45 +16,30 @@ extern "C" { LEAN_EXPORT lean_object* l_Lean_Elab_Structural_recArgHasLooseBVarsAt___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Structural_recArgHasLooseBVarsAt___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__4; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Structural_recArgHasLooseBVarsAt(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_RecArgInfo_recArgPos___boxed(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___lambda__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Structural_instInhabitedM___spec__1(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_ensureNoRecFn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Structural_instInhabitedM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_forEachExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_instInhabitedM___closed__2; static lean_object* l_Lean_Elab_Structural_instInhabitedM___closed__1; lean_object* lean_st_mk_ref(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_recArgHasLooseBVarsAt___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Structural_instInhabitedM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___boxed(lean_object*, lean_object*); -uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__2; -LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_State_addMatchers___default; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_run(lean_object*); -static lean_object* l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_RecArgInfo_recArgPos(lean_object*); -lean_object* l_Lean_indentExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_instInhabitedM(lean_object*); static lean_object* l_Lean_Elab_Structural_State_addMatchers___default___closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -361,212 +346,6 @@ x_5 = lean_box(x_4); return x_5; } } -LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; -x_3 = l_Lean_Expr_isConstOf(x_2, x_1); -return x_3; -} -} -LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___lambda__1___boxed), 2, 1); -lean_closure_set(x_3, 0, x_1); -x_4 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_3, x_2); -if (lean_obj_tag(x_4) == 0) -{ -uint8_t x_5; -x_5 = 0; -return x_5; -} -else -{ -uint8_t x_6; -lean_dec(x_4); -x_6 = 1; -return x_6; -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___lambda__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn(x_1, x_2); -x_4 = lean_box(x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("unexpected occurrence of recursive application"); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(""); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_ensureNoRecFn___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: -{ -uint8_t x_8; -x_8 = l_Lean_Expr_isAppOf(x_2, x_1); -if (x_8 == 0) -{ -lean_object* x_9; lean_object* x_10; -lean_dec(x_2); -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_7); -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = l_Lean_indentExpr(x_2); -x_12 = l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__2; -x_13 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_11); -x_14 = l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__4; -x_15 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_15, x_3, x_4, x_5, x_6, x_7); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_ensureNoRecFn(lean_object* x_1, 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_inc(x_2); -lean_inc(x_1); -x_8 = l___private_Lean_Elab_PreDefinition_Structural_Basic_0__Lean_Elab_Structural_containsRecFn(x_1, x_2); -if (x_8 == 0) -{ -lean_object* x_9; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_2); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___boxed), 7, 1); -lean_closure_set(x_10, 0, x_1); -lean_inc(x_2); -x_11 = l_Lean_Meta_forEachExpr(x_2, x_10, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) -{ -lean_object* x_13; -x_13 = lean_ctor_get(x_11, 0); -lean_dec(x_13); -lean_ctor_set(x_11, 0, x_2); -return x_11; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_2); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -else -{ -uint8_t x_16; -lean_dec(x_2); -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) -{ -return x_11; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_11); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_ensureNoRecFn___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_Elab_Structural_ensureNoRecFn___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_1); -return x_8; -} -} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_ForEachExpr(uint8_t builtin, lean_object*); @@ -592,14 +371,6 @@ l_Lean_Elab_Structural_instInhabitedM___closed__1 = _init_l_Lean_Elab_Structural lean_mark_persistent(l_Lean_Elab_Structural_instInhabitedM___closed__1); l_Lean_Elab_Structural_instInhabitedM___closed__2 = _init_l_Lean_Elab_Structural_instInhabitedM___closed__2(); lean_mark_persistent(l_Lean_Elab_Structural_instInhabitedM___closed__2); -l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__1 = _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__1); -l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__2 = _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__2); -l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__3 = _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__3); -l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__4 = _init_l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_Structural_ensureNoRecFn___lambda__1___closed__4); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c index 233cd831c3..4360699e20 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.PreDefinition.Structural.Eqns -// Imports: Init Lean.Meta.Eqns Lean.Meta.Tactic.Split Lean.Meta.Tactic.Apply Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.Eqns Lean.Elab.PreDefinition.Structural.Basic +// Imports: Init Lean.Meta.Eqns Lean.Meta.Tactic.Split Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Apply Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.Eqns Lean.Elab.PreDefinition.Structural.Basic #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; size_t lean_usize_add(size_t, size_t); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__8; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); @@ -25,6 +26,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_addDecl___at_Lean_Meta_mkAuxLemma___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof___lambda__3___boxed(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*); +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__3; extern lean_object* l_Lean_Meta_tactic_hygienic; lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -35,10 +37,10 @@ uint64_t lean_uint64_of_nat(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__4; -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__2; lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo; +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_registerEqnsInfo___closed__1; lean_object* l_Lean_Elab_Eqns_deltaLHS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -51,16 +53,17 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_ LEAN_EXPORT lean_object* l_Lean_Elab_Structural_registerEqnsInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__2; +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_getUnfoldFor_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Eqns_eqnsExt; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_getEqnsFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_tryURefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_simpMatch_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__1; +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8; lean_object* l_Lean_MapDeclarationExtension_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_getEqnsFor_x3f___lambda__1(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -75,26 +78,32 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_ lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__9; +lean_object* l_Std_mkHashMapImp___rarg(lean_object*); lean_object* lean_name_append_index_after(lean_object*, lean_object*); lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intros(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10; static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__3; extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__5; +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12; static uint64_t l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__1; size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__2; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__7; lean_object* l_Lean_Elab_Eqns_deltaRHS_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__4; lean_object* l_Lean_Meta_registerGetEqnsFn(lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_MatcherApp_addArg___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__11; static lean_object* l_Lean_Elab_Structural_getEqnsFor_x3f___closed__1; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___spec__1___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkEqns___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__4; uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -103,26 +112,30 @@ lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_SimpTheorems_register lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__3; static lean_object* l_Lean_Elab_Structural_mkEqns___closed__2; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_whnfReducibleLHS_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___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_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Eqns_instInhabitedEqnsExtState; -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__2; +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_getUnfoldFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_mkEqnTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_tryContradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__2; +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__13; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__10; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__1; -static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__1; +static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__9; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_getUnfoldFor_x3f___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_casesOnStuckLHS_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_getUnfoldFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__2; @@ -130,9 +143,13 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__ lean_object* l_Lean_Meta_registerGetUnfoldEqnFn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkEqns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec__2(lean_object*, lean_object*, uint8_t); +extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__1; +lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); +static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__1; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_registerEqnsInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static uint64_t _init_l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__1() { _start: @@ -190,7 +207,79 @@ x_1 = l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__4; return x_1; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(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_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_12 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_1, x_10, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_2 = x_11; +x_7 = x_13; +goto _start; +} +else +{ +uint8_t x_15; +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(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) { _start: { uint8_t x_11; @@ -267,25 +356,40 @@ return x_23; static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("failed to generate equational theorem for '"); -return x_1; +lean_object* x_1; lean_object* x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Simp_defaultMaxSteps; +x_2 = lean_unsigned_to_nat(2u); +x_3 = 0; +x_4 = 1; +x_5 = lean_alloc_ctor(0, 2, 10); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 1, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 3, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 4, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 5, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_4); +return x_5; } } static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +lean_object* x_1; +x_1 = l_Lean_Meta_DiscrTree_empty(lean_box(0)); +return x_1; } } static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("'\n"); +x_1 = l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } @@ -294,23 +398,128 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__3; -x_2 = l_Lean_stringToMessageData(x_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_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__5() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__4; +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_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__2; +x_2 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; +x_3 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__5; +x_4 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set(x_4, 2, x_2); +lean_ctor_set(x_4, 3, x_2); +lean_ctor_set(x_4, 4, x_2); +lean_ctor_set(x_4, 5, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = 1; +x_2 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7; +x_3 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__5; +x_4 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__1; +x_3 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6; +x_4 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_1); +lean_ctor_set(x_6, 4, x_5); +return x_6; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("failed to generate equational theorem for '"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'\n"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string(""); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6() { +static lean_object* _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__5; +x_1 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -399,429 +608,586 @@ x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); if (lean_obj_tag(x_24) == 0) { -lean_object* x_25; lean_object* x_26; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); +x_26 = lean_box(0); +x_27 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__9; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_28 = l_Lean_Meta_simpTargetStar(x_1, x_27, x_26, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +switch (lean_obj_tag(x_29)) { +case 0: +{ +uint8_t x_30; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 0); +lean_dec(x_31); +x_32 = lean_box(0); +lean_ctor_set(x_28, 0, x_32); +return x_28; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_dec(x_28); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +case 1: +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_28, 1); +lean_inc(x_36); +lean_dec(x_28); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_2); lean_inc(x_1); -x_26 = l_Lean_Elab_Eqns_deltaRHS_x3f(x_1, x_2, x_4, x_5, x_6, x_7, x_25); -if (lean_obj_tag(x_26) == 0) +x_37 = l_Lean_Elab_Eqns_deltaRHS_x3f(x_1, x_2, x_4, x_5, x_6, x_7, x_36); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_27; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) +lean_object* x_38; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_29 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_4, x_5, x_6, x_7, x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -if (lean_obj_tag(x_30) == 0) +x_40 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_4, x_5, x_6, x_7, x_39); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 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; -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_32, 0, x_2); -x_33 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__2; -x_34 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__4; -x_36 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -x_37 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_37, 0, x_1); -x_38 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -x_39 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6; -x_40 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -x_41 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_40, x_4, x_5, x_6, x_7, x_31); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_41; -} -else +lean_object* x_42; uint8_t x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_44 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_43, x_4, x_5, x_6, x_7, x_42); +if (lean_obj_tag(x_44) == 0) { -uint8_t x_42; -lean_dec(x_1); -x_42 = !lean_is_exclusive(x_29); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_43 = lean_ctor_get(x_29, 1); -x_44 = lean_ctor_get(x_29, 0); -lean_dec(x_44); -x_45 = lean_ctor_get(x_30, 0); +lean_object* x_45; +x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); -lean_dec(x_30); -x_46 = lean_array_get_size(x_45); -x_47 = lean_unsigned_to_nat(0u); -x_48 = lean_nat_dec_lt(x_47, x_46); -if (x_48 == 0) +if (lean_obj_tag(x_45) == 0) { -lean_object* x_49; -lean_dec(x_46); -lean_dec(x_45); +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +x_47 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_47, 0, x_2); +x_48 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__11; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__13; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_52, 0, x_1); +x_53 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15; +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_55, x_4, x_5, x_6, x_7, x_46); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_49 = lean_box(0); -lean_ctor_set(x_29, 0, x_49); -return x_29; +return x_56; } else { -uint8_t x_50; -x_50 = lean_nat_dec_le(x_46, x_46); -if (x_50 == 0) -{ -lean_object* x_51; -lean_dec(x_46); -lean_dec(x_45); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_51 = lean_box(0); -lean_ctor_set(x_29, 0, x_51); -return x_29; -} -else -{ -size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; -lean_free_object(x_29); -x_52 = 0; -x_53 = lean_usize_of_nat(x_46); -lean_dec(x_46); -x_54 = lean_box(0); -x_55 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(x_2, x_45, x_52, x_53, x_54, x_4, x_5, x_6, x_7, x_43); -lean_dec(x_45); -return x_55; -} -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_56 = lean_ctor_get(x_29, 1); -lean_inc(x_56); -lean_dec(x_29); -x_57 = lean_ctor_get(x_30, 0); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_1); +x_57 = lean_ctor_get(x_44, 1); lean_inc(x_57); -lean_dec(x_30); -x_58 = lean_array_get_size(x_57); -x_59 = lean_unsigned_to_nat(0u); -x_60 = lean_nat_dec_lt(x_59, x_58); +lean_dec(x_44); +x_58 = lean_ctor_get(x_45, 0); +lean_inc(x_58); +lean_dec(x_45); +x_59 = l_List_forM___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(x_2, x_58, x_4, x_5, x_6, x_7, x_57); +return x_59; +} +} +else +{ +uint8_t x_60; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_60 = !lean_is_exclusive(x_44); if (x_60 == 0) { -lean_object* x_61; lean_object* x_62; -lean_dec(x_58); -lean_dec(x_57); +return x_44; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_44, 0); +x_62 = lean_ctor_get(x_44, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_44); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; +} +} +} +else +{ +uint8_t x_64; +lean_dec(x_1); +x_64 = !lean_is_exclusive(x_40); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_65 = lean_ctor_get(x_40, 1); +x_66 = lean_ctor_get(x_40, 0); +lean_dec(x_66); +x_67 = lean_ctor_get(x_41, 0); +lean_inc(x_67); +lean_dec(x_41); +x_68 = lean_array_get_size(x_67); +x_69 = lean_unsigned_to_nat(0u); +x_70 = lean_nat_dec_lt(x_69, x_68); +if (x_70 == 0) +{ +lean_object* x_71; +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_56); -return x_62; +x_71 = lean_box(0); +lean_ctor_set(x_40, 0, x_71); +return x_40; } else { -uint8_t x_63; -x_63 = lean_nat_dec_le(x_58, x_58); -if (x_63 == 0) +uint8_t x_72; +x_72 = lean_nat_dec_le(x_68, x_68); +if (x_72 == 0) { -lean_object* x_64; lean_object* x_65; -lean_dec(x_58); -lean_dec(x_57); +lean_object* x_73; +lean_dec(x_68); +lean_dec(x_67); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_64 = lean_box(0); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_56); -return x_65; +x_73 = lean_box(0); +lean_ctor_set(x_40, 0, x_73); +return x_40; } else { -size_t x_66; size_t x_67; lean_object* x_68; lean_object* x_69; -x_66 = 0; -x_67 = lean_usize_of_nat(x_58); -lean_dec(x_58); -x_68 = lean_box(0); -x_69 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(x_2, x_57, x_66, x_67, x_68, x_4, x_5, x_6, x_7, x_56); -lean_dec(x_57); -return x_69; -} -} +size_t x_74; size_t x_75; lean_object* x_76; lean_object* x_77; +lean_free_object(x_40); +x_74 = 0; +x_75 = lean_usize_of_nat(x_68); +lean_dec(x_68); +x_76 = lean_box(0); +x_77 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(x_2, x_67, x_74, x_75, x_76, x_4, x_5, x_6, x_7, x_65); +lean_dec(x_67); +return x_77; } } } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_1); -x_70 = lean_ctor_get(x_26, 1); -lean_inc(x_70); -lean_dec(x_26); -x_71 = lean_ctor_get(x_27, 0); -lean_inc(x_71); -lean_dec(x_27); -x_72 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_71, x_4, x_5, x_6, x_7, x_70); -return x_72; -} -} -else -{ -uint8_t x_73; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_73 = !lean_is_exclusive(x_26); -if (x_73 == 0) -{ -return x_26; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_26, 0); -x_75 = lean_ctor_get(x_26, 1); -lean_inc(x_75); -lean_inc(x_74); -lean_dec(x_26); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -lean_dec(x_1); -x_77 = lean_ctor_get(x_23, 1); -lean_inc(x_77); -lean_dec(x_23); -x_78 = lean_ctor_get(x_24, 0); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +x_78 = lean_ctor_get(x_40, 1); lean_inc(x_78); -lean_dec(x_24); -x_79 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_78, x_4, x_5, x_6, x_7, x_77); -return x_79; +lean_dec(x_40); +x_79 = lean_ctor_get(x_41, 0); +lean_inc(x_79); +lean_dec(x_41); +x_80 = lean_array_get_size(x_79); +x_81 = lean_unsigned_to_nat(0u); +x_82 = lean_nat_dec_lt(x_81, x_80); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_83 = lean_box(0); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_78); +return x_84; +} +else +{ +uint8_t x_85; +x_85 = lean_nat_dec_le(x_80, x_80); +if (x_85 == 0) +{ +lean_object* x_86; lean_object* x_87; +lean_dec(x_80); +lean_dec(x_79); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_86 = lean_box(0); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_78); +return x_87; +} +else +{ +size_t x_88; size_t x_89; lean_object* x_90; lean_object* x_91; +x_88 = 0; +x_89 = lean_usize_of_nat(x_80); +lean_dec(x_80); +x_90 = lean_box(0); +x_91 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(x_2, x_79, x_88, x_89, x_90, x_4, x_5, x_6, x_7, x_78); +lean_dec(x_79); +return x_91; +} +} +} } } else { -uint8_t x_80; +lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_1); +x_92 = lean_ctor_get(x_37, 1); +lean_inc(x_92); +lean_dec(x_37); +x_93 = lean_ctor_get(x_38, 0); +lean_inc(x_93); +lean_dec(x_38); +x_94 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_93, x_4, x_5, x_6, x_7, x_92); +return x_94; +} +} +else +{ +uint8_t x_95; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_80 = !lean_is_exclusive(x_23); -if (x_80 == 0) +x_95 = !lean_is_exclusive(x_37); +if (x_95 == 0) +{ +return x_37; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_37, 0); +x_97 = lean_ctor_get(x_37, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_37); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} +} +} +default: +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_1); +x_99 = lean_ctor_get(x_28, 1); +lean_inc(x_99); +lean_dec(x_28); +x_100 = lean_ctor_get(x_29, 0); +lean_inc(x_100); +lean_dec(x_29); +x_101 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_100, x_4, x_5, x_6, x_7, x_99); +return x_101; +} +} +} +else +{ +uint8_t x_102; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_102 = !lean_is_exclusive(x_28); +if (x_102 == 0) +{ +return x_28; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_28, 0); +x_104 = lean_ctor_get(x_28, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_28); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +return x_105; +} +} +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_1); +x_106 = lean_ctor_get(x_23, 1); +lean_inc(x_106); +lean_dec(x_23); +x_107 = lean_ctor_get(x_24, 0); +lean_inc(x_107); +lean_dec(x_24); +x_108 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_107, x_4, x_5, x_6, x_7, x_106); +return x_108; +} +} +else +{ +uint8_t x_109; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_109 = !lean_is_exclusive(x_23); +if (x_109 == 0) { return x_23; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_23, 0); -x_82 = lean_ctor_get(x_23, 1); -lean_inc(x_82); -lean_inc(x_81); +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_23, 0); +x_111 = lean_ctor_get(x_23, 1); +lean_inc(x_111); +lean_inc(x_110); lean_dec(x_23); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -return x_83; +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_dec(x_1); -x_84 = lean_ctor_get(x_20, 1); -lean_inc(x_84); +x_113 = lean_ctor_get(x_20, 1); +lean_inc(x_113); lean_dec(x_20); -x_85 = lean_ctor_get(x_21, 0); -lean_inc(x_85); +x_114 = lean_ctor_get(x_21, 0); +lean_inc(x_114); lean_dec(x_21); -x_86 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_85, x_4, x_5, x_6, x_7, x_84); -return x_86; +x_115 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_114, x_4, x_5, x_6, x_7, x_113); +return x_115; } } else { -uint8_t x_87; +uint8_t x_116; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_87 = !lean_is_exclusive(x_20); -if (x_87 == 0) +x_116 = !lean_is_exclusive(x_20); +if (x_116 == 0) { return x_20; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_20, 0); -x_89 = lean_ctor_get(x_20, 1); -lean_inc(x_89); -lean_inc(x_88); +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_20, 0); +x_118 = lean_ctor_get(x_20, 1); +lean_inc(x_118); +lean_inc(x_117); lean_dec(x_20); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; } } } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_dec(x_1); -x_91 = lean_ctor_get(x_17, 1); -lean_inc(x_91); +x_120 = lean_ctor_get(x_17, 1); +lean_inc(x_120); lean_dec(x_17); -x_92 = lean_ctor_get(x_18, 0); -lean_inc(x_92); +x_121 = lean_ctor_get(x_18, 0); +lean_inc(x_121); lean_dec(x_18); -x_93 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_92, x_4, x_5, x_6, x_7, x_91); -return x_93; +x_122 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go(x_2, x_121, x_4, x_5, x_6, x_7, x_120); +return x_122; } } else { -uint8_t x_94; +uint8_t x_123; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_94 = !lean_is_exclusive(x_17); -if (x_94 == 0) +x_123 = !lean_is_exclusive(x_17); +if (x_123 == 0) { return x_17; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_17, 0); -x_96 = lean_ctor_get(x_17, 1); -lean_inc(x_96); -lean_inc(x_95); +lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_124 = lean_ctor_get(x_17, 0); +x_125 = lean_ctor_get(x_17, 1); +lean_inc(x_125); +lean_inc(x_124); lean_dec(x_17); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); -return x_97; +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +return x_126; } } } else { -uint8_t x_98; +uint8_t x_127; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_98 = !lean_is_exclusive(x_13); -if (x_98 == 0) +x_127 = !lean_is_exclusive(x_13); +if (x_127 == 0) { -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_13, 0); -lean_dec(x_99); -x_100 = lean_box(0); -lean_ctor_set(x_13, 0, x_100); +lean_object* x_128; lean_object* x_129; +x_128 = lean_ctor_get(x_13, 0); +lean_dec(x_128); +x_129 = lean_box(0); +lean_ctor_set(x_13, 0, x_129); return x_13; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_13, 1); -lean_inc(x_101); +lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_130 = lean_ctor_get(x_13, 1); +lean_inc(x_130); lean_dec(x_13); -x_102 = lean_box(0); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -return x_103; +x_131 = lean_box(0); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_130); +return x_132; } } } else { -uint8_t x_104; +uint8_t x_133; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_104 = !lean_is_exclusive(x_9); -if (x_104 == 0) +x_133 = !lean_is_exclusive(x_9); +if (x_133 == 0) { -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_9, 0); -lean_dec(x_105); -x_106 = lean_box(0); -lean_ctor_set(x_9, 0, x_106); +lean_object* x_134; lean_object* x_135; +x_134 = lean_ctor_get(x_9, 0); +lean_dec(x_134); +x_135 = lean_box(0); +lean_ctor_set(x_9, 0, x_135); return x_9; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_9, 1); -lean_inc(x_107); +lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_136 = lean_ctor_get(x_9, 1); +lean_inc(x_136); lean_dec(x_9); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_107); -return x_109; +x_137 = lean_box(0); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_136); +return x_138; } } } @@ -976,7 +1342,7 @@ x_14 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structur x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6; +x_16 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -992,7 +1358,7 @@ return x_21; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { size_t x_11; size_t x_12; lean_object* x_13; @@ -1000,7 +1366,7 @@ x_11 = lean_unbox_usize(x_3); lean_dec(x_3); x_12 = lean_unbox_usize(x_4); lean_dec(x_4); -x_13 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__1(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___spec__2(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_2); return x_13; } @@ -1279,7 +1645,7 @@ x_14 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structur x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6; +x_16 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -1622,7 +1988,7 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean lean_inc(x_21); x_42 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_42, 0, x_21); -x_43 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6; +x_43 = l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); @@ -2171,7 +2537,7 @@ lean_dec(x_1); return x_15; } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__1() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__1() { _start: { lean_object* x_1; @@ -2179,22 +2545,22 @@ x_1 = lean_mk_string("structEqInfo"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__2() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__1; +x_2 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Structural_instInhabitedEqnInfo; -x_3 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__2; +x_3 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__2; x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); return x_4; } @@ -2915,7 +3281,7 @@ lean_dec(x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__1() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__1() { _start: { lean_object* x_1; @@ -2923,7 +3289,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Structural_getEqnsFor_x3f), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__2() { +static lean_object* _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__2() { _start: { lean_object* x_1; @@ -2931,11 +3297,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Structural_getUnfoldFor_x3f), 6, 0) return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__1; +x_2 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__1; x_3 = l_Lean_Meta_registerGetEqnsFn(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -2943,7 +3309,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__2; +x_5 = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__2; x_6 = l_Lean_Meta_registerGetUnfoldEqnFn(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -3005,6 +3371,7 @@ return x_17; lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Eqns(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Split(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_Simp_Main(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Apply(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_PreDefinition_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_PreDefinition_Eqns(uint8_t builtin, lean_object*); @@ -3023,6 +3390,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Split(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_Simp_Main(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Apply(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -3056,6 +3426,24 @@ l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkPr lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__5); l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__6); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__8); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__9 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__9); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__10); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__11 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__11); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__13 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__13); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__14); +l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__15); l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__1 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__1); l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__2 = _init_l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__2(); @@ -3090,11 +3478,11 @@ l_Lean_Elab_Structural_mkEqns___closed__1 = _init_l_Lean_Elab_Structural_mkEqns_ lean_mark_persistent(l_Lean_Elab_Structural_mkEqns___closed__1); l_Lean_Elab_Structural_mkEqns___closed__2 = _init_l_Lean_Elab_Structural_mkEqns___closed__2(); lean_mark_persistent(l_Lean_Elab_Structural_mkEqns___closed__2); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__1(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__1); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__2(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952____closed__2); -if (builtin) {res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_952_(lean_io_mk_world()); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__1(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__1); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__2(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035____closed__2); +if (builtin) {res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1035_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Structural_eqnInfoExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Structural_eqnInfoExt); @@ -3103,11 +3491,11 @@ lean_dec_ref(res); lean_mark_persistent(l_Lean_Elab_Structural_registerEqnsInfo___closed__1); l_Lean_Elab_Structural_getEqnsFor_x3f___closed__1 = _init_l_Lean_Elab_Structural_getEqnsFor_x3f___closed__1(); lean_mark_persistent(l_Lean_Elab_Structural_getEqnsFor_x3f___closed__1); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__1(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__1); -l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__2(); -lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154____closed__2); -res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1154_(lean_io_mk_world()); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__1 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__1(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__1); +l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__2 = _init_l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__2(); +lean_mark_persistent(l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237____closed__2); +res = l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1237_(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/PreDefinition/Structural/IndPred.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/IndPred.c index 3ee08fd258..5b8d230a5d 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/IndPred.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/IndPred.c @@ -97,7 +97,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkIndPredBRecOn___lambda__5(lean LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkIndPredBRecOn___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Structural_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop___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*); static lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop___spec__7___closed__4; @@ -165,6 +164,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkIndPredBRecOn___lambda__1(lean LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_mkIndPredBRecOn___lambda__3___boxed(lean_object**); lean_object* l_Lean_Meta_IndPredBelow_findBelowIdx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_brecOnSuffix; lean_object* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_IndPred_0__Lean_Elab_Structural_replaceIndPredRecApps_loop___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -3419,7 +3419,7 @@ lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_137 = l_Lean_Elab_Structural_ensureNoRecFn(x_1, x_5, x_7, x_8, x_9, x_10, x_11); +x_137 = l_Lean_Elab_ensureNoRecFn(x_1, x_5, x_7, x_8, x_9, x_10, x_11); return x_137; } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Main.c index 488581ffe2..19e522ba44 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Main.c @@ -62,7 +62,6 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Structural_structuralRecursion___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_EXPORT lean_object* l_Lean_Elab_Structural_structuralRecursion___lambda__1(lean_object*); lean_object* l_Lean_Elab_Structural_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___closed__3; @@ -70,13 +69,13 @@ lean_object* l_Nat_repr(lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_structuralRecursion___closed__3; LEAN_EXPORT lean_object* l_Lean_setEnv___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Structural_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___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*); extern lean_object* l_Lean_Elab_instInhabitedPreDefinition; lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__2; static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___closed__7; +lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_structuralRecursion___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_getFixedPrefix___spec__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___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__2___closed__4; @@ -110,6 +109,7 @@ lean_object* l_Lean_addTrace___at___private_Lean_Elab_PreDefinition_Structural_I static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_getFixedPrefix___lambda__2___closed__2; lean_object* l_Lean_Elab_Structural_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); +lean_object* l_Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Structural_addSmartUnfoldingDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Main_0__Lean_Elab_Structural_elimRecursion___lambda__6___closed__2; @@ -1221,7 +1221,7 @@ _start: { lean_object* x_12; lean_inc(x_1); -x_12 = l_Lean_Elab_Structural_ensureNoRecFn(x_1, x_2, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Elab_ensureNoRecFn(x_1, x_2, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -2006,7 +2006,7 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -x_16 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__13___rarg(x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_14); +x_16 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_Structural_BRecOn_0__Lean_Elab_Structural_replaceRecApps_loop___spec__16___rarg(x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Preprocess.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Preprocess.c index 58a109ac4a..9bd1026491 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Preprocess.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Preprocess.c @@ -21,7 +21,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Structural_preprocess___lambda__2(lean_obje LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Structural_Preprocess_0__Lean_Elab_Structural_shouldBetaReduce___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Structural_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); -uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); +uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*, uint8_t); LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Structural_Preprocess_0__Lean_Elab_Structural_shouldBetaReduce___lambda__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Structural_preprocess___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Structural_preprocess___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -40,35 +40,36 @@ return x_3; LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Structural_Preprocess_0__Lean_Elab_Structural_shouldBetaReduce(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_3; -x_3 = l_Lean_Expr_isHeadBetaTarget(x_1); -if (x_3 == 0) +uint8_t x_3; uint8_t x_4; +x_3 = 0; +x_4 = l_Lean_Expr_isHeadBetaTarget(x_1, x_3); +if (x_4 == 0) { -uint8_t x_4; +uint8_t x_5; lean_dec(x_2); -x_4 = 0; -return x_4; +x_5 = 0; +return x_5; } else { -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_Preprocess_0__Lean_Elab_Structural_shouldBetaReduce___lambda__1___boxed), 2, 1); -lean_closure_set(x_5, 0, x_2); -x_6 = l_Lean_Expr_getAppFn(x_1); -x_7 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_5, x_6); -if (lean_obj_tag(x_7) == 0) -{ -uint8_t x_8; -x_8 = 0; -return x_8; -} -else +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_Structural_Preprocess_0__Lean_Elab_Structural_shouldBetaReduce___lambda__1___boxed), 2, 1); +lean_closure_set(x_6, 0, x_2); +x_7 = l_Lean_Expr_getAppFn(x_1); +x_8 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_6, x_7); +if (lean_obj_tag(x_8) == 0) { uint8_t x_9; -lean_dec(x_7); -x_9 = 1; +x_9 = 0; return x_9; } +else +{ +uint8_t x_10; +lean_dec(x_8); +x_10 = 1; +return x_10; +} } } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c index aa1686d859..61a76865fb 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c @@ -15,8 +15,10 @@ extern "C" { #endif static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__5; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1___lambda__1___closed__2; +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__14; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__5; +extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__3; @@ -25,6 +27,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* l_Lean_addDecl___at_Lean_Meta_mkAuxLemma___spec__4(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_mkSort(lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15; static lean_object* l_Lean_Elab_WF_instInhabitedEqnInfo___closed__3; extern lean_object* l_Lean_Meta_tactic_hygienic; lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -32,9 +35,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); uint64_t lean_uint64_of_nat(lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__3; -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__2; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__4; static lean_object* l_Lean_Elab_WF_getEqnsFor_x3f___closed__1; @@ -42,6 +43,7 @@ lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(lean_obj LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_panic___at_Lean_Meta_simpIfTarget___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__10; +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__6; lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__2; @@ -67,6 +69,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_eqnInfoExt; LEAN_EXPORT lean_object* l_Lean_Elab_WF_getUnfoldFor_x3f___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__5; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__1; lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -92,19 +95,27 @@ lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(lean static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__7; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_registerEqnsInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_mkHashMapImp___rarg(lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__10; lean_object* lean_name_append_index_after(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__12; lean_object* l_Lean_mkMapDeclarationExtension___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_registerEqnsInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399_(lean_object*); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__2; +lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarType_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__1; +lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intros(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__3; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__11; lean_object* l_Lean_Meta_rewrite(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkEqns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -113,17 +124,23 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_registerGetEqnsFn(lean_object*, lean_object*); lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_MatcherApp_addArg___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__1; +static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__8; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__7; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkPrivateName(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_insert___at_Lean_Meta_SimpTheorems_registerDeclToUnfoldThms___spec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_WF_getUnfoldFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,6 +159,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Ela lean_object* l_Lean_Elab_Eqns_getUnfoldFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_mkEqnTypes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Eqns_tryContradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__13; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__10; lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_0__Lean_Meta_mkInstanceKey___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -163,19 +181,18 @@ LEAN_EXPORT lean_object* l_Lean_Elab_WF_getUnfoldFor_x3f___lambda__1___boxed(lea static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_rwFixEq___lambda__1___closed__8; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkEqns___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___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* l_Lean_Meta_casesOnStuckLHS_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__2___closed__1; lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_getEqnsFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Meta_registerGetUnfoldEqnFn(lean_object*, lean_object*); lean_object* l_Lean_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec__2(lean_object*, lean_object*, uint8_t); +extern lean_object* l_Lean_Meta_Simp_defaultMaxSteps; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__2; +lean_object* l_Lean_Meta_DiscrTree_empty(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static uint64_t _init_l_Lean_Elab_WF_instInhabitedEqnInfo___closed__1() { _start: @@ -842,7 +859,79 @@ x_8 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean return x_8; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(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_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_2, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_12 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_1, x_10, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_2 = x_11; +x_7 = x_13; +goto _start; +} +else +{ +uint8_t x_15; +lean_dec(x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +return x_12; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_12, 0); +x_17 = lean_ctor_get(x_12, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_12); +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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(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) { _start: { uint8_t x_11; @@ -919,25 +1008,40 @@ return x_23; static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("failed to generate equational theorem for '"); -return x_1; +lean_object* x_1; lean_object* x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_1 = l_Lean_Meta_Simp_defaultMaxSteps; +x_2 = lean_unsigned_to_nat(2u); +x_3 = 0; +x_4 = 1; +x_5 = lean_alloc_ctor(0, 2, 10); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 1, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 2, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 3, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 4, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 5, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_4); +return x_5; } } static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; +lean_object* x_1; +x_1 = l_Lean_Meta_DiscrTree_empty(lean_box(0)); +return x_1; } } static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("'\n"); +x_1 = l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0)); return x_1; } } @@ -946,23 +1050,128 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__3; -x_2 = l_Lean_stringToMessageData(x_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_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__5() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__4; +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_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__2; +x_2 = l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; +x_3 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__5; +x_4 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set(x_4, 2, x_2); +lean_ctor_set(x_4, 3, x_2); +lean_ctor_set(x_4, 4, x_2); +lean_ctor_set(x_4, 5, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__8() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = 1; +x_2 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7; +x_3 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__5; +x_4 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_3); +lean_ctor_set_uint8(x_4, sizeof(void*)*2, x_1); +return x_4; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__1; +x_3 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6; +x_4 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__8; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_6, 0, x_2); +lean_ctor_set(x_6, 1, x_3); +lean_ctor_set(x_6, 2, x_4); +lean_ctor_set(x_6, 3, x_1); +lean_ctor_set(x_6, 4, x_5); +return x_6; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("failed to generate equational theorem for '"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__10; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("'\n"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__12; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__14() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string(""); return x_1; } } -static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6() { +static lean_object* _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__5; +x_1 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__14; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -1051,368 +1260,525 @@ x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); if (lean_obj_tag(x_24) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_25 = lean_ctor_get(x_23, 1); lean_inc(x_25); lean_dec(x_23); +x_26 = lean_box(0); +x_27 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9; lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_1); -x_26 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_4, x_5, x_6, x_7, x_25); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) +x_28 = l_Lean_Meta_simpTargetStar(x_1, x_27, x_26, x_4, x_5, x_6, x_7, x_25); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_29, 0, x_2); -x_30 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__2; -x_31 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__4; -x_33 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -x_34 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_34, 0, x_1); -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -x_36 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6; -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_37, x_4, x_5, x_6, x_7, x_28); +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +switch (lean_obj_tag(x_29)) { +case 0: +{ +uint8_t x_30; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -return x_38; -} -else -{ -uint8_t x_39; +lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_26); -if (x_39 == 0) +x_30 = !lean_is_exclusive(x_28); +if (x_30 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_40 = lean_ctor_get(x_26, 1); -x_41 = lean_ctor_get(x_26, 0); -lean_dec(x_41); -x_42 = lean_ctor_get(x_27, 0); +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_28, 0); +lean_dec(x_31); +x_32 = lean_box(0); +lean_ctor_set(x_28, 0, x_32); +return x_28; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_dec(x_28); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +case 1: +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_28, 1); +lean_inc(x_36); +lean_dec(x_28); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_37 = l_Lean_Meta_casesOnStuckLHS_x3f(x_1, x_4, x_5, x_6, x_7, x_36); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; uint8_t x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = 1; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_1); +x_41 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_40, x_4, x_5, x_6, x_7, x_39); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); -lean_dec(x_27); -x_43 = lean_array_get_size(x_42); -x_44 = lean_unsigned_to_nat(0u); -x_45 = lean_nat_dec_lt(x_44, x_43); -if (x_45 == 0) +if (lean_obj_tag(x_42) == 0) { -lean_object* x_46; -lean_dec(x_43); -lean_dec(x_42); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_44, 0, x_2); +x_45 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__11; +x_46 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__13; +x_48 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_49, 0, x_1); +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +x_51 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_52, x_4, x_5, x_6, x_7, x_43); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_46 = lean_box(0); -lean_ctor_set(x_26, 0, x_46); -return x_26; +return x_53; } else { -uint8_t x_47; -x_47 = lean_nat_dec_le(x_43, x_43); -if (x_47 == 0) -{ -lean_object* x_48; -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_48 = lean_box(0); -lean_ctor_set(x_26, 0, x_48); -return x_26; -} -else -{ -size_t x_49; size_t x_50; lean_object* x_51; lean_object* x_52; -lean_free_object(x_26); -x_49 = 0; -x_50 = lean_usize_of_nat(x_43); -lean_dec(x_43); -x_51 = lean_box(0); -x_52 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(x_2, x_42, x_49, x_50, x_51, x_4, x_5, x_6, x_7, x_40); -lean_dec(x_42); -return x_52; -} -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_53 = lean_ctor_get(x_26, 1); -lean_inc(x_53); -lean_dec(x_26); -x_54 = lean_ctor_get(x_27, 0); +lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_1); +x_54 = lean_ctor_get(x_41, 1); lean_inc(x_54); -lean_dec(x_27); -x_55 = lean_array_get_size(x_54); -x_56 = lean_unsigned_to_nat(0u); -x_57 = lean_nat_dec_lt(x_56, x_55); +lean_dec(x_41); +x_55 = lean_ctor_get(x_42, 0); +lean_inc(x_55); +lean_dec(x_42); +x_56 = l_List_forM___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(x_2, x_55, x_4, x_5, x_6, x_7, x_54); +return x_56; +} +} +else +{ +uint8_t x_57; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_41); if (x_57 == 0) { -lean_object* x_58; lean_object* x_59; -lean_dec(x_55); -lean_dec(x_54); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_58 = lean_box(0); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_53); -return x_59; +return x_41; } else { -uint8_t x_60; -x_60 = lean_nat_dec_le(x_55, x_55); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; -lean_dec(x_55); -lean_dec(x_54); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_61 = lean_box(0); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_53); -return x_62; -} -else -{ -size_t x_63; size_t x_64; lean_object* x_65; lean_object* x_66; -x_63 = 0; -x_64 = lean_usize_of_nat(x_55); -lean_dec(x_55); -x_65 = lean_box(0); -x_66 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(x_2, x_54, x_63, x_64, x_65, x_4, x_5, x_6, x_7, x_53); -lean_dec(x_54); -return x_66; -} -} +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_41, 0); +x_59 = lean_ctor_get(x_41, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_41); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; } } } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; +uint8_t x_61; lean_dec(x_1); -x_67 = lean_ctor_get(x_23, 1); -lean_inc(x_67); +x_61 = !lean_is_exclusive(x_37); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_62 = lean_ctor_get(x_37, 1); +x_63 = lean_ctor_get(x_37, 0); +lean_dec(x_63); +x_64 = lean_ctor_get(x_38, 0); +lean_inc(x_64); +lean_dec(x_38); +x_65 = lean_array_get_size(x_64); +x_66 = lean_unsigned_to_nat(0u); +x_67 = lean_nat_dec_lt(x_66, x_65); +if (x_67 == 0) +{ +lean_object* x_68; +lean_dec(x_65); +lean_dec(x_64); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_68 = lean_box(0); +lean_ctor_set(x_37, 0, x_68); +return x_37; +} +else +{ +uint8_t x_69; +x_69 = lean_nat_dec_le(x_65, x_65); +if (x_69 == 0) +{ +lean_object* x_70; +lean_dec(x_65); +lean_dec(x_64); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_70 = lean_box(0); +lean_ctor_set(x_37, 0, x_70); +return x_37; +} +else +{ +size_t x_71; size_t x_72; lean_object* x_73; lean_object* x_74; +lean_free_object(x_37); +x_71 = 0; +x_72 = lean_usize_of_nat(x_65); +lean_dec(x_65); +x_73 = lean_box(0); +x_74 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(x_2, x_64, x_71, x_72, x_73, x_4, x_5, x_6, x_7, x_62); +lean_dec(x_64); +return x_74; +} +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_75 = lean_ctor_get(x_37, 1); +lean_inc(x_75); +lean_dec(x_37); +x_76 = lean_ctor_get(x_38, 0); +lean_inc(x_76); +lean_dec(x_38); +x_77 = lean_array_get_size(x_76); +x_78 = lean_unsigned_to_nat(0u); +x_79 = lean_nat_dec_lt(x_78, x_77); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_80 = lean_box(0); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_75); +return x_81; +} +else +{ +uint8_t x_82; +x_82 = lean_nat_dec_le(x_77, x_77); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; +lean_dec(x_77); +lean_dec(x_76); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_83 = lean_box(0); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_75); +return x_84; +} +else +{ +size_t x_85; size_t x_86; lean_object* x_87; lean_object* x_88; +x_85 = 0; +x_86 = lean_usize_of_nat(x_77); +lean_dec(x_77); +x_87 = lean_box(0); +x_88 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(x_2, x_76, x_85, x_86, x_87, x_4, x_5, x_6, x_7, x_75); +lean_dec(x_76); +return x_88; +} +} +} +} +} +default: +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_1); +x_89 = lean_ctor_get(x_28, 1); +lean_inc(x_89); +lean_dec(x_28); +x_90 = lean_ctor_get(x_29, 0); +lean_inc(x_90); +lean_dec(x_29); +x_91 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_2, x_90, x_4, x_5, x_6, x_7, x_89); +return x_91; +} +} +} +else +{ +uint8_t x_92; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_92 = !lean_is_exclusive(x_28); +if (x_92 == 0) +{ +return x_28; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_28, 0); +x_94 = lean_ctor_get(x_28, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_28); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_1); +x_96 = lean_ctor_get(x_23, 1); +lean_inc(x_96); lean_dec(x_23); -x_68 = lean_ctor_get(x_24, 0); -lean_inc(x_68); +x_97 = lean_ctor_get(x_24, 0); +lean_inc(x_97); lean_dec(x_24); -x_69 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_2, x_68, x_4, x_5, x_6, x_7, x_67); -return x_69; +x_98 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_2, x_97, x_4, x_5, x_6, x_7, x_96); +return x_98; } } else { -uint8_t x_70; +uint8_t x_99; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_70 = !lean_is_exclusive(x_23); -if (x_70 == 0) +x_99 = !lean_is_exclusive(x_23); +if (x_99 == 0) { return x_23; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_23, 0); -x_72 = lean_ctor_get(x_23, 1); -lean_inc(x_72); -lean_inc(x_71); +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_23, 0); +x_101 = lean_ctor_get(x_23, 1); +lean_inc(x_101); +lean_inc(x_100); lean_dec(x_23); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; } } } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_dec(x_1); -x_74 = lean_ctor_get(x_20, 1); -lean_inc(x_74); +x_103 = lean_ctor_get(x_20, 1); +lean_inc(x_103); lean_dec(x_20); -x_75 = lean_ctor_get(x_21, 0); -lean_inc(x_75); +x_104 = lean_ctor_get(x_21, 0); +lean_inc(x_104); lean_dec(x_21); -x_76 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_2, x_75, x_4, x_5, x_6, x_7, x_74); -return x_76; +x_105 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_2, x_104, x_4, x_5, x_6, x_7, x_103); +return x_105; } } else { -uint8_t x_77; +uint8_t x_106; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_77 = !lean_is_exclusive(x_20); -if (x_77 == 0) +x_106 = !lean_is_exclusive(x_20); +if (x_106 == 0) { return x_20; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_20, 0); -x_79 = lean_ctor_get(x_20, 1); -lean_inc(x_79); -lean_inc(x_78); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_20, 0); +x_108 = lean_ctor_get(x_20, 1); +lean_inc(x_108); +lean_inc(x_107); lean_dec(x_20); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; } } } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_1); -x_81 = lean_ctor_get(x_17, 1); -lean_inc(x_81); +x_110 = lean_ctor_get(x_17, 1); +lean_inc(x_110); lean_dec(x_17); -x_82 = lean_ctor_get(x_18, 0); -lean_inc(x_82); +x_111 = lean_ctor_get(x_18, 0); +lean_inc(x_111); lean_dec(x_18); -x_83 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_2, x_82, x_4, x_5, x_6, x_7, x_81); -return x_83; +x_112 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go(x_2, x_111, x_4, x_5, x_6, x_7, x_110); +return x_112; } } else { -uint8_t x_84; +uint8_t x_113; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_84 = !lean_is_exclusive(x_17); -if (x_84 == 0) +x_113 = !lean_is_exclusive(x_17); +if (x_113 == 0) { return x_17; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_17, 0); -x_86 = lean_ctor_get(x_17, 1); -lean_inc(x_86); -lean_inc(x_85); +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_17, 0); +x_115 = lean_ctor_get(x_17, 1); +lean_inc(x_115); +lean_inc(x_114); lean_dec(x_17); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -return x_87; +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; } } } else { -uint8_t x_88; +uint8_t x_117; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_88 = !lean_is_exclusive(x_13); -if (x_88 == 0) +x_117 = !lean_is_exclusive(x_13); +if (x_117 == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_13, 0); -lean_dec(x_89); -x_90 = lean_box(0); -lean_ctor_set(x_13, 0, x_90); +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_13, 0); +lean_dec(x_118); +x_119 = lean_box(0); +lean_ctor_set(x_13, 0, x_119); return x_13; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_13, 1); -lean_inc(x_91); +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_13, 1); +lean_inc(x_120); lean_dec(x_13); -x_92 = lean_box(0); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_91); -return x_93; +x_121 = lean_box(0); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_120); +return x_122; } } } else { -uint8_t x_94; +uint8_t x_123; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_94 = !lean_is_exclusive(x_9); -if (x_94 == 0) +x_123 = !lean_is_exclusive(x_9); +if (x_123 == 0) { -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_9, 0); -lean_dec(x_95); -x_96 = lean_box(0); -lean_ctor_set(x_9, 0, x_96); +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_9, 0); +lean_dec(x_124); +x_125 = lean_box(0); +lean_ctor_set(x_9, 0, x_125); return x_9; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_9, 1); -lean_inc(x_97); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_9, 1); +lean_inc(x_126); lean_dec(x_9); -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; +x_127 = lean_box(0); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +return x_128; } } } @@ -1567,7 +1933,7 @@ x_14 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___ x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6; +x_16 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -1583,7 +1949,7 @@ return x_21; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { size_t x_11; size_t x_12; lean_object* x_13; @@ -1591,7 +1957,7 @@ x_11 = lean_unbox_usize(x_3); lean_dec(x_3); x_12 = lean_unbox_usize(x_4); lean_dec(x_4); -x_13 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__1(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___spec__2(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_2); return x_13; } @@ -1873,7 +2239,7 @@ x_14 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof___clo x_15 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_15, 0, x_14); lean_ctor_set(x_15, 1, x_13); -x_16 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6; +x_16 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15; x_17 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -2204,7 +2570,7 @@ lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean lean_inc(x_21); x_42 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_42, 0, x_21); -x_43 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6; +x_43 = l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15; x_44 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_42); @@ -2748,7 +3114,7 @@ lean_dec(x_2); return x_15; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__1() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__1() { _start: { lean_object* x_1; @@ -2756,22 +3122,22 @@ x_1 = lean_mk_string("wfEqInfo"); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__2() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__1; +x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_WF_instInhabitedEqnInfo; -x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__2; +x_3 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__2; x_4 = l_Lean_mkMapDeclarationExtension___rarg(x_2, x_3, x_1); return x_4; } @@ -3712,7 +4078,7 @@ lean_dec(x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__1() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__1() { _start: { lean_object* x_1; @@ -3720,7 +4086,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_WF_getEqnsFor_x3f), 6, 0); return x_1; } } -static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__2() { +static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__2() { _start: { lean_object* x_1; @@ -3728,11 +4094,11 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_WF_getUnfoldFor_x3f), 6, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__1; +x_2 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__1; x_3 = l_Lean_Meta_registerGetEqnsFn(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -3740,7 +4106,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__2; +x_5 = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__2; x_6 = l_Lean_Meta_registerGetUnfoldEqnFn(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -3881,6 +4247,24 @@ l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda_ lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__5); l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__6); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__7); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__8 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__8(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__8); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__9); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__10 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__10(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__10); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__11 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__11(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__11); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__12 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__12(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__12); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__13 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__13(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__13); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__14 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__14(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__14); +l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15(); +lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___lambda__1___closed__15); l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__1 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__1); l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__2 = _init_l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof_go___closed__2(); @@ -3911,11 +4295,11 @@ l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1___lambda__1___closed__ lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_mkEqns___spec__1___lambda__1___closed__2); l_Lean_Elab_WF_mkEqns___closed__1 = _init_l_Lean_Elab_WF_mkEqns___closed__1(); lean_mark_persistent(l_Lean_Elab_WF_mkEqns___closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__1(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__2(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089____closed__2); -if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1089_(lean_io_mk_world()); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__1); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__2(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172____closed__2); +if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1172_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_Elab_WF_eqnInfoExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_WF_eqnInfoExt); @@ -3924,11 +4308,11 @@ lean_dec_ref(res); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Elab_WF_registerEqnsInfo___spec__2___closed__1); l_Lean_Elab_WF_getEqnsFor_x3f___closed__1 = _init_l_Lean_Elab_WF_getEqnsFor_x3f___closed__1(); lean_mark_persistent(l_Lean_Elab_WF_getEqnsFor_x3f___closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__1(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__1); -l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__2(); -lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316____closed__2); -res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1316_(lean_io_mk_world()); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__1 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__1); +l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__2 = _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__2(); +lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399____closed__2); +res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_Eqns___hyg_1399_(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/PreDefinition/WF/Fix.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c index ad82fce4dd..d04de4b6d6 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Fix.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.PreDefinition.WF.Fix -// Imports: Init Lean.Meta.Match.Match Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Cleanup Lean.Elab.Tactic.Basic Lean.Elab.RecAppSyntax Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.Structural.Basic +// Imports: Init Lean.Meta.Match.Match Lean.Meta.Tactic.Simp.Main Lean.Meta.Tactic.Cleanup Lean.Elab.Tactic.Basic Lean.Elab.RecAppSyntax Lean.Elab.PreDefinition.Basic Lean.Elab.PreDefinition.Structural.Basic Lean.Elab.PreDefinition.Structural.BRecOn #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -20,13 +20,14 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefi lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__8; size_t lean_usize_add(size_t, size_t); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Elab_WF_mkFix___lambda__1___closed__1; lean_object* l_Lean_mkSort(lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__3; lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn(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_userName(lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___lambda__2___closed__1; @@ -35,6 +36,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__4; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__5; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__2; lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); @@ -45,15 +47,15 @@ lean_object* l_Lean_Meta_MatcherApp_addArg(lean_object*, lean_object*, lean_obje static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__4; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getRecAppSyntax_x3f(lean_object*); lean_object* l_Lean_Elab_Tactic_evalTacticAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__3; +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9(lean_object*); uint8_t l_Lean_Elab_Structural_recArgHasLooseBVarsAt(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__5; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___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*); static lean_object* l_Lean_Elab_WF_mkFix___lambda__1___closed__6; +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__6; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___closed__7; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); @@ -63,6 +65,7 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_r LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_mkFix___lambda__1___closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,10 +97,9 @@ lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___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*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___closed__2; -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__1; 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_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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*); @@ -105,9 +107,7 @@ lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_mkDecreasingProof___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___lambda__3___closed__1; lean_object* l_Lean_Expr_constLevels_x21(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___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_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__6; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___closed__9; lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1___closed__2; @@ -116,18 +116,20 @@ lean_object* l_Lean_replaceRef(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___closed__8; 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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_mkFix___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___closed__4; +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__3; lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Elab_Term_elabLetDeclAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkFix___lambda__3(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*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__5; static lean_object* l_Lean_Elab_WF_mkFix___lambda__1___closed__4; lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__7; -lean_object* l_Lean_Elab_Structural_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___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_Term_getCurrMacroScope(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -135,24 +137,26 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_r uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__3(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*); extern lean_object* l_Lean_instInhabitedExpr; -static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkFix___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___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_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12(lean_object*); lean_object* l_Lean_Meta_mapErrorImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__7(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_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1(lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___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_Term_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__11(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); static lean_object* l_Lean_Elab_WF_mkFix___lambda__1___closed__3; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -162,7 +166,7 @@ static lean_object* l_Lean_Elab_WF_mkFix___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___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_Meta_MatcherApp_toExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkFix___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -172,6 +176,8 @@ lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__14(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_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isFVar(lean_object*); lean_object* l_Lean_Meta_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); @@ -185,8 +191,9 @@ lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___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_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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_indentD(lean_object*); +lean_object* l_Lean_Elab_ensureNoRecFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___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_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_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* l_Lean_Expr_getAppFn(lean_object*); lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); @@ -195,7 +202,6 @@ static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_p LEAN_EXPORT lean_object* l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__3; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__2; lean_object* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); @@ -204,12 +210,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkFix___lambda__1___boxed(lean_object*, LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkFix(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Structural_refinedArgType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9(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*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___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*); @@ -2367,7 +2373,641 @@ return x_104; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9(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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_5, x_4); +if (x_14 == 0) +{ +lean_object* x_15; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_6); +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; +x_16 = lean_array_uget(x_6, x_5); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_array_uset(x_6, x_5, x_17); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_19 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = 1; +x_23 = lean_usize_add(x_5, x_22); +x_24 = lean_array_uset(x_18, x_5, x_20); +x_5 = x_23; +x_6 = x_24; +x_13 = x_21; +goto _start; +} +else +{ +uint8_t x_26; +lean_dec(x_18); +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_3); +lean_dec(x_2); +lean_dec(x_1); +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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10(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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +uint8_t x_14; +x_14 = lean_usize_dec_lt(x_5, x_4); +if (x_14 == 0) +{ +lean_object* x_15; +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_3); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_6); +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; +x_16 = lean_array_uget(x_6, x_5); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_array_uset(x_6, x_5, x_17); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_19 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = 1; +x_23 = lean_usize_add(x_5, x_22); +x_24 = lean_array_uset(x_18, x_5, x_20); +x_5 = x_23; +x_6 = x_24; +x_13 = x_21; +goto _start; +} +else +{ +uint8_t x_26; +lean_dec(x_18); +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_3); +lean_dec(x_2); +lean_dec(x_1); +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_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_4) == 5) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_14 = lean_ctor_get(x_4, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_4, 1); +lean_inc(x_15); +lean_dec(x_4); +x_16 = lean_array_set(x_5, x_6, x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_6, x_17); +lean_dec(x_6); +x_4 = x_14; +x_5 = x_16; +x_6 = x_18; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_6); +x_20 = l_Lean_Expr_isConstOf(x_4, x_1); +if (x_20 == 0) +{ +lean_object* x_21; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_21 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; +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_array_get_size(x_5); +x_25 = lean_usize_of_nat(x_24); +lean_dec(x_24); +x_26 = 0; +x_27 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9(x_1, x_2, x_3, x_25, x_26, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_23); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +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); +x_30 = l_Lean_mkAppN(x_22, x_29); +lean_ctor_set(x_27, 0, x_30); +return x_27; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = lean_ctor_get(x_27, 0); +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_27); +x_33 = l_Lean_mkAppN(x_22, x_31); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +else +{ +uint8_t x_35; +lean_dec(x_22); +x_35 = !lean_is_exclusive(x_27); +if (x_35 == 0) +{ +return x_27; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_27, 0); +x_37 = lean_ctor_get(x_27, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_27); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +uint8_t x_39; +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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_39 = !lean_is_exclusive(x_21); +if (x_39 == 0) +{ +return x_21; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_21, 0); +x_41 = lean_ctor_get(x_21, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_21); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_43 = lean_array_get_size(x_5); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_dec_eq(x_43, x_44); +if (x_45 == 0) +{ +lean_object* x_46; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_46 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; lean_object* x_51; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_usize_of_nat(x_43); +lean_dec(x_43); +x_50 = 0; +x_51 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10(x_1, x_2, x_3, x_49, x_50, x_5, x_7, x_8, x_9, x_10, x_11, x_12, x_48); +if (lean_obj_tag(x_51) == 0) +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_51, 0); +x_54 = l_Lean_mkAppN(x_47, x_53); +lean_ctor_set(x_51, 0, x_54); +return x_51; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_51, 0); +x_56 = lean_ctor_get(x_51, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_51); +x_57 = l_Lean_mkAppN(x_47, x_55); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +else +{ +uint8_t x_59; +lean_dec(x_47); +x_59 = !lean_is_exclusive(x_51); +if (x_59 == 0) +{ +return x_51; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_51, 0); +x_61 = lean_ctor_get(x_51, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_51); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_43); +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_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_63 = !lean_is_exclusive(x_46); +if (x_63 == 0) +{ +return x_46; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_46, 0); +x_65 = lean_ctor_get(x_46, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_46); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_dec(x_43); +lean_dec(x_4); +x_67 = l_Lean_instInhabitedExpr; +x_68 = lean_unsigned_to_nat(0u); +x_69 = lean_array_get(x_67, x_5, x_68); +lean_dec(x_5); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +x_70 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_69, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = l_Lean_mkApp(x_3, x_71); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_73); +x_74 = lean_infer_type(x_73, x_9, x_10, x_11, x_12, x_72); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_74, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_74, 1); +lean_inc(x_76); +lean_dec(x_74); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +x_77 = lean_whnf(x_75, x_9, x_10, x_11, x_12, x_76); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = l_Lean_Expr_bindingDomain_x21(x_78); +lean_dec(x_78); +x_81 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_mkDecreasingProof(x_80, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_79); +if (lean_obj_tag(x_81) == 0) +{ +uint8_t x_82; +x_82 = !lean_is_exclusive(x_81); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_81, 0); +x_84 = l_Lean_mkApp(x_73, x_83); +lean_ctor_set(x_81, 0, x_84); +return x_81; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_85 = lean_ctor_get(x_81, 0); +x_86 = lean_ctor_get(x_81, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_81); +x_87 = l_Lean_mkApp(x_73, x_85); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_86); +return x_88; +} +} +else +{ +uint8_t x_89; +lean_dec(x_73); +x_89 = !lean_is_exclusive(x_81); +if (x_89 == 0) +{ +return x_81; +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_81, 0); +x_91 = lean_ctor_get(x_81, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_81); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; +} +} +} +else +{ +uint8_t x_93; +lean_dec(x_73); +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_2); +x_93 = !lean_is_exclusive(x_77); +if (x_93 == 0) +{ +return x_77; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_77, 0); +x_95 = lean_ctor_get(x_77, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_77); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +} +} +else +{ +uint8_t x_97; +lean_dec(x_73); +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_2); +x_97 = !lean_is_exclusive(x_74); +if (x_97 == 0) +{ +return x_74; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_74, 0); +x_99 = lean_ctor_get(x_74, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_74); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; +} +} +} +else +{ +uint8_t x_101; +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_3); +lean_dec(x_2); +x_101 = !lean_is_exclusive(x_70); +if (x_101 == 0) +{ +return x_70; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_70, 0); +x_103 = lean_ctor_get(x_70, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_70); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___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; @@ -2375,11 +3015,11 @@ x_11 = lean_apply_9(x_1, x_4, x_5, x_2, x_3, x_6, x_7, x_8, x_9, x_10); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___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; uint8_t x_11; lean_object* x_12; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg___lambda__1), 10, 3); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg___lambda__1), 10, 3); lean_closure_set(x_10, 0, x_2); lean_closure_set(x_10, 1, x_3); lean_closure_set(x_10, 2, x_4); @@ -2431,15 +3071,15 @@ return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg), 9, 0); +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg), 9, 0); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -2498,7 +3138,7 @@ return x_27; } } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__1() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -2506,16 +3146,16 @@ x_1 = lean_mk_string("unexpected matcher application alternative"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__2() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__1; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__3() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -2523,16 +3163,16 @@ x_1 = lean_mk_string("\nat application"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__4() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__3; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__5() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__5() { _start: { lean_object* x_1; @@ -2540,16 +3180,16 @@ x_1 = lean_mk_string(""); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__6() { +static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__5; +x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { lean_object* x_15; uint8_t x_16; @@ -2564,11 +3204,11 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); x_17 = l_Lean_indentExpr(x_4); -x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__2; +x_18 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__2; x_19 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__4; +x_20 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__4; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_19); lean_ctor_set(x_21, 1, x_20); @@ -2576,7 +3216,7 @@ x_22 = l_Lean_indentExpr(x_5); x_23 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); -x_24 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__6; +x_24 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__6; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); @@ -2611,12 +3251,12 @@ lean_object* x_31; lean_object* x_32; lean_dec(x_5); lean_dec(x_4); x_31 = lean_box(0); -x_32 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__1(x_1, x_6, x_2, x_3, x_7, x_31, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_32 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__1(x_1, x_6, x_2, x_3, x_7, x_31, x_8, x_9, x_10, x_11, x_12, x_13, x_14); return x_32; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10(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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13(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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -2653,7 +3293,7 @@ lean_inc(x_3); lean_inc(x_19); lean_inc(x_2); lean_inc(x_1); -x_21 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___boxed), 14, 5); +x_21 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___boxed), 14, 5); lean_closure_set(x_21, 0, x_20); lean_closure_set(x_21, 1, x_1); lean_closure_set(x_21, 2, x_2); @@ -2665,7 +3305,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_22 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_19, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_22 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_19, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; @@ -2717,7 +3357,7 @@ return x_32; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__11(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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__14(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, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { uint8_t x_14; @@ -3094,31 +3734,68 @@ lean_inc(x_7); x_34 = l_Lean_Meta_mapErrorImp___rarg(x_32, x_33, x_7, x_8, x_9, x_10, x_22); if (lean_obj_tag(x_34) == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_object* x_35; lean_object* x_36; lean_object* x_37; x_35 = lean_ctor_get(x_34, 0); lean_inc(x_35); x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); lean_dec(x_34); -x_37 = !lean_is_exclusive(x_35); -if (x_37 == 0) +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_35); +x_37 = l_Lean_Elab_Structural_refinedArgType(x_35, x_3, x_7, x_8, x_9, x_10, x_36); +if (lean_obj_tag(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; size_t x_49; size_t x_50; lean_object* x_51; -x_38 = lean_ctor_get(x_35, 0); -x_39 = lean_ctor_get(x_35, 1); -x_40 = lean_ctor_get(x_35, 2); -x_41 = lean_ctor_get(x_35, 3); -x_42 = lean_ctor_get(x_35, 4); -x_43 = lean_ctor_get(x_35, 5); -x_44 = lean_ctor_get(x_35, 6); -x_45 = lean_ctor_get(x_35, 7); -x_46 = lean_ctor_get(x_35, 8); -x_47 = l_Array_zip___rarg(x_45, x_44); -lean_dec(x_45); -x_48 = lean_array_get_size(x_47); -x_49 = lean_usize_of_nat(x_48); -lean_dec(x_48); -x_50 = 0; +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_unbox(x_38); +lean_dec(x_38); +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_dec(x_35); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = l_Lean_Expr_getAppNumArgsAux(x_4, x_24); +x_42 = l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__1___closed__1; +lean_inc(x_41); +x_43 = lean_mk_array(x_41, x_42); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_sub(x_41, x_44); +lean_dec(x_41); +x_46 = l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__11(x_1, x_2, x_3, x_4, x_43, x_45, x_5, x_6, x_7, x_8, x_9, x_10, x_40); +return x_46; +} +else +{ +lean_object* x_47; uint8_t x_48; +x_47 = lean_ctor_get(x_37, 1); +lean_inc(x_47); +lean_dec(x_37); +x_48 = !lean_is_exclusive(x_35); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; size_t x_60; size_t x_61; lean_object* x_62; +x_49 = lean_ctor_get(x_35, 0); +x_50 = lean_ctor_get(x_35, 1); +x_51 = lean_ctor_get(x_35, 2); +x_52 = lean_ctor_get(x_35, 3); +x_53 = lean_ctor_get(x_35, 4); +x_54 = lean_ctor_get(x_35, 5); +x_55 = lean_ctor_get(x_35, 6); +x_56 = lean_ctor_get(x_35, 7); +x_57 = lean_ctor_get(x_35, 8); +x_58 = l_Array_zip___rarg(x_56, x_55); +lean_dec(x_56); +x_59 = lean_array_get_size(x_58); +x_60 = lean_usize_of_nat(x_59); +lean_dec(x_59); +x_61 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -3127,94 +3804,94 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); lean_inc(x_1); -x_51 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10(x_1, x_2, x_4, x_49, x_50, x_47, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -if (lean_obj_tag(x_51) == 0) +x_62 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13(x_1, x_2, x_4, x_60, x_61, x_58, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +if (lean_obj_tag(x_62) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; size_t x_55; lean_object* x_56; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_array_get_size(x_43); -x_55 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_56 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__11(x_1, x_2, x_3, x_55, x_50, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_53); -if (lean_obj_tag(x_56) == 0) -{ -uint8_t x_57; -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_56, 0); -lean_ctor_set(x_35, 7, x_52); -lean_ctor_set(x_35, 5, x_58); -x_59 = l_Lean_Meta_MatcherApp_toExpr(x_35); -lean_ctor_set(x_56, 0, x_59); -return x_56; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_60 = lean_ctor_get(x_56, 0); -x_61 = lean_ctor_get(x_56, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_56); -lean_ctor_set(x_35, 7, x_52); -lean_ctor_set(x_35, 5, x_60); -x_62 = l_Lean_Meta_MatcherApp_toExpr(x_35); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); -return x_63; -} -} -else -{ -uint8_t x_64; -lean_dec(x_52); -lean_free_object(x_35); -lean_dec(x_46); -lean_dec(x_44); -lean_dec(x_42); -lean_dec(x_41); -lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_38); -x_64 = !lean_is_exclusive(x_56); -if (x_64 == 0) -{ -return x_56; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_56, 0); -x_66 = lean_ctor_get(x_56, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_56); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; -} -} -} -else +lean_object* x_63; lean_object* x_64; lean_object* x_65; size_t x_66; lean_object* x_67; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_array_get_size(x_54); +x_66 = lean_usize_of_nat(x_65); +lean_dec(x_65); +x_67 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__14(x_1, x_2, x_3, x_66, x_61, x_54, x_5, x_6, x_7, x_8, x_9, x_10, x_64); +if (lean_obj_tag(x_67) == 0) { uint8_t x_68; +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) +{ +lean_object* x_69; lean_object* x_70; +x_69 = lean_ctor_get(x_67, 0); +lean_ctor_set(x_35, 7, x_63); +lean_ctor_set(x_35, 5, x_69); +x_70 = l_Lean_Meta_MatcherApp_toExpr(x_35); +lean_ctor_set(x_67, 0, x_70); +return x_67; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_71 = lean_ctor_get(x_67, 0); +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_67); +lean_ctor_set(x_35, 7, x_63); +lean_ctor_set(x_35, 5, x_71); +x_73 = l_Lean_Meta_MatcherApp_toExpr(x_35); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +return x_74; +} +} +else +{ +uint8_t x_75; +lean_dec(x_63); lean_free_object(x_35); -lean_dec(x_46); -lean_dec(x_44); -lean_dec(x_43); -lean_dec(x_42); -lean_dec(x_41); -lean_dec(x_40); -lean_dec(x_39); -lean_dec(x_38); +lean_dec(x_57); +lean_dec(x_55); +lean_dec(x_53); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_49); +x_75 = !lean_is_exclusive(x_67); +if (x_75 == 0) +{ +return x_67; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_67, 0); +x_77 = lean_ctor_get(x_67, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_67); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +else +{ +uint8_t x_79; +lean_free_object(x_35); +lean_dec(x_57); +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_50); +lean_dec(x_49); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3224,54 +3901,54 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_51); -if (x_68 == 0) +x_79 = !lean_is_exclusive(x_62); +if (x_79 == 0) { -return x_51; +return x_62; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_51, 0); -x_70 = lean_ctor_get(x_51, 1); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_51); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -} -else -{ -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; size_t x_83; size_t x_84; lean_object* x_85; -x_72 = lean_ctor_get(x_35, 0); -x_73 = lean_ctor_get(x_35, 1); -x_74 = lean_ctor_get(x_35, 2); -x_75 = lean_ctor_get(x_35, 3); -x_76 = lean_ctor_get(x_35, 4); -x_77 = lean_ctor_get(x_35, 5); -x_78 = lean_ctor_get(x_35, 6); -x_79 = lean_ctor_get(x_35, 7); -x_80 = lean_ctor_get(x_35, 8); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_62, 0); +x_81 = lean_ctor_get(x_62, 1); +lean_inc(x_81); lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); +lean_dec(x_62); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; size_t x_94; size_t x_95; lean_object* x_96; +x_83 = lean_ctor_get(x_35, 0); +x_84 = lean_ctor_get(x_35, 1); +x_85 = lean_ctor_get(x_35, 2); +x_86 = lean_ctor_get(x_35, 3); +x_87 = lean_ctor_get(x_35, 4); +x_88 = lean_ctor_get(x_35, 5); +x_89 = lean_ctor_get(x_35, 6); +x_90 = lean_ctor_get(x_35, 7); +x_91 = lean_ctor_get(x_35, 8); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_inc(x_83); lean_dec(x_35); -x_81 = l_Array_zip___rarg(x_79, x_78); -lean_dec(x_79); -x_82 = lean_array_get_size(x_81); -x_83 = lean_usize_of_nat(x_82); -lean_dec(x_82); -x_84 = 0; +x_92 = l_Array_zip___rarg(x_90, x_89); +lean_dec(x_90); +x_93 = lean_array_get_size(x_92); +x_94 = lean_usize_of_nat(x_93); +lean_dec(x_93); +x_95 = 0; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -3280,98 +3957,98 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_2); lean_inc(x_1); -x_85 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10(x_1, x_2, x_4, x_83, x_84, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_36); -if (lean_obj_tag(x_85) == 0) +x_96 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13(x_1, x_2, x_4, x_94, x_95, x_92, x_5, x_6, x_7, x_8, x_9, x_10, x_47); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; size_t x_89; lean_object* x_90; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_array_get_size(x_77); -x_89 = lean_usize_of_nat(x_88); -lean_dec(x_88); -x_90 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__11(x_1, x_2, x_3, x_89, x_84, x_77, x_5, x_6, x_7, x_8, x_9, x_10, x_87); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_93 = x_90; -} else { - lean_dec_ref(x_90); - x_93 = lean_box(0); -} -x_94 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_94, 0, x_72); -lean_ctor_set(x_94, 1, x_73); -lean_ctor_set(x_94, 2, x_74); -lean_ctor_set(x_94, 3, x_75); -lean_ctor_set(x_94, 4, x_76); -lean_ctor_set(x_94, 5, x_91); -lean_ctor_set(x_94, 6, x_78); -lean_ctor_set(x_94, 7, x_86); -lean_ctor_set(x_94, 8, x_80); -x_95 = l_Lean_Meta_MatcherApp_toExpr(x_94); -if (lean_is_scalar(x_93)) { - x_96 = lean_alloc_ctor(0, 2, 0); -} else { - x_96 = x_93; -} -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_92); -return x_96; -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_86); -lean_dec(x_80); -lean_dec(x_78); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_dec(x_73); -lean_dec(x_72); -x_97 = lean_ctor_get(x_90, 0); +lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); -x_98 = lean_ctor_get(x_90, 1); +x_98 = lean_ctor_get(x_96, 1); lean_inc(x_98); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - x_99 = x_90; +lean_dec(x_96); +x_99 = lean_array_get_size(x_88); +x_100 = lean_usize_of_nat(x_99); +lean_dec(x_99); +x_101 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__14(x_1, x_2, x_3, x_100, x_95, x_88, x_5, x_6, x_7, x_8, x_9, x_10, x_98); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_104 = x_101; } else { - lean_dec_ref(x_90); - x_99 = lean_box(0); + lean_dec_ref(x_101); + x_104 = lean_box(0); } -if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(1, 2, 0); +x_105 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_105, 0, x_83); +lean_ctor_set(x_105, 1, x_84); +lean_ctor_set(x_105, 2, x_85); +lean_ctor_set(x_105, 3, x_86); +lean_ctor_set(x_105, 4, x_87); +lean_ctor_set(x_105, 5, x_102); +lean_ctor_set(x_105, 6, x_89); +lean_ctor_set(x_105, 7, x_97); +lean_ctor_set(x_105, 8, x_91); +x_106 = l_Lean_Meta_MatcherApp_toExpr(x_105); +if (lean_is_scalar(x_104)) { + x_107 = lean_alloc_ctor(0, 2, 0); } else { - x_100 = x_99; + x_107 = x_104; } -lean_ctor_set(x_100, 0, x_97); -lean_ctor_set(x_100, 1, x_98); -return x_100; +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_103); +return x_107; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_97); +lean_dec(x_91); +lean_dec(x_89); +lean_dec(x_87); +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_83); +x_108 = lean_ctor_get(x_101, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_101, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_110 = x_101; +} else { + lean_dec_ref(x_101); + x_110 = lean_box(0); +} +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); +} else { + x_111 = x_110; +} +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; } } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_80); -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_dec(x_73); -lean_dec(x_72); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_91); +lean_dec(x_89); +lean_dec(x_88); +lean_dec(x_87); +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_84); +lean_dec(x_83); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3381,32 +4058,34 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_101 = lean_ctor_get(x_85, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_85, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_103 = x_85; +x_112 = lean_ctor_get(x_96, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_96, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_114 = x_96; } else { - lean_dec_ref(x_85); - x_103 = lean_box(0); + lean_dec_ref(x_96); + x_114 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); } else { - x_104 = x_103; + x_115 = x_114; +} +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; } -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -return x_104; } } } else { -uint8_t x_105; +uint8_t x_116; +lean_dec(x_35); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3417,23 +4096,56 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_105 = !lean_is_exclusive(x_34); -if (x_105 == 0) +x_116 = !lean_is_exclusive(x_37); +if (x_116 == 0) +{ +return x_37; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_117 = lean_ctor_get(x_37, 0); +x_118 = lean_ctor_get(x_37, 1); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_37); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_117); +lean_ctor_set(x_119, 1, x_118); +return x_119; +} +} +} +else +{ +uint8_t x_120; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_120 = !lean_is_exclusive(x_34); +if (x_120 == 0) { return x_34; } else { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_34, 0); -x_107 = lean_ctor_get(x_34, 1); -lean_inc(x_107); -lean_inc(x_106); +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_34, 0); +x_122 = lean_ctor_get(x_34, 1); +lean_inc(x_122); +lean_inc(x_121); lean_dec(x_34); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -return x_108; +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; } } } @@ -3441,14 +4153,14 @@ return x_108; } case 6: { -lean_object* x_109; lean_object* x_110; lean_object* x_111; uint64_t x_112; lean_object* x_113; -x_109 = lean_ctor_get(x_4, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_4, 1); -lean_inc(x_110); -x_111 = lean_ctor_get(x_4, 2); -lean_inc(x_111); -x_112 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); +lean_object* x_124; lean_object* x_125; lean_object* x_126; uint64_t x_127; lean_object* x_128; +x_124 = lean_ctor_get(x_4, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_4, 1); +lean_inc(x_125); +x_126 = lean_ctor_get(x_4, 2); +lean_inc(x_126); +x_127 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); lean_dec(x_4); lean_inc(x_10); lean_inc(x_9); @@ -3459,29 +4171,29 @@ lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_113 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_110, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_113) == 0) +x_128 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_125, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_128) == 0) { -lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_116 = (uint8_t)((x_112 << 24) >> 61); -x_117 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__2___boxed), 12, 4); -lean_closure_set(x_117, 0, x_111); -lean_closure_set(x_117, 1, x_1); -lean_closure_set(x_117, 2, x_2); -lean_closure_set(x_117, 3, x_3); -x_118 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_109, x_116, x_114, x_117, x_5, x_6, x_7, x_8, x_9, x_10, x_115); -return x_118; +lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = (uint8_t)((x_127 << 24) >> 61); +x_132 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__2___boxed), 12, 4); +lean_closure_set(x_132, 0, x_126); +lean_closure_set(x_132, 1, x_1); +lean_closure_set(x_132, 2, x_2); +lean_closure_set(x_132, 3, x_3); +x_133 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_124, x_131, x_129, x_132, x_5, x_6, x_7, x_8, x_9, x_10, x_130); +return x_133; } else { -uint8_t x_119; -lean_dec(x_111); -lean_dec(x_109); +uint8_t x_134; +lean_dec(x_126); +lean_dec(x_124); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3491,36 +4203,36 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_119 = !lean_is_exclusive(x_113); -if (x_119 == 0) +x_134 = !lean_is_exclusive(x_128); +if (x_134 == 0) { -return x_113; +return x_128; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_113, 0); -x_121 = lean_ctor_get(x_113, 1); -lean_inc(x_121); -lean_inc(x_120); -lean_dec(x_113); -x_122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -return x_122; +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_128, 0); +x_136 = lean_ctor_get(x_128, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_128); +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; } } } case 7: { -lean_object* x_123; lean_object* x_124; lean_object* x_125; uint64_t x_126; lean_object* x_127; -x_123 = lean_ctor_get(x_4, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_4, 1); -lean_inc(x_124); -x_125 = lean_ctor_get(x_4, 2); -lean_inc(x_125); -x_126 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); +lean_object* x_138; lean_object* x_139; lean_object* x_140; uint64_t x_141; lean_object* x_142; +x_138 = lean_ctor_get(x_4, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_4, 1); +lean_inc(x_139); +x_140 = lean_ctor_get(x_4, 2); +lean_inc(x_140); +x_141 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); lean_dec(x_4); lean_inc(x_10); lean_inc(x_9); @@ -3531,29 +4243,29 @@ lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_127 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_124, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_127) == 0) +x_142 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_139, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_142) == 0) { -lean_object* x_128; lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -lean_dec(x_127); -x_130 = (uint8_t)((x_126 << 24) >> 61); -x_131 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__3___boxed), 12, 4); -lean_closure_set(x_131, 0, x_125); -lean_closure_set(x_131, 1, x_1); -lean_closure_set(x_131, 2, x_2); -lean_closure_set(x_131, 3, x_3); -x_132 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_123, x_130, x_128, x_131, x_5, x_6, x_7, x_8, x_9, x_10, x_129); -return x_132; +lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; +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_145 = (uint8_t)((x_141 << 24) >> 61); +x_146 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__3___boxed), 12, 4); +lean_closure_set(x_146, 0, x_140); +lean_closure_set(x_146, 1, x_1); +lean_closure_set(x_146, 2, x_2); +lean_closure_set(x_146, 3, x_3); +x_147 = l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___spec__1___rarg(x_138, x_145, x_143, x_146, x_5, x_6, x_7, x_8, x_9, x_10, x_144); +return x_147; } else { -uint8_t x_133; -lean_dec(x_125); -lean_dec(x_123); +uint8_t x_148; +lean_dec(x_140); +lean_dec(x_138); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -3563,37 +4275,37 @@ lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_133 = !lean_is_exclusive(x_127); -if (x_133 == 0) +x_148 = !lean_is_exclusive(x_142); +if (x_148 == 0) { -return x_127; +return x_142; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_127, 0); -x_135 = lean_ctor_get(x_127, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_127); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; +lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_149 = lean_ctor_get(x_142, 0); +x_150 = lean_ctor_get(x_142, 1); +lean_inc(x_150); +lean_inc(x_149); +lean_dec(x_142); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_149); +lean_ctor_set(x_151, 1, x_150); +return x_151; } } } case 8: { -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; -x_137 = lean_ctor_get(x_4, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_4, 1); -lean_inc(x_138); -x_139 = lean_ctor_get(x_4, 2); -lean_inc(x_139); -x_140 = lean_ctor_get(x_4, 3); -lean_inc(x_140); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_152 = lean_ctor_get(x_4, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_4, 1); +lean_inc(x_153); +x_154 = lean_ctor_get(x_4, 2); +lean_inc(x_154); +x_155 = lean_ctor_get(x_4, 3); +lean_inc(x_155); lean_dec(x_4); lean_inc(x_10); lean_inc(x_9); @@ -3604,168 +4316,104 @@ lean_inc(x_5); lean_inc(x_3); lean_inc(x_2); lean_inc(x_1); -x_141 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_138, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_141) == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -lean_dec(x_141); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_144 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_139, x_5, x_6, x_7, x_8, x_9, x_10, x_143); -if (lean_obj_tag(x_144) == 0) -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -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_147 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__4___boxed), 12, 4); -lean_closure_set(x_147, 0, x_140); -lean_closure_set(x_147, 1, x_1); -lean_closure_set(x_147, 2, x_2); -lean_closure_set(x_147, 3, x_3); -x_148 = l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(x_137, x_142, x_145, x_147, x_5, x_6, x_7, x_8, x_9, x_10, x_146); -return x_148; -} -else -{ -uint8_t x_149; -lean_dec(x_142); -lean_dec(x_140); -lean_dec(x_137); -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); -lean_dec(x_1); -x_149 = !lean_is_exclusive(x_144); -if (x_149 == 0) -{ -return x_144; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_150 = lean_ctor_get(x_144, 0); -x_151 = lean_ctor_get(x_144, 1); -lean_inc(x_151); -lean_inc(x_150); -lean_dec(x_144); -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; -} -} -} -else -{ -uint8_t x_153; -lean_dec(x_140); -lean_dec(x_139); -lean_dec(x_137); -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); -lean_dec(x_1); -x_153 = !lean_is_exclusive(x_141); -if (x_153 == 0) -{ -return x_141; -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_154 = lean_ctor_get(x_141, 0); -x_155 = lean_ctor_get(x_141, 1); -lean_inc(x_155); -lean_inc(x_154); -lean_dec(x_141); -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; -} -} -} -case 10: +x_156 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_153, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_156) == 0) { lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_4, 0); +x_157 = lean_ctor_get(x_156, 0); lean_inc(x_157); -x_158 = lean_ctor_get(x_4, 1); +x_158 = lean_ctor_get(x_156, 1); lean_inc(x_158); -x_159 = l_Lean_getRecAppSyntax_x3f(x_4); -lean_dec(x_4); +lean_dec(x_156); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_159 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_154, x_5, x_6, x_7, x_8, x_9, x_10, x_158); if (lean_obj_tag(x_159) == 0) { -lean_object* x_160; -x_160 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_158, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_160) == 0) -{ -uint8_t x_161; -x_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) -{ -lean_object* x_162; lean_object* x_163; -x_162 = lean_ctor_get(x_160, 0); -x_163 = l_Lean_mkMData(x_157, x_162); -lean_ctor_set(x_160, 0, x_163); -return x_160; +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_160 = lean_ctor_get(x_159, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_159, 1); +lean_inc(x_161); +lean_dec(x_159); +x_162 = lean_alloc_closure((void*)(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__4___boxed), 12, 4); +lean_closure_set(x_162, 0, x_155); +lean_closure_set(x_162, 1, x_1); +lean_closure_set(x_162, 2, x_2); +lean_closure_set(x_162, 3, x_3); +x_163 = l_Lean_Meta_withLetDecl___at_Lean_Elab_Term_elabLetDeclAux___spec__2___rarg(x_152, x_157, x_160, x_162, x_5, x_6, x_7, x_8, x_9, x_10, x_161); +return x_163; } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_164 = lean_ctor_get(x_160, 0); -x_165 = lean_ctor_get(x_160, 1); +uint8_t x_164; +lean_dec(x_157); +lean_dec(x_155); +lean_dec(x_152); +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); +lean_dec(x_1); +x_164 = !lean_is_exclusive(x_159); +if (x_164 == 0) +{ +return x_159; +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_165 = lean_ctor_get(x_159, 0); +x_166 = lean_ctor_get(x_159, 1); +lean_inc(x_166); lean_inc(x_165); -lean_inc(x_164); -lean_dec(x_160); -x_166 = l_Lean_mkMData(x_157, x_164); -x_167 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); +lean_dec(x_159); +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_168; -lean_dec(x_157); -x_168 = !lean_is_exclusive(x_160); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_152); +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); +lean_dec(x_1); +x_168 = !lean_is_exclusive(x_156); if (x_168 == 0) { -return x_160; +return x_156; } else { lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_169 = lean_ctor_get(x_160, 0); -x_170 = lean_ctor_get(x_160, 1); +x_169 = lean_ctor_get(x_156, 0); +x_170 = lean_ctor_get(x_156, 1); lean_inc(x_170); lean_inc(x_169); -lean_dec(x_160); +lean_dec(x_156); x_171 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_171, 0, x_169); lean_ctor_set(x_171, 1, x_170); @@ -3773,135 +4421,199 @@ return x_171; } } } +case 10: +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_4, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_4, 1); +lean_inc(x_173); +x_174 = l_Lean_getRecAppSyntax_x3f(x_4); +lean_dec(x_4); +if (lean_obj_tag(x_174) == 0) +{ +lean_object* x_175; +x_175 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_173, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_175) == 0) +{ +uint8_t x_176; +x_176 = !lean_is_exclusive(x_175); +if (x_176 == 0) +{ +lean_object* x_177; lean_object* x_178; +x_177 = lean_ctor_get(x_175, 0); +x_178 = l_Lean_mkMData(x_172, x_177); +lean_ctor_set(x_175, 0, x_178); +return x_175; +} else { -lean_object* x_172; uint8_t x_173; -lean_dec(x_157); -x_172 = lean_ctor_get(x_159, 0); -lean_inc(x_172); -lean_dec(x_159); -x_173 = !lean_is_exclusive(x_9); -if (x_173 == 0) +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_179 = lean_ctor_get(x_175, 0); +x_180 = lean_ctor_get(x_175, 1); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_175); +x_181 = l_Lean_mkMData(x_172, x_179); +x_182 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +else { -lean_object* x_174; lean_object* x_175; -x_174 = lean_ctor_get(x_9, 3); -x_175 = l_Lean_replaceRef(x_172, x_174); -lean_dec(x_174); +uint8_t x_183; lean_dec(x_172); -lean_ctor_set(x_9, 3, x_175); -x_4 = x_158; +x_183 = !lean_is_exclusive(x_175); +if (x_183 == 0) +{ +return x_175; +} +else +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_175, 0); +x_185 = lean_ctor_get(x_175, 1); +lean_inc(x_185); +lean_inc(x_184); +lean_dec(x_175); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_184); +lean_ctor_set(x_186, 1, x_185); +return x_186; +} +} +} +else +{ +lean_object* x_187; uint8_t x_188; +lean_dec(x_172); +x_187 = lean_ctor_get(x_174, 0); +lean_inc(x_187); +lean_dec(x_174); +x_188 = !lean_is_exclusive(x_9); +if (x_188 == 0) +{ +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_9, 3); +x_190 = l_Lean_replaceRef(x_187, x_189); +lean_dec(x_189); +lean_dec(x_187); +lean_ctor_set(x_9, 3, x_190); +x_4 = x_173; goto _start; } else { -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_177 = lean_ctor_get(x_9, 0); -x_178 = lean_ctor_get(x_9, 1); -x_179 = lean_ctor_get(x_9, 2); -x_180 = lean_ctor_get(x_9, 3); -x_181 = lean_ctor_get(x_9, 4); -x_182 = lean_ctor_get(x_9, 5); -x_183 = lean_ctor_get(x_9, 6); -x_184 = lean_ctor_get(x_9, 7); -lean_inc(x_184); -lean_inc(x_183); -lean_inc(x_182); -lean_inc(x_181); -lean_inc(x_180); -lean_inc(x_179); -lean_inc(x_178); -lean_inc(x_177); +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; +x_192 = lean_ctor_get(x_9, 0); +x_193 = lean_ctor_get(x_9, 1); +x_194 = lean_ctor_get(x_9, 2); +x_195 = lean_ctor_get(x_9, 3); +x_196 = lean_ctor_get(x_9, 4); +x_197 = lean_ctor_get(x_9, 5); +x_198 = lean_ctor_get(x_9, 6); +x_199 = lean_ctor_get(x_9, 7); +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_dec(x_9); -x_185 = l_Lean_replaceRef(x_172, x_180); -lean_dec(x_180); -lean_dec(x_172); -x_186 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_186, 0, x_177); -lean_ctor_set(x_186, 1, x_178); -lean_ctor_set(x_186, 2, x_179); -lean_ctor_set(x_186, 3, x_185); -lean_ctor_set(x_186, 4, x_181); -lean_ctor_set(x_186, 5, x_182); -lean_ctor_set(x_186, 6, x_183); -lean_ctor_set(x_186, 7, x_184); -x_4 = x_158; -x_9 = x_186; +x_200 = l_Lean_replaceRef(x_187, x_195); +lean_dec(x_195); +lean_dec(x_187); +x_201 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_201, 0, x_192); +lean_ctor_set(x_201, 1, x_193); +lean_ctor_set(x_201, 2, x_194); +lean_ctor_set(x_201, 3, x_200); +lean_ctor_set(x_201, 4, x_196); +lean_ctor_set(x_201, 5, x_197); +lean_ctor_set(x_201, 6, x_198); +lean_ctor_set(x_201, 7, x_199); +x_4 = x_173; +x_9 = x_201; goto _start; } } } case 11: { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_188 = lean_ctor_get(x_4, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_4, 1); -lean_inc(x_189); -x_190 = lean_ctor_get(x_4, 2); -lean_inc(x_190); +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_203 = lean_ctor_get(x_4, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_4, 1); +lean_inc(x_204); +x_205 = lean_ctor_get(x_4, 2); +lean_inc(x_205); lean_dec(x_4); -x_191 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_190, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_191) == 0) +x_206 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop(x_1, x_2, x_3, x_205, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_206) == 0) { -uint8_t x_192; -x_192 = !lean_is_exclusive(x_191); -if (x_192 == 0) +uint8_t x_207; +x_207 = !lean_is_exclusive(x_206); +if (x_207 == 0) { -lean_object* x_193; lean_object* x_194; -x_193 = lean_ctor_get(x_191, 0); -x_194 = l_Lean_mkProj(x_188, x_189, x_193); -lean_ctor_set(x_191, 0, x_194); -return x_191; +lean_object* x_208; lean_object* x_209; +x_208 = lean_ctor_get(x_206, 0); +x_209 = l_Lean_mkProj(x_203, x_204, x_208); +lean_ctor_set(x_206, 0, x_209); +return x_206; } else { -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_195 = lean_ctor_get(x_191, 0); -x_196 = lean_ctor_get(x_191, 1); -lean_inc(x_196); -lean_inc(x_195); -lean_dec(x_191); -x_197 = l_Lean_mkProj(x_188, x_189, x_195); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -return x_198; +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_210 = lean_ctor_get(x_206, 0); +x_211 = lean_ctor_get(x_206, 1); +lean_inc(x_211); +lean_inc(x_210); +lean_dec(x_206); +x_212 = l_Lean_mkProj(x_203, x_204, x_210); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_211); +return x_213; } } else { -uint8_t x_199; -lean_dec(x_189); -lean_dec(x_188); -x_199 = !lean_is_exclusive(x_191); -if (x_199 == 0) +uint8_t x_214; +lean_dec(x_204); +lean_dec(x_203); +x_214 = !lean_is_exclusive(x_206); +if (x_214 == 0) { -return x_191; +return x_206; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_191, 0); -x_201 = lean_ctor_get(x_191, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_191); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_206, 0); +x_216 = lean_ctor_get(x_206, 1); +lean_inc(x_216); +lean_inc(x_215); +lean_dec(x_206); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_216); +return x_217; } } } default: { -lean_object* x_203; +lean_object* x_218; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_203 = l_Lean_Elab_Structural_ensureNoRecFn(x_1, x_4, x_7, x_8, x_9, x_10, x_11); -return x_203; +x_218 = l_Lean_Elab_ensureNoRecFn(x_1, x_4, x_7, x_8, x_9, x_10, x_11); +return x_218; } } } @@ -3982,23 +4694,16 @@ x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__L return x_16; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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) { _start: { -lean_object* x_14; -x_14 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_6); -lean_dec(x_1); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; -x_15 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_1); -return x_15; +size_t x_14; size_t x_15; lean_object* x_16; +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_16; } } LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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, lean_object* x_12, lean_object* x_13) { @@ -4013,7 +4718,26 @@ x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__L return x_16; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_6); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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) { _start: { size_t x_14; size_t x_15; lean_object* x_16; @@ -4021,7 +4745,19 @@ x_14 = lean_unbox_usize(x_4); lean_dec(x_4); x_15 = lean_unbox_usize(x_5); lean_dec(x_5); -x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__11(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___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; +x_14 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__14(x_1, x_2, x_3, x_14, x_15, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); return x_16; } } @@ -4580,7 +5316,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_53 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_51, x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_49); +x_53 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_51, x_52, x_5, x_6, x_7, x_8, x_9, x_10, x_49); if (lean_obj_tag(x_53) == 0) { 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; @@ -4614,7 +5350,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_61 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_58, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_55); +x_61 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_58, x_60, x_5, x_6, x_7, x_8, x_9, x_10, x_55); if (lean_obj_tag(x_61) == 0) { lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; @@ -4640,7 +5376,7 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_67 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_64, x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_63); +x_67 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_64, x_66, x_5, x_6, x_7, x_8, x_9, x_10, x_63); if (lean_obj_tag(x_67) == 0) { lean_object* x_68; lean_object* x_69; lean_object* x_70; @@ -5261,7 +5997,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__4; x_2 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__5; -x_3 = lean_unsigned_to_nat(104u); +x_3 = lean_unsigned_to_nat(108u); x_4 = lean_unsigned_to_nat(49u); x_5 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processPSigmaCasesOn___closed__6; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -5472,7 +6208,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_69 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_67, x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_65); +x_69 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_67, x_68, x_5, x_6, x_7, x_8, x_9, x_10, x_65); if (lean_obj_tag(x_69) == 0) { lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; @@ -5499,7 +6235,7 @@ lean_closure_set(x_76, 2, x_61); lean_closure_set(x_76, 3, x_64); lean_closure_set(x_76, 4, x_1); lean_closure_set(x_76, 5, x_4); -x_77 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_74, x_76, x_5, x_6, x_7, x_8, x_9, x_10, x_71); +x_77 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_74, x_76, x_5, x_6, x_7, x_8, x_9, x_10, x_71); if (lean_obj_tag(x_77) == 0) { uint8_t x_78; @@ -5698,7 +6434,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_126 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_124, x_125, x_5, x_6, x_7, x_8, x_9, x_10, x_122); +x_126 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_124, x_125, x_5, x_6, x_7, x_8, x_9, x_10, x_122); if (lean_obj_tag(x_126) == 0) { lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; @@ -5725,7 +6461,7 @@ lean_closure_set(x_133, 2, x_118); lean_closure_set(x_133, 3, x_121); lean_closure_set(x_133, 4, x_1); lean_closure_set(x_133, 5, x_4); -x_134 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_131, x_133, x_5, x_6, x_7, x_8, x_9, x_10, x_128); +x_134 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_131, x_133, x_5, x_6, x_7, x_8, x_9, x_10, x_128); if (lean_obj_tag(x_134) == 0) { 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; @@ -5928,7 +6664,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_175 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_173, x_174, x_5, x_6, x_7, x_8, x_9, x_10, x_171); +x_175 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_173, x_174, x_5, x_6, x_7, x_8, x_9, x_10, x_171); if (lean_obj_tag(x_175) == 0) { lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; @@ -5955,7 +6691,7 @@ lean_closure_set(x_182, 2, x_167); lean_closure_set(x_182, 3, x_170); lean_closure_set(x_182, 4, x_1); lean_closure_set(x_182, 5, x_4); -x_183 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_180, x_182, x_5, x_6, x_7, x_8, x_9, x_10, x_177); +x_183 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_180, x_182, x_5, x_6, x_7, x_8, x_9, x_10, x_177); if (lean_obj_tag(x_183) == 0) { 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; @@ -6229,7 +6965,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_235 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_233, x_234, x_5, x_6, x_7, x_8, x_9, x_10, x_231); +x_235 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_233, x_234, x_5, x_6, x_7, x_8, x_9, x_10, x_231); if (lean_obj_tag(x_235) == 0) { 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; @@ -6256,7 +6992,7 @@ lean_closure_set(x_242, 2, x_227); lean_closure_set(x_242, 3, x_230); lean_closure_set(x_242, 4, x_1); lean_closure_set(x_242, 5, x_4); -x_243 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_240, x_242, x_5, x_6, x_7, x_8, x_9, x_10, x_237); +x_243 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_240, x_242, x_5, x_6, x_7, x_8, x_9, x_10, x_237); if (lean_obj_tag(x_243) == 0) { lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; 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; @@ -6761,7 +7497,7 @@ return x_14; LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkFix___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -lean_object* x_19; 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_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_19 = l_Lean_instInhabitedExpr; x_20 = lean_unsigned_to_nat(0u); x_21 = lean_array_get(x_19, x_10, x_20); @@ -6770,33 +7506,33 @@ x_23 = lean_array_get(x_19, x_10, x_22); x_24 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__4; lean_inc(x_21); x_25 = lean_array_push(x_24, x_21); -x_26 = l_Lean_Expr_betaRev(x_1, x_25); +x_26 = 0; +x_27 = l_Lean_Expr_betaRev(x_1, x_25, x_26); lean_dec(x_25); lean_inc(x_2); -x_27 = lean_alloc_closure((void*)(l_Lean_Elab_WF_mkFix___lambda__2), 12, 2); -lean_closure_set(x_27, 0, x_2); -lean_closure_set(x_27, 1, x_3); +x_28 = lean_alloc_closure((void*)(l_Lean_Elab_WF_mkFix___lambda__2), 12, 2); +lean_closure_set(x_28, 0, x_2); +lean_closure_set(x_28, 1, x_3); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_inc(x_14); lean_inc(x_23); lean_inc(x_21); -x_28 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn(x_21, x_23, x_26, x_27, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -if (lean_obj_tag(x_28) == 0) +x_29 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn(x_21, x_23, x_27, x_28, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_28, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; +x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -x_31 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___lambda__2___closed__1; -x_32 = lean_array_push(x_31, x_21); -x_33 = lean_array_push(x_32, x_23); -x_34 = 0; +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_processSumCasesOn___lambda__2___closed__1; +x_33 = lean_array_push(x_32, x_21); +x_34 = lean_array_push(x_33, x_23); x_35 = 1; -x_36 = l_Lean_Meta_mkLambdaFVars(x_33, x_29, x_34, x_35, x_14, x_15, x_16, x_17, x_30); +x_36 = l_Lean_Meta_mkLambdaFVars(x_34, x_30, x_26, x_35, x_14, x_15, x_16, x_17, x_31); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -6887,19 +7623,19 @@ lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_50 = !lean_is_exclusive(x_28); +x_50 = !lean_is_exclusive(x_29); if (x_50 == 0) { -return x_28; +return x_29; } else { lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_28, 0); -x_52 = lean_ctor_get(x_28, 1); +x_51 = lean_ctor_get(x_29, 0); +x_52 = lean_ctor_get(x_29, 1); lean_inc(x_52); lean_inc(x_51); -lean_dec(x_28); +lean_dec(x_29); x_53 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); @@ -7158,7 +7894,6 @@ lean_dec(x_6); x_20 = l_Lean_Elab_WF_mkFix___lambda__3(x_1, x_2, x_3, x_4, x_5, x_19, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_1); return x_20; } } @@ -7170,6 +7905,7 @@ lean_object* initialize_Lean_Elab_Tactic_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_RecAppSyntax(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_PreDefinition_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_PreDefinition_Structural_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_PreDefinition_Structural_BRecOn(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_PreDefinition_WF_Fix(uint8_t builtin, lean_object* w) { lean_object * res; @@ -7199,6 +7935,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_PreDefinition_Structural_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_PreDefinition_Structural_BRecOn(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__1 = _init_l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__1); l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__2 = _init_l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___lambda__1___closed__2(); @@ -7211,18 +7950,18 @@ l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTacti lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_applyDefaultDecrTactic___closed__1); l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__1___closed__1 = _init_l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__1___closed__1(); lean_mark_persistent(l_Lean_Meta_matchMatcherApp_x3f___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__1___closed__1); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__1); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__2(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__2); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__3 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__3(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__3); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__4(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__4); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__5 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__5(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__5); -l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__6 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__6(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__10___lambda__2___closed__6); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__1(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__1); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__2(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__2); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__3 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__3(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__3); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__4 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__4(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__4); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__5 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__5(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__5); +l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__6 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__6(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__13___lambda__2___closed__6); l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1___closed__1 = _init_l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1___closed__1); l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1___closed__2 = _init_l___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c index 63ded3c16c..8a2a0dcb11 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Main.c @@ -104,6 +104,7 @@ static lean_object* l_Lean_Elab_wfRecursion___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_wfRecursion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs___spec__2___closed__8; lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); +lean_object* l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__9; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -117,7 +118,6 @@ lean_object* l_Lean_Elab_WF_mkFix(lean_object*, lean_object*, lean_object*, lean lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_wfRecursion___spec__2___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_wfRecursion___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_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__8; lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Elab_PreDefinition_WF_Main_0__Lean_Elab_addNonRecPreDefs_mkSum___spec__1___closed__2; @@ -909,7 +909,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_32 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__9___rarg(x_30, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_32 = l_Lean_Meta_lambdaTelescope___at___private_Lean_Elab_PreDefinition_WF_Fix_0__Lean_Elab_WF_replaceRecApps_loop___spec__12___rarg(x_30, x_31, x_10, x_11, x_12, x_13, x_14, x_15, x_16); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackDomain.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackDomain.c index 81eb64136d..7c397a56b0 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackDomain.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/PackDomain.c @@ -17,7 +17,7 @@ lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2(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*); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__3; lean_object* l_Lean_Elab_addAsAxiom(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -25,154 +25,178 @@ lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___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* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__9; static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__8; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__4; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications(lean_object*, lean_object*, lean_object*, 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_throwError___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__10; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__3; uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_forallTelescopeCompatibleAux___spec__15___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__1; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); extern lean_object* l_instInhabitedNat; -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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_string_append(lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__3; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkUnaryArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__7; LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVars(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain___spec__2(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__7; lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkUnaryArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___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*, lean_object*); +lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +lean_object* l_Lean_mkMData(lean_object*, lean_object*); lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___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*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkProj(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__4; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__1; static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__6; +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkUnaryArg_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visitApp(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* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__11; 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_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkTupleElems___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__2___closed__1; lean_object* l_Nat_repr(lean_object*); -LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__7(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__2; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__2; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkTupleElems___closed__1; lean_object* l_Array_back___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_instInhabitedPreDefinition; +static lean_object* l_Lean_Elab_WF_packDomain_packApplications_visitApp___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkTupleElems(lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__3; extern lean_object* l_Lean_instInhabitedExpr; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, 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_Array_reverse___rarg(lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___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*, lean_object*); +LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__2; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__3; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkUnaryArg_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkTupleElems___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__7; lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___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*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__9; lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__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_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__4; +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__8; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_packDomain_packApplications_visitApp___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_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_transform___at_Lean_Meta_expandCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5___closed__1; +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__1; lean_object* l_Lean_Name_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___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_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__4; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_instantiateForallAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__1; +static lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__1___closed__1; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__9; static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__2; +lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___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*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__7___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__1(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__3; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__3; +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__3; static lean_object* l_panic___at___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___spec__1___closed__1; -LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_WF_packDomain___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__2; lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__2; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__2; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__4; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_pop(lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_Lean_Elab_WF_packDomain___closed__2; -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__5; static lean_object* l_Lean_Elab_WF_packDomain___closed__1; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2(lean_object*); +static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__10; +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__10; +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findIdx_x3f_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__2; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__1; lean_object* l_panic___at_Lean_Meta_whnfCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__1; +static lean_object* l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__2; lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___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_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x21(lean_object*); static lean_object* l_Lean_Elab_WF_mkUnaryArg_go___closed__5; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkTupleElems___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkTupleElems___spec__1___closed__1; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__4; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkTupleElems___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__3; -static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__6; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__1; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -908,6 +932,2511 @@ return x_23; } } } +LEAN_EXPORT uint8_t l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___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_2, 3); +x_4 = l_Lean_Expr_constName_x21(x_1); +x_5 = lean_name_eq(x_3, x_4); +lean_dec(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = l_Lean_Expr_getAppFn(x_2); +x_4 = l_Lean_Expr_isConst(x_3); +if (x_4 == 0) +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_box(0); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___lambda__1___boxed), 2, 1); +lean_closure_set(x_6, 0, x_3); +x_7 = lean_array_get_size(x_1); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Array_findIdx_x3f_loop___rarg(x_1, x_6, x_7, x_8, lean_box(0)); +return x_9; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___lambda__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__1(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, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_usize_dec_lt(x_5, x_4); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_array_uget(x_6, x_5); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_array_uset(x_6, x_5, x_15); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_17 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_14, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = 1; +x_21 = lean_usize_add(x_5, x_20); +x_22 = lean_array_uset(x_16, x_5, x_18); +x_5 = x_21; +x_6 = x_22; +x_11 = x_19; +goto _start; +} +else +{ +uint8_t x_24; +lean_dec(x_16); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +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_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +return x_10; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +else +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2___rarg), 9, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; +x_9 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__1; +lean_inc(x_3); +x_10 = lean_array_push(x_9, x_3); +x_11 = lean_array_get_size(x_1); +x_12 = l_Array_toSubarray___rarg(x_1, x_2, x_11); +x_13 = l_Array_ofSubarray___rarg(x_12); +x_14 = l_Lean_mkAppN(x_3, x_13); +x_15 = 0; +x_16 = 1; +x_17 = l_Lean_Meta_mkLambdaFVars(x_10, x_14, x_15, x_16, x_4, x_5, x_6, x_7, x_8); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_array_get_size(x_6); +x_14 = lean_nat_dec_eq(x_13, x_1); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_15 = l_Lean_mkAppN(x_2, x_3); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_12); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = l_Lean_mkAppN(x_2, x_3); +lean_inc(x_6); +x_18 = l_Lean_mkAppN(x_17, x_6); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_19 = lean_apply_7(x_4, x_18, x_5, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = 0; +x_23 = 1; +x_24 = l_Lean_Meta_mkLambdaFVars(x_6, x_20, x_22, x_23, x_8, x_9, x_10, x_11, x_21); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) +{ +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_19, 0); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_19); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("aux"); +return x_1; +} +} +static lean_object* _init_l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +if (lean_obj_tag(x_5) == 5) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_5, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_5, 1); +lean_inc(x_14); +lean_dec(x_5); +x_15 = lean_array_set(x_6, x_7, x_14); +x_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_7, x_16); +lean_dec(x_7); +x_5 = x_13; +x_6 = x_15; +x_7 = x_17; +goto _start; +} +else +{ +lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; +lean_dec(x_7); +x_19 = lean_array_get_size(x_6); +x_20 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_21 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_22 = l_Array_mapMUnsafe_map___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__1(x_1, x_2, x_3, x_20, x_21, x_6, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +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_22, 1); +x_26 = l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f(x_1, x_5); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +lean_dec(x_4); +x_27 = l_Array_isEmpty___rarg(x_24); +if (x_27 == 0) +{ +lean_object* x_28; +lean_free_object(x_22); +x_28 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_5, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_28) == 0) +{ +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +x_31 = l_Lean_mkAppN(x_30, x_24); +lean_ctor_set(x_28, 0, x_31); +return x_28; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_28, 0); +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_28); +x_34 = l_Lean_mkAppN(x_32, x_24); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_24); +x_36 = !lean_is_exclusive(x_28); +if (x_36 == 0) +{ +return x_28; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_28, 0); +x_38 = lean_ctor_get(x_28, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_28); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +lean_ctor_set(x_22, 0, x_5); +return x_22; +} +} +else +{ +uint8_t x_40; +lean_free_object(x_22); +lean_dec(x_1); +x_40 = !lean_is_exclusive(x_26); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_41 = lean_ctor_get(x_26, 0); +x_42 = lean_array_get_size(x_24); +x_43 = l_instInhabitedNat; +x_44 = lean_array_get(x_43, x_2, x_41); +lean_dec(x_2); +x_45 = lean_nat_dec_lt(x_42, x_44); +if (x_45 == 0) +{ +uint8_t x_46; +lean_free_object(x_26); +lean_dec(x_4); +x_46 = lean_nat_dec_lt(x_44, x_42); +lean_dec(x_42); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_44); +x_47 = l_Lean_mkAppN(x_5, x_24); +x_48 = lean_apply_7(x_3, x_47, x_41, x_8, x_9, x_10, x_11, x_25); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_unsigned_to_nat(0u); +lean_inc(x_44); +lean_inc(x_24); +x_50 = l_Array_toSubarray___rarg(x_24, x_49, x_44); +x_51 = l_Array_ofSubarray___rarg(x_50); +x_52 = l_Lean_mkAppN(x_5, x_51); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_53 = lean_apply_7(x_3, x_52, x_41, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_54); +x_56 = lean_infer_type(x_54, x_8, x_9, x_10, x_11, x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2; +x_60 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_59, x_10, x_11, x_58); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__1___boxed), 8, 2); +lean_closure_set(x_63, 0, x_24); +lean_closure_set(x_63, 1, x_44); +x_64 = l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2___rarg(x_61, x_57, x_54, x_63, x_8, x_9, x_10, x_11, x_62); +return x_64; +} +else +{ +uint8_t x_65; +lean_dec(x_54); +lean_dec(x_44); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_65 = !lean_is_exclusive(x_56); +if (x_65 == 0) +{ +return x_56; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_56, 0); +x_67 = lean_ctor_get(x_56, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_56); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_44); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_69 = !lean_is_exclusive(x_53); +if (x_69 == 0) +{ +return x_53; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_53, 0); +x_71 = lean_ctor_get(x_53, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_53); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +} +else +{ +lean_object* x_73; uint8_t x_74; +x_73 = lean_nat_sub(x_44, x_42); +lean_dec(x_42); +lean_dec(x_44); +x_74 = !lean_is_exclusive(x_8); +if (x_74 == 0) +{ +lean_object* x_75; uint8_t x_76; +x_75 = lean_ctor_get(x_8, 0); +x_76 = !lean_is_exclusive(x_75); +if (x_76 == 0) +{ +uint8_t x_77; lean_object* x_78; +x_77 = 1; +lean_ctor_set_uint8(x_75, 5, x_77); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_78 = lean_infer_type(x_4, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +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); +lean_inc(x_73); +lean_ctor_set(x_26, 0, x_73); +x_81 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2___boxed), 12, 5); +lean_closure_set(x_81, 0, x_73); +lean_closure_set(x_81, 1, x_5); +lean_closure_set(x_81, 2, x_24); +lean_closure_set(x_81, 3, x_3); +lean_closure_set(x_81, 4, x_41); +x_82 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(x_79, x_26, x_81, x_8, x_9, x_10, x_11, x_80); +if (lean_obj_tag(x_82) == 0) +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +return x_82; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_82, 0); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_82); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +else +{ +uint8_t x_87; +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +return x_82; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_82); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +else +{ +uint8_t x_91; +lean_dec(x_8); +lean_dec(x_73); +lean_free_object(x_26); +lean_dec(x_41); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +x_91 = !lean_is_exclusive(x_78); +if (x_91 == 0) +{ +return x_78; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_78, 0); +x_93 = lean_ctor_get(x_78, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_78); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +return x_94; +} +} +} +else +{ +uint8_t x_95; uint8_t x_96; uint8_t x_97; uint8_t x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; +x_95 = lean_ctor_get_uint8(x_75, 0); +x_96 = lean_ctor_get_uint8(x_75, 1); +x_97 = lean_ctor_get_uint8(x_75, 2); +x_98 = lean_ctor_get_uint8(x_75, 3); +x_99 = lean_ctor_get_uint8(x_75, 4); +x_100 = lean_ctor_get_uint8(x_75, 6); +x_101 = lean_ctor_get_uint8(x_75, 7); +x_102 = lean_ctor_get_uint8(x_75, 8); +x_103 = lean_ctor_get_uint8(x_75, 9); +x_104 = lean_ctor_get_uint8(x_75, 10); +x_105 = lean_ctor_get_uint8(x_75, 11); +x_106 = lean_ctor_get_uint8(x_75, 12); +x_107 = lean_ctor_get_uint8(x_75, 13); +lean_dec(x_75); +x_108 = 1; +x_109 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_109, 0, x_95); +lean_ctor_set_uint8(x_109, 1, x_96); +lean_ctor_set_uint8(x_109, 2, x_97); +lean_ctor_set_uint8(x_109, 3, x_98); +lean_ctor_set_uint8(x_109, 4, x_99); +lean_ctor_set_uint8(x_109, 5, x_108); +lean_ctor_set_uint8(x_109, 6, x_100); +lean_ctor_set_uint8(x_109, 7, x_101); +lean_ctor_set_uint8(x_109, 8, x_102); +lean_ctor_set_uint8(x_109, 9, x_103); +lean_ctor_set_uint8(x_109, 10, x_104); +lean_ctor_set_uint8(x_109, 11, x_105); +lean_ctor_set_uint8(x_109, 12, x_106); +lean_ctor_set_uint8(x_109, 13, x_107); +lean_ctor_set(x_8, 0, x_109); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_110 = lean_infer_type(x_4, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +lean_inc(x_73); +lean_ctor_set(x_26, 0, x_73); +x_113 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2___boxed), 12, 5); +lean_closure_set(x_113, 0, x_73); +lean_closure_set(x_113, 1, x_5); +lean_closure_set(x_113, 2, x_24); +lean_closure_set(x_113, 3, x_3); +lean_closure_set(x_113, 4, x_41); +x_114 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(x_111, x_26, x_113, x_8, x_9, x_10, x_11, x_112); +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_117 = x_114; +} else { + lean_dec_ref(x_114); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(0, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_114, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_114, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_121 = x_114; +} else { + lean_dec_ref(x_114); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_8); +lean_dec(x_73); +lean_free_object(x_26); +lean_dec(x_41); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +x_123 = lean_ctor_get(x_110, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_110, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_125 = x_110; +} else { + lean_dec_ref(x_110); + x_125 = lean_box(0); +} +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); +} else { + x_126 = x_125; +} +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} +} +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; uint8_t x_138; uint8_t x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; uint8_t x_144; uint8_t x_145; lean_object* x_146; uint8_t x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_127 = lean_ctor_get(x_8, 0); +x_128 = lean_ctor_get(x_8, 1); +x_129 = lean_ctor_get(x_8, 2); +x_130 = lean_ctor_get(x_8, 3); +x_131 = lean_ctor_get(x_8, 4); +x_132 = lean_ctor_get(x_8, 5); +lean_inc(x_132); +lean_inc(x_131); +lean_inc(x_130); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_8); +x_133 = lean_ctor_get_uint8(x_127, 0); +x_134 = lean_ctor_get_uint8(x_127, 1); +x_135 = lean_ctor_get_uint8(x_127, 2); +x_136 = lean_ctor_get_uint8(x_127, 3); +x_137 = lean_ctor_get_uint8(x_127, 4); +x_138 = lean_ctor_get_uint8(x_127, 6); +x_139 = lean_ctor_get_uint8(x_127, 7); +x_140 = lean_ctor_get_uint8(x_127, 8); +x_141 = lean_ctor_get_uint8(x_127, 9); +x_142 = lean_ctor_get_uint8(x_127, 10); +x_143 = lean_ctor_get_uint8(x_127, 11); +x_144 = lean_ctor_get_uint8(x_127, 12); +x_145 = lean_ctor_get_uint8(x_127, 13); +if (lean_is_exclusive(x_127)) { + x_146 = x_127; +} else { + lean_dec_ref(x_127); + x_146 = lean_box(0); +} +x_147 = 1; +if (lean_is_scalar(x_146)) { + x_148 = lean_alloc_ctor(0, 0, 14); +} else { + x_148 = x_146; +} +lean_ctor_set_uint8(x_148, 0, x_133); +lean_ctor_set_uint8(x_148, 1, x_134); +lean_ctor_set_uint8(x_148, 2, x_135); +lean_ctor_set_uint8(x_148, 3, x_136); +lean_ctor_set_uint8(x_148, 4, x_137); +lean_ctor_set_uint8(x_148, 5, x_147); +lean_ctor_set_uint8(x_148, 6, x_138); +lean_ctor_set_uint8(x_148, 7, x_139); +lean_ctor_set_uint8(x_148, 8, x_140); +lean_ctor_set_uint8(x_148, 9, x_141); +lean_ctor_set_uint8(x_148, 10, x_142); +lean_ctor_set_uint8(x_148, 11, x_143); +lean_ctor_set_uint8(x_148, 12, x_144); +lean_ctor_set_uint8(x_148, 13, x_145); +x_149 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_128); +lean_ctor_set(x_149, 2, x_129); +lean_ctor_set(x_149, 3, x_130); +lean_ctor_set(x_149, 4, x_131); +lean_ctor_set(x_149, 5, x_132); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_149); +x_150 = lean_infer_type(x_4, x_149, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +lean_inc(x_73); +lean_ctor_set(x_26, 0, x_73); +x_153 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2___boxed), 12, 5); +lean_closure_set(x_153, 0, x_73); +lean_closure_set(x_153, 1, x_5); +lean_closure_set(x_153, 2, x_24); +lean_closure_set(x_153, 3, x_3); +lean_closure_set(x_153, 4, x_41); +x_154 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(x_151, x_26, x_153, x_149, x_9, x_10, x_11, x_152); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_157 = x_154; +} else { + lean_dec_ref(x_154); + x_157 = lean_box(0); +} +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(0, 2, 0); +} else { + x_158 = x_157; +} +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_159 = lean_ctor_get(x_154, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_154, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_161 = x_154; +} else { + lean_dec_ref(x_154); + x_161 = lean_box(0); +} +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); +} else { + x_162 = x_161; +} +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; +} +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_149); +lean_dec(x_73); +lean_free_object(x_26); +lean_dec(x_41); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +x_163 = lean_ctor_get(x_150, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_150, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_165 = x_150; +} else { + lean_dec_ref(x_150); + x_165 = lean_box(0); +} +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; +} +} +} +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_167 = lean_ctor_get(x_26, 0); +lean_inc(x_167); +lean_dec(x_26); +x_168 = lean_array_get_size(x_24); +x_169 = l_instInhabitedNat; +x_170 = lean_array_get(x_169, x_2, x_167); +lean_dec(x_2); +x_171 = lean_nat_dec_lt(x_168, x_170); +if (x_171 == 0) +{ +uint8_t x_172; +lean_dec(x_4); +x_172 = lean_nat_dec_lt(x_170, x_168); +lean_dec(x_168); +if (x_172 == 0) +{ +lean_object* x_173; lean_object* x_174; +lean_dec(x_170); +x_173 = l_Lean_mkAppN(x_5, x_24); +x_174 = lean_apply_7(x_3, x_173, x_167, x_8, x_9, x_10, x_11, x_25); +return x_174; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_175 = lean_unsigned_to_nat(0u); +lean_inc(x_170); +lean_inc(x_24); +x_176 = l_Array_toSubarray___rarg(x_24, x_175, x_170); +x_177 = l_Array_ofSubarray___rarg(x_176); +x_178 = l_Lean_mkAppN(x_5, x_177); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_179 = lean_apply_7(x_3, x_178, x_167, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_180); +x_182 = lean_infer_type(x_180, x_8, x_9, x_10, x_11, x_181); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_185 = l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2; +x_186 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_185, x_10, x_11, x_184); +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 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__1___boxed), 8, 2); +lean_closure_set(x_189, 0, x_24); +lean_closure_set(x_189, 1, x_170); +x_190 = l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2___rarg(x_187, x_183, x_180, x_189, x_8, x_9, x_10, x_11, x_188); +return x_190; +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_180); +lean_dec(x_170); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_191 = lean_ctor_get(x_182, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_182, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_193 = x_182; +} else { + lean_dec_ref(x_182); + x_193 = lean_box(0); +} +if (lean_is_scalar(x_193)) { + x_194 = lean_alloc_ctor(1, 2, 0); +} else { + x_194 = x_193; +} +lean_ctor_set(x_194, 0, x_191); +lean_ctor_set(x_194, 1, x_192); +return x_194; +} +} +else +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_170); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_195 = lean_ctor_get(x_179, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_179, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + lean_ctor_release(x_179, 1); + x_197 = x_179; +} else { + lean_dec_ref(x_179); + x_197 = lean_box(0); +} +if (lean_is_scalar(x_197)) { + x_198 = lean_alloc_ctor(1, 2, 0); +} else { + x_198 = x_197; +} +lean_ctor_set(x_198, 0, x_195); +lean_ctor_set(x_198, 1, x_196); +return x_198; +} +} +} +else +{ +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; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; uint8_t x_216; uint8_t x_217; uint8_t x_218; uint8_t x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_199 = lean_nat_sub(x_170, x_168); +lean_dec(x_168); +lean_dec(x_170); +x_200 = lean_ctor_get(x_8, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_8, 1); +lean_inc(x_201); +x_202 = lean_ctor_get(x_8, 2); +lean_inc(x_202); +x_203 = lean_ctor_get(x_8, 3); +lean_inc(x_203); +x_204 = lean_ctor_get(x_8, 4); +lean_inc(x_204); +x_205 = lean_ctor_get(x_8, 5); +lean_inc(x_205); +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); + x_206 = x_8; +} else { + lean_dec_ref(x_8); + x_206 = lean_box(0); +} +x_207 = lean_ctor_get_uint8(x_200, 0); +x_208 = lean_ctor_get_uint8(x_200, 1); +x_209 = lean_ctor_get_uint8(x_200, 2); +x_210 = lean_ctor_get_uint8(x_200, 3); +x_211 = lean_ctor_get_uint8(x_200, 4); +x_212 = lean_ctor_get_uint8(x_200, 6); +x_213 = lean_ctor_get_uint8(x_200, 7); +x_214 = lean_ctor_get_uint8(x_200, 8); +x_215 = lean_ctor_get_uint8(x_200, 9); +x_216 = lean_ctor_get_uint8(x_200, 10); +x_217 = lean_ctor_get_uint8(x_200, 11); +x_218 = lean_ctor_get_uint8(x_200, 12); +x_219 = lean_ctor_get_uint8(x_200, 13); +if (lean_is_exclusive(x_200)) { + x_220 = x_200; +} else { + lean_dec_ref(x_200); + x_220 = lean_box(0); +} +x_221 = 1; +if (lean_is_scalar(x_220)) { + x_222 = lean_alloc_ctor(0, 0, 14); +} else { + x_222 = x_220; +} +lean_ctor_set_uint8(x_222, 0, x_207); +lean_ctor_set_uint8(x_222, 1, x_208); +lean_ctor_set_uint8(x_222, 2, x_209); +lean_ctor_set_uint8(x_222, 3, x_210); +lean_ctor_set_uint8(x_222, 4, x_211); +lean_ctor_set_uint8(x_222, 5, x_221); +lean_ctor_set_uint8(x_222, 6, x_212); +lean_ctor_set_uint8(x_222, 7, x_213); +lean_ctor_set_uint8(x_222, 8, x_214); +lean_ctor_set_uint8(x_222, 9, x_215); +lean_ctor_set_uint8(x_222, 10, x_216); +lean_ctor_set_uint8(x_222, 11, x_217); +lean_ctor_set_uint8(x_222, 12, x_218); +lean_ctor_set_uint8(x_222, 13, x_219); +if (lean_is_scalar(x_206)) { + x_223 = lean_alloc_ctor(0, 6, 0); +} else { + x_223 = x_206; +} +lean_ctor_set(x_223, 0, x_222); +lean_ctor_set(x_223, 1, x_201); +lean_ctor_set(x_223, 2, x_202); +lean_ctor_set(x_223, 3, x_203); +lean_ctor_set(x_223, 4, x_204); +lean_ctor_set(x_223, 5, x_205); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_223); +x_224 = lean_infer_type(x_4, x_223, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +lean_dec(x_224); +lean_inc(x_199); +x_227 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_227, 0, x_199); +x_228 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2___boxed), 12, 5); +lean_closure_set(x_228, 0, x_199); +lean_closure_set(x_228, 1, x_5); +lean_closure_set(x_228, 2, x_24); +lean_closure_set(x_228, 3, x_3); +lean_closure_set(x_228, 4, x_167); +x_229 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(x_225, x_227, x_228, x_223, x_9, x_10, x_11, x_226); +if (lean_obj_tag(x_229) == 0) +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_230 = lean_ctor_get(x_229, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_232 = x_229; +} else { + lean_dec_ref(x_229); + x_232 = lean_box(0); +} +if (lean_is_scalar(x_232)) { + x_233 = lean_alloc_ctor(0, 2, 0); +} else { + x_233 = x_232; +} +lean_ctor_set(x_233, 0, x_230); +lean_ctor_set(x_233, 1, x_231); +return x_233; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_234 = lean_ctor_get(x_229, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_229, 1); +lean_inc(x_235); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_236 = x_229; +} else { + lean_dec_ref(x_229); + x_236 = lean_box(0); +} +if (lean_is_scalar(x_236)) { + x_237 = lean_alloc_ctor(1, 2, 0); +} else { + x_237 = x_236; +} +lean_ctor_set(x_237, 0, x_234); +lean_ctor_set(x_237, 1, x_235); +return x_237; +} +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +lean_dec(x_223); +lean_dec(x_199); +lean_dec(x_167); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +x_238 = lean_ctor_get(x_224, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_224, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_240 = x_224; +} else { + lean_dec_ref(x_224); + x_240 = lean_box(0); +} +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(1, 2, 0); +} else { + x_241 = x_240; +} +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +return x_241; +} +} +} +} +} +else +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_242 = lean_ctor_get(x_22, 0); +x_243 = lean_ctor_get(x_22, 1); +lean_inc(x_243); +lean_inc(x_242); +lean_dec(x_22); +x_244 = l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f(x_1, x_5); +if (lean_obj_tag(x_244) == 0) +{ +uint8_t x_245; +lean_dec(x_4); +x_245 = l_Array_isEmpty___rarg(x_242); +if (x_245 == 0) +{ +lean_object* x_246; +x_246 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_5, x_8, x_9, x_10, x_11, x_243); +if (lean_obj_tag(x_246) == 0) +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_247 = lean_ctor_get(x_246, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_246, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_249 = x_246; +} else { + lean_dec_ref(x_246); + x_249 = lean_box(0); +} +x_250 = l_Lean_mkAppN(x_247, x_242); +if (lean_is_scalar(x_249)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_249; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_248); +return x_251; +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_242); +x_252 = lean_ctor_get(x_246, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_246, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_254 = x_246; +} else { + lean_dec_ref(x_246); + x_254 = lean_box(0); +} +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(1, 2, 0); +} else { + x_255 = x_254; +} +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_253); +return x_255; +} +} +else +{ +lean_object* x_256; +lean_dec(x_242); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_256 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_256, 0, x_5); +lean_ctor_set(x_256, 1, x_243); +return x_256; +} +} +else +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; +lean_dec(x_1); +x_257 = lean_ctor_get(x_244, 0); +lean_inc(x_257); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + x_258 = x_244; +} else { + lean_dec_ref(x_244); + x_258 = lean_box(0); +} +x_259 = lean_array_get_size(x_242); +x_260 = l_instInhabitedNat; +x_261 = lean_array_get(x_260, x_2, x_257); +lean_dec(x_2); +x_262 = lean_nat_dec_lt(x_259, x_261); +if (x_262 == 0) +{ +uint8_t x_263; +lean_dec(x_258); +lean_dec(x_4); +x_263 = lean_nat_dec_lt(x_261, x_259); +lean_dec(x_259); +if (x_263 == 0) +{ +lean_object* x_264; lean_object* x_265; +lean_dec(x_261); +x_264 = l_Lean_mkAppN(x_5, x_242); +x_265 = lean_apply_7(x_3, x_264, x_257, x_8, x_9, x_10, x_11, x_243); +return x_265; +} +else +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_266 = lean_unsigned_to_nat(0u); +lean_inc(x_261); +lean_inc(x_242); +x_267 = l_Array_toSubarray___rarg(x_242, x_266, x_261); +x_268 = l_Array_ofSubarray___rarg(x_267); +x_269 = l_Lean_mkAppN(x_5, x_268); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_270 = lean_apply_7(x_3, x_269, x_257, x_8, x_9, x_10, x_11, x_243); +if (lean_obj_tag(x_270) == 0) +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +x_272 = lean_ctor_get(x_270, 1); +lean_inc(x_272); +lean_dec(x_270); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_271); +x_273 = lean_infer_type(x_271, x_8, x_9, x_10, x_11, x_272); +if (lean_obj_tag(x_273) == 0) +{ +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; +x_274 = lean_ctor_get(x_273, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 1); +lean_inc(x_275); +lean_dec(x_273); +x_276 = l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2; +x_277 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_276, x_10, x_11, x_275); +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_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__1___boxed), 8, 2); +lean_closure_set(x_280, 0, x_242); +lean_closure_set(x_280, 1, x_261); +x_281 = l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2___rarg(x_278, x_274, x_271, x_280, x_8, x_9, x_10, x_11, x_279); +return x_281; +} +else +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +lean_dec(x_271); +lean_dec(x_261); +lean_dec(x_242); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_282 = lean_ctor_get(x_273, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_273, 1); +lean_inc(x_283); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + x_284 = x_273; +} else { + lean_dec_ref(x_273); + x_284 = lean_box(0); +} +if (lean_is_scalar(x_284)) { + x_285 = lean_alloc_ctor(1, 2, 0); +} else { + x_285 = x_284; +} +lean_ctor_set(x_285, 0, x_282); +lean_ctor_set(x_285, 1, x_283); +return x_285; +} +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; +lean_dec(x_261); +lean_dec(x_242); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_286 = lean_ctor_get(x_270, 0); +lean_inc(x_286); +x_287 = lean_ctor_get(x_270, 1); +lean_inc(x_287); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_288 = x_270; +} else { + lean_dec_ref(x_270); + x_288 = lean_box(0); +} +if (lean_is_scalar(x_288)) { + x_289 = lean_alloc_ctor(1, 2, 0); +} else { + x_289 = x_288; +} +lean_ctor_set(x_289, 0, x_286); +lean_ctor_set(x_289, 1, x_287); +return x_289; +} +} +} +else +{ +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; uint8_t x_298; uint8_t x_299; uint8_t x_300; uint8_t x_301; uint8_t x_302; uint8_t x_303; uint8_t x_304; uint8_t x_305; uint8_t x_306; uint8_t x_307; uint8_t x_308; uint8_t x_309; uint8_t x_310; lean_object* x_311; uint8_t x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; +x_290 = lean_nat_sub(x_261, x_259); +lean_dec(x_259); +lean_dec(x_261); +x_291 = lean_ctor_get(x_8, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_8, 1); +lean_inc(x_292); +x_293 = lean_ctor_get(x_8, 2); +lean_inc(x_293); +x_294 = lean_ctor_get(x_8, 3); +lean_inc(x_294); +x_295 = lean_ctor_get(x_8, 4); +lean_inc(x_295); +x_296 = lean_ctor_get(x_8, 5); +lean_inc(x_296); +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); + x_297 = x_8; +} else { + lean_dec_ref(x_8); + x_297 = lean_box(0); +} +x_298 = lean_ctor_get_uint8(x_291, 0); +x_299 = lean_ctor_get_uint8(x_291, 1); +x_300 = lean_ctor_get_uint8(x_291, 2); +x_301 = lean_ctor_get_uint8(x_291, 3); +x_302 = lean_ctor_get_uint8(x_291, 4); +x_303 = lean_ctor_get_uint8(x_291, 6); +x_304 = lean_ctor_get_uint8(x_291, 7); +x_305 = lean_ctor_get_uint8(x_291, 8); +x_306 = lean_ctor_get_uint8(x_291, 9); +x_307 = lean_ctor_get_uint8(x_291, 10); +x_308 = lean_ctor_get_uint8(x_291, 11); +x_309 = lean_ctor_get_uint8(x_291, 12); +x_310 = lean_ctor_get_uint8(x_291, 13); +if (lean_is_exclusive(x_291)) { + x_311 = x_291; +} else { + lean_dec_ref(x_291); + x_311 = lean_box(0); +} +x_312 = 1; +if (lean_is_scalar(x_311)) { + x_313 = lean_alloc_ctor(0, 0, 14); +} else { + x_313 = x_311; +} +lean_ctor_set_uint8(x_313, 0, x_298); +lean_ctor_set_uint8(x_313, 1, x_299); +lean_ctor_set_uint8(x_313, 2, x_300); +lean_ctor_set_uint8(x_313, 3, x_301); +lean_ctor_set_uint8(x_313, 4, x_302); +lean_ctor_set_uint8(x_313, 5, x_312); +lean_ctor_set_uint8(x_313, 6, x_303); +lean_ctor_set_uint8(x_313, 7, x_304); +lean_ctor_set_uint8(x_313, 8, x_305); +lean_ctor_set_uint8(x_313, 9, x_306); +lean_ctor_set_uint8(x_313, 10, x_307); +lean_ctor_set_uint8(x_313, 11, x_308); +lean_ctor_set_uint8(x_313, 12, x_309); +lean_ctor_set_uint8(x_313, 13, x_310); +if (lean_is_scalar(x_297)) { + x_314 = lean_alloc_ctor(0, 6, 0); +} else { + x_314 = x_297; +} +lean_ctor_set(x_314, 0, x_313); +lean_ctor_set(x_314, 1, x_292); +lean_ctor_set(x_314, 2, x_293); +lean_ctor_set(x_314, 3, x_294); +lean_ctor_set(x_314, 4, x_295); +lean_ctor_set(x_314, 5, x_296); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_314); +x_315 = lean_infer_type(x_4, x_314, x_9, x_10, x_11, x_243); +if (lean_obj_tag(x_315) == 0) +{ +lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; +x_316 = lean_ctor_get(x_315, 0); +lean_inc(x_316); +x_317 = lean_ctor_get(x_315, 1); +lean_inc(x_317); +lean_dec(x_315); +lean_inc(x_290); +if (lean_is_scalar(x_258)) { + x_318 = lean_alloc_ctor(1, 1, 0); +} else { + x_318 = x_258; +} +lean_ctor_set(x_318, 0, x_290); +x_319 = lean_alloc_closure((void*)(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2___boxed), 12, 5); +lean_closure_set(x_319, 0, x_290); +lean_closure_set(x_319, 1, x_5); +lean_closure_set(x_319, 2, x_242); +lean_closure_set(x_319, 3, x_3); +lean_closure_set(x_319, 4, x_257); +x_320 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(x_316, x_318, x_319, x_314, x_9, x_10, x_11, x_317); +if (lean_obj_tag(x_320) == 0) +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_321 = lean_ctor_get(x_320, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_320, 1); +lean_inc(x_322); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + x_323 = x_320; +} else { + lean_dec_ref(x_320); + x_323 = lean_box(0); +} +if (lean_is_scalar(x_323)) { + x_324 = lean_alloc_ctor(0, 2, 0); +} else { + x_324 = x_323; +} +lean_ctor_set(x_324, 0, x_321); +lean_ctor_set(x_324, 1, x_322); +return x_324; +} +else +{ +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_325 = lean_ctor_get(x_320, 0); +lean_inc(x_325); +x_326 = lean_ctor_get(x_320, 1); +lean_inc(x_326); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + x_327 = x_320; +} else { + lean_dec_ref(x_320); + x_327 = lean_box(0); +} +if (lean_is_scalar(x_327)) { + x_328 = lean_alloc_ctor(1, 2, 0); +} else { + x_328 = x_327; +} +lean_ctor_set(x_328, 0, x_325); +lean_ctor_set(x_328, 1, x_326); +return x_328; +} +} +else +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +lean_dec(x_314); +lean_dec(x_290); +lean_dec(x_258); +lean_dec(x_257); +lean_dec(x_242); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_3); +x_329 = lean_ctor_get(x_315, 0); +lean_inc(x_329); +x_330 = lean_ctor_get(x_315, 1); +lean_inc(x_330); +if (lean_is_exclusive(x_315)) { + lean_ctor_release(x_315, 0); + lean_ctor_release(x_315, 1); + x_331 = x_315; +} else { + lean_dec_ref(x_315); + x_331 = lean_box(0); +} +if (lean_is_scalar(x_331)) { + x_332 = lean_alloc_ctor(1, 2, 0); +} else { + x_332 = x_331; +} +lean_ctor_set(x_332, 0, x_329); +lean_ctor_set(x_332, 1, x_330); +return x_332; +} +} +} +} +} +else +{ +uint8_t x_333; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_333 = !lean_is_exclusive(x_22); +if (x_333 == 0) +{ +return x_22; +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; +x_334 = lean_ctor_get(x_22, 0); +x_335 = lean_ctor_get(x_22, 1); +lean_inc(x_335); +lean_inc(x_334); +lean_dec(x_22); +x_336 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_336, 0, x_334); +lean_ctor_set(x_336, 1, x_335); +return x_336; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_WF_packDomain_packApplications_visitApp___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_levelZero; +x_2 = l_Lean_mkSort(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visitApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Lean_Expr_getAppNumArgsAux(x_4, x_10); +x_12 = l_Lean_Elab_WF_packDomain_packApplications_visitApp___closed__1; +lean_inc(x_11); +x_13 = lean_mk_array(x_11, x_12); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_11, x_14); +lean_dec(x_11); +lean_inc(x_4); +x_16 = l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3(x_1, x_2, x_3, x_4, x_4, x_13, x_15, x_5, x_6, x_7, x_8, x_9); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___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) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = 0; +x_9 = l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(x_1, x_8, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) +{ +return x_9; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_9); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___spec__1___rarg), 7, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___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_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_11 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 0; +x_15 = l_Lean_Meta_mkLambdaFVars(x_4, x_12, x_14, x_14, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_15; +} +else +{ +uint8_t x_16; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___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_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_11 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = 0; +x_15 = l_Lean_Meta_mkForallFVars(x_4, x_12, x_14, x_14, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_15; +} +else +{ +uint8_t x_16; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 0); +x_18 = lean_ctor_get(x_11, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_11); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___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) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_expr_instantiate1(x_1, x_5); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_12 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +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 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__1; +x_16 = lean_array_push(x_15, x_5); +x_17 = 0; +x_18 = l_Lean_Meta_mkLambdaFVars(x_16, x_13, x_17, x_17, x_6, x_7, x_8, x_9, x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_18; +} +else +{ +uint8_t x_19; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_19 = !lean_is_exclusive(x_12); +if (x_19 == 0) +{ +return x_12; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_12, 0); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_12); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +switch (lean_obj_tag(x_4)) { +case 4: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_WF_packDomain_packApplications_visitApp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_10; +} +case 5: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_WF_packDomain_packApplications_visitApp(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +case 6: +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_alloc_closure((void*)(l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__1), 10, 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_13 = l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___spec__1___rarg(x_4, x_12, x_5, x_6, x_7, x_8, x_9); +return x_13; +} +case 7: +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__2), 10, 3); +lean_closure_set(x_14, 0, x_1); +lean_closure_set(x_14, 1, x_2); +lean_closure_set(x_14, 2, x_3); +x_15 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_4, x_14, x_5, x_6, x_7, x_8, x_9); +return x_15; +} +case 8: +{ +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_4, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_4, 1); +lean_inc(x_17); +x_18 = lean_ctor_get(x_4, 2); +lean_inc(x_18); +x_19 = lean_ctor_get(x_4, 3); +lean_inc(x_19); +lean_dec(x_4); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_20 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_18, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_alloc_closure((void*)(l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__3___boxed), 10, 4); +lean_closure_set(x_23, 0, x_19); +lean_closure_set(x_23, 1, x_1); +lean_closure_set(x_23, 2, x_2); +lean_closure_set(x_23, 3, x_3); +x_24 = l_Lean_Meta_withLetDecl___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__2___rarg(x_16, x_17, x_21, x_23, x_5, x_6, x_7, x_8, x_22); +return x_24; +} +else +{ +uint8_t x_25; +lean_dec(x_19); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_8); +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_25 = !lean_is_exclusive(x_20); +if (x_25 == 0) +{ +return x_20; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_20, 0); +x_27 = lean_ctor_get(x_20, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_20); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +case 10: +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_4, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_4, 1); +lean_inc(x_30); +lean_dec(x_4); +x_31 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_30, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_31) == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_31, 0); +x_34 = l_Lean_mkMData(x_29, x_33); +lean_ctor_set(x_31, 0, x_34); +return x_31; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_31, 0); +x_36 = lean_ctor_get(x_31, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_31); +x_37 = l_Lean_mkMData(x_29, x_35); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_29); +x_39 = !lean_is_exclusive(x_31); +if (x_39 == 0) +{ +return x_31; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_31, 0); +x_41 = lean_ctor_get(x_31, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_31); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +case 11: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_4, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_4, 1); +lean_inc(x_44); +x_45 = lean_ctor_get(x_4, 2); +lean_inc(x_45); +lean_dec(x_4); +x_46 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_2, x_3, x_45, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_46) == 0) +{ +uint8_t x_47; +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +x_49 = l_Lean_mkProj(x_43, x_44, x_48); +lean_ctor_set(x_46, 0, x_49); +return x_46; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_46, 0); +x_51 = lean_ctor_get(x_46, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_46); +x_52 = l_Lean_mkProj(x_43, x_44, x_50); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +else +{ +uint8_t x_54; +lean_dec(x_44); +lean_dec(x_43); +x_54 = !lean_is_exclusive(x_46); +if (x_54 == 0) +{ +return x_46; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_46, 0); +x_56 = lean_ctor_get(x_46, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_46); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +default: +{ +lean_object* x_58; +lean_dec(x_8); +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_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_4); +lean_ctor_set(x_58, 1, x_9); +return x_58; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Array_mapMUnsafe_map___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__1(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___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, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_WF_packDomain_packApplications_visit___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_1); +return x_11; +} +} +static lean_object* _init_l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Elab.WF.packDomain.packApplications"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_Elab_WF_mkUnaryArg_go___closed__4; +x_2 = l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__1; +x_3 = lean_unsigned_to_nat(119u); +x_4 = lean_unsigned_to_nat(49u); +x_5 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications___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; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = l_Lean_Expr_getAppFn(x_2); +x_10 = l_Lean_Elab_instInhabitedPreDefinition; +x_11 = lean_array_get(x_10, x_1, x_3); +x_12 = lean_ctor_get(x_11, 3); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_Expr_constLevels_x21(x_9); +x_14 = l_Lean_mkConst(x_12, x_13); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_14); +x_15 = lean_infer_type(x_14, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 7) +{ +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; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_unsigned_to_nat(0u); +x_20 = l_Lean_Expr_getAppNumArgsAux(x_2, x_19); +x_21 = l_Lean_Elab_WF_packDomain_packApplications_visitApp___closed__1; +lean_inc(x_20); +x_22 = lean_mk_array(x_20, x_21); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_sub(x_20, x_23); +lean_dec(x_20); +x_25 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_22, x_24); +x_26 = l_Lean_Elab_WF_mkUnaryArg_go(x_25, x_19, x_18, x_4, x_5, x_6, x_7, x_17); +lean_dec(x_18); +lean_dec(x_25); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_26, 0); +x_29 = l_Lean_mkApp(x_14, x_28); +lean_ctor_set(x_26, 0, x_29); +return x_26; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_26, 0); +x_31 = lean_ctor_get(x_26, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_26); +x_32 = l_Lean_mkApp(x_14, x_30); +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; +} +} +else +{ +uint8_t x_34; +lean_dec(x_14); +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 0) +{ +return x_26; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_26); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_16); +lean_dec(x_14); +lean_dec(x_2); +x_38 = lean_ctor_get(x_15, 1); +lean_inc(x_38); +lean_dec(x_15); +x_39 = l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__2; +x_40 = l_panic___at_Lean_Meta_whnfCore___spec__1(x_39, x_4, x_5, x_6, x_7, x_38); +return x_40; +} +} +else +{ +uint8_t x_41; +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_41 = !lean_is_exclusive(x_15); +if (x_41 == 0) +{ +return x_15; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_15, 0); +x_43 = lean_ctor_get(x_15, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_15); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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 = lean_alloc_closure((void*)(l_Lean_Elab_WF_packDomain_packApplications___lambda__1___boxed), 8, 1); +lean_closure_set(x_10, 0, x_4); +x_11 = l_Lean_Elab_WF_packDomain_packApplications_visit(x_1, x_3, x_10, x_2, x_5, x_6, x_7, x_8, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain_packApplications___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_Lean_Elab_WF_packDomain_packApplications___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +} static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__1___closed__1() { _start: { @@ -1080,67 +3609,7 @@ return x_46; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain___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) { -_start: -{ -uint8_t x_8; lean_object* x_9; -x_8 = 0; -x_9 = l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(x_1, x_8, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_9) == 0) -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -return x_9; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; -} -} -else -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_9); -if (x_14 == 0) -{ -return x_9; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_9); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain___spec__2___rarg), 7, 0); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -1148,17 +3617,17 @@ x_1 = lean_mk_string("_unary"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__1; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; @@ -1185,7 +3654,7 @@ x_22 = lean_ctor_get_uint8(x_4, sizeof(void*)*6); 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 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__2; +x_26 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__2; x_27 = l_Lean_Name_append(x_25, x_26); lean_inc(x_24); lean_inc(x_23); @@ -1291,7 +3760,7 @@ return x_47; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__1() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; @@ -1304,7 +3773,7 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__2() { _start: { lean_object* x_1; @@ -1312,17 +3781,17 @@ x_1 = lean_mk_string("_x"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__2; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___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) { _start: { lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -1339,7 +3808,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__1; +x_13 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__1; x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_2); lean_ctor_set(x_14, 1, x_13); @@ -1403,14 +3872,14 @@ lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); lean_dec(x_31); -x_34 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__3; +x_34 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__3; x_35 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_34, x_7, x_8, x_33); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); x_37 = lean_ctor_get(x_35, 1); lean_inc(x_37); lean_dec(x_35); -x_38 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___boxed), 11, 5); +x_38 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___boxed), 11, 5); lean_closure_set(x_38, 0, x_10); lean_closure_set(x_38, 1, x_19); lean_closure_set(x_38, 2, x_1); @@ -1517,7 +3986,7 @@ return x_52; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -1525,16 +3994,16 @@ x_1 = lean_mk_string("well-founded recursion cannot be used, '"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__1; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__3() { _start: { lean_object* x_1; @@ -1542,16 +4011,16 @@ x_1 = lean_mk_string("' does not take any arguments"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__4() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__3; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___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; uint8_t x_12; @@ -1564,7 +4033,7 @@ if (x_12 == 0) { lean_object* x_13; lean_object* x_14; x_13 = lean_box(0); -x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2(x_3, x_1, x_2, x_13, x_5, x_6, x_7, x_8, x_9); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2(x_3, x_1, x_2, x_13, x_5, x_6, x_7, x_8, x_9); return x_14; } else @@ -1577,11 +4046,11 @@ lean_inc(x_15); lean_dec(x_1); x_16 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_16, 0, x_15); -x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__2; +x_17 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__2; x_18 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); -x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__4; +x_19 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__4; x_20 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -1611,7 +4080,7 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3(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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2(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) { _start: { uint8_t x_10; @@ -1645,14 +4114,14 @@ lean_dec(x_14); x_17 = lean_ctor_get(x_12, 5); lean_inc(x_17); lean_inc(x_17); -x_18 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3), 9, 2); +x_18 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3), 9, 2); lean_closure_set(x_18, 0, x_12); lean_closure_set(x_18, 1, x_17); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_19 = l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain___spec__2___rarg(x_17, x_18, x_5, x_6, x_7, x_8, x_9); +x_19 = l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___spec__1___rarg(x_17, x_18, x_5, x_6, x_7, x_8, x_9); 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; uint8_t x_28; @@ -1743,17 +4212,7 @@ return x_44; } } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_WF_packDomain___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; -x_7 = l_panic___at___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___spec__1___closed__1; -x_8 = lean_panic_fn(x_7, x_1); -x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -1806,406 +4265,111 @@ return x_22; } } } -LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_2, 3); -x_4 = l_Lean_Expr_constName_x21(x_1); -x_5 = lean_name_eq(x_3, x_4); -lean_dec(x_4); -return x_5; -} -} -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Lean.Elab.WF.packDomain"); -return x_1; -} -} -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_Elab_WF_mkUnaryArg_go___closed__4; -x_2 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__1; -x_3 = lean_unsigned_to_nat(112u); -x_4 = lean_unsigned_to_nat(55u); -x_5 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__3; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_levelZero; -x_2 = l_Lean_mkSort(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___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; uint8_t x_12; -x_11 = l_Lean_Expr_getAppFn(x_5); -x_12 = l_Lean_Expr_isConst(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_13 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_13, 0, x_5); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_10); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = l_Lean_instInhabitedExpr; +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_array_get(x_13, x_6, x_14); lean_inc(x_11); -x_15 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__1___boxed), 2, 1); -lean_closure_set(x_15, 0, x_11); -x_16 = lean_unsigned_to_nat(0u); -x_17 = l_Array_findIdx_x3f_loop___rarg(x_1, x_15, x_2, x_16, lean_box(0)); -lean_dec(x_1); -if (lean_obj_tag(x_17) == 0) +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_15); +x_16 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn(x_15, x_7, x_1, x_2, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_18; lean_object* x_19; -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -x_18 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_18, 0, x_5); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_10); -return x_19; -} -else +lean_object* x_17; lean_object* x_18; lean_object* x_19; +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); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_19 = l_Lean_Elab_WF_packDomain_packApplications(x_3, x_17, x_4, x_5, x_8, x_9, x_10, x_11, x_18); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_20 = lean_ctor_get(x_17, 0); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_17); -x_21 = l_Lean_Expr_getAppNumArgsAux(x_5, x_16); -x_22 = l_instInhabitedNat; -x_23 = lean_array_get(x_22, x_3, x_20); -lean_dec(x_3); -x_24 = lean_nat_dec_eq(x_21, x_23); -lean_dec(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -lean_dec(x_21); -lean_dec(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__1; +x_23 = lean_array_push(x_22, x_15); +x_24 = 0; +x_25 = 1; +x_26 = l_Lean_Meta_mkLambdaFVars(x_23, x_20, x_24, x_25, x_8, x_9, x_10, x_11, x_21); lean_dec(x_11); +lean_dec(x_10); lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -x_25 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_25, 0, x_5); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_10); 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; -x_27 = l_Lean_Elab_instInhabitedPreDefinition; -x_28 = lean_array_get(x_27, x_4, x_20); -lean_dec(x_20); -lean_dec(x_4); -x_29 = lean_ctor_get(x_28, 3); -lean_inc(x_29); -lean_dec(x_28); -x_30 = l_Lean_Expr_constLevels_x21(x_11); -x_31 = l_Lean_mkConst(x_29, x_30); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_31); -x_32 = lean_infer_type(x_31, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -if (lean_obj_tag(x_33) == 7) -{ -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_34 = lean_ctor_get(x_32, 1); -lean_inc(x_34); -lean_dec(x_32); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__3; -lean_inc(x_21); -x_37 = lean_mk_array(x_21, x_36); -x_38 = lean_unsigned_to_nat(1u); -x_39 = lean_nat_sub(x_21, x_38); -lean_dec(x_21); -x_40 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_5, x_37, x_39); -x_41 = l_Lean_Elab_WF_mkUnaryArg_go(x_40, x_16, x_35, x_6, x_7, x_8, x_9, x_34); -lean_dec(x_35); -lean_dec(x_40); -if (lean_obj_tag(x_41) == 0) -{ -uint8_t x_42; -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_41, 0); -x_44 = l_Lean_mkApp(x_31, x_43); -x_45 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_41, 0, x_45); -return x_41; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_46 = lean_ctor_get(x_41, 0); -x_47 = lean_ctor_get(x_41, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_41); -x_48 = l_Lean_mkApp(x_31, x_46); -x_49 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_47); -return x_50; -} -} -else -{ -uint8_t x_51; -lean_dec(x_31); -x_51 = !lean_is_exclusive(x_41); -if (x_51 == 0) -{ -return x_41; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_41, 0); -x_53 = lean_ctor_get(x_41, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_41); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -lean_dec(x_33); -lean_dec(x_31); -lean_dec(x_21); -lean_dec(x_5); -x_55 = lean_ctor_get(x_32, 1); -lean_inc(x_55); -lean_dec(x_32); -x_56 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__2; -x_57 = l_panic___at_Lean_Elab_WF_packDomain___spec__4(x_56, x_6, x_7, x_8, x_9, x_55); -return x_57; -} -} -else -{ -uint8_t x_58; -lean_dec(x_31); -lean_dec(x_21); +uint8_t x_27; +lean_dec(x_15); +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); -x_58 = !lean_is_exclusive(x_32); -if (x_58 == 0) +x_27 = !lean_is_exclusive(x_19); +if (x_27 == 0) { -return x_32; +return x_19; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_32, 0); -x_60 = lean_ctor_get(x_32, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_32); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_19, 0); +x_29 = lean_ctor_get(x_19, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_19); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; } } } -} -} -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___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; -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, 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; -} -} -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__3___boxed), 6, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = l_Lean_instInhabitedExpr; -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_array_get(x_14, x_7, x_15); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_16); -x_17 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn(x_16, x_8, x_1, x_2, 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; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2), 10, 4); -lean_closure_set(x_20, 0, x_3); -lean_closure_set(x_20, 1, x_4); -lean_closure_set(x_20, 2, x_5); -lean_closure_set(x_20, 3, x_6); -x_21 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___closed__1; -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -x_22 = l_Lean_Meta_transform___at_Lean_Meta_expandCoe___spec__1(x_18, x_21, x_20, x_9, x_10, x_11, x_12, x_19); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -x_25 = l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__1; -x_26 = lean_array_push(x_25, x_16); -x_27 = 0; -x_28 = 1; -x_29 = l_Lean_Meta_mkLambdaFVars(x_26, x_23, x_27, x_28, x_9, x_10, x_11, x_12, x_24); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -return x_29; -} else { -uint8_t x_30; -lean_dec(x_16); -lean_dec(x_12); +uint8_t x_31; +lean_dec(x_15); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -x_30 = !lean_is_exclusive(x_22); -if (x_30 == 0) -{ -return x_22; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_22, 0); -x_32 = lean_ctor_get(x_22, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_22); -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_16); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); +lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_34 = !lean_is_exclusive(x_17); -if (x_34 == 0) +x_31 = !lean_is_exclusive(x_16); +if (x_31 == 0) { -return x_17; +return x_16; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_17, 0); -x_36 = lean_ctor_get(x_17, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_17); -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* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_16, 0); +x_33 = lean_ctor_get(x_16, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_16); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5___closed__1() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -2215,26 +4379,86 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_1, 4); -lean_inc(x_13); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_1, 4); +lean_inc(x_12); lean_dec(x_1); -x_14 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___boxed), 13, 6); -lean_closure_set(x_14, 0, x_6); -lean_closure_set(x_14, 1, x_7); -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); -x_15 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5___closed__1; -x_16 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(x_13, x_15, x_14, x_8, x_9, x_10, x_11, x_12); -return x_16; +x_13 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__1___boxed), 12, 5); +lean_closure_set(x_13, 0, x_5); +lean_closure_set(x_13, 1, x_6); +lean_closure_set(x_13, 2, x_2); +lean_closure_set(x_13, 3, x_3); +lean_closure_set(x_13, 4, x_4); +x_14 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__2___closed__1; +x_15 = l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_reduceMatcher_x3f___spec__3___rarg(x_12, x_14, x_13, x_7, x_8, x_9, x_10, x_11); +return x_15; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___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_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f(x_1, x_3); +if (lean_obj_tag(x_4) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +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); +lean_inc(x_6); +lean_dec(x_4); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Lean_Expr_getAppNumArgsAux(x_3, x_7); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_dec_lt(x_9, x_8); +lean_dec(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_11 = l_Lean_Elab_instInhabitedPreDefinition; +x_12 = lean_array_get(x_11, x_2, x_6); +x_13 = lean_ctor_get(x_12, 3); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_array_get(x_11, x_1, x_6); +lean_dec(x_6); +x_15 = lean_ctor_get(x_14, 3); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_name_eq(x_13, x_15); +lean_dec(x_15); +lean_dec(x_13); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = 1; +return x_17; +} +else +{ +uint8_t x_18; +x_18 = 0; +return x_18; +} +} +else +{ +uint8_t x_19; +lean_dec(x_6); +x_19 = 1; +return x_19; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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) { _start: { uint8_t x_11; @@ -2286,47 +4510,7 @@ return x_25; } } } -LEAN_EXPORT uint8_t l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_5; -x_4 = l_Lean_Expr_getAppFn(x_3); -x_5 = l_Lean_Expr_isConst(x_4); -if (x_5 == 0) -{ -uint8_t x_6; -lean_dec(x_4); -lean_dec(x_2); -x_6 = 0; -return x_6; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__1___boxed), 2, 1); -lean_closure_set(x_7, 0, x_4); -x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Array_findIdx_x3f_loop___rarg(x_1, x_7, x_2, x_8, lean_box(0)); -if (lean_obj_tag(x_9) == 0) -{ -uint8_t x_10; -x_10 = 0; -return x_10; -} -else -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -lean_dec(x_9); -x_11 = l_Lean_Expr_getAppNumArgsAux(x_3, x_8); -x_12 = lean_unsigned_to_nat(1u); -x_13 = lean_nat_dec_lt(x_12, x_11); -lean_dec(x_11); -return x_13; -} -} -} -} -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__1() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__1() { _start: { lean_object* x_1; @@ -2334,16 +4518,16 @@ x_1 = lean_mk_string("well-founded recursion cannot be used, function '"); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__2() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__1; +x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__3() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__3() { _start: { lean_object* x_1; @@ -2351,16 +4535,16 @@ x_1 = lean_mk_string("' contains application of function '"); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__4() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__3; +x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__5() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__5() { _start: { lean_object* x_1; @@ -2368,16 +4552,16 @@ x_1 = lean_mk_string("' with #"); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__6() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__5; +x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__7() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__7() { _start: { lean_object* x_1; @@ -2385,16 +4569,16 @@ x_1 = lean_mk_string(" argument(s), but function has arity "); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__8() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__7; +x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__9() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__9() { _start: { lean_object* x_1; @@ -2402,318 +4586,279 @@ x_1 = lean_mk_string(""); return x_1; } } -static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__10() { +static lean_object* _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__9; +x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__9; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_14; -x_14 = lean_nat_dec_le(x_6, x_5); -if (x_14 == 0) +uint8_t x_13; +x_13 = lean_nat_dec_le(x_5, x_4); +if (x_13 == 0) { -lean_object* x_15; uint8_t x_16; -x_15 = lean_unsigned_to_nat(0u); -x_16 = lean_nat_dec_eq(x_4, x_15); -if (x_16 == 0) +lean_object* x_14; uint8_t x_15; +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_nat_dec_eq(x_3, x_14); +if (x_15 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_sub(x_4, x_17); -lean_dec(x_4); -x_19 = l_Lean_Elab_instInhabitedPreDefinition; -x_20 = lean_array_get(x_19, x_1, x_5); -x_21 = lean_array_get(x_19, x_8, x_5); -x_22 = lean_ctor_get(x_20, 5); -lean_inc(x_22); -lean_inc(x_8); -lean_inc(x_3); +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_16 = lean_unsigned_to_nat(1u); +x_17 = lean_nat_sub(x_3, x_16); +lean_dec(x_3); +x_18 = l_Lean_Elab_instInhabitedPreDefinition; +x_19 = lean_array_get(x_18, x_1, x_4); +x_20 = lean_array_get(x_18, x_7, x_4); +x_21 = lean_ctor_get(x_19, 5); +lean_inc(x_21); +lean_inc(x_7); lean_inc(x_2); lean_inc(x_1); -lean_inc(x_21); -x_23 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5), 12, 5); -lean_closure_set(x_23, 0, x_21); -lean_closure_set(x_23, 1, x_1); -lean_closure_set(x_23, 2, x_2); -lean_closure_set(x_23, 3, x_3); -lean_closure_set(x_23, 4, x_8); -lean_inc(x_12); +lean_inc(x_20); +x_22 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__2), 11, 4); +lean_closure_set(x_22, 0, x_20); +lean_closure_set(x_22, 1, x_1); +lean_closure_set(x_22, 2, x_2); +lean_closure_set(x_22, 3, x_7); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_24 = l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain___spec__2___rarg(x_22, x_23, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_24) == 0) +lean_inc(x_8); +x_23 = l_Lean_Meta_lambdaTelescope___at_Lean_Elab_WF_packDomain_packApplications_visit___spec__1___rarg(x_21, x_22, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_24, 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); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -lean_inc(x_2); +lean_dec(x_23); +lean_inc(x_7); lean_inc(x_1); -x_27 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__7___boxed), 3, 2); -lean_closure_set(x_27, 0, x_1); -lean_closure_set(x_27, 1, x_2); -lean_inc(x_25); -x_28 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_27, x_25); -if (lean_obj_tag(x_28) == 0) +x_26 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__3___boxed), 3, 2); +lean_closure_set(x_26, 0, x_1); +lean_closure_set(x_26, 1, x_7); +lean_inc(x_24); +x_27 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_26, x_24); +if (lean_obj_tag(x_27) == 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_dec(x_20); -x_29 = lean_box(0); -x_30 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__6(x_21, x_25, x_5, x_8, x_29, x_9, x_10, x_11, x_12, x_26); -x_31 = lean_ctor_get(x_30, 0); +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_dec(x_19); +x_28 = lean_box(0); +x_29 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__4(x_20, x_24, x_4, x_7, x_28, x_8, x_9, x_10, x_11, x_25); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); +lean_dec(x_29); +x_32 = lean_ctor_get(x_30, 0); lean_inc(x_32); lean_dec(x_30); -x_33 = lean_ctor_get(x_31, 0); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_nat_add(x_5, x_7); -lean_dec(x_5); -x_4 = x_18; -x_5 = x_34; -x_8 = x_33; -x_13 = x_32; +x_33 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_17; +x_4 = x_33; +x_7 = x_32; +x_12 = x_31; goto _start; } else { -lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_36 = lean_ctor_get(x_28, 0); -lean_inc(x_36); -lean_dec(x_28); -x_37 = l_Lean_Expr_getAppFn(x_36); -x_38 = l_Lean_Expr_isConst(x_37); -if (x_38 == 0) +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_27, 0); +lean_inc(x_35); +lean_dec(x_27); +x_36 = l_Lean_Elab_WF_packDomain_isAppOfPreDef_x3f(x_1, x_35); +if (lean_obj_tag(x_36) == 0) { -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_dec(x_37); -lean_dec(x_36); -lean_dec(x_20); -x_39 = lean_box(0); -x_40 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__6(x_21, x_25, x_5, x_8, x_39, x_9, x_10, x_11, x_12, x_26); -x_41 = lean_ctor_get(x_40, 0); +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_35); +lean_dec(x_19); +x_37 = lean_box(0); +x_38 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__4(x_20, x_24, x_4, x_7, x_37, x_8, x_9, x_10, x_11, x_25); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec(x_38); +x_41 = lean_ctor_get(x_39, 0); lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = lean_ctor_get(x_41, 0); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_nat_add(x_5, x_7); -lean_dec(x_5); -x_4 = x_18; -x_5 = x_44; -x_8 = x_43; -x_13 = x_42; +lean_dec(x_39); +x_42 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_17; +x_4 = x_42; +x_7 = x_41; +x_12 = x_40; goto _start; } else { -lean_object* x_46; lean_object* x_47; -x_46 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__1___boxed), 2, 1); -lean_closure_set(x_46, 0, x_37); -lean_inc(x_2); -x_47 = l_Array_findIdx_x3f_loop___rarg(x_1, x_46, x_2, x_15, lean_box(0)); -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec(x_36); -lean_dec(x_20); -x_48 = lean_box(0); -x_49 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__6(x_21, x_25, x_5, x_8, x_48, x_9, x_10, x_11, x_12, x_26); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); -x_52 = lean_ctor_get(x_50, 0); -lean_inc(x_52); -lean_dec(x_50); -x_53 = lean_nat_add(x_5, x_7); -lean_dec(x_5); -x_4 = x_18; -x_5 = x_53; -x_8 = x_52; -x_13 = x_51; -goto _start; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_18); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_2); -x_55 = lean_ctor_get(x_47, 0); -lean_inc(x_55); -lean_dec(x_47); -x_56 = lean_ctor_get(x_20, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_20, 3); -lean_inc(x_57); -lean_dec(x_20); -x_58 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_58, 0, x_57); -x_59 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__2; -x_60 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -x_61 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__4; -x_62 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_array_get(x_19, x_1, x_55); -lean_dec(x_1); -x_64 = lean_ctor_get(x_63, 3); -lean_inc(x_64); -lean_dec(x_63); -x_65 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_65, 0, x_64); -x_66 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_66, 0, x_62); -lean_ctor_set(x_66, 1, x_65); -x_67 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__6; -x_68 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = l_Lean_Expr_getAppNumArgsAux(x_36, x_15); -lean_dec(x_36); -x_70 = l_Nat_repr(x_69); -x_71 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_71, 0, x_70); -x_72 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_72, 0, x_71); -x_73 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_73, 0, x_68); -lean_ctor_set(x_73, 1, x_72); -x_74 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__8; -x_75 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -x_76 = l_instInhabitedNat; -x_77 = lean_array_get(x_76, x_3, x_55); -lean_dec(x_55); -lean_dec(x_3); -x_78 = l_Nat_repr(x_77); -x_79 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_79, 0, x_78); -x_80 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_80, 0, x_79); -x_81 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_81, 0, x_75); -lean_ctor_set(x_81, 1, x_80); -x_82 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__10; -x_83 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__5(x_56, x_83, x_9, x_10, x_11, x_12, x_26); -lean_dec(x_12); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_56); -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) -{ -return x_84; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_84, 0); -x_87 = lean_ctor_get(x_84, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_84); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; -} -} -} -} -} -else -{ -uint8_t x_89; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_89 = !lean_is_exclusive(x_24); -if (x_89 == 0) -{ -return x_24; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_24, 0); -x_91 = lean_ctor_get(x_24, 1); -lean_inc(x_91); -lean_inc(x_90); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_dec(x_24); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_7); +lean_dec(x_4); +x_44 = lean_ctor_get(x_36, 0); +lean_inc(x_44); +lean_dec(x_36); +x_45 = lean_ctor_get(x_19, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_19, 3); +lean_inc(x_46); +lean_dec(x_19); +x_47 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_47, 0, x_46); +x_48 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__2; +x_49 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__4; +x_51 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_array_get(x_18, x_1, x_44); +lean_dec(x_1); +x_53 = lean_ctor_get(x_52, 3); +lean_inc(x_53); +lean_dec(x_52); +x_54 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__6; +x_57 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +x_58 = l_Lean_Expr_getAppNumArgsAux(x_35, x_14); +lean_dec(x_35); +x_59 = l_Nat_repr(x_58); +x_60 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_60, 0, x_59); +x_61 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_61, 0, x_60); +x_62 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_62, 0, x_57); +lean_ctor_set(x_62, 1, x_61); +x_63 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__8; +x_64 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_65 = l_instInhabitedNat; +x_66 = lean_array_get(x_65, x_2, x_44); +lean_dec(x_44); +lean_dec(x_2); +x_67 = l_Nat_repr(x_66); +x_68 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_69, 0, x_68); +x_70 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_70, 0, x_64); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__10; +x_72 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +x_73 = l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__3(x_45, x_72, x_8, x_9, x_10, x_11, x_25); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_45); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +return x_73; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_73); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} } } } else { -lean_object* x_93; -lean_dec(x_12); +uint8_t x_78; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_17); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); +lean_dec(x_8); +lean_dec(x_7); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_8); -lean_ctor_set(x_93, 1, x_13); -return x_93; +x_78 = !lean_is_exclusive(x_23); +if (x_78 == 0) +{ +return x_23; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_23, 0); +x_80 = lean_ctor_get(x_23, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_23); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} } } else { -lean_object* x_94; -lean_dec(x_12); +lean_object* x_82; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); -lean_dec(x_5); +lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_8); -lean_ctor_set(x_94, 1, x_13); -return x_94; +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_7); +lean_ctor_set(x_82, 1, x_12); +return x_82; +} +} +else +{ +lean_object* x_83; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_7); +lean_ctor_set(x_83, 1, x_12); +return x_83; } } } @@ -2723,9 +4868,9 @@ _start: lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_unsigned_to_nat(0u); x_12 = lean_unsigned_to_nat(1u); -lean_inc_n(x_2, 2); -x_13 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6(x_1, x_2, x_3, x_2, x_11, x_2, x_12, x_4, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); +lean_inc(x_3); +x_13 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4(x_1, x_2, x_3, x_11, x_3, x_12, x_4, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -2809,7 +4954,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3(x_1, x_8, x_9, x_10, x_2, x_3, x_4, x_5, x_6); +x_11 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2(x_1, x_8, x_9, x_10, x_2, x_3, x_4, x_5, x_6); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; @@ -2865,7 +5010,7 @@ x_22 = lean_ctor_get(x_13, 0); lean_inc(x_22); lean_dec(x_13); x_23 = lean_box(0); -x_24 = l_Lean_Elab_WF_packDomain___lambda__1(x_1, x_7, x_21, x_22, x_23, x_2, x_3, x_4, x_5, x_20); +x_24 = l_Lean_Elab_WF_packDomain___lambda__1(x_1, x_21, x_7, x_22, x_23, x_2, x_3, x_4, x_5, x_20); return x_24; } } @@ -2912,11 +5057,11 @@ lean_dec(x_1); return x_12; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___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, 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___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 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_4); @@ -2925,16 +5070,16 @@ lean_dec(x_2); return x_12; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___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) { _start: { lean_object* x_10; -x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); return x_10; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { size_t x_10; size_t x_11; lean_object* x_12; @@ -2942,16 +5087,16 @@ x_10 = lean_unbox_usize(x_2); lean_dec(x_2); x_11 = lean_unbox_usize(x_3); lean_dec(x_3); -x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); +x_12 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2(x_1, x_10, x_11, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_1); return x_12; } } -LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___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_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l_Lean_throwErrorAt___at_Lean_Elab_WF_packDomain___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); @@ -2959,43 +5104,32 @@ lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_3; lean_object* x_4; -x_3 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___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* x_13; +x_13 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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_6); +return x_13; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___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_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_7; -x_7 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); +uint8_t x_4; lean_object* x_5; +x_4 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__3(x_1, x_2, x_3); lean_dec(x_3); lean_dec(x_2); -return x_7; +lean_dec(x_1); +x_5 = lean_box(x_4); +return x_5; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___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, 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; -x_14 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_7); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__4(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); @@ -3005,25 +5139,14 @@ lean_dec(x_3); return x_11; } } -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_4; lean_object* x_5; -x_4 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__7(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec(x_1); -x_5 = lean_box(x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_7); +lean_object* x_13; +x_13 = l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4(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_6); -return x_14; +lean_dec(x_5); +return x_13; } } LEAN_EXPORT lean_object* l_Lean_Elab_WF_packDomain___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) { @@ -3086,56 +5209,58 @@ l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesO lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__3); l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__4 = _init_l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__4(); lean_mark_persistent(l___private_Lean_Elab_PreDefinition_WF_PackDomain_0__Lean_Elab_WF_mkPSigmaCasesOn_go___closed__4); +l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__1 = _init_l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__1(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__1); +l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2 = _init_l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2(); +lean_mark_persistent(l_Lean_Expr_withAppAux___at_Lean_Elab_WF_packDomain_packApplications_visitApp___spec__3___closed__2); +l_Lean_Elab_WF_packDomain_packApplications_visitApp___closed__1 = _init_l_Lean_Elab_WF_packDomain_packApplications_visitApp___closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_packDomain_packApplications_visitApp___closed__1); +l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__1 = _init_l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__1); +l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__2 = _init_l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_WF_packDomain_packApplications___lambda__1___closed__2); l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__1___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__1___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__2___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__2); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__3___lambda__3___closed__4); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__1(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__1); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__2 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__2(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__2); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__3 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__3(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__2___closed__3); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___closed__1(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__4___closed__1); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5___closed__1(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___lambda__5___closed__1); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__1(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__1); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__2 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__2(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__2); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__3 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__3(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__3); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__4 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__4(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__4); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__5 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__5(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__5); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__6 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__6(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__6); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__7 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__7(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__7); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__8 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__8(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__8); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__9 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__9(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__9); -l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__10 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__10(); -lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__6___closed__10); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__1___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__2___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_packDomain___spec__2___lambda__3___closed__4); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__2___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___lambda__2___closed__1); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__1 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__1(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__1); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__2 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__2(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__2); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__3 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__3(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__3); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__4 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__4(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__4); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__5 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__5(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__5); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__6 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__6(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__6); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__7 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__7(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__7); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__8 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__8(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__8); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__9 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__9(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__9); +l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__10 = _init_l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__10(); +lean_mark_persistent(l_Std_Range_forIn_loop___at_Lean_Elab_WF_packDomain___spec__4___closed__10); l_Lean_Elab_WF_packDomain___closed__1 = _init_l_Lean_Elab_WF_packDomain___closed__1(); lean_mark_persistent(l_Lean_Elab_WF_packDomain___closed__1); l_Lean_Elab_WF_packDomain___closed__2 = _init_l_Lean_Elab_WF_packDomain___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index d1953eed8b..6d3c056b71 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -548,7 +548,7 @@ lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_getDefaultFnForField_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_Struct_source___boxed(lean_object*); static lean_object* l___private_Lean_Elab_StructInst_0__Lean_Elab_Term_StructInst_expandNonAtomicExplicitSources_go___lambda__1___closed__7; -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); static lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__2; static lean_object* l_List_format___at_Lean_Elab_Term_StructInst_formatStruct___spec__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_StructInst_Struct_setFields___lambda__1___boxed(lean_object*, lean_object*); @@ -19780,68 +19780,68 @@ return x_57; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; x_58 = lean_unsigned_to_nat(0u); x_59 = l_Lean_Expr_getAppNumArgsAux(x_2, x_58); x_60 = lean_mk_empty_array_with_capacity(x_59); lean_dec(x_59); x_61 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_2, x_60); -x_62 = l_Lean_Expr_betaRev(x_33, x_61); +x_62 = 0; +x_63 = l_Lean_Expr_betaRev(x_33, x_61, x_62); lean_dec(x_61); -lean_dec(x_33); -x_2 = x_62; +x_2 = x_63; x_7 = x_34; goto _start; } } else { -uint8_t x_64; +uint8_t x_65; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_64 = !lean_is_exclusive(x_32); -if (x_64 == 0) +x_65 = !lean_is_exclusive(x_32); +if (x_65 == 0) { return x_32; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_32, 0); -x_66 = lean_ctor_get(x_32, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_32, 0); +x_67 = lean_ctor_get(x_32, 1); +lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); lean_dec(x_32); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; } } } else { -lean_object* x_68; lean_object* x_69; +lean_object* x_69; lean_object* x_70; lean_dec(x_26); lean_dec(x_2); -x_68 = lean_ctor_get(x_28, 1); -lean_inc(x_68); -lean_dec(x_28); -x_69 = lean_ctor_get(x_29, 0); +x_69 = lean_ctor_get(x_28, 1); lean_inc(x_69); +lean_dec(x_28); +x_70 = lean_ctor_get(x_29, 0); +lean_inc(x_70); lean_dec(x_29); -x_2 = x_69; -x_7 = x_68; +x_2 = x_70; +x_7 = x_69; goto _start; } } else { -uint8_t x_71; +uint8_t x_72; lean_dec(x_26); lean_dec(x_6); lean_dec(x_5); @@ -19849,524 +19849,524 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_71 = !lean_is_exclusive(x_28); -if (x_71 == 0) +x_72 = !lean_is_exclusive(x_28); +if (x_72 == 0) { return x_28; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_28, 0); -x_73 = lean_ctor_get(x_28, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_28, 0); +x_74 = lean_ctor_get(x_28, 1); +lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); lean_dec(x_28); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } case 6: { -lean_object* x_75; lean_object* x_76; -x_75 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__1), 8, 1); -lean_closure_set(x_75, 0, x_1); -x_76 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_2, x_75, x_3, x_4, x_5, x_6, x_7); -return x_76; +lean_object* x_76; lean_object* x_77; +x_76 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__1), 8, 1); +lean_closure_set(x_76, 0, x_1); +x_77 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_2, x_76, x_3, x_4, x_5, x_6, x_7); +return x_77; } case 7: { -lean_object* x_77; lean_object* x_78; -x_77 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__2), 8, 1); -lean_closure_set(x_77, 0, x_1); -x_78 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_2, x_77, x_3, x_4, x_5, x_6, x_7); -return x_78; +lean_object* x_78; lean_object* x_79; +x_78 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__2), 8, 1); +lean_closure_set(x_78, 0, x_1); +x_79 = l_Lean_Meta_forallTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferForallType___spec__2___rarg(x_2, x_78, x_3, x_4, x_5, x_6, x_7); +return x_79; } case 8: { -lean_object* x_79; lean_object* x_80; -x_79 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__1), 8, 1); -lean_closure_set(x_79, 0, x_1); -x_80 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_2, x_79, x_3, x_4, x_5, x_6, x_7); -return x_80; +lean_object* x_80; lean_object* x_81; +x_80 = lean_alloc_closure((void*)(l_Lean_Elab_Term_StructInst_DefaultFields_reduce___lambda__1), 8, 1); +lean_closure_set(x_80, 0, x_1); +x_81 = l_Lean_Meta_lambdaLetTelescope___at___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___spec__1___rarg(x_2, x_80, x_3, x_4, x_5, x_6, x_7); +return x_81; } case 10: { -lean_object* x_81; lean_object* x_82; uint64_t x_83; lean_object* x_84; -x_81 = lean_ctor_get(x_2, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_2, 1); +lean_object* x_82; lean_object* x_83; uint64_t x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_2, 0); lean_inc(x_82); -x_83 = lean_ctor_get_uint64(x_2, sizeof(void*)*2); -lean_inc(x_82); -x_84 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_82, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_84) == 0) +x_83 = lean_ctor_get(x_2, 1); +lean_inc(x_83); +x_84 = lean_ctor_get_uint64(x_2, sizeof(void*)*2); +lean_inc(x_83); +x_85 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_83, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_85) == 0) { -uint8_t x_85; -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) +uint8_t x_86; +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) { -lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_86 = lean_ctor_get(x_84, 0); -x_87 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); -x_88 = !lean_is_exclusive(x_2); -if (x_88 == 0) +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_ctor_get(x_85, 0); +x_88 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); +x_89 = !lean_is_exclusive(x_2); +if (x_89 == 0) { -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_2, 1); -lean_dec(x_89); -x_90 = lean_ctor_get(x_2, 0); +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_2, 1); lean_dec(x_90); -if (lean_obj_tag(x_87) == 0) +x_91 = lean_ctor_get(x_2, 0); +lean_dec(x_91); +if (lean_obj_tag(x_88) == 0) { -lean_object* x_91; -x_91 = lean_expr_update_mdata(x_2, x_86); -lean_ctor_set(x_84, 0, x_91); -return x_84; +lean_object* x_92; +x_92 = lean_expr_update_mdata(x_2, x_87); +lean_ctor_set(x_85, 0, x_92); +return x_85; } else { -uint8_t x_92; -lean_dec(x_87); -x_92 = l_Lean_Expr_isMVar(x_86); -if (x_92 == 0) +uint8_t x_93; +lean_dec(x_88); +x_93 = l_Lean_Expr_isMVar(x_87); +if (x_93 == 0) { lean_free_object(x_2); +lean_dec(x_83); lean_dec(x_82); -lean_dec(x_81); -return x_84; +return x_85; } else { -lean_object* x_93; -x_93 = lean_expr_update_mdata(x_2, x_86); -lean_ctor_set(x_84, 0, x_93); -return x_84; +lean_object* x_94; +x_94 = lean_expr_update_mdata(x_2, x_87); +lean_ctor_set(x_85, 0, x_94); +return x_85; } } } else { lean_dec(x_2); -if (lean_obj_tag(x_87) == 0) +if (lean_obj_tag(x_88) == 0) { -lean_object* x_94; lean_object* x_95; -x_94 = lean_alloc_ctor(10, 2, 8); -lean_ctor_set(x_94, 0, x_81); -lean_ctor_set(x_94, 1, x_82); -lean_ctor_set_uint64(x_94, sizeof(void*)*2, x_83); -x_95 = lean_expr_update_mdata(x_94, x_86); -lean_ctor_set(x_84, 0, x_95); -return x_84; +lean_object* x_95; lean_object* x_96; +x_95 = lean_alloc_ctor(10, 2, 8); +lean_ctor_set(x_95, 0, x_82); +lean_ctor_set(x_95, 1, x_83); +lean_ctor_set_uint64(x_95, sizeof(void*)*2, x_84); +x_96 = lean_expr_update_mdata(x_95, x_87); +lean_ctor_set(x_85, 0, x_96); +return x_85; } else { -uint8_t x_96; -lean_dec(x_87); -x_96 = l_Lean_Expr_isMVar(x_86); -if (x_96 == 0) +uint8_t x_97; +lean_dec(x_88); +x_97 = l_Lean_Expr_isMVar(x_87); +if (x_97 == 0) { +lean_dec(x_83); lean_dec(x_82); -lean_dec(x_81); -return x_84; +return x_85; } else { -lean_object* x_97; lean_object* x_98; -x_97 = lean_alloc_ctor(10, 2, 8); -lean_ctor_set(x_97, 0, x_81); -lean_ctor_set(x_97, 1, x_82); -lean_ctor_set_uint64(x_97, sizeof(void*)*2, x_83); -x_98 = lean_expr_update_mdata(x_97, x_86); -lean_ctor_set(x_84, 0, x_98); -return x_84; +lean_object* x_98; lean_object* x_99; +x_98 = lean_alloc_ctor(10, 2, 8); +lean_ctor_set(x_98, 0, x_82); +lean_ctor_set(x_98, 1, x_83); +lean_ctor_set_uint64(x_98, sizeof(void*)*2, x_84); +x_99 = lean_expr_update_mdata(x_98, x_87); +lean_ctor_set(x_85, 0, x_99); +return x_85; } } } } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_99 = lean_ctor_get(x_84, 0); -x_100 = lean_ctor_get(x_84, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_100 = lean_ctor_get(x_85, 0); +x_101 = lean_ctor_get(x_85, 1); +lean_inc(x_101); lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_84); -x_101 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); +lean_dec(x_85); +x_102 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); - x_102 = x_2; + x_103 = x_2; } else { lean_dec_ref(x_2); - x_102 = lean_box(0); + x_103 = lean_box(0); } -if (lean_obj_tag(x_101) == 0) +if (lean_obj_tag(x_102) == 0) { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(10, 2, 8); +lean_object* x_104; lean_object* x_105; lean_object* x_106; +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(10, 2, 8); } else { - x_103 = x_102; + x_104 = x_103; } -lean_ctor_set(x_103, 0, x_81); -lean_ctor_set(x_103, 1, x_82); -lean_ctor_set_uint64(x_103, sizeof(void*)*2, x_83); -x_104 = lean_expr_update_mdata(x_103, x_99); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_100); -return x_105; +lean_ctor_set(x_104, 0, x_82); +lean_ctor_set(x_104, 1, x_83); +lean_ctor_set_uint64(x_104, sizeof(void*)*2, x_84); +x_105 = lean_expr_update_mdata(x_104, x_100); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_101); +return x_106; } else { -uint8_t x_106; -lean_dec(x_101); -x_106 = l_Lean_Expr_isMVar(x_99); -if (x_106 == 0) -{ -lean_object* x_107; +uint8_t x_107; lean_dec(x_102); +x_107 = l_Lean_Expr_isMVar(x_100); +if (x_107 == 0) +{ +lean_object* x_108; +lean_dec(x_103); +lean_dec(x_83); lean_dec(x_82); -lean_dec(x_81); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_99); -lean_ctor_set(x_107, 1, x_100); -return x_107; +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_100); +lean_ctor_set(x_108, 1, x_101); +return x_108; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -if (lean_is_scalar(x_102)) { - x_108 = lean_alloc_ctor(10, 2, 8); +lean_object* x_109; lean_object* x_110; lean_object* x_111; +if (lean_is_scalar(x_103)) { + x_109 = lean_alloc_ctor(10, 2, 8); } else { - x_108 = x_102; + x_109 = x_103; } -lean_ctor_set(x_108, 0, x_81); -lean_ctor_set(x_108, 1, x_82); -lean_ctor_set_uint64(x_108, sizeof(void*)*2, x_83); -x_109 = lean_expr_update_mdata(x_108, x_99); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_100); -return x_110; +lean_ctor_set(x_109, 0, x_82); +lean_ctor_set(x_109, 1, x_83); +lean_ctor_set_uint64(x_109, sizeof(void*)*2, x_84); +x_110 = lean_expr_update_mdata(x_109, x_100); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_101); +return x_111; } } } } else { -uint8_t x_111; +uint8_t x_112; +lean_dec(x_83); lean_dec(x_82); -lean_dec(x_81); lean_dec(x_2); -x_111 = !lean_is_exclusive(x_84); -if (x_111 == 0) +x_112 = !lean_is_exclusive(x_85); +if (x_112 == 0) { -return x_84; +return x_85; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_84, 0); -x_113 = lean_ctor_get(x_84, 1); +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_85, 0); +x_114 = lean_ctor_get(x_85, 1); +lean_inc(x_114); lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_84); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; +lean_dec(x_85); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +return x_115; } } } case 11: { -uint8_t x_115; -x_115 = !lean_is_exclusive(x_2); -if (x_115 == 0) +uint8_t x_116; +x_116 = !lean_is_exclusive(x_2); +if (x_116 == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_116 = lean_ctor_get(x_2, 0); -x_117 = lean_ctor_get(x_2, 1); -x_118 = lean_ctor_get(x_2, 2); +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_117 = lean_ctor_get(x_2, 0); +x_118 = lean_ctor_get(x_2, 1); +x_119 = lean_ctor_get(x_2, 2); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_118); -x_119 = l_Lean_Meta_project_x3f(x_118, x_117, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); +lean_inc(x_119); +x_120 = l_Lean_Meta_project_x3f(x_119, x_118, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_120) == 0) { -lean_object* x_121; lean_object* x_122; -x_121 = lean_ctor_get(x_119, 1); +lean_object* x_121; +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -lean_dec(x_119); -lean_inc(x_118); -x_122 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_118, x_3, x_4, x_5, x_6, x_121); -if (lean_obj_tag(x_122) == 0) +if (lean_obj_tag(x_121) == 0) { -uint8_t x_123; -x_123 = !lean_is_exclusive(x_122); -if (x_123 == 0) +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +lean_inc(x_119); +x_123 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_119, x_3, x_4, x_5, x_6, x_122); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_122, 0); -x_125 = lean_expr_update_proj(x_2, x_124); -lean_ctor_set(x_122, 0, x_125); -return x_122; +uint8_t x_124; +x_124 = !lean_is_exclusive(x_123); +if (x_124 == 0) +{ +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_123, 0); +x_126 = lean_expr_update_proj(x_2, x_125); +lean_ctor_set(x_123, 0, x_126); +return x_123; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_126 = lean_ctor_get(x_122, 0); -x_127 = lean_ctor_get(x_122, 1); +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_ctor_get(x_123, 0); +x_128 = lean_ctor_get(x_123, 1); +lean_inc(x_128); lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_122); -x_128 = lean_expr_update_proj(x_2, x_126); -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_127); -return x_129; +lean_dec(x_123); +x_129 = lean_expr_update_proj(x_2, x_127); +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_128); +return x_130; } } else { -uint8_t x_130; +uint8_t x_131; lean_free_object(x_2); -lean_dec(x_118); -lean_dec(x_117); -lean_dec(x_116); -x_130 = !lean_is_exclusive(x_122); -if (x_130 == 0) -{ -return x_122; -} -else -{ -lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_131 = lean_ctor_get(x_122, 0); -x_132 = lean_ctor_get(x_122, 1); -lean_inc(x_132); -lean_inc(x_131); -lean_dec(x_122); -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 -{ -lean_object* x_134; lean_object* x_135; -lean_free_object(x_2); -lean_dec(x_118); -lean_dec(x_117); -lean_dec(x_116); -x_134 = lean_ctor_get(x_119, 1); -lean_inc(x_134); lean_dec(x_119); -x_135 = lean_ctor_get(x_120, 0); +lean_dec(x_118); +lean_dec(x_117); +x_131 = !lean_is_exclusive(x_123); +if (x_131 == 0) +{ +return x_123; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_123, 0); +x_133 = lean_ctor_get(x_123, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_123); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +return x_134; +} +} +} +else +{ +lean_object* x_135; lean_object* x_136; +lean_free_object(x_2); +lean_dec(x_119); +lean_dec(x_118); +lean_dec(x_117); +x_135 = lean_ctor_get(x_120, 1); lean_inc(x_135); lean_dec(x_120); -x_2 = x_135; -x_7 = x_134; +x_136 = lean_ctor_get(x_121, 0); +lean_inc(x_136); +lean_dec(x_121); +x_2 = x_136; +x_7 = x_135; goto _start; } } else { -uint8_t x_137; +uint8_t x_138; lean_free_object(x_2); +lean_dec(x_119); lean_dec(x_118); lean_dec(x_117); -lean_dec(x_116); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_137 = !lean_is_exclusive(x_119); -if (x_137 == 0) +x_138 = !lean_is_exclusive(x_120); +if (x_138 == 0) { -return x_119; +return x_120; } else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_119, 0); -x_139 = lean_ctor_get(x_119, 1); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_120, 0); +x_140 = lean_ctor_get(x_120, 1); +lean_inc(x_140); lean_inc(x_139); -lean_inc(x_138); -lean_dec(x_119); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set(x_140, 1, x_139); -return x_140; +lean_dec(x_120); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; } } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; uint64_t x_144; lean_object* x_145; -x_141 = lean_ctor_get(x_2, 0); -x_142 = lean_ctor_get(x_2, 1); -x_143 = lean_ctor_get(x_2, 2); -x_144 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint64_t x_145; lean_object* x_146; +x_142 = lean_ctor_get(x_2, 0); +x_143 = lean_ctor_get(x_2, 1); +x_144 = lean_ctor_get(x_2, 2); +x_145 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +lean_inc(x_144); lean_inc(x_143); lean_inc(x_142); -lean_inc(x_141); lean_dec(x_2); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_143); -x_145 = l_Lean_Meta_project_x3f(x_143, x_142, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_145) == 0) -{ -lean_object* x_146; -x_146 = lean_ctor_get(x_145, 0); -lean_inc(x_146); +lean_inc(x_144); +x_146 = l_Lean_Meta_project_x3f(x_144, x_143, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_146) == 0) { -lean_object* x_147; lean_object* x_148; -x_147 = lean_ctor_get(x_145, 1); +lean_object* x_147; +x_147 = lean_ctor_get(x_146, 0); lean_inc(x_147); -lean_dec(x_145); -lean_inc(x_143); -x_148 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_143, x_3, x_4, x_5, x_6, x_147); -if (lean_obj_tag(x_148) == 0) +if (lean_obj_tag(x_147) == 0) { -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -x_150 = lean_ctor_get(x_148, 1); +lean_object* x_148; lean_object* x_149; +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec(x_146); +lean_inc(x_144); +x_149 = l_Lean_Elab_Term_StructInst_DefaultFields_reduce(x_1, x_144, x_3, x_4, x_5, x_6, x_148); +if (lean_obj_tag(x_149) == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_150 = lean_ctor_get(x_149, 0); lean_inc(x_150); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - x_151 = x_148; +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_152 = x_149; } else { - lean_dec_ref(x_148); - x_151 = lean_box(0); + lean_dec_ref(x_149); + x_152 = lean_box(0); } -x_152 = lean_alloc_ctor(11, 3, 8); -lean_ctor_set(x_152, 0, x_141); -lean_ctor_set(x_152, 1, x_142); -lean_ctor_set(x_152, 2, x_143); -lean_ctor_set_uint64(x_152, sizeof(void*)*3, x_144); -x_153 = lean_expr_update_proj(x_152, x_149); -if (lean_is_scalar(x_151)) { - x_154 = lean_alloc_ctor(0, 2, 0); +x_153 = lean_alloc_ctor(11, 3, 8); +lean_ctor_set(x_153, 0, x_142); +lean_ctor_set(x_153, 1, x_143); +lean_ctor_set(x_153, 2, x_144); +lean_ctor_set_uint64(x_153, sizeof(void*)*3, x_145); +x_154 = lean_expr_update_proj(x_153, x_150); +if (lean_is_scalar(x_152)) { + x_155 = lean_alloc_ctor(0, 2, 0); } else { - x_154 = x_151; + x_155 = x_152; } -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_150); -return x_154; +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_151); +return x_155; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_144); lean_dec(x_143); lean_dec(x_142); -lean_dec(x_141); -x_155 = lean_ctor_get(x_148, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_148, 1); +x_156 = lean_ctor_get(x_149, 0); lean_inc(x_156); -if (lean_is_exclusive(x_148)) { - lean_ctor_release(x_148, 0); - lean_ctor_release(x_148, 1); - x_157 = x_148; +x_157 = lean_ctor_get(x_149, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_158 = x_149; } else { - lean_dec_ref(x_148); - x_157 = lean_box(0); + lean_dec_ref(x_149); + x_158 = lean_box(0); } -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_158 = x_157; + x_159 = x_158; } -lean_ctor_set(x_158, 0, x_155); -lean_ctor_set(x_158, 1, x_156); -return x_158; +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } else { -lean_object* x_159; lean_object* x_160; +lean_object* x_160; lean_object* x_161; +lean_dec(x_144); lean_dec(x_143); lean_dec(x_142); -lean_dec(x_141); -x_159 = lean_ctor_get(x_145, 1); -lean_inc(x_159); -lean_dec(x_145); -x_160 = lean_ctor_get(x_146, 0); +x_160 = lean_ctor_get(x_146, 1); lean_inc(x_160); lean_dec(x_146); -x_2 = x_160; -x_7 = x_159; +x_161 = lean_ctor_get(x_147, 0); +lean_inc(x_161); +lean_dec(x_147); +x_2 = x_161; +x_7 = x_160; goto _start; } } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_144); lean_dec(x_143); lean_dec(x_142); -lean_dec(x_141); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_162 = lean_ctor_get(x_145, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_145, 1); +x_163 = lean_ctor_get(x_146, 0); lean_inc(x_163); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_164 = x_145; +x_164 = lean_ctor_get(x_146, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_165 = x_146; } else { - lean_dec_ref(x_145); - x_164 = lean_box(0); + lean_dec_ref(x_146); + x_165 = lean_box(0); } -if (lean_is_scalar(x_164)) { - x_165 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); } else { - x_165 = x_164; + x_166 = x_165; } -lean_ctor_set(x_165, 0, x_162); -lean_ctor_set(x_165, 1, x_163); -return x_165; +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; } } } default: { -lean_object* x_166; +lean_object* x_167; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_166 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_166, 0, x_2); -lean_ctor_set(x_166, 1, x_7); -return x_166; +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_2); +lean_ctor_set(x_167, 1, x_7); +return x_167; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index ef8d846d7c..4877a88e18 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -14,15 +14,12 @@ extern "C" { #endif static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__3; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Tactic_tacticToDischarge___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSimp___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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___lambda__1(uint8_t, 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*); extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_KeyedDeclsAttribute_ExtensionState_declNames___default___spec__1; size_t lean_usize_add(size_t, size_t); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___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_Lean_Expr_mvarId_x21(lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__6; lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Elab_Binders_0__Lean_Elab_Term_FunBinders_elabFunBinderViews___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -39,7 +36,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_m lean_object* l_Lean_LocalDecl_userName(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*); static lean_object* l_Lean_Elab_Tactic_elabSimpConfigCore___closed__2; -uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfigCtxCore___spec__1___at_Lean_Elab_Tactic_elabSimpConfigCtxCore___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_Lean_Elab_Tactic_tacticToDischarge___closed__8; @@ -82,7 +78,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___clos LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpTheorems_add(lean_object*, 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_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__6; -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); @@ -96,9 +91,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___boxe lean_object* l_Lean_Meta_SimpTheorems_addDeclToUnfold(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18(uint8_t, 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_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange(lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2(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_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation___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*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__3; @@ -158,7 +151,6 @@ lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__10; uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll___closed__4; lean_object* l_Lean_Meta_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_addDeclToUnfoldOrTheorem___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -171,7 +163,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_mkSimpCo LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___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_EXPORT lean_object* l_Lean_Elab_Tactic_elabSimpConfig(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_mkSimpContext___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_resolveGlobalConstNoOverloadWithInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___lambda__3___closed__2; @@ -188,14 +179,12 @@ lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_obje 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*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___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_addBuiltinDeclarationRanges(lean_object*, lean_object*, 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_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__1___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__2___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_simpLocation___lambda__2(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*); static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__7; 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*); -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___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* l_Lean_Elab_Term_resolveId_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__8; @@ -221,7 +210,6 @@ size_t lean_usize_of_nat(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimp_declRange___closed__1; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; lean_object* l_Lean_ConstantInfo_type(lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__4; lean_object* l_Lean_Elab_Term_runTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -232,7 +220,6 @@ LEAN_EXPORT lean_object* l_Lean_resolveGlobalConstCore___at___private_Lean_Elab_ static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__1___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__2___closed__3; LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__1___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_tacticToDischarge___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_Lean_LocalDecl_type(lean_object*); static lean_object* l_Lean_resolveGlobalConstNoOverload___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__3___closed__1; static lean_object* l_Lean_Elab_Tactic_tacticToDischarge___closed__11; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -295,6 +282,7 @@ LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at___private_Lean_Elab_ LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoLeaf___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__15(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_elabSimpConfigCtxCore___closed__2; static lean_object* l_Lean_Elab_Tactic_evalUnsafe____x40_Lean_Elab_Tactic_Simp___hyg_5____closed__5; +lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__1; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs_resolveSimpIdTheorem_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -306,7 +294,6 @@ lean_object* l_Lean_Elab_Tactic_replaceMainGoal(lean_object*, lean_object*, lean extern lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId; LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__9___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_Tactic_tacticToDischarge___closed__21; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__5; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_mkSimpContext___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*); @@ -352,7 +339,6 @@ lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lea LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__18___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange___closed__6; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_elabSimpArgs___spec__13(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_DiscrTree_empty(lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSimpAll_declRange(lean_object*); @@ -6193,1121 +6179,6 @@ lean_dec(x_1); return x_14; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__3(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, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; -x_12 = lean_usize_dec_lt(x_5, x_4); -if (x_12 == 0) -{ -lean_object* x_13; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_11); -return x_13; -} -else -{ -lean_object* x_14; uint8_t x_15; -x_14 = lean_array_uget(x_3, x_5); -x_15 = !lean_is_exclusive(x_6); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_6, 1); -x_17 = lean_ctor_get(x_6, 0); -lean_dec(x_17); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_16); -lean_inc(x_1); -x_18 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2(x_1, x_14, x_16, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 0); -lean_dec(x_21); -x_22 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_22, 0, x_19); -lean_ctor_set(x_6, 0, x_22); -lean_ctor_set(x_18, 0, x_6); -return x_18; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_18, 1); -lean_inc(x_23); -lean_dec(x_18); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_19); -lean_ctor_set(x_6, 0, x_24); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_6); -lean_ctor_set(x_25, 1, x_23); -return x_25; -} -} -else -{ -lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; -lean_dec(x_16); -x_26 = lean_ctor_get(x_18, 1); -lean_inc(x_26); -lean_dec(x_18); -x_27 = lean_ctor_get(x_19, 0); -lean_inc(x_27); -lean_dec(x_19); -lean_inc(x_2); -lean_ctor_set(x_6, 1, x_27); -lean_ctor_set(x_6, 0, x_2); -x_28 = 1; -x_29 = lean_usize_add(x_5, x_28); -x_5 = x_29; -x_11 = x_26; -goto _start; -} -} -else -{ -uint8_t x_31; -lean_free_object(x_6); -lean_dec(x_16); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_31 = !lean_is_exclusive(x_18); -if (x_31 == 0) -{ -return x_18; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_18, 0); -x_33 = lean_ctor_get(x_18, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_18); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_6, 1); -lean_inc(x_35); -lean_dec(x_6); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_35); -lean_inc(x_1); -x_36 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2(x_1, x_14, x_35, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_39 = x_36; -} else { - lean_dec_ref(x_36); - x_39 = lean_box(0); -} -x_40 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_35); -if (lean_is_scalar(x_39)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_39; -} -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_38); -return x_42; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; size_t x_46; size_t x_47; -lean_dec(x_35); -x_43 = lean_ctor_get(x_36, 1); -lean_inc(x_43); -lean_dec(x_36); -x_44 = lean_ctor_get(x_37, 0); -lean_inc(x_44); -lean_dec(x_37); -lean_inc(x_2); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_2); -lean_ctor_set(x_45, 1, x_44); -x_46 = 1; -x_47 = lean_usize_add(x_5, x_46); -x_5 = x_47; -x_6 = x_45; -x_11 = x_43; -goto _start; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_35); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -x_49 = lean_ctor_get(x_36, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_36, 1); -lean_inc(x_50); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_51 = x_36; -} else { - lean_dec_ref(x_36); - x_51 = lean_box(0); -} -if (lean_is_scalar(x_51)) { - x_52 = lean_alloc_ctor(1, 2, 0); -} else { - x_52 = x_51; -} -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__4(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) { -_start: -{ -uint8_t x_11; -x_11 = lean_usize_dec_lt(x_4, x_3); -if (x_11 == 0) -{ -lean_object* x_12; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_5); -lean_ctor_set(x_12, 1, x_10); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = lean_array_uget(x_2, x_4); -x_14 = lean_ctor_get(x_5, 1); -lean_inc(x_14); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - lean_ctor_release(x_5, 1); - x_15 = x_5; -} else { - lean_dec_ref(x_5); - x_15 = lean_box(0); -} -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_24; -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_14); -x_16 = x_24; -x_17 = x_10; -goto block_23; -} -else -{ -lean_object* x_25; uint8_t x_26; -x_25 = lean_ctor_get(x_13, 0); -lean_inc(x_25); -lean_dec(x_13); -x_26 = l_Lean_LocalDecl_isAuxDecl(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = l_Lean_LocalDecl_type(x_25); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_28 = l_Lean_Meta_isProp(x_27, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_unbox(x_29); -lean_dec(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -lean_dec(x_25); -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec(x_28); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_14); -x_16 = x_32; -x_17 = x_31; -goto block_23; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = l_Lean_LocalDecl_fvarId(x_25); -lean_dec(x_25); -x_35 = lean_array_push(x_14, x_34); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_16 = x_36; -x_17 = x_33; -goto block_23; -} -} -else -{ -uint8_t x_37; -lean_dec(x_25); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_37 = !lean_is_exclusive(x_28); -if (x_37 == 0) -{ -return x_28; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_28, 0); -x_39 = lean_ctor_get(x_28, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_28); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_object* x_41; -lean_dec(x_25); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_14); -x_16 = x_41; -x_17 = x_10; -goto block_23; -} -} -block_23: -{ -lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_1); -if (lean_is_scalar(x_15)) { - x_19 = lean_alloc_ctor(0, 2, 0); -} else { - x_19 = x_15; -} -lean_ctor_set(x_19, 0, x_1); -lean_ctor_set(x_19, 1, x_18); -x_20 = 1; -x_21 = lean_usize_add(x_4, x_20); -x_4 = x_21; -x_5 = x_19; -x_10 = x_17; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2___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; -x_8 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_8, 0, x_1); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; -x_9 = lean_ctor_get(x_2, 0); -lean_inc(x_9); -lean_dec(x_2); -x_10 = lean_box(0); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_10); -lean_ctor_set(x_11, 1, x_3); -x_12 = lean_array_get_size(x_9); -x_13 = lean_usize_of_nat(x_12); -lean_dec(x_12); -x_14 = 0; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__3(x_1, x_10, x_9, x_13, x_14, x_11, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_9); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_box(0); -x_21 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2___lambda__1(x_19, x_20, x_4, x_5, x_6, x_7, x_18); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_21; -} -else -{ -uint8_t x_22; -lean_dec(x_16); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_22 = !lean_is_exclusive(x_15); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_15, 0); -lean_dec(x_23); -x_24 = lean_ctor_get(x_17, 0); -lean_inc(x_24); -lean_dec(x_17); -lean_ctor_set(x_15, 0, x_24); -return x_15; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -lean_dec(x_15); -x_26 = lean_ctor_get(x_17, 0); -lean_inc(x_26); -lean_dec(x_17); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -} -else -{ -uint8_t x_28; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_28 = !lean_is_exclusive(x_15); -if (x_28 == 0) -{ -return x_15; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_15, 0); -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_15); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -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_1); -x_32 = lean_ctor_get(x_2, 0); -lean_inc(x_32); -lean_dec(x_2); -x_33 = lean_box(0); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_3); -x_35 = lean_array_get_size(x_32); -x_36 = lean_usize_of_nat(x_35); -lean_dec(x_35); -x_37 = 0; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_38 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__4(x_33, x_32, x_36, x_37, x_34, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_32); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_dec(x_38); -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_box(0); -x_44 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2___lambda__1(x_42, x_43, x_4, x_5, x_6, x_7, x_41); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_44; -} -else -{ -uint8_t x_45; -lean_dec(x_39); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_45 = !lean_is_exclusive(x_38); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_38, 0); -lean_dec(x_46); -x_47 = lean_ctor_get(x_40, 0); -lean_inc(x_47); -lean_dec(x_40); -lean_ctor_set(x_38, 0, x_47); -return x_38; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_38, 1); -lean_inc(x_48); -lean_dec(x_38); -x_49 = lean_ctor_get(x_40, 0); -lean_inc(x_49); -lean_dec(x_40); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -} -} -else -{ -uint8_t x_51; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_51 = !lean_is_exclusive(x_38); -if (x_51 == 0) -{ -return x_38; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_38, 0); -x_53 = lean_ctor_get(x_38, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_38); -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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___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, lean_object* x_10) { -_start: -{ -uint8_t x_11; -x_11 = lean_usize_dec_lt(x_4, x_3); -if (x_11 == 0) -{ -lean_object* x_12; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_5); -lean_ctor_set(x_12, 1, x_10); -return x_12; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = lean_array_uget(x_2, x_4); -x_14 = lean_ctor_get(x_5, 1); -lean_inc(x_14); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - lean_ctor_release(x_5, 1); - x_15 = x_5; -} else { - lean_dec_ref(x_5); - x_15 = lean_box(0); -} -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_24; -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_14); -x_16 = x_24; -x_17 = x_10; -goto block_23; -} -else -{ -lean_object* x_25; uint8_t x_26; -x_25 = lean_ctor_get(x_13, 0); -lean_inc(x_25); -lean_dec(x_13); -x_26 = l_Lean_LocalDecl_isAuxDecl(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = l_Lean_LocalDecl_type(x_25); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_28 = l_Lean_Meta_isProp(x_27, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_unbox(x_29); -lean_dec(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -lean_dec(x_25); -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec(x_28); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_14); -x_16 = x_32; -x_17 = x_31; -goto block_23; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = l_Lean_LocalDecl_fvarId(x_25); -lean_dec(x_25); -x_35 = lean_array_push(x_14, x_34); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_35); -x_16 = x_36; -x_17 = x_33; -goto block_23; -} -} -else -{ -uint8_t x_37; -lean_dec(x_25); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_1); -x_37 = !lean_is_exclusive(x_28); -if (x_37 == 0) -{ -return x_28; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_28, 0); -x_39 = lean_ctor_get(x_28, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_28); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -lean_object* x_41; -lean_dec(x_25); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_14); -x_16 = x_41; -x_17 = x_10; -goto block_23; -} -} -block_23: -{ -lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_1); -if (lean_is_scalar(x_15)) { - x_19 = lean_alloc_ctor(0, 2, 0); -} else { - x_19 = x_15; -} -lean_ctor_set(x_19, 0, x_1); -lean_ctor_set(x_19, 1, x_18); -x_20 = 1; -x_21 = lean_usize_add(x_4, x_20); -x_4 = x_21; -x_5 = x_19; -x_10 = x_17; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_1); -lean_ctor_set(x_8, 1, x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; -x_8 = lean_ctor_get(x_1, 0); -lean_inc(x_8); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_9 = l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2(x_2, x_8, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -lean_dec(x_12); -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_ctor_get(x_10, 0); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_dec(x_9); -x_18 = lean_ctor_get(x_10, 0); -lean_inc(x_18); -lean_dec(x_10); -x_19 = lean_ctor_get(x_1, 1); -lean_inc(x_19); -lean_dec(x_1); -x_20 = lean_box(0); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_18); -x_22 = lean_array_get_size(x_19); -x_23 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_24 = 0; -x_25 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__5(x_20, x_19, x_23, x_24, x_21, x_3, x_4, x_5, x_6, x_17); -lean_dec(x_19); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -if (lean_obj_tag(x_27) == 0) -{ -uint8_t x_28; -x_28 = !lean_is_exclusive(x_25); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_25, 0); -lean_dec(x_29); -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -lean_dec(x_26); -lean_ctor_set(x_25, 0, x_30); -return x_25; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_25, 1); -lean_inc(x_31); -lean_dec(x_25); -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_dec(x_26); -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; -} -} -else -{ -uint8_t x_34; -lean_dec(x_26); -x_34 = !lean_is_exclusive(x_25); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_25, 0); -lean_dec(x_35); -x_36 = lean_ctor_get(x_27, 0); -lean_inc(x_36); -lean_dec(x_27); -lean_ctor_set(x_25, 0, x_36); -return x_25; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_25, 1); -lean_inc(x_37); -lean_dec(x_25); -x_38 = lean_ctor_get(x_27, 0); -lean_inc(x_38); -lean_dec(x_27); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -} -else -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_25); -if (x_40 == 0) -{ -return x_25; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_25, 0); -x_42 = lean_ctor_get(x_25, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_25); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -} -} -else -{ -uint8_t x_44; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_9); -if (x_44 == 0) -{ -return x_9; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_9, 0); -x_46 = lean_ctor_get(x_9, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_9); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps(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_1, 1); -lean_inc(x_6); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__1___at_Lean_Elab_Tactic_elabSimpConfigCore___spec__2___closed__8; -x_9 = l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1(x_7, x_8, x_1, x_2, x_3, x_4, x_5); -if (lean_obj_tag(x_9) == 0) -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -return x_9; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; -} -} -else -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_9); -if (x_14 == 0) -{ -return x_9; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get(x_9, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_9); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__3(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_3); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__4(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2___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_Std_PersistentArray_forInAux___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__2___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); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___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) { -_start: -{ -size_t x_11; size_t x_12; lean_object* x_13; -x_11 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_12 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__5(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_2); -return x_13; -} -} -LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Std_PersistentArray_forIn___at___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps___spec__1___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); -return x_8; -} -} LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Elab_Tactic_mkSimpContext___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -10803,7 +9674,7 @@ lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -x_46 = l___private_Lean_Elab_Tactic_Simp_0__Lean_Elab_Tactic_getPropHyps(x_11, x_12, x_13, x_14, x_42); +x_46 = l_Lean_Meta_getPropHyps(x_11, x_12, x_13, x_14, x_42); if (lean_obj_tag(x_46) == 0) { lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; size_t x_52; size_t x_53; lean_object* x_54; diff --git a/stage0/stdlib/Lean/Elab/Tactic/Split.c b/stage0/stdlib/Lean/Elab/Tactic/Split.c index 370fb98511..d9bdf6931c 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Split.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Split.c @@ -32,7 +32,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit_declRange___closed static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit___closed__5; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit___closed__3; static lean_object* l_Lean_Elab_Tactic_evalSplit___lambda__1___closed__1; -lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSplit___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*); static lean_object* l_Lean_Elab_Tactic_evalSplit___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit___closed__15; @@ -317,90 +317,91 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSplit___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; +uint8_t x_8; lean_object* x_9; +x_8 = 1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_8 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); +x_9 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_8, 1); +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Elab_Tactic_evalSplit___lambda__1___closed__2; -x_12 = l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(x_11, x_3, x_4, x_5, x_6, x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_12; -} -else +if (lean_obj_tag(x_10) == 0) { -uint8_t x_13; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_8, 0); -lean_dec(x_14); -x_15 = lean_ctor_get(x_9, 0); -lean_inc(x_15); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); lean_dec(x_9); -lean_ctor_set(x_8, 0, x_15); -return x_8; +x_12 = l_Lean_Elab_Tactic_evalSplit___lambda__1___closed__2; +x_13 = l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(x_12, x_3, x_4, x_5, x_6, x_11); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_13; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_8, 1); +uint8_t x_14; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_9, 0); +lean_dec(x_15); +x_16 = lean_ctor_get(x_10, 0); lean_inc(x_16); -lean_dec(x_8); -x_17 = lean_ctor_get(x_9, 0); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_16); +return x_9; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 1); lean_inc(x_17); lean_dec(x_9); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_16); -return x_18; +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; } } } else { -uint8_t x_19; +uint8_t x_20; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_19 = !lean_is_exclusive(x_8); -if (x_19 == 0) +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) { -return x_8; +return x_9; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); +lean_inc(x_22); lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_8); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -return x_22; +lean_dec(x_9); +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; } } } @@ -933,120 +934,121 @@ lean_inc(x_1); x_10 = l_Lean_Elab_Tactic_getMainGoal(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; lean_object* x_12; lean_object* x_13; +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; 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 = 1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_13 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_11, x_5, x_6, x_7, x_8, x_12); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); +x_14 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_11, x_13, x_5, x_6, x_7, x_8, x_12); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Elab_Tactic_evalSplit___lambda__1___closed__2; -x_17 = l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(x_16, x_5, x_6, x_7, x_8, x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_Elab_Tactic_evalSplit___lambda__1___closed__2; +x_18 = l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(x_17, x_5, x_6, x_7, x_8, x_16); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) { -return x_17; +return x_18; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); +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_inc(x_19); -lean_dec(x_17); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_dec(x_18); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_13, 1); -lean_inc(x_22); -lean_dec(x_13); -x_23 = lean_ctor_get(x_14, 0); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_14, 1); lean_inc(x_23); lean_dec(x_14); -x_24 = l_Lean_Elab_Tactic_replaceMainGoal(x_23, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_22); -if (lean_obj_tag(x_24) == 0) +x_24 = lean_ctor_get(x_15, 0); +lean_inc(x_24); +lean_dec(x_15); +x_25 = l_Lean_Elab_Tactic_replaceMainGoal(x_24, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_23); +if (lean_obj_tag(x_25) == 0) { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +uint8_t x_26; +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 0); -lean_dec(x_26); -x_27 = lean_box(0); -lean_ctor_set(x_24, 0, x_27); -return x_24; +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +x_28 = lean_box(0); +lean_ctor_set(x_25, 0, x_28); +return x_25; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec(x_24); -x_29 = lean_box(0); -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; +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 { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_24); -if (x_31 == 0) +uint8_t x_32; +x_32 = !lean_is_exclusive(x_25); +if (x_32 == 0) { -return x_24; +return x_25; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_24, 0); -x_33 = lean_ctor_get(x_24, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_25, 0); +x_34 = lean_ctor_get(x_25, 1); +lean_inc(x_34); lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_24); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_dec(x_25); +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; } } } } else { -uint8_t x_35; +uint8_t x_36; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1055,29 +1057,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_35 = !lean_is_exclusive(x_13); -if (x_35 == 0) +x_36 = !lean_is_exclusive(x_14); +if (x_36 == 0) { -return x_13; +return x_14; } else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_13, 0); -x_37 = lean_ctor_get(x_13, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_14, 0); +x_38 = lean_ctor_get(x_14, 1); +lean_inc(x_38); lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_13); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +lean_dec(x_14); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; } } } else { -uint8_t x_39; +uint8_t x_40; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -1086,23 +1088,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_10); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_10); +if (x_40 == 0) { return x_10; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_10, 0); -x_41 = lean_ctor_get(x_10, 1); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_10, 0); +x_42 = lean_ctor_get(x_10, 1); +lean_inc(x_42); lean_inc(x_41); -lean_inc(x_40); lean_dec(x_10); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index abe527733d..478ac7bc6b 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -89,6 +89,7 @@ lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, l LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_checkIfShadowingStructureField___at_Lean_Elab_Term_expandDeclId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_relaxedAutoImplicit; LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadInfoTreeTermElabM; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_11996____closed__1; @@ -156,13 +157,12 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Term_withoutM LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object*); +uint8_t l_Lean_Elab_isValidAutoBoundImplicitName(lean_object*, uint8_t); static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed__5; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_ToHide_visitVisibleExpr_visit___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_commitIfDidNotPostpone___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_autoBoundImplicitLocal; LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_resolveName___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_levelMVarToParam___closed__1; @@ -303,6 +303,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModif LEAN_EXPORT lean_object* l_Lean_Elab_Term_instToStringMVarErrorKind(lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Elab_Term_getMVarErrorInfo_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_getEntries___rarg(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Elab_autoImplicit; LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerCustomErrorIfMVar___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_Term_instMonadMacroAdapterTermElabM___closed__3; lean_object* l_Lean_Elab_Level_elabLevel(lean_object*, lean_object*, lean_object*); @@ -397,6 +398,7 @@ static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___closed__4; extern lean_object* l_Lean_maxRecDepth; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDeclId___spec__4___closed__2; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__2; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__3; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -419,6 +421,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_expandDecl LEAN_EXPORT lean_object* l_List_foldlM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_mkConsts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_Elab_Term_evalExpr___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__1; uint8_t l_Lean_MetavarContext_isExprAssigned(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_resolveGlobalName___at_Lean_Elab_Term_resolveName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -455,6 +458,7 @@ static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_LVal_isFieldName___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe(lean_object*); @@ -726,6 +730,7 @@ static lean_object* l_Lean_Elab_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spe LEAN_EXPORT lean_object* l_Lean_Elab_Term_tryCoeThunk_x3f(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_instMonadTermElabM___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_resolveName_process___closed__3; static lean_object* l_Lean_Elab_Term_instMonadTermElabM___closed__2; lean_object* l_Lean_Meta_getMVarsAtDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); @@ -888,7 +893,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSomeCont LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__2(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_pushInfoTree___at_Lean_Elab_Term_addDotCompletionInfo___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__2; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___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*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1011,7 +1015,6 @@ LEAN_EXPORT lean_object* l_Std_RBNode_forIn_visit___at_Lean_Elab_Term_logUnassig LEAN_EXPORT lean_object* l_Lean_Elab_Term_saveState(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_sectionFVars___default; static uint32_t l_Lean_Elab_Term_instInhabitedSavedState___closed__4; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isLambdaWithImplicit___boxed(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isHole___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1170,7 +1173,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_applyResult___rarg(lean_object*, lean_ lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096_(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_evalExpr___spec__13(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1311,7 +1314,6 @@ lean_object* l_Lean_getAttributeImpl(lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___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_Option_set___at_Lean_Meta_withPPInaccessibleNamesImp___spec__2(lean_object*, lean_object*, uint8_t); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkTermInfo(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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -37924,7 +37926,7 @@ static lean_object* _init_l_Lean_Elab_Term_withAutoBoundImplicit___rarg___closed _start: { lean_object* x_1; -x_1 = l_Lean_Elab_autoBoundImplicitLocal; +x_1 = l_Lean_Elab_autoImplicit; return x_1; } } @@ -40991,6 +40993,14 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } +static lean_object* _init_l_Lean_Elab_Term_resolveName_process___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_relaxedAutoImplicit; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName_process(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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: { @@ -41054,76 +41064,81 @@ return x_29; } else { -uint8_t x_30; +lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_11, 0); +lean_inc(x_30); +x_31 = l_Lean_Elab_Term_resolveName_process___closed__3; +x_32 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_30, x_31); +lean_dec(x_30); lean_inc(x_2); -x_30 = l_Lean_Elab_isValidAutoBoundImplicitName(x_2); -if (x_30 == 0) +x_33 = l_Lean_Elab_isValidAutoBoundImplicitName(x_2, x_32); +if (x_33 == 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; uint8_t x_39; -x_31 = lean_box(0); -x_32 = l_Lean_mkConst(x_2, x_31); -x_33 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_33, 0, x_32); -x_34 = l_Lean_Elab_Term_resolveName_process___closed__2; -x_35 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__4; -x_37 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +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; uint8_t x_42; +x_34 = lean_box(0); +x_35 = l_Lean_mkConst(x_2, x_34); +x_36 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_36, 0, x_35); +x_37 = l_Lean_Elab_Term_resolveName_process___closed__2; +x_38 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +x_39 = l_Lean_Elab_Term_MVarErrorInfo_logError_addArgName___closed__4; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +x_41 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_40, 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); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) { -return x_38; +return x_41; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_38, 0); -x_41 = lean_ctor_get(x_38, 1); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_38); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_41, 0); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_41); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } else { -lean_object* x_43; uint8_t x_44; -x_43 = l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1(x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_object* x_46; uint8_t x_47; +x_46 = l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1(x_2, 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); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -return x_43; +return x_46; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_46, 0); +x_49 = lean_ctor_get(x_46, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_46); +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; } } } @@ -51799,7 +51814,7 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_withoutModifyingStateWithInfoAndMes return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -51809,7 +51824,7 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__2() { _start: { lean_object* x_1; @@ -51817,17 +51832,17 @@ x_1 = lean_mk_string("debug"); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__2; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -51839,7 +51854,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__1; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -51847,7 +51862,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__3; +x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__3; x_9 = l_Lean_registerTraceClass(x_8, x_7); return x_9; } @@ -52716,6 +52731,8 @@ l_Lean_Elab_Term_resolveName_process___closed__1 = _init_l_Lean_Elab_Term_resolv lean_mark_persistent(l_Lean_Elab_Term_resolveName_process___closed__1); l_Lean_Elab_Term_resolveName_process___closed__2 = _init_l_Lean_Elab_Term_resolveName_process___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_resolveName_process___closed__2); +l_Lean_Elab_Term_resolveName_process___closed__3 = _init_l_Lean_Elab_Term_resolveName_process___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_resolveName_process___closed__3); l_Lean_Elab_Term_resolveName___closed__1 = _init_l_Lean_Elab_Term_resolveName___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_resolveName___closed__1); l_Lean_Elab_Term_resolveName___closed__2 = _init_l_Lean_Elab_Term_resolveName___closed__2(); @@ -52850,13 +52867,13 @@ l_Lean_Elab_Term_expandDeclId___closed__1 = _init_l_Lean_Elab_Term_expandDeclId_ lean_mark_persistent(l_Lean_Elab_Term_expandDeclId___closed__1); l_Lean_Elab_Term_expandDeclId___closed__2 = _init_l_Lean_Elab_Term_expandDeclId___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_expandDeclId___closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076____closed__3); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15076_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096____closed__3); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15096_(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/Expr.c b/stage0/stdlib/Lean/Expr.c index 3407f1387a..3c29abfad7 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -56,7 +56,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_isAppOf___boxed(lean_object*, lean_object*) LEAN_EXPORT lean_object* l_Lean_mkSort(lean_object*); static lean_object* l_Lean_instReprData__1___closed__1; LEAN_EXPORT lean_object* l_Lean_instReprData__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTargetFn(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTargetFn(uint8_t, lean_object*); uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); static lean_object* l_Lean_Expr_bindingDomain_x21___closed__2; LEAN_EXPORT lean_object* l_Lean_Expr_letBody_x21(lean_object*); @@ -119,7 +119,6 @@ uint64_t lean_bool_to_uint64(uint8_t); static lean_object* l_Lean_Expr_updateMData_x21___closed__2; static lean_object* l_Lean_mkNatLit___closed__9; LEAN_EXPORT uint8_t l_Lean_Expr_isArrow(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkOr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -146,7 +145,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_consumeAutoOptParam(lean_object*); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_hash___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_betaRev___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Literal_type___closed__5; LEAN_EXPORT lean_object* l_Lean_Expr_mvarId_x21___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_372____closed__12; @@ -291,7 +290,6 @@ LEAN_EXPORT lean_object* l_Lean_mkLet___boxed(lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_BinderInfo_noConfusion___rarg(uint8_t, uint8_t, lean_object*); lean_object* lean_expr_lower_loose_bvars(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_setOption___at_Lean_Expr_setPPExplicit___spec__1(lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Expr_beta___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_letFunAnnotation_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_isMVar___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2210____closed__26; @@ -391,7 +389,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_withAppRevAux(lean_o LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2210____lambda__4(uint64_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_getParamSubstArray___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_inaccessible_x3f(lean_object*); -LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); +LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*, uint8_t); LEAN_EXPORT uint8_t l_Lean_Expr_isBinding(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_bindingBody_x21___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_updateProj_x21(lean_object*, lean_object*); @@ -498,7 +496,7 @@ static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Exp LEAN_EXPORT uint8_t l_Lean_Expr_Data_nonDepLet(uint64_t); static lean_object* l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2210____closed__39; LEAN_EXPORT lean_object* l_Lean_mkEM(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTargetFn___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTargetFn___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkFreshFVarId___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_consumeMData(lean_object*); uint64_t lean_uint64_land(uint64_t, uint64_t); @@ -545,7 +543,6 @@ static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Exp static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_372____closed__28; LEAN_EXPORT lean_object* l_Lean_Expr_setAppPPExplicit(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_372____closed__14; -LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Expr_ctorName___closed__9; LEAN_EXPORT lean_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_mkNatLit___closed__7; @@ -605,7 +602,7 @@ LEAN_EXPORT uint64_t l_Lean_Literal_hash(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkLambdaEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Expr_hasMVar(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_372____closed__29; -LEAN_EXPORT lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); LEAN_EXPORT uint64_t l_Lean_instInhabitedData__1; static lean_object* l_Lean_instBEqLiteral___closed__1; LEAN_EXPORT lean_object* l_Lean_instHashableBinderInfo; @@ -670,6 +667,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppRev(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_quickLt___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_instToStringExpr; static lean_object* l_Lean_mkEM___closed__4; +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint32_to_uint64(uint32_t); LEAN_EXPORT lean_object* l_Lean_instReprData__1___lambda__6(lean_object*, uint64_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_372____closed__30; @@ -783,7 +781,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_hashEx___boxed(lean_object*); static lean_object* l___private_Lean_Expr_0__Lean_reprExpr____x40_Lean_Expr___hyg_2210____closed__14; static lean_object* l___private_Lean_Expr_0__Lean_reprBinderInfo____x40_Lean_Expr___hyg_372____closed__20; static lean_object* l_Lean_mkDecIsFalse___closed__3; -LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTarget___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTarget___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Expr_updateLet_x21___closed__2; LEAN_EXPORT lean_object* l_Lean_Expr_setOption___at_Lean_Expr_setPPExplicit___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_isAtomic___boxed(lean_object*); @@ -907,6 +905,7 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Expr_containsFVar(lean_object*, lean_object*); static lean_object* l_Lean_mkAnnotation___closed__1; LEAN_EXPORT lean_object* l_Lean_Expr_mkData(uint64_t, lean_object*, uint32_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev_go(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t lean_expr_has_level_param(lean_object*); lean_object* l_Repr_addAppParen(lean_object*, lean_object*); static lean_object* _init_l_Lean_instInhabitedLiteral___closed__1() { @@ -12752,197 +12751,262 @@ lean_dec(x_2); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev_go(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -switch (lean_obj_tag(x_3)) { +switch (lean_obj_tag(x_4)) { case 6: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_5 = lean_ctor_get(x_3, 2); -x_6 = lean_unsigned_to_nat(1u); -x_7 = lean_nat_add(x_4, x_6); +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_4, 2); +lean_inc(x_6); lean_dec(x_4); -x_8 = lean_nat_dec_lt(x_7, x_2); -if (x_8 == 0) +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_add(x_5, x_7); +lean_dec(x_5); +x_9 = lean_nat_dec_lt(x_8, x_3); +if (x_9 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_nat_sub(x_2, x_7); -lean_dec(x_7); -x_10 = lean_expr_instantiate_range(x_5, x_9, x_2, x_1); -x_11 = lean_unsigned_to_nat(0u); -x_12 = l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux(x_1, x_11, x_10, x_9); -return x_12; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_nat_sub(x_3, x_8); +lean_dec(x_8); +x_11 = lean_expr_instantiate_range(x_6, x_10, x_3, x_1); +lean_dec(x_6); +x_12 = lean_unsigned_to_nat(0u); +x_13 = l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux(x_1, x_12, x_11, x_10); +return x_13; } else { -x_3 = x_5; -x_4 = x_7; +x_4 = x_6; +x_5 = x_8; goto _start; } } +case 8: +{ +if (x_2 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_nat_sub(x_3, x_5); +lean_dec(x_5); +x_16 = lean_expr_instantiate_range(x_4, x_15, x_3, x_1); +lean_dec(x_4); +x_17 = lean_unsigned_to_nat(0u); +x_18 = l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux(x_1, x_17, x_16, x_15); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_4, 2); +lean_inc(x_19); +x_20 = lean_ctor_get(x_4, 3); +lean_inc(x_20); +x_21 = lean_nat_dec_lt(x_5, x_3); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_dec(x_20); +lean_dec(x_19); +x_22 = lean_nat_sub(x_3, x_5); +lean_dec(x_5); +x_23 = lean_expr_instantiate_range(x_4, x_22, x_3, x_1); +lean_dec(x_4); +x_24 = lean_unsigned_to_nat(0u); +x_25 = l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux(x_1, x_24, x_23, x_22); +return x_25; +} +else +{ +lean_object* x_26; +lean_dec(x_4); +x_26 = lean_expr_instantiate1(x_20, x_19); +lean_dec(x_19); +lean_dec(x_20); +x_4 = x_26; +goto _start; +} +} +} case 10: { -lean_object* x_14; -x_14 = lean_ctor_get(x_3, 1); -x_3 = x_14; +lean_object* x_28; +x_28 = lean_ctor_get(x_4, 1); +lean_inc(x_28); +lean_dec(x_4); +x_4 = x_28; goto _start; } default: { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_16 = lean_nat_sub(x_2, x_4); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_nat_sub(x_3, x_5); +lean_dec(x_5); +x_31 = lean_expr_instantiate_range(x_4, x_30, x_3, x_1); lean_dec(x_4); -x_17 = lean_expr_instantiate_range(x_3, x_16, x_2, x_1); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux(x_1, x_18, x_17, x_16); -return x_19; +x_32 = lean_unsigned_to_nat(0u); +x_33 = l___private_Lean_Expr_0__Lean_Expr_mkAppRevRangeAux(x_1, x_32, x_31, x_30); +return x_33; } } } } -LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_betaRevAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev_go___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___private_Lean_Expr_0__Lean_Expr_betaRevAux(x_1, x_2, x_3, x_4); -lean_dec(x_3); +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); lean_dec(x_2); +x_7 = l_Lean_Expr_betaRev_go(x_1, x_6, x_3, x_4, x_5); +lean_dec(x_3); lean_dec(x_1); -return x_5; +return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Expr_betaRev(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev(lean_object* x_1, lean_object* x_2, uint8_t x_3) { _start: { -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_array_get_size(x_2); -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_nat_dec_eq(x_3, x_4); -if (x_5 == 0) +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_array_get_size(x_2); +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_4, x_5); +if (x_6 == 0) { -lean_object* x_6; -x_6 = l___private_Lean_Expr_0__Lean_Expr_betaRevAux(x_2, x_3, x_1, x_4); -lean_dec(x_3); -return x_6; +lean_object* x_7; +x_7 = l_Lean_Expr_betaRev_go(x_2, x_3, x_4, x_1, x_5); +lean_dec(x_4); +return x_7; } else { -lean_dec(x_3); -lean_inc(x_1); +lean_dec(x_4); return x_1; } } } -LEAN_EXPORT lean_object* l_Lean_Expr_betaRev___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Expr_betaRev___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_3; -x_3 = l_Lean_Expr_betaRev(x_1, x_2); +uint8_t x_4; lean_object* x_5; +x_4 = lean_unbox(x_3); +lean_dec(x_3); +x_5 = l_Lean_Expr_betaRev(x_1, x_2, x_4); lean_dec(x_2); -lean_dec(x_1); -return x_3; +return x_5; } } LEAN_EXPORT lean_object* l_Lean_Expr_beta(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; +lean_object* x_3; uint8_t x_4; lean_object* x_5; x_3 = l_Array_reverse___rarg(x_2); -x_4 = l_Lean_Expr_betaRev(x_1, x_3); +x_4 = 0; +x_5 = l_Lean_Expr_betaRev(x_1, x_3, x_4); lean_dec(x_3); -return x_4; +return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Expr_beta___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTargetFn(uint8_t x_1, lean_object* x_2) { _start: { -lean_object* x_3; -x_3 = l_Lean_Expr_beta(x_1, x_2); -lean_dec(x_1); -return x_3; -} -} -LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTargetFn(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { +switch (lean_obj_tag(x_2)) { case 6: { -uint8_t x_2; -x_2 = 1; -return x_2; +uint8_t x_3; +x_3 = 1; +return x_3; +} +case 8: +{ +if (x_1 == 0) +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_ctor_get(x_2, 3); +x_2 = x_5; +goto _start; +} } case 10: { -lean_object* x_3; -x_3 = lean_ctor_get(x_1, 1); -x_1 = x_3; +lean_object* x_7; +x_7 = lean_ctor_get(x_2, 1); +x_2 = x_7; goto _start; } default: { -uint8_t x_5; -x_5 = 0; -return x_5; +uint8_t x_9; +x_9 = 0; +return x_9; } } } } -LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTargetFn___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTargetFn___boxed(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Expr_isHeadBetaTargetFn(x_1); +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_1); lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; +x_4 = l_Lean_Expr_isHeadBetaTargetFn(x_3, x_2); +lean_dec(x_2); +x_5 = lean_box(x_4); +return x_5; } } LEAN_EXPORT lean_object* l_Lean_Expr_headBeta(lean_object* x_1) { _start: { -lean_object* x_2; uint8_t x_3; +lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = l_Lean_Expr_getAppFn(x_1); -x_3 = l_Lean_Expr_isHeadBetaTargetFn(x_2); -if (x_3 == 0) +x_3 = 0; +x_4 = l_Lean_Expr_isHeadBetaTargetFn(x_3, x_2); +if (x_4 == 0) { lean_dec(x_2); return x_1; } else { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_4 = lean_unsigned_to_nat(0u); -x_5 = l_Lean_Expr_getAppNumArgsAux(x_1, x_4); -x_6 = lean_mk_empty_array_with_capacity(x_5); -lean_dec(x_5); -x_7 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_6); -x_8 = l_Lean_Expr_betaRev(x_2, x_7); -lean_dec(x_7); -lean_dec(x_2); -return x_8; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_Lean_Expr_getAppNumArgsAux(x_1, x_5); +x_7 = lean_mk_empty_array_with_capacity(x_6); +lean_dec(x_6); +x_8 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_7); +x_9 = l_Lean_Expr_betaRev(x_2, x_8, x_3); +lean_dec(x_8); +return x_9; } } } -LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object* x_1) { +LEAN_EXPORT uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object* x_1, uint8_t x_2) { _start: { -lean_object* x_2; uint8_t x_3; -x_2 = l_Lean_Expr_getAppFn(x_1); -x_3 = l_Lean_Expr_isHeadBetaTargetFn(x_2); -lean_dec(x_2); -return x_3; +lean_object* x_3; uint8_t x_4; +x_3 = l_Lean_Expr_getAppFn(x_1); +x_4 = l_Lean_Expr_isHeadBetaTargetFn(x_2, x_3); +lean_dec(x_3); +return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTarget___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Expr_isHeadBetaTarget___boxed(lean_object* x_1, lean_object* x_2) { _start: { -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Expr_isHeadBetaTarget(x_1); +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_2); +lean_dec(x_2); +x_4 = l_Lean_Expr_isHeadBetaTarget(x_1, x_3); lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; +x_5 = lean_box(x_4); +return x_5; } } LEAN_EXPORT lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedBody(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -13694,7 +13758,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateApp_x21___closed__1; -x_3 = lean_unsigned_to_nat(966u); +x_3 = lean_unsigned_to_nat(979u); 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); @@ -13765,7 +13829,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateConst_x21___closed__1; -x_3 = lean_unsigned_to_nat(975u); +x_3 = lean_unsigned_to_nat(988u); 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); @@ -13843,7 +13907,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateSort_x21___closed__1; -x_3 = lean_unsigned_to_nat(984u); +x_3 = lean_unsigned_to_nat(997u); 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); @@ -13926,7 +13990,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateMData_x21___closed__1; -x_3 = lean_unsigned_to_nat(1001u); +x_3 = lean_unsigned_to_nat(1014u); 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); @@ -13996,7 +14060,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateProj_x21___closed__1; -x_3 = lean_unsigned_to_nat(1006u); +x_3 = lean_unsigned_to_nat(1019u); 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); @@ -14079,7 +14143,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateForall_x21___closed__1; -x_3 = lean_unsigned_to_nat(1015u); +x_3 = lean_unsigned_to_nat(1028u); 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); @@ -14155,7 +14219,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateForallE_x21___closed__1; -x_3 = lean_unsigned_to_nat(1020u); +x_3 = lean_unsigned_to_nat(1033u); 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); @@ -14242,7 +14306,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateLambda_x21___closed__1; -x_3 = lean_unsigned_to_nat(1029u); +x_3 = lean_unsigned_to_nat(1042u); 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); @@ -14318,7 +14382,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_3 = lean_unsigned_to_nat(1034u); +x_3 = lean_unsigned_to_nat(1047u); 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); @@ -14395,7 +14459,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_Expr_mkData___closed__2; x_2 = l_Lean_Expr_updateLet_x21___closed__1; -x_3 = lean_unsigned_to_nat(1043u); +x_3 = lean_unsigned_to_nat(1056u); 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); diff --git a/stage0/stdlib/Lean/Meta/Basic.c b/stage0/stdlib/Lean/Meta/Basic.c index c392f4f0c5..8da60339fd 100644 --- a/stage0/stdlib/Lean/Meta/Basic.c +++ b/stage0/stdlib/Lean/Meta/Basic.c @@ -46,6 +46,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_withLocalDecls static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_withIncRecDepth___spec__1___rarg___closed__1; static lean_object* l_Lean_Meta_instInhabitedParamInfo___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_etaExpand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Meta_TransparencyMode_hash(uint8_t); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT uint64_t l_Lean_Meta_InfoCacheKey_instHashableInfoCacheKey(lean_object*); @@ -102,6 +103,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, le uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkFreshExprMVarAt___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_addTrace___at_Lean_Meta_processPostponed_loop___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_etaExpand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkFunUnit___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withMCtx___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1___closed__4; @@ -638,6 +640,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_instMonadMCtxMetaM___lambda__2___boxed(lean LEAN_EXPORT lean_object* l_Lean_Meta_withDefault___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MetavarContext_exprDependsOn(lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Meta_etaExpand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint8_t l_Lean_instInhabitedBinderInfo; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth(lean_object*); @@ -697,7 +700,7 @@ static lean_object* l_Lean_Meta_processPostponed_loop___closed__3; uint8_t l_Lean_Expr_hasMVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mapErrorImp(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_sortFVarIds(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_processPostponed_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); static lean_object* l_Lean_Meta_instInhabitedMetaM___rarg___closed__2; @@ -781,7 +784,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_throwIsDefEqStuck___boxed(lean_object*, lea static lean_object* l_Lean_Meta_processPostponed_loop___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_approxDefEqImp(lean_object*); lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13207_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13247_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_instMonadMCtxMetaM___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_resettingSynthInstanceCacheWhen(lean_object*); @@ -9809,274 +9812,274 @@ return x_47; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; x_48 = l_Array_reverse___rarg(x_3); -x_49 = l_Lean_Expr_betaRev(x_34, x_48); +x_49 = 0; +x_50 = l_Lean_Expr_betaRev(x_34, x_48, x_49); lean_dec(x_48); -lean_dec(x_34); -x_50 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_49, x_5, x_6, x_7, x_8, x_9, x_35); -return x_50; +x_51 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_50, x_5, x_6, x_7, x_8, x_9, x_35); +return x_51; } } } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_51 = lean_ctor_get(x_19, 0); -lean_inc(x_51); -lean_dec(x_19); -x_52 = lean_ctor_get(x_51, 1); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_52 = lean_ctor_get(x_19, 0); lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 2); +lean_dec(x_19); +x_53 = lean_ctor_get(x_52, 1); lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_array_get_size(x_3); -x_55 = lean_array_get_size(x_52); -x_56 = lean_nat_dec_lt(x_54, x_55); -if (x_56 == 0) +x_54 = lean_ctor_get(x_52, 2); +lean_inc(x_54); +lean_dec(x_52); +x_55 = lean_array_get_size(x_3); +x_56 = lean_array_get_size(x_53); +x_57 = lean_nat_dec_lt(x_55, x_56); +if (x_57 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_inc(x_7); -x_57 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_53, x_5, x_6, x_7, x_8, x_9, x_17); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); +x_58 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_54, x_5, x_6, x_7, x_8, x_9, x_17); +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -lean_dec(x_57); -x_60 = l_Lean_Expr_hasExprMVar(x_58); -if (x_60 == 0) +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = l_Lean_Expr_hasExprMVar(x_59); +if (x_61 == 0) { -size_t x_61; size_t x_62; lean_object* x_63; uint8_t x_64; +size_t x_62; size_t x_63; lean_object* x_64; uint8_t x_65; lean_dec(x_2); -x_61 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_62 = 0; -x_63 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_61, x_62, x_3, x_5, x_6, x_7, x_8, x_9, x_59); -x_64 = !lean_is_exclusive(x_63); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_65 = lean_ctor_get(x_63, 0); -x_66 = lean_expr_abstract(x_58, x_52); -lean_dec(x_52); -lean_dec(x_58); -x_67 = lean_unsigned_to_nat(0u); -x_68 = lean_expr_instantiate_rev_range(x_66, x_67, x_55, x_65); -lean_dec(x_66); -x_69 = lean_array_get_size(x_65); -x_70 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_69, x_65, x_55, x_68); -lean_dec(x_65); -lean_dec(x_69); -lean_ctor_set(x_63, 0, x_70); -return x_63; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_71 = lean_ctor_get(x_63, 0); -x_72 = lean_ctor_get(x_63, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_63); -x_73 = lean_expr_abstract(x_58, x_52); -lean_dec(x_52); -lean_dec(x_58); -x_74 = lean_unsigned_to_nat(0u); -x_75 = lean_expr_instantiate_rev_range(x_73, x_74, x_55, x_71); -lean_dec(x_73); -x_76 = lean_array_get_size(x_71); -x_77 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_76, x_71, x_55, x_75); -lean_dec(x_71); -lean_dec(x_76); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_72); -return x_78; -} -} -else -{ -size_t x_79; size_t x_80; lean_object* x_81; uint8_t x_82; -lean_dec(x_58); +x_62 = lean_usize_of_nat(x_55); lean_dec(x_55); -lean_dec(x_52); -x_79 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_80 = 0; -x_81 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_79, x_80, x_3, x_5, x_6, x_7, x_8, x_9, x_59); -x_82 = !lean_is_exclusive(x_81); -if (x_82 == 0) +x_63 = 0; +x_64 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_62, x_63, x_3, x_5, x_6, x_7, x_8, x_9, x_60); +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_81, 0); -x_84 = l_Lean_mkAppN(x_2, x_83); -lean_ctor_set(x_81, 0, x_84); -return x_81; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_81, 0); -x_86 = lean_ctor_get(x_81, 1); -lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_81); -x_87 = l_Lean_mkAppN(x_2, x_85); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -return x_88; -} -} -} -else -{ -size_t x_89; size_t x_90; lean_object* x_91; uint8_t x_92; -lean_dec(x_55); +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_66 = lean_ctor_get(x_64, 0); +x_67 = lean_expr_abstract(x_59, x_53); lean_dec(x_53); -lean_dec(x_52); -x_89 = lean_usize_of_nat(x_54); -lean_dec(x_54); -x_90 = 0; -x_91 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_89, x_90, x_3, x_5, x_6, x_7, x_8, x_9, x_17); -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_91, 0); -x_94 = l_Lean_mkAppN(x_2, x_93); -lean_ctor_set(x_91, 0, x_94); -return x_91; +lean_dec(x_59); +x_68 = lean_unsigned_to_nat(0u); +x_69 = lean_expr_instantiate_rev_range(x_67, x_68, x_56, x_66); +lean_dec(x_67); +x_70 = lean_array_get_size(x_66); +x_71 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_70, x_66, x_56, x_69); +lean_dec(x_66); +lean_dec(x_70); +lean_ctor_set(x_64, 0, x_71); +return x_64; } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = lean_ctor_get(x_91, 0); -x_96 = lean_ctor_get(x_91, 1); +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; +x_72 = lean_ctor_get(x_64, 0); +x_73 = lean_ctor_get(x_64, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_64); +x_74 = lean_expr_abstract(x_59, x_53); +lean_dec(x_53); +lean_dec(x_59); +x_75 = lean_unsigned_to_nat(0u); +x_76 = lean_expr_instantiate_rev_range(x_74, x_75, x_56, x_72); +lean_dec(x_74); +x_77 = lean_array_get_size(x_72); +x_78 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_77, x_72, x_56, x_76); +lean_dec(x_72); +lean_dec(x_77); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_73); +return x_79; +} +} +else +{ +size_t x_80; size_t x_81; lean_object* x_82; uint8_t x_83; +lean_dec(x_59); +lean_dec(x_56); +lean_dec(x_53); +x_80 = lean_usize_of_nat(x_55); +lean_dec(x_55); +x_81 = 0; +x_82 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_80, x_81, x_3, x_5, x_6, x_7, x_8, x_9, x_60); +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_82, 0); +x_85 = l_Lean_mkAppN(x_2, x_84); +lean_ctor_set(x_82, 0, x_85); +return x_82; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = lean_ctor_get(x_82, 0); +x_87 = lean_ctor_get(x_82, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_82); +x_88 = l_Lean_mkAppN(x_2, x_86); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_87); +return x_89; +} +} +} +else +{ +size_t x_90; size_t x_91; lean_object* x_92; uint8_t x_93; +lean_dec(x_56); +lean_dec(x_54); +lean_dec(x_53); +x_90 = lean_usize_of_nat(x_55); +lean_dec(x_55); +x_91 = 0; +x_92 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_90, x_91, x_3, x_5, x_6, x_7, x_8, x_9, x_17); +x_93 = !lean_is_exclusive(x_92); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_92, 0); +x_95 = l_Lean_mkAppN(x_2, x_94); +lean_ctor_set(x_92, 0, x_95); +return x_92; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_96 = lean_ctor_get(x_92, 0); +x_97 = lean_ctor_get(x_92, 1); +lean_inc(x_97); lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_91); -x_97 = l_Lean_mkAppN(x_2, x_95); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -return x_98; +lean_dec(x_92); +x_98 = l_Lean_mkAppN(x_2, x_96); +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; } } } } case 5: { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_99 = lean_ctor_get(x_2, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_2, 1); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_100 = lean_ctor_get(x_2, 0); lean_inc(x_100); +x_101 = lean_ctor_get(x_2, 1); +lean_inc(x_101); lean_dec(x_2); -x_101 = lean_array_set(x_3, x_4, x_100); -x_102 = lean_unsigned_to_nat(1u); -x_103 = lean_nat_sub(x_4, x_102); +x_102 = lean_array_set(x_3, x_4, x_101); +x_103 = lean_unsigned_to_nat(1u); +x_104 = lean_nat_sub(x_4, x_103); lean_dec(x_4); -x_2 = x_99; -x_3 = x_101; -x_4 = x_103; +x_2 = x_100; +x_3 = x_102; +x_4 = x_104; goto _start; } default: { -uint8_t x_105; lean_object* x_106; +uint8_t x_106; lean_object* x_107; lean_dec(x_4); lean_dec(x_1); -x_105 = l_Lean_Expr_isMVar(x_2); +x_106 = l_Lean_Expr_isMVar(x_2); lean_inc(x_7); -x_106 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_2, x_5, x_6, x_7, x_8, x_9, x_10); -if (x_105 == 0) +x_107 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_2, x_5, x_6, x_7, x_8, x_9, x_10); +if (x_106 == 0) { -lean_object* x_107; lean_object* x_108; lean_object* x_109; size_t x_110; size_t x_111; lean_object* x_112; uint8_t x_113; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); +lean_object* x_108; lean_object* x_109; lean_object* x_110; size_t x_111; size_t x_112; lean_object* x_113; uint8_t x_114; +x_108 = lean_ctor_get(x_107, 0); lean_inc(x_108); -lean_dec(x_106); -x_109 = lean_array_get_size(x_3); -x_110 = lean_usize_of_nat(x_109); -lean_dec(x_109); -x_111 = 0; -x_112 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_110, x_111, x_3, x_5, x_6, x_7, x_8, x_9, x_108); -x_113 = !lean_is_exclusive(x_112); -if (x_113 == 0) +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_array_get_size(x_3); +x_111 = lean_usize_of_nat(x_110); +lean_dec(x_110); +x_112 = 0; +x_113 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_111, x_112, x_3, x_5, x_6, x_7, x_8, x_9, x_109); +x_114 = !lean_is_exclusive(x_113); +if (x_114 == 0) { -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_112, 0); -x_115 = l_Lean_mkAppN(x_107, x_114); -lean_ctor_set(x_112, 0, x_115); -return x_112; +lean_object* x_115; lean_object* x_116; +x_115 = lean_ctor_get(x_113, 0); +x_116 = l_Lean_mkAppN(x_108, x_115); +lean_ctor_set(x_113, 0, x_116); +return x_113; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_116 = lean_ctor_get(x_112, 0); -x_117 = lean_ctor_get(x_112, 1); +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_117 = lean_ctor_get(x_113, 0); +x_118 = lean_ctor_get(x_113, 1); +lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_dec(x_112); -x_118 = l_Lean_mkAppN(x_107, x_116); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -return x_119; +lean_dec(x_113); +x_119 = l_Lean_mkAppN(x_108, x_117); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_118); +return x_120; } } else { -lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_120 = lean_ctor_get(x_106, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_106, 1); +lean_object* x_121; lean_object* x_122; uint8_t x_123; +x_121 = lean_ctor_get(x_107, 0); lean_inc(x_121); -lean_dec(x_106); -x_122 = l_Lean_Expr_isLambda(x_120); -if (x_122 == 0) +x_122 = lean_ctor_get(x_107, 1); +lean_inc(x_122); +lean_dec(x_107); +x_123 = l_Lean_Expr_isLambda(x_121); +if (x_123 == 0) { -lean_object* x_123; size_t x_124; size_t x_125; lean_object* x_126; uint8_t x_127; -x_123 = lean_array_get_size(x_3); -x_124 = lean_usize_of_nat(x_123); -lean_dec(x_123); -x_125 = 0; -x_126 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_124, x_125, x_3, x_5, x_6, x_7, x_8, x_9, x_121); -x_127 = !lean_is_exclusive(x_126); -if (x_127 == 0) +lean_object* x_124; size_t x_125; size_t x_126; lean_object* x_127; uint8_t x_128; +x_124 = lean_array_get_size(x_3); +x_125 = lean_usize_of_nat(x_124); +lean_dec(x_124); +x_126 = 0; +x_127 = l_Array_mapMUnsafe_map___at_Lean_Meta_instantiateMVars___spec__4(x_125, x_126, x_3, x_5, x_6, x_7, x_8, x_9, x_122); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) { -lean_object* x_128; lean_object* x_129; -x_128 = lean_ctor_get(x_126, 0); -x_129 = l_Lean_mkAppN(x_120, x_128); -lean_ctor_set(x_126, 0, x_129); -return x_126; +lean_object* x_129; lean_object* x_130; +x_129 = lean_ctor_get(x_127, 0); +x_130 = l_Lean_mkAppN(x_121, x_129); +lean_ctor_set(x_127, 0, x_130); +return x_127; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_130 = lean_ctor_get(x_126, 0); -x_131 = lean_ctor_get(x_126, 1); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_131 = lean_ctor_get(x_127, 0); +x_132 = lean_ctor_get(x_127, 1); +lean_inc(x_132); lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_126); -x_132 = l_Lean_mkAppN(x_120, x_130); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -return x_133; +lean_dec(x_127); +x_133 = l_Lean_mkAppN(x_121, x_131); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_132); +return x_134; } } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = l_Array_reverse___rarg(x_3); -x_135 = l_Lean_Expr_betaRev(x_120, x_134); -lean_dec(x_134); -lean_dec(x_120); -x_136 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_135, x_5, x_6, x_7, x_8, x_9, x_121); -return x_136; +lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; +x_135 = l_Array_reverse___rarg(x_3); +x_136 = 0; +x_137 = l_Lean_Expr_betaRev(x_121, x_135, x_136); +lean_dec(x_135); +x_138 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_Meta_instantiateMVars___spec__1(x_137, x_5, x_6, x_7, x_8, x_9, x_122); +return x_138; } } } @@ -40582,7 +40585,427 @@ return x_72; } } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13207_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_etaExpand___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; uint8_t x_10; uint8_t x_11; lean_object* x_12; +lean_inc(x_2); +x_9 = l_Lean_mkAppN(x_1, x_2); +x_10 = 0; +x_11 = 1; +x_12 = l_Lean_Meta_mkLambdaFVars(x_2, x_9, x_10, x_11, x_4, x_5, x_6, x_7, x_8); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_etaExpand(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_is_exclusive(x_2); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 0); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +uint8_t x_10; lean_object* x_11; +x_10 = 1; +lean_ctor_set_uint8(x_8, 5, x_10); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_11 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_6); +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_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_etaExpand___lambda__1___boxed), 8, 1); +lean_closure_set(x_14, 0, x_1); +x_15 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_12, x_14, x_2, x_3, x_4, x_5, x_13); +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +return x_15; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_15); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +else +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +else +{ +uint8_t x_24; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_11); +if (x_24 == 0) +{ +return x_11; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_11, 0); +x_26 = lean_ctor_get(x_11, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_11); +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; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_28 = lean_ctor_get_uint8(x_8, 0); +x_29 = lean_ctor_get_uint8(x_8, 1); +x_30 = lean_ctor_get_uint8(x_8, 2); +x_31 = lean_ctor_get_uint8(x_8, 3); +x_32 = lean_ctor_get_uint8(x_8, 4); +x_33 = lean_ctor_get_uint8(x_8, 6); +x_34 = lean_ctor_get_uint8(x_8, 7); +x_35 = lean_ctor_get_uint8(x_8, 8); +x_36 = lean_ctor_get_uint8(x_8, 9); +x_37 = lean_ctor_get_uint8(x_8, 10); +x_38 = lean_ctor_get_uint8(x_8, 11); +x_39 = lean_ctor_get_uint8(x_8, 12); +x_40 = lean_ctor_get_uint8(x_8, 13); +lean_dec(x_8); +x_41 = 1; +x_42 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_42, 0, x_28); +lean_ctor_set_uint8(x_42, 1, x_29); +lean_ctor_set_uint8(x_42, 2, x_30); +lean_ctor_set_uint8(x_42, 3, x_31); +lean_ctor_set_uint8(x_42, 4, x_32); +lean_ctor_set_uint8(x_42, 5, x_41); +lean_ctor_set_uint8(x_42, 6, x_33); +lean_ctor_set_uint8(x_42, 7, x_34); +lean_ctor_set_uint8(x_42, 8, x_35); +lean_ctor_set_uint8(x_42, 9, x_36); +lean_ctor_set_uint8(x_42, 10, x_37); +lean_ctor_set_uint8(x_42, 11, x_38); +lean_ctor_set_uint8(x_42, 12, x_39); +lean_ctor_set_uint8(x_42, 13, x_40); +lean_ctor_set(x_2, 0, x_42); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_1); +x_43 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_alloc_closure((void*)(l_Lean_Meta_etaExpand___lambda__1___boxed), 8, 1); +lean_closure_set(x_46, 0, x_1); +x_47 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_44, x_46, x_2, x_3, x_4, x_5, x_45); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_50 = x_47; +} else { + lean_dec_ref(x_47); + x_50 = lean_box(0); +} +if (lean_is_scalar(x_50)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_50; +} +lean_ctor_set(x_51, 0, x_48); +lean_ctor_set(x_51, 1, x_49); +return x_51; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_47, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_54 = x_47; +} else { + lean_dec_ref(x_47); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(1, 2, 0); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_2); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_56 = lean_ctor_get(x_43, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_43, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_43)) { + lean_ctor_release(x_43, 0); + lean_ctor_release(x_43, 1); + x_58 = x_43; +} else { + lean_dec_ref(x_43); + x_58 = lean_box(0); +} +if (lean_is_scalar(x_58)) { + x_59 = lean_alloc_ctor(1, 2, 0); +} else { + x_59 = x_58; +} +lean_ctor_set(x_59, 0, x_56); +lean_ctor_set(x_59, 1, x_57); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_60 = lean_ctor_get(x_2, 0); +x_61 = lean_ctor_get(x_2, 1); +x_62 = lean_ctor_get(x_2, 2); +x_63 = lean_ctor_get(x_2, 3); +x_64 = lean_ctor_get(x_2, 4); +x_65 = lean_ctor_get(x_2, 5); +lean_inc(x_65); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_2); +x_66 = lean_ctor_get_uint8(x_60, 0); +x_67 = lean_ctor_get_uint8(x_60, 1); +x_68 = lean_ctor_get_uint8(x_60, 2); +x_69 = lean_ctor_get_uint8(x_60, 3); +x_70 = lean_ctor_get_uint8(x_60, 4); +x_71 = lean_ctor_get_uint8(x_60, 6); +x_72 = lean_ctor_get_uint8(x_60, 7); +x_73 = lean_ctor_get_uint8(x_60, 8); +x_74 = lean_ctor_get_uint8(x_60, 9); +x_75 = lean_ctor_get_uint8(x_60, 10); +x_76 = lean_ctor_get_uint8(x_60, 11); +x_77 = lean_ctor_get_uint8(x_60, 12); +x_78 = lean_ctor_get_uint8(x_60, 13); +if (lean_is_exclusive(x_60)) { + x_79 = x_60; +} else { + lean_dec_ref(x_60); + x_79 = lean_box(0); +} +x_80 = 1; +if (lean_is_scalar(x_79)) { + x_81 = lean_alloc_ctor(0, 0, 14); +} else { + x_81 = x_79; +} +lean_ctor_set_uint8(x_81, 0, x_66); +lean_ctor_set_uint8(x_81, 1, x_67); +lean_ctor_set_uint8(x_81, 2, x_68); +lean_ctor_set_uint8(x_81, 3, x_69); +lean_ctor_set_uint8(x_81, 4, x_70); +lean_ctor_set_uint8(x_81, 5, x_80); +lean_ctor_set_uint8(x_81, 6, x_71); +lean_ctor_set_uint8(x_81, 7, x_72); +lean_ctor_set_uint8(x_81, 8, x_73); +lean_ctor_set_uint8(x_81, 9, x_74); +lean_ctor_set_uint8(x_81, 10, x_75); +lean_ctor_set_uint8(x_81, 11, x_76); +lean_ctor_set_uint8(x_81, 12, x_77); +lean_ctor_set_uint8(x_81, 13, x_78); +x_82 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_61); +lean_ctor_set(x_82, 2, x_62); +lean_ctor_set(x_82, 3, x_63); +lean_ctor_set(x_82, 4, x_64); +lean_ctor_set(x_82, 5, x_65); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_82); +lean_inc(x_1); +x_83 = lean_infer_type(x_1, x_82, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = lean_alloc_closure((void*)(l_Lean_Meta_etaExpand___lambda__1___boxed), 8, 1); +lean_closure_set(x_86, 0, x_1); +x_87 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__2___rarg(x_84, x_86, x_82, x_3, x_4, x_5, x_85); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; +} else { + lean_dec_ref(x_87); + x_90 = lean_box(0); +} +if (lean_is_scalar(x_90)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_90; +} +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_89); +return x_91; +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_87, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_87, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_94 = x_87; +} else { + lean_dec_ref(x_87); + x_94 = lean_box(0); +} +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(1, 2, 0); +} else { + x_95 = x_94; +} +lean_ctor_set(x_95, 0, x_92); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_82); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_96 = lean_ctor_get(x_83, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_83, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_98 = x_83; +} else { + lean_dec_ref(x_83); + x_98 = lean_box(0); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(1, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_96); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_etaExpand___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_Lean_Meta_etaExpand___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13247_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -41059,7 +41482,7 @@ l_Lean_Meta_isExprDefEq___closed__1 = _init_l_Lean_Meta_isExprDefEq___closed__1( lean_mark_persistent(l_Lean_Meta_isExprDefEq___closed__1); l_Lean_Meta_isExprDefEq___closed__2 = _init_l_Lean_Meta_isExprDefEq___closed__2(); lean_mark_persistent(l_Lean_Meta_isExprDefEq___closed__2); -res = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13207_(lean_io_mk_world()); +res = l_Lean_initFn____x40_Lean_Meta_Basic___hyg_13247_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Closure.c b/stage0/stdlib/Lean/Meta/Closure.c index 1ed61bec8a..63cae9d6c2 100644 --- a/stage0/stdlib/Lean/Meta/Closure.c +++ b/stage0/stdlib/Lean/Meta/Closure.c @@ -3930,7 +3930,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(1001u); +x_3 = lean_unsigned_to_nat(1014u); 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); @@ -3959,7 +3959,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(1006u); +x_3 = lean_unsigned_to_nat(1019u); 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); @@ -3988,7 +3988,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(966u); +x_3 = lean_unsigned_to_nat(979u); 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); @@ -4017,7 +4017,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(1034u); +x_3 = lean_unsigned_to_nat(1047u); 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); @@ -4046,7 +4046,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(1020u); +x_3 = lean_unsigned_to_nat(1033u); 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); @@ -4075,7 +4075,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(1043u); +x_3 = lean_unsigned_to_nat(1056u); 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/Coe.c b/stage0/stdlib/Lean/Meta/Coe.c index 23f5171ec8..dfb2316cd6 100644 --- a/stage0/stdlib/Lean/Meta/Coe.c +++ b/stage0/stdlib/Lean/Meta/Coe.c @@ -1022,30 +1022,29 @@ lean_inc(x_1); x_29 = l_Lean_Meta_transform_visit___at_Lean_Meta_expandCoe___spec__2(x_1, x_2, x_3, x_4, x_28, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_29) == 0) { -lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); x_32 = 0; -x_33 = 1; lean_inc(x_8); -x_34 = l_Lean_Meta_mkLambdaFVars(x_5, x_30, x_32, x_33, x_8, x_9, x_10, x_11, x_31); -if (lean_obj_tag(x_34) == 0) +x_33 = l_Lean_Meta_mkLambdaFVars(x_5, x_30, x_32, x_32, x_8, x_9, x_10, x_11, x_31); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 0); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_expandCoe___spec__3(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_36); -return x_37; +lean_dec(x_33); +x_36 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_expandCoe___spec__3(x_1, x_2, x_3, x_4, x_34, x_7, x_8, x_9, x_10, x_11, x_35); +return x_36; } else { -uint8_t x_38; +uint8_t x_37; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1055,29 +1054,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) { -return x_34; +return x_33; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); -lean_dec(x_34); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_42; +uint8_t x_41; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1088,23 +1087,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_29); -if (x_42 == 0) +x_41 = !lean_is_exclusive(x_29); +if (x_41 == 0) { return x_29; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_29, 0); -x_44 = lean_ctor_get(x_29, 1); -lean_inc(x_44); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_29, 1); lean_inc(x_43); +lean_inc(x_42); lean_dec(x_29); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } @@ -1278,30 +1277,29 @@ lean_inc(x_1); x_29 = l_Lean_Meta_transform_visit___at_Lean_Meta_expandCoe___spec__2(x_1, x_2, x_3, x_4, x_28, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_29) == 0) { -lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); x_32 = 0; -x_33 = 1; lean_inc(x_8); -x_34 = l_Lean_Meta_mkForallFVars(x_5, x_30, x_32, x_33, x_8, x_9, x_10, x_11, x_31); -if (lean_obj_tag(x_34) == 0) +x_33 = l_Lean_Meta_mkForallFVars(x_5, x_30, x_32, x_32, x_8, x_9, x_10, x_11, x_31); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 0); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_expandCoe___spec__3(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_36); -return x_37; +lean_dec(x_33); +x_36 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_expandCoe___spec__3(x_1, x_2, x_3, x_4, x_34, x_7, x_8, x_9, x_10, x_11, x_35); +return x_36; } else { -uint8_t x_38; +uint8_t x_37; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1311,29 +1309,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) { -return x_34; +return x_33; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); -lean_dec(x_34); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_42; +uint8_t x_41; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1344,23 +1342,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_29); -if (x_42 == 0) +x_41 = !lean_is_exclusive(x_29); +if (x_41 == 0) { return x_29; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_29, 0); -x_44 = lean_ctor_get(x_29, 1); -lean_inc(x_44); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_29, 1); lean_inc(x_43); +lean_inc(x_42); lean_dec(x_29); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } @@ -1591,30 +1589,29 @@ lean_inc(x_1); x_36 = l_Lean_Meta_transform_visit___at_Lean_Meta_expandCoe___spec__2(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_36) == 0) { -lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; 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 = 0; -x_40 = 1; lean_inc(x_8); -x_41 = l_Lean_Meta_mkLambdaFVars(x_5, x_37, x_39, x_40, x_8, x_9, x_10, x_11, x_38); -if (lean_obj_tag(x_41) == 0) +x_40 = l_Lean_Meta_mkLambdaFVars(x_5, x_37, x_39, x_39, x_8, x_9, x_10, x_11, x_38); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_41, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_expandCoe___spec__3(x_1, x_2, x_3, x_4, x_42, x_7, x_8, x_9, x_10, x_11, x_43); -return x_44; +lean_dec(x_40); +x_43 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_expandCoe___spec__3(x_1, x_2, x_3, x_4, x_41, x_7, x_8, x_9, x_10, x_11, x_42); +return x_43; } else { -uint8_t x_45; +uint8_t x_44; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1624,29 +1621,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_41); -if (x_45 == 0) +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) { -return x_41; +return x_40; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_41, 0); -x_47 = lean_ctor_get(x_41, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); lean_inc(x_46); -lean_dec(x_41); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_inc(x_45); +lean_dec(x_40); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } else { -uint8_t x_49; +uint8_t x_48; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -1657,23 +1654,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_36); -if (x_49 == 0) +x_48 = !lean_is_exclusive(x_36); +if (x_48 == 0) { return x_36; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_36, 0); -x_51 = lean_ctor_get(x_36, 1); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_36, 0); +x_50 = lean_ctor_get(x_36, 1); lean_inc(x_50); +lean_inc(x_49); lean_dec(x_36); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } diff --git a/stage0/stdlib/Lean/Meta/CongrTheorems.c b/stage0/stdlib/Lean/Meta/CongrTheorems.c index e4782af7c8..93d6ac4420 100644 --- a/stage0/stdlib/Lean/Meta/CongrTheorems.c +++ b/stage0/stdlib/Lean/Meta/CongrTheorems.c @@ -13,17 +13,19 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___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_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_CongrArgKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*); size_t lean_usize_add(size_t, size_t); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___lambda__1(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_getCongrSimpKinds(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); uint8_t l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__3; lean_object* l_Lean_LocalDecl_userName(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_withNext___rarg___lambda__1___boxed(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*); @@ -33,13 +35,14 @@ lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkHCongrWithArity___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go(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_consumeAutoOptParam(lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_getCongrSimpKinds___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_dependsOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_getCongrSimpKinds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___closed__1; lean_object* l_Lean_Meta_mkEqRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); extern lean_object* l_instInhabitedNat; static lean_object* l_Lean_Meta_mkHCongrWithArity___lambda__3___closed__2; @@ -48,10 +51,12 @@ lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*) lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike___spec__1(lean_object*, size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___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_Meta_getFunInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Expr_replaceFVars(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_withNext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -59,16 +64,18 @@ uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_setBinderInfosD(lean_object*, lean_object*); lean_object* lean_expr_instantiate(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___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_EXPORT lean_object* l_Lean_Meta_CongrArgKind_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_addPrimeToFVarUserNames___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_mkHCongrWithArity___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___closed__1; LEAN_EXPORT uint8_t l_Lean_Meta_instInhabitedCongrArgKind; lean_object* l_Lean_LocalContext_setBinderInfo(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_addPrimeToFVarUserNames___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpCore_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___closed__2; uint8_t l_Lean_Expr_isHEq(lean_object*); @@ -77,24 +84,24 @@ LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs_loop___rarg(le lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___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_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_withNext___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__1; lean_object* lean_nat_sub(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_fixKindsForDependencies(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_addPrimeToFVarUserNames(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___lambda__1___boxed(lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs_loop(lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity___lambda__3___closed__1; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___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_Lean_Meta_mkHCongrWithArity_withNewEqs___rarg___closed__1; 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*); @@ -102,111 +109,103 @@ LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongr(lean_object*, lean_object*, lean_o lean_object* lean_name_append_index_after(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_fixKindsForDependencies___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_setBinderInfosD___spec__1(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike(lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_fixKindsForDependencies___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1___closed__1; lean_object* l_Lean_Meta_withLCtx___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_ParamInfo_isInstImplicit(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___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_EXPORT lean_object* l_Lean_Meta_CongrArgKind_toCtorIdx(uint8_t); lean_object* l_Lean_LocalContext_getFVar_x21(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqNDRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__2; -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__3; +static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_CongrArgKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpCore_x3f___spec__1(size_t, size_t, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__1; lean_object* l_Lean_Meta_getLocalInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_setBinderInfosD___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_CongrArgKind_noConfusion___rarg___closed__1; lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__3; +static lean_object* l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1___closed__1; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_fixKindsForDependencies___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instInhabitedParamInfo; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___lambda__1___boxed(lean_object*); static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkHCongrWithArity___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___lambda__1(lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___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_LocalDecl_type(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_fixKindsForDependencies___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_setBinderInfosD___boxed(lean_object*, lean_object*); lean_object* lean_name_append_after(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__2; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___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_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity___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_Expr_bindingName_x21(lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__2; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__2; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_withNext(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_CongrArgKind_noConfusion___rarg___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___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*); static lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__5; static lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__3; lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___closed__5; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpWithArity_x3f___spec__1(size_t, size_t, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__2; lean_object* l_Array_ofSubarray___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_addPrimeToFVarUserNames___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_addPrimeToFVarUserNames___spec__1___closed__1; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_CongrArgKind_noConfusion___rarg___lambda__1___boxed(lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__1; lean_object* l_Lean_Meta_FunInfo_getArity(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpWithArity_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_mkHCongrWithArity___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs(lean_object*); +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__2; lean_object* l_Lean_LocalContext_setUserName(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__3; lean_object* l_Lean_Meta_mkHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity___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_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___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_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___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* l_Lean_Meta_mkHEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__1; -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__2; -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__4; +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__1; lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs_loop___rarg___closed__2; lean_object* l_panic___at_Lean_Meta_whnfCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_mkHCongrWithArity_withNewEqs_loop___rarg___closed__1; lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike___boxed(lean_object*); -static lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqOfHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity___lambda__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_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___closed__1; +static lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_mkHCongrWithArity_mkProof___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_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -3507,7 +3506,347 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 1; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__1; +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; +x_7 = lean_usize_dec_lt(x_5, x_4); +if (x_7 == 0) +{ +lean_inc(x_6); +return x_6; +} +else +{ +lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; +x_8 = lean_array_uget(x_3, x_5); +x_9 = l_Lean_Meta_instInhabitedCongrArgKind; +x_10 = lean_box(x_9); +x_11 = lean_array_get(x_10, x_1, x_8); +lean_dec(x_8); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +x_13 = lean_box(x_12); +if (lean_obj_tag(x_13) == 2) +{ +lean_object* x_14; +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__2; +return x_14; +} +else +{ +size_t x_15; size_t x_16; +lean_dec(x_13); +x_15 = 1; +x_16 = lean_usize_add(x_5, x_15); +{ +size_t _tmp_4 = x_16; +lean_object* _tmp_5 = x_2; +x_5 = _tmp_4; +x_6 = _tmp_5; +} +goto _start; +} +} +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___lambda__1(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +} +static lean_object* _init_l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___lambda__1___boxed), 1, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__1; +x_2 = lean_box(0); +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = lean_box(0); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst(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; uint8_t x_7; +x_4 = lean_ctor_get(x_1, 0); +x_5 = l_Lean_Meta_instInhabitedParamInfo; +x_6 = lean_array_get(x_5, x_4, x_3); +x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); +if (x_7 == 0) +{ +lean_object* x_8; +lean_dec(x_6); +x_8 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2; +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_array_get_size(x_9); +x_11 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_12 = 0; +x_13 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__3; +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1(x_2, x_13, x_9, x_11, x_12, x_13); +lean_dec(x_9); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2; +return x_16; +} +else +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +size_t x_7; size_t x_8; lean_object* x_9; +x_7 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_8 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_9 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1(x_1, x_2, x_3, x_7, x_8, x_6); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_getCongrSimpKinds___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = lean_nat_dec_le(x_5, x_4); +if (x_8 == 0) +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_nat_dec_eq(x_3, 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_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_3, x_11); +lean_dec(x_3); +x_13 = lean_ctor_get(x_1, 1); +x_14 = l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(x_13, x_4); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = l_Lean_Meta_instInhabitedParamInfo; +x_16 = lean_array_get(x_15, x_2, x_4); +x_17 = lean_ctor_get_uint8(x_16, sizeof(void*)*1 + 2); +if (x_17 == 0) +{ +uint8_t x_18; +x_18 = l_Lean_Meta_ParamInfo_isInstImplicit(x_16); +lean_dec(x_16); +if (x_18 == 0) +{ +uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = 2; +x_20 = lean_box(x_19); +x_21 = lean_array_push(x_7, x_20); +x_22 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_12; +x_4 = x_22; +x_7 = x_21; +goto _start; +} +else +{ +lean_object* x_24; uint8_t x_25; +x_24 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst(x_1, x_7, x_4); +x_25 = lean_unbox(x_24); +lean_dec(x_24); +if (x_25 == 0) +{ +uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = 0; +x_27 = lean_box(x_26); +x_28 = lean_array_push(x_7, x_27); +x_29 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_12; +x_4 = x_29; +x_7 = x_28; +goto _start; +} +else +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_31 = 5; +x_32 = lean_box(x_31); +x_33 = lean_array_push(x_7, x_32); +x_34 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_12; +x_4 = x_34; +x_7 = x_33; +goto _start; +} +} +} +else +{ +uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_16); +x_36 = 3; +x_37 = lean_box(x_36); +x_38 = lean_array_push(x_7, x_37); +x_39 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_12; +x_4 = x_39; +x_7 = x_38; +goto _start; +} +} +else +{ +uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = 0; +x_42 = lean_box(x_41); +x_43 = lean_array_push(x_7, x_42); +x_44 = lean_nat_add(x_4, x_6); +lean_dec(x_4); +x_3 = x_12; +x_4 = x_44; +x_7 = x_43; +goto _start; +} +} +else +{ +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +else +{ +lean_dec(x_4); +lean_dec(x_3); +return x_7; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_getCongrSimpKinds(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); +lean_inc(x_2); +x_3 = lean_array_get_size(x_2); +x_4 = lean_unsigned_to_nat(0u); +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Meta_mkHCongrWithArity_withNewEqs___rarg___closed__1; +lean_inc(x_3); +x_7 = l_Std_Range_forIn_loop___at_Lean_Meta_getCongrSimpKinds___spec__1(x_1, x_2, x_3, x_4, x_3, x_5, x_6); +lean_dec(x_3); +lean_dec(x_2); +x_8 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_fixKindsForDependencies(x_1, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_getCongrSimpKinds___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Std_Range_forIn_loop___at_Lean_Meta_getCongrSimpKinds___spec__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_2); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; @@ -3533,7 +3872,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -x_23 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go(x_4, x_22, x_5, x_9, x_10, x_11, x_12, x_20); +x_23 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go(x_4, x_22, x_5, x_9, x_10, x_11, x_12, x_20); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; @@ -3660,11 +3999,11 @@ return x_45; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; -x_13 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__1___boxed), 13, 6); +x_13 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__1___boxed), 13, 6); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_6); lean_closure_set(x_13, 2, x_2); @@ -3675,7 +4014,7 @@ x_14 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_withNext___rarg(x_7, x_1 return x_14; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__1() { _start: { lean_object* x_1; @@ -3683,17 +4022,17 @@ x_1 = lean_mk_string("Subsingleton"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__1; +x_2 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__3() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__3() { _start: { lean_object* x_1; @@ -3701,17 +4040,17 @@ x_1 = lean_mk_string("elim"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__4() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__2; -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__3; +x_1 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__2; +x_2 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; @@ -3735,7 +4074,7 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_21 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go(x_3, x_20, x_4, x_8, x_9, x_10, x_11, x_18); +x_21 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go(x_3, x_20, x_4, x_8, x_9, x_10, x_11, x_18); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -3747,7 +4086,7 @@ lean_dec(x_21); x_24 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__5; x_25 = lean_array_push(x_24, x_5); x_26 = lean_array_push(x_25, x_6); -x_27 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__4; +x_27 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__4; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -3901,41 +4240,41 @@ return x_50; } } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Lean.Meta.mkCongrSimpWithArity?.mkProof.go"); +x_1 = lean_mk_string("Lean.Meta.mkCongrSimpCore?.mkProof.go"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__1; -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1; -x_3 = lean_unsigned_to_nat(230u); +x_2 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1; +x_3 = lean_unsigned_to_nat(262u); x_4 = lean_unsigned_to_nat(39u); x_5 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__3() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__1; -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1; -x_3 = lean_unsigned_to_nat(229u); +x_2 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1; +x_3 = lean_unsigned_to_nat(261u); x_4 = lean_unsigned_to_nat(30u); x_5 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___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_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___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) { _start: { uint8_t x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; @@ -3953,7 +4292,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_15 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__2; +x_15 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__2; x_16 = l_panic___at_Lean_Meta_whnfCore___spec__1(x_15, x_5, x_6, x_7, x_8, x_9); return x_16; } @@ -3984,7 +4323,7 @@ x_24 = lean_array_push(x_23, x_3); x_25 = lean_expr_instantiate(x_21, x_24); lean_dec(x_24); lean_dec(x_21); -x_26 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__2), 12, 5); +x_26 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__2), 12, 5); lean_closure_set(x_26, 0, x_22); lean_closure_set(x_26, 1, x_2); lean_closure_set(x_26, 2, x_1); @@ -4031,7 +4370,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_32 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__3; +x_32 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__3; x_33 = l_panic___at_Lean_Meta_whnfCore___spec__1(x_32, x_5, x_6, x_7, x_8, x_9); return x_33; } @@ -4045,7 +4384,7 @@ x_36 = lean_array_push(x_35, x_3); x_37 = lean_expr_instantiate(x_34, x_36); lean_dec(x_36); lean_dec(x_34); -x_38 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___boxed), 12, 5); +x_38 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___boxed), 12, 5); lean_closure_set(x_38, 0, x_35); lean_closure_set(x_38, 1, x_2); lean_closure_set(x_38, 2, x_1); @@ -4065,7 +4404,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_42 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go(x_1, x_41, x_4, x_5, x_6, x_7, x_8, x_9); +x_42 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go(x_1, x_41, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_42) == 0) { lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; @@ -4115,20 +4454,20 @@ return x_53; } } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___closed__1() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___closed__1() { _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_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__1; -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1; -x_3 = lean_unsigned_to_nat(224u); +x_2 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1; +x_3 = lean_unsigned_to_nat(256u); x_4 = lean_unsigned_to_nat(43u); x_5 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; uint8_t x_10; @@ -4138,7 +4477,7 @@ lean_dec(x_9); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; -x_11 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4), 9, 2); +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4), 9, 2); lean_closure_set(x_11, 0, x_1); lean_closure_set(x_11, 1, x_2); x_12 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_withNext___rarg(x_3, x_11, x_4, x_5, x_6, x_7, x_8); @@ -4156,7 +4495,7 @@ if (x_15 == 0) { lean_object* x_16; lean_object* x_17; lean_dec(x_3); -x_16 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___closed__1; +x_16 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___closed__1; x_17 = l_panic___at_Lean_Meta_whnfCore___spec__1(x_16, x_4, x_5, x_6, x_7, x_8); return x_17; } @@ -4173,34 +4512,34 @@ return x_20; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_3); return x_14; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___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_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___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) { _start: { lean_object* x_13; -x_13 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3(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_2); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mkProof(lean_object* x_1, 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 = lean_unsigned_to_nat(0u); -x_9 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go(x_2, x_8, x_1, x_3, x_4, x_5, x_6, x_7); +x_9 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go(x_2, x_8, x_1, x_3, x_4, x_5, x_6, x_7); return x_9; } } -static lean_object* _init_l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1___closed__1() { +static lean_object* _init_l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1___closed__1() { _start: { lean_object* x_1; @@ -4209,17 +4548,17 @@ lean_closure_set(x_1, 0, lean_box(0)); return x_1; } } -LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1___closed__1; +x_7 = l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1___closed__1; x_8 = lean_panic_fn(x_7, x_1); x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { 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; @@ -4234,11 +4573,11 @@ lean_ctor_set(x_19, 0, x_10); x_20 = lean_array_push(x_4, x_19); x_21 = lean_array_push(x_5, x_3); x_22 = lean_array_push(x_21, x_10); -x_23 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go(x_6, x_7, x_8, x_9, x_17, x_18, x_20, x_22, x_11, x_12, x_13, x_14, x_15); +x_23 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go(x_6, x_7, x_8, x_9, x_17, x_18, x_20, x_22, x_11, x_12, x_13, x_14, x_15); return x_23; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; @@ -4262,7 +4601,7 @@ x_21 = lean_nat_add(x_19, x_20); lean_dec(x_19); x_22 = l_Lean_Meta_mkHCongrWithArity_withNewEqs_loop___rarg___closed__2; x_23 = lean_name_append_index_after(x_22, x_21); -x_24 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__1), 15, 9); +x_24 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__1), 15, 9); lean_closure_set(x_24, 0, x_3); lean_closure_set(x_24, 1, x_4); lean_closure_set(x_24, 2, x_10); @@ -4313,7 +4652,7 @@ return x_30; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { 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; @@ -4325,45 +4664,45 @@ x_17 = lean_array_push(x_2, x_9); x_18 = lean_box(0); x_19 = lean_array_push(x_3, x_18); x_20 = lean_array_push(x_4, x_9); -x_21 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go(x_5, x_6, x_7, x_8, x_16, x_17, x_19, x_20, x_10, x_11, x_12, x_13, x_14); +x_21 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go(x_5, x_6, x_7, x_8, x_16, x_17, x_19, x_20, x_10, x_11, x_12, x_13, x_14); return x_21; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__1() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Lean.Meta.mkCongrSimpWithArity?.mk?.go"); +x_1 = lean_mk_string("Lean.Meta.mkCongrSimpCore?.mk?.go"); return x_1; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__2() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__1; -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__1; -x_3 = lean_unsigned_to_nat(202u); +x_2 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__1; +x_3 = lean_unsigned_to_nat(234u); x_4 = lean_unsigned_to_nat(43u); x_5 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__3() { +static lean_object* _init_l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__1; -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__1; -x_3 = lean_unsigned_to_nat(201u); +x_2 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__1; +x_3 = lean_unsigned_to_nat(233u); x_4 = lean_unsigned_to_nat(34u); x_5 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* 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_15; @@ -4410,8 +4749,8 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_29 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__2; -x_30 = l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1(x_29, x_9, x_10, x_11, x_12, x_13); +x_29 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__2; +x_30 = l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1(x_29, x_9, x_10, x_11, x_12, x_13); return x_30; } case 2: @@ -4433,7 +4772,7 @@ x_35 = l_Lean_LocalDecl_userName(x_33); x_36 = l_Lean_LocalDecl_binderInfo(x_33); x_37 = l_Lean_LocalDecl_type(x_33); lean_dec(x_33); -x_38 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__2), 15, 9); +x_38 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__2), 15, 9); lean_closure_set(x_38, 0, x_17); lean_closure_set(x_38, 1, x_7); lean_closure_set(x_38, 2, x_5); @@ -4625,8 +4964,8 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_73 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__3; -x_74 = l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1(x_73, x_9, x_10, x_11, x_12, x_13); +x_73 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__3; +x_74 = l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1(x_73, x_9, x_10, x_11, x_12, x_13); return x_74; } default: @@ -4667,7 +5006,7 @@ lean_inc(x_86); lean_dec(x_84); x_87 = l_Lean_LocalDecl_userName(x_85); lean_dec(x_85); -x_88 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___lambda__3), 14, 8); +x_88 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___lambda__3), 14, 8); lean_closure_set(x_88, 0, x_5); lean_closure_set(x_88, 1, x_6); lean_closure_set(x_88, 2, x_7); @@ -4791,7 +5130,7 @@ lean_dec(x_106); x_109 = lean_unsigned_to_nat(0u); lean_inc(x_107); lean_inc(x_3); -x_110 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go(x_3, x_109, x_107, x_9, x_10, x_11, x_12, x_108); +x_110 = l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go(x_3, x_109, x_107, x_9, x_10, x_11, x_12, x_108); if (lean_obj_tag(x_110) == 0) { uint8_t x_111; @@ -4909,13 +5248,13 @@ return x_129; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___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_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___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; x_11 = lean_unsigned_to_nat(0u); x_12 = l_Lean_Meta_mkHCongrWithArity_withNewEqs___rarg___closed__1; -x_13 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go(x_1, x_2, x_3, x_4, x_11, x_12, x_12, x_12, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go(x_1, x_2, x_3, x_4, x_11, x_12, x_12, x_12, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -4969,7 +5308,7 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___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; uint8_t x_13; @@ -4999,12 +5338,12 @@ else { lean_object* x_16; lean_object* x_17; x_16 = lean_box(0); -x_17 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___lambda__1(x_1, x_2, x_3, x_5, x_16, x_7, x_8, x_9, x_10, x_11); +x_17 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___lambda__1(x_1, x_2, x_3, x_5, x_16, x_7, x_8, x_9, x_10, x_11); return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f(lean_object* x_1, lean_object* x_2, 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; @@ -5026,7 +5365,7 @@ x_12 = lean_array_get_size(x_3); lean_inc(x_12); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); -x_14 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___lambda__2), 11, 4); +x_14 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___lambda__2), 11, 4); lean_closure_set(x_14, 0, x_1); lean_closure_set(x_14, 1, x_2); lean_closure_set(x_14, 2, x_3); @@ -5118,356 +5457,16 @@ return x_31; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f___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_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___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_Meta_mkCongrSimpWithArity_x3f_mk_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_5); return x_11; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__1() { -_start: -{ -uint8_t x_1; lean_object* x_2; lean_object* x_3; -x_1 = 1; -x_2 = lean_box(x_1); -x_3 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_3, 0, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__1; -x_2 = lean_box(0); -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; -x_7 = lean_usize_dec_lt(x_5, x_4); -if (x_7 == 0) -{ -lean_inc(x_6); -return x_6; -} -else -{ -lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_8 = lean_array_uget(x_3, x_5); -x_9 = l_Lean_Meta_instInhabitedCongrArgKind; -x_10 = lean_box(x_9); -x_11 = lean_array_get(x_10, x_1, x_8); -lean_dec(x_8); -x_12 = lean_unbox(x_11); -lean_dec(x_11); -x_13 = lean_box(x_12); -if (lean_obj_tag(x_13) == 2) -{ -lean_object* x_14; -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__2; -return x_14; -} -else -{ -size_t x_15; size_t x_16; -lean_dec(x_13); -x_15 = 1; -x_16 = lean_usize_add(x_5, x_15); -{ -size_t _tmp_4 = x_16; -lean_object* _tmp_5 = x_2; -x_5 = _tmp_4; -x_6 = _tmp_5; -} -goto _start; -} -} -} -} -LEAN_EXPORT uint8_t l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___lambda__1(lean_object* x_1) { -_start: -{ -uint8_t x_2; -x_2 = 0; -return x_2; -} -} -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___lambda__1___boxed), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__1; -x_2 = lean_box(0); -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = lean_box(0); -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst(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; uint8_t x_7; -x_4 = lean_ctor_get(x_1, 0); -x_5 = l_Lean_Meta_instInhabitedParamInfo; -x_6 = lean_array_get(x_5, x_4, x_3); -x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*1 + 3); -if (x_7 == 0) -{ -lean_object* x_8; -lean_dec(x_6); -x_8 = l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__2; -return x_8; -} -else -{ -lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_9 = lean_ctor_get(x_6, 0); -lean_inc(x_9); -lean_dec(x_6); -x_10 = lean_array_get_size(x_9); -x_11 = lean_usize_of_nat(x_10); -lean_dec(x_10); -x_12 = 0; -x_13 = l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__3; -x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1(x_2, x_13, x_9, x_11, x_12, x_13); -lean_dec(x_9); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; -x_16 = l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__2; -return x_16; -} -else -{ -lean_object* x_17; -x_17 = lean_ctor_get(x_15, 0); -lean_inc(x_17); -lean_dec(x_15); -return x_17; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_8 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_9 = l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1(x_1, x_2, x_3, x_7, x_8, x_6); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___lambda__1___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___lambda__1(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst(x_1, x_2, x_3); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; -x_8 = lean_nat_dec_le(x_5, x_4); -if (x_8 == 0) -{ -lean_object* x_9; uint8_t x_10; -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_eq(x_3, 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_unsigned_to_nat(1u); -x_12 = lean_nat_sub(x_3, x_11); -lean_dec(x_3); -x_13 = lean_ctor_get(x_1, 1); -x_14 = l_Array_contains___at___private_Lean_Meta_FunInfo_0__Lean_Meta_collectDeps_visit___spec__2(x_13, x_4); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = l_Lean_Meta_instInhabitedParamInfo; -x_16 = lean_array_get(x_15, x_2, x_4); -x_17 = lean_ctor_get_uint8(x_16, sizeof(void*)*1 + 2); -if (x_17 == 0) -{ -uint8_t x_18; -x_18 = l_Lean_Meta_ParamInfo_isInstImplicit(x_16); -lean_dec(x_16); -if (x_18 == 0) -{ -uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = 2; -x_20 = lean_box(x_19); -x_21 = lean_array_push(x_7, x_20); -x_22 = lean_nat_add(x_4, x_6); -lean_dec(x_4); -x_3 = x_12; -x_4 = x_22; -x_7 = x_21; -goto _start; -} -else -{ -lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst(x_1, x_7, x_4); -x_25 = lean_unbox(x_24); -lean_dec(x_24); -if (x_25 == 0) -{ -uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = 0; -x_27 = lean_box(x_26); -x_28 = lean_array_push(x_7, x_27); -x_29 = lean_nat_add(x_4, x_6); -lean_dec(x_4); -x_3 = x_12; -x_4 = x_29; -x_7 = x_28; -goto _start; -} -else -{ -uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = 5; -x_32 = lean_box(x_31); -x_33 = lean_array_push(x_7, x_32); -x_34 = lean_nat_add(x_4, x_6); -lean_dec(x_4); -x_3 = x_12; -x_4 = x_34; -x_7 = x_33; -goto _start; -} -} -} -else -{ -uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_16); -x_36 = 3; -x_37 = lean_box(x_36); -x_38 = lean_array_push(x_7, x_37); -x_39 = lean_nat_add(x_4, x_6); -lean_dec(x_4); -x_3 = x_12; -x_4 = x_39; -x_7 = x_38; -goto _start; -} -} -else -{ -uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = 0; -x_42 = lean_box(x_41); -x_43 = lean_array_push(x_7, x_42); -x_44 = lean_nat_add(x_4, x_6); -lean_dec(x_4); -x_3 = x_12; -x_4 = x_44; -x_7 = x_43; -goto _start; -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -return x_7; -} -} -else -{ -lean_dec(x_4); -lean_dec(x_3); -return x_7; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds(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); -lean_inc(x_2); -x_3 = lean_array_get_size(x_2); -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Meta_mkHCongrWithArity_withNewEqs___rarg___closed__1; -lean_inc(x_3); -x_7 = l_Std_Range_forIn_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds___spec__1(x_1, x_2, x_3, x_4, x_3, x_5, x_6); -lean_dec(x_3); -lean_dec(x_2); -x_8 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_fixKindsForDependencies(x_1, x_7); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Std_Range_forIn_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds___spec__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_2); -lean_dec(x_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpWithArity_x3f___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpCore_x3f___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -5526,201 +5525,157 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpCore_x3f(lean_object* x_1, lean_object* x_2, 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_8; +lean_object* x_9; lean_object* x_10; +lean_inc(x_7); 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_8 = l_Lean_Meta_getFunInfo(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); +x_9 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_9); -x_11 = l_Lean_Meta_mkCongrSimpWithArity_x3f_getKinds(x_9); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_11); -lean_inc(x_9); -lean_inc(x_1); -x_12 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f(x_1, x_9, x_11, x_3, x_4, x_5, x_6, x_10); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -if (lean_obj_tag(x_13) == 0) +if (lean_obj_tag(x_10) == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_12); +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_9, 0); +lean_dec(x_13); +x_14 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike(x_3); if (x_14 == 0) { -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_12, 1); -x_16 = lean_ctor_get(x_12, 0); +lean_object* x_15; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_15 = lean_box(0); +lean_ctor_set(x_9, 0, x_15); +return x_9; +} +else +{ +lean_object* x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20; +lean_free_object(x_9); +x_16 = lean_array_get_size(x_3); +x_17 = lean_usize_of_nat(x_16); lean_dec(x_16); -x_17 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike(x_11); -if (x_17 == 0) +x_18 = 0; +x_19 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpCore_x3f___spec__1(x_17, x_18, x_3); +x_20 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f(x_1, x_2, x_19, x_4, x_5, x_6, x_7, x_12); +return x_20; +} +} +else { -lean_object* x_18; -lean_dec(x_11); +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_9, 1); +lean_inc(x_21); lean_dec(x_9); +x_22 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike(x_3); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_18 = lean_box(0); -lean_ctor_set(x_12, 0, x_18); -return x_12; +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_21); +return x_24; } else { -lean_object* x_19; size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; -lean_free_object(x_12); -x_19 = lean_array_get_size(x_11); -x_20 = lean_usize_of_nat(x_19); -lean_dec(x_19); -x_21 = 0; -x_22 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpWithArity_x3f___spec__1(x_20, x_21, x_11); -x_23 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f(x_1, x_9, x_22, x_3, x_4, x_5, x_6, x_15); -return x_23; +lean_object* x_25; size_t x_26; size_t x_27; lean_object* x_28; lean_object* x_29; +x_25 = lean_array_get_size(x_3); +x_26 = lean_usize_of_nat(x_25); +lean_dec(x_25); +x_27 = 0; +x_28 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpCore_x3f___spec__1(x_26, x_27, x_3); +x_29 = l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f(x_1, x_2, x_28, x_4, x_5, x_6, x_7, x_21); +return x_29; +} } } else { -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_12, 1); -lean_inc(x_24); -lean_dec(x_12); -x_25 = l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_hasCastLike(x_11); -if (x_25 == 0) -{ -lean_object* x_26; lean_object* x_27; -lean_dec(x_11); -lean_dec(x_9); +uint8_t x_30; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_26 = lean_box(0); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_24); -return x_27; +x_30 = !lean_is_exclusive(x_9); +if (x_30 == 0) +{ +lean_object* x_31; uint8_t x_32; +x_31 = lean_ctor_get(x_9, 0); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_10); +if (x_32 == 0) +{ +return x_9; } else { -lean_object* x_28; size_t x_29; size_t x_30; lean_object* x_31; lean_object* x_32; -x_28 = lean_array_get_size(x_11); -x_29 = lean_usize_of_nat(x_28); -lean_dec(x_28); -x_30 = 0; -x_31 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpWithArity_x3f___spec__1(x_29, x_30, x_11); -x_32 = l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f(x_1, x_9, x_31, x_3, x_4, x_5, x_6, x_24); -return x_32; -} +lean_object* x_33; lean_object* x_34; +x_33 = lean_ctor_get(x_10, 0); +lean_inc(x_33); +lean_dec(x_10); +x_34 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_9, 0, x_34); +return x_9; } } else { -uint8_t x_33; -lean_dec(x_11); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_35 = lean_ctor_get(x_9, 1); +lean_inc(x_35); lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_33 = !lean_is_exclusive(x_12); -if (x_33 == 0) -{ -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_12, 0); -lean_dec(x_34); -x_35 = !lean_is_exclusive(x_13); -if (x_35 == 0) -{ -return x_12; -} -else -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_13, 0); +x_36 = lean_ctor_get(x_10, 0); lean_inc(x_36); -lean_dec(x_13); -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_12, 0, x_37); -return x_12; -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_38 = lean_ctor_get(x_12, 1); -lean_inc(x_38); -lean_dec(x_12); -x_39 = lean_ctor_get(x_13, 0); -lean_inc(x_39); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - x_40 = x_13; +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + x_37 = x_10; } else { - lean_dec_ref(x_13); - x_40 = lean_box(0); + lean_dec_ref(x_10); + x_37 = lean_box(0); } -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(1, 1, 0); +if (lean_is_scalar(x_37)) { + x_38 = lean_alloc_ctor(1, 1, 0); } else { - x_41 = x_40; + x_38 = x_37; } -lean_ctor_set(x_41, 0, x_39); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_38); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_43 = !lean_is_exclusive(x_8); -if (x_43 == 0) -{ -return x_8; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_8, 0); -x_45 = lean_ctor_get(x_8, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_8); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +lean_ctor_set(x_38, 0, x_36); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_35); +return x_39; } } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpWithArity_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpCore_x3f___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; @@ -5728,19 +5683,10 @@ 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_Meta_mkCongrSimpWithArity_x3f___spec__1(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Meta_mkCongrSimpCore_x3f___spec__1(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimpWithArity_x3f___boxed(lean_object* x_1, 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_Meta_mkCongrSimpWithArity_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_2); -return x_8; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_mkCongrSimp_x3f(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: { @@ -5759,10 +5705,9 @@ lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); -x_10 = l_Lean_Meta_FunInfo_getArity(x_8); -lean_dec(x_8); -x_11 = l_Lean_Meta_mkCongrSimpWithArity_x3f(x_1, x_10, x_2, x_3, x_4, x_5, x_9); -lean_dec(x_10); +lean_inc(x_8); +x_10 = l_Lean_Meta_getCongrSimpKinds(x_8); +x_11 = l_Lean_Meta_mkCongrSimpCore_x3f(x_1, x_8, x_10, x_2, x_3, x_4, x_5, x_9); return x_11; } else @@ -5846,40 +5791,40 @@ l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__4 = _init_l lean_mark_persistent(l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__4); l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__5 = _init_l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__5(); lean_mark_persistent(l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_mkCast_go___closed__5); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__1 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__1); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__2 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__2); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__3 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__3(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__3); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__4 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__4(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__3___closed__4); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__1); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__2 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__2); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__3 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__3(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___lambda__4___closed__3); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___closed__1 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mkProof_go___closed__1); -l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1___closed__1 = _init_l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1___closed__1(); -lean_mark_persistent(l_panic___at_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___spec__1___closed__1); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__1 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__1); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__2 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__2(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__2); -l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__3 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__3(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_mk_x3f_go___closed__3); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___spec__1___closed__2); -l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__1 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__1); -l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__2 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__2(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__2); -l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__3 = _init_l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__3(); -lean_mark_persistent(l_Lean_Meta_mkCongrSimpWithArity_x3f_shouldUseSubsingletonInst___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___spec__1___closed__2); +l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__1 = _init_l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__1); +l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2 = _init_l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__2); +l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__3 = _init_l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_CongrTheorems_0__Lean_Meta_shouldUseSubsingletonInst___closed__3); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__1 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__1); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__2 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__2); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__3 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__3); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__4 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__3___closed__4); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__1); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__2 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__2); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__3 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__3(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___lambda__4___closed__3); +l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___closed__1 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___closed__1(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mkProof_go___closed__1); +l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1___closed__1 = _init_l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___spec__1___closed__1); +l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__1 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__1(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__1); +l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__2 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__2(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__2); +l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__3 = _init_l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__3(); +lean_mark_persistent(l_Lean_Meta_mkCongrSimpCore_x3f_mk_x3f_go___closed__3); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Lean/Meta/ExprDefEq.c index 8e802d2304..58ac7001e3 100644 --- a/stage0/stdlib/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Lean/Meta/ExprDefEq.c @@ -15573,7 +15573,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(1001u); +x_3 = lean_unsigned_to_nat(1014u); 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); @@ -15602,7 +15602,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(1006u); +x_3 = lean_unsigned_to_nat(1019u); 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); @@ -15631,7 +15631,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(1034u); +x_3 = lean_unsigned_to_nat(1047u); 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); @@ -15660,7 +15660,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(1020u); +x_3 = lean_unsigned_to_nat(1033u); 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); @@ -15689,7 +15689,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(1043u); +x_3 = lean_unsigned_to_nat(1056u); 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/IndPredBelow.c b/stage0/stdlib/Lean/Meta/IndPredBelow.c index fff44630b1..6a9e0e67cc 100644 --- a/stage0/stdlib/Lean/Meta/IndPredBelow.c +++ b/stage0/stdlib/Lean/Meta/IndPredBelow.c @@ -3122,30 +3122,29 @@ lean_inc(x_1); x_30 = l_Lean_Meta_transform_visit___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__2(x_1, x_2, x_3, x_4, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_30) == 0) { -lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); x_33 = 0; -x_34 = 1; lean_inc(x_9); -x_35 = l_Lean_Meta_mkLambdaFVars(x_5, x_31, x_33, x_34, x_9, x_10, x_11, x_12, x_32); -if (lean_obj_tag(x_35) == 0) +x_34 = l_Lean_Meta_mkLambdaFVars(x_5, x_31, x_33, x_33, x_9, x_10, x_11, x_12, x_32); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__3(x_1, x_2, x_3, x_4, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -return x_38; +lean_dec(x_34); +x_37 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__3(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_36); +return x_37; } else { -uint8_t x_39; +uint8_t x_38; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3156,29 +3155,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_35); -if (x_39 == 0) +x_38 = !lean_is_exclusive(x_34); +if (x_38 == 0) { -return x_35; +return x_34; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_35, 0); -x_41 = lean_ctor_get(x_35, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_34, 0); +x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); -lean_dec(x_35); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_inc(x_39); +lean_dec(x_34); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_43; +uint8_t x_42; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3190,23 +3189,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_30); -if (x_43 == 0) +x_42 = !lean_is_exclusive(x_30); +if (x_42 == 0) { return x_30; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_30, 0); -x_45 = lean_ctor_get(x_30, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_30, 0); +x_44 = lean_ctor_get(x_30, 1); lean_inc(x_44); +lean_inc(x_43); lean_dec(x_30); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -3384,30 +3383,29 @@ lean_inc(x_1); x_30 = l_Lean_Meta_transform_visit___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__2(x_1, x_2, x_3, x_4, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_30) == 0) { -lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); x_33 = 0; -x_34 = 1; lean_inc(x_9); -x_35 = l_Lean_Meta_mkForallFVars(x_5, x_31, x_33, x_34, x_9, x_10, x_11, x_12, x_32); -if (lean_obj_tag(x_35) == 0) +x_34 = l_Lean_Meta_mkForallFVars(x_5, x_31, x_33, x_33, x_9, x_10, x_11, x_12, x_32); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__3(x_1, x_2, x_3, x_4, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -return x_38; +lean_dec(x_34); +x_37 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__3(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_36); +return x_37; } else { -uint8_t x_39; +uint8_t x_38; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3418,29 +3416,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_35); -if (x_39 == 0) +x_38 = !lean_is_exclusive(x_34); +if (x_38 == 0) { -return x_35; +return x_34; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_35, 0); -x_41 = lean_ctor_get(x_35, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_34, 0); +x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); -lean_dec(x_35); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_inc(x_39); +lean_dec(x_34); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_43; +uint8_t x_42; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3452,23 +3450,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_30); -if (x_43 == 0) +x_42 = !lean_is_exclusive(x_30); +if (x_42 == 0) { return x_30; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_30, 0); -x_45 = lean_ctor_get(x_30, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_30, 0); +x_44 = lean_ctor_get(x_30, 1); lean_inc(x_44); +lean_inc(x_43); lean_dec(x_30); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -3705,30 +3703,29 @@ lean_inc(x_1); x_37 = l_Lean_Meta_transform_visit___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__2(x_1, x_2, x_3, x_4, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_37) == 0) { -lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; +lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); x_40 = 0; -x_41 = 1; lean_inc(x_9); -x_42 = l_Lean_Meta_mkLambdaFVars(x_5, x_38, x_40, x_41, x_9, x_10, x_11, x_12, x_39); -if (lean_obj_tag(x_42) == 0) +x_41 = l_Lean_Meta_mkLambdaFVars(x_5, x_38, x_40, x_40, x_9, x_10, x_11, x_12, x_39); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__3(x_1, x_2, x_3, x_4, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_44); -return x_45; +lean_dec(x_41); +x_44 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_IndPredBelow_mkCtorType_checkCount___spec__3(x_1, x_2, x_3, x_4, x_42, x_7, x_8, x_9, x_10, x_11, x_12, x_43); +return x_44; } else { -uint8_t x_46; +uint8_t x_45; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3739,29 +3736,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) { -return x_42; +return x_41; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_42, 0); -x_48 = lean_ctor_get(x_42, 1); -lean_inc(x_48); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_41, 0); +x_47 = lean_ctor_get(x_41, 1); lean_inc(x_47); -lean_dec(x_42); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_inc(x_46); +lean_dec(x_41); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } else { -uint8_t x_50; +uint8_t x_49; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -3773,23 +3770,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_50 = !lean_is_exclusive(x_37); -if (x_50 == 0) +x_49 = !lean_is_exclusive(x_37); +if (x_49 == 0) { return x_37; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_37, 0); -x_52 = lean_ctor_get(x_37, 1); -lean_inc(x_52); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); lean_inc(x_51); +lean_inc(x_50); lean_dec(x_37); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } diff --git a/stage0/stdlib/Lean/Meta/InferType.c b/stage0/stdlib/Lean/Meta/InferType.c index c019dfab4b..048d9f1db9 100644 --- a/stage0/stdlib/Lean/Meta/InferType.c +++ b/stage0/stdlib/Lean/Meta/InferType.c @@ -185,7 +185,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_InferType_0__Lean_Meta_inferLambdaType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasMVar(lean_object*); -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Meta_throwUnknownFVar___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppRev(lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwIncorrectNumberOfLevels___rarg___closed__2; @@ -950,43 +950,43 @@ return x_20; } else { -lean_object* x_25; -x_25 = l_Lean_Expr_betaRev(x_15, x_22); +uint8_t x_25; lean_object* x_26; +x_25 = 0; +x_26 = l_Lean_Expr_betaRev(x_15, x_22, x_25); lean_dec(x_22); -lean_dec(x_15); -lean_ctor_set(x_20, 0, x_25); +lean_ctor_set(x_20, 0, x_26); return x_20; } } else { -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_20, 0); -x_27 = lean_ctor_get(x_20, 1); +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_20, 0); +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); lean_inc(x_27); -lean_inc(x_26); lean_dec(x_20); -x_28 = l_Lean_Expr_isBVar(x_7); +x_29 = l_Lean_Expr_isBVar(x_7); lean_dec(x_7); -if (x_28 == 0) +if (x_29 == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = l_Lean_mkAppRev(x_15, x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_27); -return x_30; +lean_object* x_30; lean_object* x_31; +x_30 = l_Lean_mkAppRev(x_15, x_27); +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; } else { -lean_object* x_31; lean_object* x_32; -x_31 = l_Lean_Expr_betaRev(x_15, x_26); -lean_dec(x_26); -lean_dec(x_15); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_27); -return x_32; +uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_32 = 0; +x_33 = l_Lean_Expr_betaRev(x_15, x_27, x_32); +lean_dec(x_27); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_28); +return x_34; } } } diff --git a/stage0/stdlib/Lean/Meta/Match/MatchEqs.c b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c index 62401dac15..cc64de0305 100644 --- a/stage0/stdlib/Lean/Meta/Match/MatchEqs.c +++ b/stage0/stdlib/Lean/Meta/Match/MatchEqs.c @@ -3136,30 +3136,29 @@ lean_inc(x_1); x_29 = l_Lean_Meta_transform_visit___at_Lean_Meta_Match_unfoldNamedPattern___spec__2(x_1, x_2, x_3, x_4, x_28, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_29) == 0) { -lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); x_32 = 0; -x_33 = 1; lean_inc(x_8); -x_34 = l_Lean_Meta_mkLambdaFVars(x_5, x_30, x_32, x_33, x_8, x_9, x_10, x_11, x_31); -if (lean_obj_tag(x_34) == 0) +x_33 = l_Lean_Meta_mkLambdaFVars(x_5, x_30, x_32, x_32, x_8, x_9, x_10, x_11, x_31); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 0); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Match_unfoldNamedPattern___spec__3(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_36); -return x_37; +lean_dec(x_33); +x_36 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Match_unfoldNamedPattern___spec__3(x_1, x_2, x_3, x_4, x_34, x_7, x_8, x_9, x_10, x_11, x_35); +return x_36; } else { -uint8_t x_38; +uint8_t x_37; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3169,29 +3168,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) { -return x_34; +return x_33; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); -lean_dec(x_34); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_42; +uint8_t x_41; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3202,23 +3201,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_29); -if (x_42 == 0) +x_41 = !lean_is_exclusive(x_29); +if (x_41 == 0) { return x_29; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_29, 0); -x_44 = lean_ctor_get(x_29, 1); -lean_inc(x_44); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_29, 1); lean_inc(x_43); +lean_inc(x_42); lean_dec(x_29); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } @@ -3392,30 +3391,29 @@ lean_inc(x_1); x_29 = l_Lean_Meta_transform_visit___at_Lean_Meta_Match_unfoldNamedPattern___spec__2(x_1, x_2, x_3, x_4, x_28, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_29) == 0) { -lean_object* x_30; lean_object* x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; +lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; x_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); x_32 = 0; -x_33 = 1; lean_inc(x_8); -x_34 = l_Lean_Meta_mkForallFVars(x_5, x_30, x_32, x_33, x_8, x_9, x_10, x_11, x_31); -if (lean_obj_tag(x_34) == 0) +x_33 = l_Lean_Meta_mkForallFVars(x_5, x_30, x_32, x_32, x_8, x_9, x_10, x_11, x_31); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_34, 0); +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Match_unfoldNamedPattern___spec__3(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_36); -return x_37; +lean_dec(x_33); +x_36 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Match_unfoldNamedPattern___spec__3(x_1, x_2, x_3, x_4, x_34, x_7, x_8, x_9, x_10, x_11, x_35); +return x_36; } else { -uint8_t x_38; +uint8_t x_37; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3425,29 +3423,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) { -return x_34; +return x_33; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); lean_inc(x_39); -lean_dec(x_34); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_42; +uint8_t x_41; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3458,23 +3456,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_42 = !lean_is_exclusive(x_29); -if (x_42 == 0) +x_41 = !lean_is_exclusive(x_29); +if (x_41 == 0) { return x_29; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_29, 0); -x_44 = lean_ctor_get(x_29, 1); -lean_inc(x_44); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_29, 0); +x_43 = lean_ctor_get(x_29, 1); lean_inc(x_43); +lean_inc(x_42); lean_dec(x_29); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } @@ -3705,30 +3703,29 @@ lean_inc(x_1); x_36 = l_Lean_Meta_transform_visit___at_Lean_Meta_Match_unfoldNamedPattern___spec__2(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_36) == 0) { -lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; 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 = 0; -x_40 = 1; lean_inc(x_8); -x_41 = l_Lean_Meta_mkLambdaFVars(x_5, x_37, x_39, x_40, x_8, x_9, x_10, x_11, x_38); -if (lean_obj_tag(x_41) == 0) +x_40 = l_Lean_Meta_mkLambdaFVars(x_5, x_37, x_39, x_39, x_8, x_9, x_10, x_11, x_38); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_41, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Match_unfoldNamedPattern___spec__3(x_1, x_2, x_3, x_4, x_42, x_7, x_8, x_9, x_10, x_11, x_43); -return x_44; +lean_dec(x_40); +x_43 = l_Lean_Meta_transform_visit_visitPost___at_Lean_Meta_Match_unfoldNamedPattern___spec__3(x_1, x_2, x_3, x_4, x_41, x_7, x_8, x_9, x_10, x_11, x_42); +return x_43; } else { -uint8_t x_45; +uint8_t x_44; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3738,29 +3735,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_41); -if (x_45 == 0) +x_44 = !lean_is_exclusive(x_40); +if (x_44 == 0) { -return x_41; +return x_40; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_41, 0); -x_47 = lean_ctor_get(x_41, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_40, 0); +x_46 = lean_ctor_get(x_40, 1); lean_inc(x_46); -lean_dec(x_41); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +lean_inc(x_45); +lean_dec(x_40); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } else { -uint8_t x_49; +uint8_t x_48; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -3771,23 +3768,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_49 = !lean_is_exclusive(x_36); -if (x_49 == 0) +x_48 = !lean_is_exclusive(x_36); +if (x_48 == 0) { return x_36; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_36, 0); -x_51 = lean_ctor_get(x_36, 1); -lean_inc(x_51); +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_36, 0); +x_50 = lean_ctor_get(x_36, 1); lean_inc(x_50); +lean_inc(x_49); lean_dec(x_36); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } @@ -19999,30 +19996,29 @@ lean_inc(x_1); x_30 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__7(x_1, x_2, x_3, x_4, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_30) == 0) { -lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); x_33 = 0; -x_34 = 1; lean_inc(x_9); -x_35 = l_Lean_Meta_mkLambdaFVars(x_5, x_31, x_33, x_34, x_9, x_10, x_11, x_12, x_32); -if (lean_obj_tag(x_35) == 0) +x_34 = l_Lean_Meta_mkLambdaFVars(x_5, x_31, x_33, x_33, x_9, x_10, x_11, x_12, x_32); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__8(x_1, x_2, x_3, x_4, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -return x_38; +lean_dec(x_34); +x_37 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__8(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_36); +return x_37; } else { -uint8_t x_39; +uint8_t x_38; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20033,29 +20029,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_35); -if (x_39 == 0) +x_38 = !lean_is_exclusive(x_34); +if (x_38 == 0) { -return x_35; +return x_34; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_35, 0); -x_41 = lean_ctor_get(x_35, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_34, 0); +x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); -lean_dec(x_35); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_inc(x_39); +lean_dec(x_34); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_43; +uint8_t x_42; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20067,23 +20063,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_30); -if (x_43 == 0) +x_42 = !lean_is_exclusive(x_30); +if (x_42 == 0) { return x_30; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_30, 0); -x_45 = lean_ctor_get(x_30, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_30, 0); +x_44 = lean_ctor_get(x_30, 1); lean_inc(x_44); +lean_inc(x_43); lean_dec(x_30); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -20261,30 +20257,29 @@ lean_inc(x_1); x_30 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__7(x_1, x_2, x_3, x_4, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_30) == 0) { -lean_object* x_31; lean_object* x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); x_33 = 0; -x_34 = 1; lean_inc(x_9); -x_35 = l_Lean_Meta_mkForallFVars(x_5, x_31, x_33, x_34, x_9, x_10, x_11, x_12, x_32); -if (lean_obj_tag(x_35) == 0) +x_34 = l_Lean_Meta_mkForallFVars(x_5, x_31, x_33, x_33, x_9, x_10, x_11, x_12, x_32); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__8(x_1, x_2, x_3, x_4, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_37); -return x_38; +lean_dec(x_34); +x_37 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__8(x_1, x_2, x_3, x_4, x_35, x_7, x_8, x_9, x_10, x_11, x_12, x_36); +return x_37; } else { -uint8_t x_39; +uint8_t x_38; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20295,29 +20290,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_39 = !lean_is_exclusive(x_35); -if (x_39 == 0) +x_38 = !lean_is_exclusive(x_34); +if (x_38 == 0) { -return x_35; +return x_34; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_35, 0); -x_41 = lean_ctor_get(x_35, 1); -lean_inc(x_41); +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_34, 0); +x_40 = lean_ctor_get(x_34, 1); lean_inc(x_40); -lean_dec(x_35); -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -return x_42; +lean_inc(x_39); +lean_dec(x_34); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } else { -uint8_t x_43; +uint8_t x_42; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20329,23 +20324,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_30); -if (x_43 == 0) +x_42 = !lean_is_exclusive(x_30); +if (x_42 == 0) { return x_30; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_30, 0); -x_45 = lean_ctor_get(x_30, 1); -lean_inc(x_45); +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_30, 0); +x_44 = lean_ctor_get(x_30, 1); lean_inc(x_44); +lean_inc(x_43); lean_dec(x_30); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } } @@ -20582,30 +20577,29 @@ lean_inc(x_1); x_37 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__7(x_1, x_2, x_3, x_4, x_36, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_37) == 0) { -lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; +lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); x_40 = 0; -x_41 = 1; lean_inc(x_9); -x_42 = l_Lean_Meta_mkLambdaFVars(x_5, x_38, x_40, x_41, x_9, x_10, x_11, x_12, x_39); -if (lean_obj_tag(x_42) == 0) +x_41 = l_Lean_Meta_mkLambdaFVars(x_5, x_38, x_40, x_40, x_9, x_10, x_11, x_12, x_39); +if (lean_obj_tag(x_41) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__8(x_1, x_2, x_3, x_4, x_43, x_7, x_8, x_9, x_10, x_11, x_12, x_44); -return x_45; +lean_dec(x_41); +x_44 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__8(x_1, x_2, x_3, x_4, x_42, x_7, x_8, x_9, x_10, x_11, x_12, x_43); +return x_44; } else { -uint8_t x_46; +uint8_t x_45; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20616,29 +20610,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_46 = !lean_is_exclusive(x_42); -if (x_46 == 0) +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) { -return x_42; +return x_41; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_42, 0); -x_48 = lean_ctor_get(x_42, 1); -lean_inc(x_48); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_41, 0); +x_47 = lean_ctor_get(x_41, 1); lean_inc(x_47); -lean_dec(x_42); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_inc(x_46); +lean_dec(x_41); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } } else { -uint8_t x_50; +uint8_t x_49; lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -20650,23 +20644,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_50 = !lean_is_exclusive(x_37); -if (x_50 == 0) +x_49 = !lean_is_exclusive(x_37); +if (x_49 == 0) { return x_37; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_37, 0); -x_52 = lean_ctor_get(x_37, 1); -lean_inc(x_52); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); lean_inc(x_51); +lean_inc(x_50); lean_dec(x_37); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } diff --git a/stage0/stdlib/Lean/Meta/SynthInstance.c b/stage0/stdlib/Lean/Meta/SynthInstance.c index 5e715f4f9a..a78001de99 100644 --- a/stage0/stdlib/Lean/Meta/SynthInstance.c +++ b/stage0/stdlib/Lean/Meta/SynthInstance.c @@ -408,7 +408,7 @@ lean_object* l_Lean_mkApp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__8___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_SynthInstance_newSubgoal___closed__2; uint8_t l_Lean_Expr_hasMVar(lean_object*); -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_synthInstance_x3f___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___lambda__2___closed__3; lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); @@ -11467,123 +11467,124 @@ return x_9; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_SynthInstance_consume___spec__1___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; x_12 = l_Lean_Meta_SynthInstance_newSubgoal___lambda__3___closed__1; x_13 = lean_array_push(x_12, x_4); -x_14 = l_Lean_Expr_betaRev(x_1, x_13); +x_14 = 0; +x_15 = l_Lean_Expr_betaRev(x_1, x_13, x_14); lean_dec(x_13); -lean_inc(x_14); -x_15 = lean_infer_type(x_14, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +lean_inc(x_15); +x_16 = lean_infer_type(x_15, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_16) == 0) { uint8_t x_17; -x_17 = !lean_is_exclusive(x_2); +x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_15, 0); -x_19 = lean_ctor_get(x_2, 2); -lean_dec(x_19); -lean_ctor_set(x_2, 2, x_14); -x_20 = lean_ctor_get(x_3, 2); -lean_inc(x_20); -x_21 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_21, 0, x_2); -lean_ctor_set(x_21, 1, x_18); -lean_ctor_set(x_21, 2, x_20); -lean_ctor_set(x_15, 0, x_21); -return x_15; +uint8_t x_18; +x_18 = !lean_is_exclusive(x_2); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_16, 0); +x_20 = lean_ctor_get(x_2, 2); +lean_dec(x_20); +lean_ctor_set(x_2, 2, x_15); +x_21 = lean_ctor_get(x_3, 2); +lean_inc(x_21); +x_22 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_22, 0, x_2); +lean_ctor_set(x_22, 1, x_19); +lean_ctor_set(x_22, 2, x_21); +lean_ctor_set(x_16, 0, x_22); +return x_16; } 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; -x_22 = lean_ctor_get(x_15, 0); -x_23 = lean_ctor_get(x_2, 0); -x_24 = lean_ctor_get(x_2, 1); +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_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_2, 0); +x_25 = lean_ctor_get(x_2, 1); +lean_inc(x_25); lean_inc(x_24); -lean_inc(x_23); lean_dec(x_2); -x_25 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -lean_ctor_set(x_25, 2, x_14); -x_26 = lean_ctor_get(x_3, 2); -lean_inc(x_26); -x_27 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_22); -lean_ctor_set(x_27, 2, x_26); -lean_ctor_set(x_15, 0, x_27); -return x_15; +x_26 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_15); +x_27 = lean_ctor_get(x_3, 2); +lean_inc(x_27); +x_28 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_23); +lean_ctor_set(x_28, 2, x_27); +lean_ctor_set(x_16, 0, x_28); +return x_16; } } 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; -x_28 = lean_ctor_get(x_15, 0); -x_29 = lean_ctor_get(x_15, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_15); -x_30 = lean_ctor_get(x_2, 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; +x_29 = lean_ctor_get(x_16, 0); +x_30 = lean_ctor_get(x_16, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_2, 1); +lean_inc(x_29); +lean_dec(x_16); +x_31 = lean_ctor_get(x_2, 0); lean_inc(x_31); +x_32 = lean_ctor_get(x_2, 1); +lean_inc(x_32); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); lean_ctor_release(x_2, 2); - x_32 = x_2; + x_33 = x_2; } else { lean_dec_ref(x_2); - x_32 = lean_box(0); + x_33 = lean_box(0); } -if (lean_is_scalar(x_32)) { - x_33 = lean_alloc_ctor(0, 3, 0); +if (lean_is_scalar(x_33)) { + x_34 = lean_alloc_ctor(0, 3, 0); } else { - x_33 = x_32; + x_34 = x_33; } -lean_ctor_set(x_33, 0, x_30); -lean_ctor_set(x_33, 1, x_31); -lean_ctor_set(x_33, 2, x_14); -x_34 = lean_ctor_get(x_3, 2); -lean_inc(x_34); -x_35 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_28); -lean_ctor_set(x_35, 2, x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_32); +lean_ctor_set(x_34, 2, x_15); +x_35 = lean_ctor_get(x_3, 2); +lean_inc(x_35); +x_36 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_36, 0, x_34); lean_ctor_set(x_36, 1, x_29); -return x_36; +lean_ctor_set(x_36, 2, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_30); +return x_37; } } else { -uint8_t x_37; -lean_dec(x_14); -lean_dec(x_2); -x_37 = !lean_is_exclusive(x_15); -if (x_37 == 0) -{ -return x_15; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_15, 0); -x_39 = lean_ctor_get(x_15, 1); -lean_inc(x_39); -lean_inc(x_38); +uint8_t x_38; lean_dec(x_15); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; +lean_dec(x_2); +x_38 = !lean_is_exclusive(x_16); +if (x_38 == 0) +{ +return x_16; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_16, 0); +x_40 = lean_ctor_get(x_16, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_16); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; } } } @@ -13389,7 +13390,6 @@ x_12 = l_Array_mapMUnsafe_map___at_Lean_Meta_SynthInstance_consume___spec__1___l lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -lean_dec(x_1); return x_12; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c b/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c index 6fe34582ca..83a2481393 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Contradiction.c @@ -17,6 +17,7 @@ LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim_ static lean_object* l_Lean_Meta_contradiction___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_ElimEmptyInductive_elim___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); +static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__4; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -55,6 +56,7 @@ static lean_object* l_Lean_Meta_ElimEmptyInductive_elim___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__3___closed__8; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_ElimEmptyInductive_elim___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_appArg_x21(lean_object*); static lean_object* l_Lean_Meta_contradictionCore___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_ElimEmptyInductive_elim___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_commitWhen___at_Lean_Meta_ElimEmptyInductive_elim___spec__7___at_Lean_Meta_ElimEmptyInductive_elim___spec__8___lambda__1___closed__1; @@ -75,6 +77,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_proc static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_ElimEmptyInductive_elim___spec__4___closed__2; uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_ElimEmptyInductive_elim___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); @@ -115,6 +118,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCo static lean_object* l_Lean_Meta_ElimEmptyInductive_elim___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_ElimEmptyInductive_elim___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhen___at_Lean_Meta_ElimEmptyInductive_elim___spec__7___at_Lean_Meta_ElimEmptyInductive_elim___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Contradiction_Config_searchFuel___default; LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_ElimEmptyInductive_elim___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); @@ -127,6 +131,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_contradic lean_object* l_Lean_Meta_findLocalDeclWithType_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhen___at_Lean_Meta_ElimEmptyInductive_elim___spec__7___at_Lean_Meta_ElimEmptyInductive_elim___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_ElimEmptyInductive_elim___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -134,7 +139,9 @@ lean_object* l_Lean_LocalDecl_toExpr(lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); static lean_object* l_Lean_Meta_contradictionCore___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_contradictionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_contradictionCore___lambda__2___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_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_contradictionCore___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_instMonadMetaM; LEAN_EXPORT lean_object* l_Lean_Meta_withMVarContext___at_Lean_Meta_ElimEmptyInductive_elim___spec__3(lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,13 +149,17 @@ lean_object* l_Lean_mkFVar(lean_object*); lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__3___closed__3; size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_ElimEmptyInductive_instMonadBacktrackSavedStateM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_ElimEmptyInductive_elim___spec__2(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Contradiction_Config_useDecide___default; lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__2; lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); @@ -166,10 +177,8 @@ lean_object* l_Lean_Meta_hasAssignableMVar(lean_object*, lean_object*, lean_obje lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__3___closed__7; lean_object* l_Lean_Meta_matchConstructorApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__2; lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__3___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___closed__1; static lean_object* l_Lean_Meta_ElimEmptyInductive_elim___lambda__2___closed__2; @@ -207,7 +216,8 @@ lean_object* l_Lean_Meta_withNewMCtxDepth___at___private_Lean_Meta_Instances_0__ lean_object* l_Lean_Meta_mkFalseElim(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_Lean_Meta_mkNoConfusion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Contradiction___hyg_3251_(lean_object*); +uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Contradiction___hyg_3415_(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_ElimEmptyInductive_elim___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -225,6 +235,7 @@ static lean_object* l_Lean_commitWhen___at_Lean_Meta_ElimEmptyInductive_elim___s static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___spec__2___lambda__1___closed__1; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__3___closed__6; +static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_contradictionCore___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_ElimEmptyInductive_elim___spec__5___closed__7; uint8_t l_Lean_Expr_hasFVar(lean_object*); @@ -236,6 +247,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_contradictio lean_object* l_instMonadControlT__1___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_contradictionCore___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___closed__1; lean_object* l_Lean_Exception_toMessageData(lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_ElimEmptyInductive_elim___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_contradictionCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -265,6 +277,418 @@ x_1 = 0; return x_1; } } +static lean_object* _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("False"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elim"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__2; +x_2 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__4; +x_3 = lean_unsigned_to_nat(2u); +x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3); +if (x_4 == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = l_Lean_Expr_appArg_x21(x_1); +x_7 = l_Lean_Expr_hasLooseBVars(x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +else +{ +uint8_t x_9; +x_9 = 0; +return x_9; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim(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_inc(x_1); +x_7 = l_Lean_Meta_getMVarType(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___closed__1; +x_12 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_11, x_9); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; lean_object* x_14; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_13 = 0; +x_14 = lean_box(x_13); +lean_ctor_set(x_7, 0, x_14); +return x_7; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_free_object(x_7); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +x_16 = l_Lean_Expr_appArg_x21(x_15); +lean_dec(x_15); +lean_inc(x_1); +x_17 = l_Lean_Meta_getMVarType(x_1, x_2, x_3, x_4, x_5, x_10); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_20 = l_Lean_Meta_mkFalseElim(x_18, x_16, x_2, x_3, x_4, x_5, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +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_Meta_assignExprMVar(x_1, x_21, x_2, x_3, x_4, x_5, x_22); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_23, 0); +lean_dec(x_25); +x_26 = 1; +x_27 = lean_box(x_26); +lean_ctor_set(x_23, 0, x_27); +return x_23; +} +else +{ +lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_23, 1); +lean_inc(x_28); +lean_dec(x_23); +x_29 = 1; +x_30 = lean_box(x_29); +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; +} +} +else +{ +uint8_t x_32; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_32 = !lean_is_exclusive(x_20); +if (x_32 == 0) +{ +return x_20; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_20, 0); +x_34 = lean_ctor_get(x_20, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_20); +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; +} +} +} +else +{ +uint8_t x_36; +lean_dec(x_16); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_17); +if (x_36 == 0) +{ +return x_17; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_17, 0); +x_38 = lean_ctor_get(x_17, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_17); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_7, 0); +x_41 = lean_ctor_get(x_7, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_7); +x_42 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___closed__1; +x_43 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_42, x_40); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; lean_object* x_45; lean_object* x_46; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_44 = 0; +x_45 = lean_box(x_44); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_41); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_43, 0); +lean_inc(x_47); +lean_dec(x_43); +x_48 = l_Lean_Expr_appArg_x21(x_47); +lean_dec(x_47); +lean_inc(x_1); +x_49 = l_Lean_Meta_getMVarType(x_1, x_2, x_3, x_4, x_5, x_41); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec(x_49); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_52 = l_Lean_Meta_mkFalseElim(x_50, x_48, x_2, x_3, x_4, x_5, x_51); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_55 = l_Lean_Meta_assignExprMVar(x_1, x_53, x_2, x_3, x_4, x_5, x_54); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +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 = 1; +x_59 = lean_box(x_58); +if (lean_is_scalar(x_57)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_57; +} +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_56); +return x_60; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_61 = lean_ctor_get(x_52, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_52, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_63 = x_52; +} else { + lean_dec_ref(x_52); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_48); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_65 = lean_ctor_get(x_49, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_49, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + x_67 = x_49; +} else { + lean_dec_ref(x_49); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_69 = !lean_is_exclusive(x_7); +if (x_69 == 0) +{ +return x_7; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_7, 0); +x_71 = lean_ctor_get(x_7, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_7); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isElimEmptyInductiveCandidate(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: { @@ -3105,24 +3529,6 @@ x_10 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lea return x_10; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("False"); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq(lean_object* x_1) { _start: { @@ -3158,7 +3564,7 @@ goto _start; else { lean_object* x_10; uint8_t x_11; -x_10 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__2; +x_10 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__2; x_11 = l_Lean_Expr_isConstOf(x_1, x_10); return x_11; } @@ -3996,7 +4402,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_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___closed__4; x_2 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___closed__5; -x_3 = lean_unsigned_to_nat(86u); +x_3 = lean_unsigned_to_nat(99u); x_4 = lean_unsigned_to_nat(2u); x_5 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -7375,111 +7781,139 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_Meta_contradictionCore___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) { _start: { +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_5, 1); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__2___closed__1; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_13 = l_Std_PersistentArray_forIn___at_Lean_Meta_contradictionCore___spec__1(x_1, x_2, x_3, x_12, x_11, x_12, 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; +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +lean_dec(x_14); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = l_Lean_Meta_contradictionCore___lambda__2___closed__1; +x_18 = lean_box(0); +x_19 = lean_apply_6(x_17, x_18, x_5, x_6, x_7, x_8, x_16); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_20 = !lean_is_exclusive(x_13); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_13, 0); +lean_dec(x_21); +x_22 = lean_ctor_get(x_15, 0); +lean_inc(x_22); +lean_dec(x_15); +lean_ctor_set(x_13, 0, x_22); +return x_13; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_13, 1); +lean_inc(x_23); +lean_dec(x_13); +x_24 = lean_ctor_get(x_15, 0); +lean_inc(x_24); +lean_dec(x_15); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_26 = !lean_is_exclusive(x_13); +if (x_26 == 0) +{ +return x_13; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_13, 0); +x_28 = lean_ctor_get(x_13, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_13); +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_EXPORT lean_object* l_Lean_Meta_contradictionCore___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_inc(x_6); lean_inc(x_1); x_10 = l_Lean_Meta_checkNotAssigned(x_1, x_2, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_object* x_11; lean_object* x_12; x_11 = lean_ctor_get(x_10, 1); lean_inc(x_11); lean_dec(x_10); -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = l_Lean_Meta_ElimEmptyInductive_elim___lambda__2___closed__1; lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_15 = l_Std_PersistentArray_forIn___at_Lean_Meta_contradictionCore___spec__1(x_1, x_3, x_4, x_14, x_13, x_14, x_5, x_6, x_7, x_8, x_11); -if (lean_obj_tag(x_15) == 0) +lean_inc(x_1); +x_12 = l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim(x_1, x_5, x_6, x_7, x_8, x_11); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -lean_dec(x_16); -if (lean_obj_tag(x_17) == 0) +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = l_Lean_Meta_contradictionCore___lambda__2___closed__1; -x_20 = lean_box(0); -x_21 = lean_apply_6(x_19, x_20, x_5, x_6, x_7, x_8, x_18); -return x_21; +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_box(0); +x_17 = l_Lean_Meta_contradictionCore___lambda__2(x_1, x_3, x_4, x_16, x_5, x_6, x_7, x_8, x_15); +return x_17; } else { -uint8_t x_22; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_22 = !lean_is_exclusive(x_15); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_15, 0); -lean_dec(x_23); -x_24 = lean_ctor_get(x_17, 0); -lean_inc(x_24); -lean_dec(x_17); -lean_ctor_set(x_15, 0, x_24); -return x_15; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_15, 1); -lean_inc(x_25); -lean_dec(x_15); -x_26 = lean_ctor_get(x_17, 0); -lean_inc(x_26); -lean_dec(x_17); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} -} -else -{ -uint8_t x_28; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_28 = !lean_is_exclusive(x_15); -if (x_28 == 0) -{ -return x_15; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_15, 0); -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_15); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -uint8_t x_32; +uint8_t x_18; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -7487,23 +7921,89 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_32 = !lean_is_exclusive(x_10); -if (x_32 == 0) +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_12, 0); +lean_dec(x_19); +x_20 = 1; +x_21 = lean_box(x_20); +lean_ctor_set(x_12, 0, x_21); +return x_12; +} +else +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_dec(x_12); +x_23 = 1; +x_24 = lean_box(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_12); +if (x_26 == 0) +{ +return x_12; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_12, 0); +x_28 = lean_ctor_get(x_12, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_12); +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; +} +} +} +else +{ +uint8_t x_30; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_30 = !lean_is_exclusive(x_10); +if (x_30 == 0) { return x_10; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_10, 0); -x_34 = lean_ctor_get(x_10, 1); -lean_inc(x_34); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_10, 0); +x_32 = lean_ctor_get(x_10, 1); +lean_inc(x_32); +lean_inc(x_31); lean_dec(x_10); -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; +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; } } } @@ -7539,7 +8039,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; x_8 = l_Lean_Meta_contradictionCore___closed__2; x_9 = l_Lean_Meta_contradictionCore___closed__1; lean_inc(x_1); -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_contradictionCore___lambda__2), 9, 4); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_contradictionCore___lambda__3), 9, 4); lean_closure_set(x_10, 0, x_1); lean_closure_set(x_10, 1, x_8); lean_closure_set(x_10, 2, x_2); @@ -7660,6 +8160,15 @@ lean_dec(x_1); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_Meta_contradictionCore___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_contradictionCore___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_4); +return x_10; +} +} static lean_object* _init_l_Lean_Meta_contradiction___closed__1() { _start: { @@ -7773,7 +8282,7 @@ return x_25; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Contradiction___hyg_3251_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Contradiction___hyg_3415_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -7811,6 +8320,16 @@ l_Lean_Meta_Contradiction_Config_useDecide___default = _init_l_Lean_Meta_Contrad l_Lean_Meta_Contradiction_Config_searchFuel___default = _init_l_Lean_Meta_Contradiction_Config_searchFuel___default(); lean_mark_persistent(l_Lean_Meta_Contradiction_Config_searchFuel___default); l_Lean_Meta_Contradiction_Config_genDiseq___default = _init_l_Lean_Meta_Contradiction_Config_genDiseq___default(); +l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__1 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__1); +l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__2 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__2); +l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__3); +l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__4 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___lambda__1___closed__4); +l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___closed__1 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_nestedFalseElim___closed__1); l_Lean_Meta_ElimEmptyInductive_instMonadBacktrackSavedStateM___closed__1 = _init_l_Lean_Meta_ElimEmptyInductive_instMonadBacktrackSavedStateM___closed__1(); lean_mark_persistent(l_Lean_Meta_ElimEmptyInductive_instMonadBacktrackSavedStateM___closed__1); l_Lean_Meta_ElimEmptyInductive_instMonadBacktrackSavedStateM___closed__2 = _init_l_Lean_Meta_ElimEmptyInductive_instMonadBacktrackSavedStateM___closed__2(); @@ -7891,10 +8410,6 @@ l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_elimEmptyInductive___lam lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_elimEmptyInductive___lambda__1___closed__2); l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_elimEmptyInductive___lambda__1___closed__3 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_elimEmptyInductive___lambda__1___closed__3(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_elimEmptyInductive___lambda__1___closed__3); -l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__1 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__1); -l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__2 = _init_l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_isGenDiseq___closed__2); l_panic___at___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___spec__1___closed__1 = _init_l_panic___at___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___spec__1___closed__1(); lean_mark_persistent(l_panic___at___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___spec__1___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___spec__2___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Contradiction_0__Lean_Meta_processGenDiseq___spec__2___lambda__1___closed__1(); @@ -7941,7 +8456,7 @@ l_Lean_Meta_contradiction___closed__1 = _init_l_Lean_Meta_contradiction___closed lean_mark_persistent(l_Lean_Meta_contradiction___closed__1); l_Lean_Meta_contradiction___closed__2 = _init_l_Lean_Meta_contradiction___closed__2(); lean_mark_persistent(l_Lean_Meta_contradiction___closed__2); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Contradiction___hyg_3251_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Contradiction___hyg_3415_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Delta.c b/stage0/stdlib/Lean/Meta/Tactic/Delta.c index 5bbed8d45a..86a2643315 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Delta.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Delta.c @@ -39,7 +39,7 @@ lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_deltaTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_delta_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_deltaExpand(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_change(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_deltaExpand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -143,7 +143,7 @@ return x_9; } else { -lean_object* x_29; 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; uint8_t x_33; lean_object* x_34; x_29 = lean_instantiate_value_lparams(x_16, x_8); lean_dec(x_8); lean_dec(x_16); @@ -151,10 +151,10 @@ x_30 = l_Lean_Expr_getAppNumArgsAux(x_1, x_24); x_31 = lean_mk_empty_array_with_capacity(x_30); lean_dec(x_30); x_32 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_31); -x_33 = l_Lean_Expr_betaRev(x_29, x_32); +x_33 = 1; +x_34 = l_Lean_Expr_betaRev(x_29, x_32, x_33); lean_dec(x_32); -lean_dec(x_29); -lean_ctor_set(x_13, 0, x_33); +lean_ctor_set(x_13, 0, x_34); lean_ctor_set(x_9, 0, x_13); return x_9; } @@ -163,75 +163,75 @@ return x_9; } 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); -lean_inc(x_34); +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_35 = lean_ctor_get(x_13, 0); +lean_inc(x_35); lean_dec(x_13); -x_35 = l_Lean_ConstantInfo_name(x_34); -x_36 = lean_apply_1(x_2, x_35); -x_37 = lean_unbox(x_36); -lean_dec(x_36); -if (x_37 == 0) +x_36 = l_Lean_ConstantInfo_name(x_35); +x_37 = lean_apply_1(x_2, x_36); +x_38 = lean_unbox(x_37); +lean_dec(x_37); +if (x_38 == 0) { -lean_object* x_38; -lean_dec(x_34); +lean_object* x_39; +lean_dec(x_35); lean_dec(x_8); lean_dec(x_1); -x_38 = lean_box(0); -lean_ctor_set(x_9, 0, x_38); +x_39 = lean_box(0); +lean_ctor_set(x_9, 0, x_39); return x_9; } else { -uint8_t x_39; -x_39 = l_Lean_ConstantInfo_hasValue(x_34); -if (x_39 == 0) +uint8_t x_40; +x_40 = l_Lean_ConstantInfo_hasValue(x_35); +if (x_40 == 0) { -lean_object* x_40; -lean_dec(x_34); +lean_object* x_41; +lean_dec(x_35); lean_dec(x_8); lean_dec(x_1); -x_40 = lean_box(0); -lean_ctor_set(x_9, 0, x_40); +x_41 = lean_box(0); +lean_ctor_set(x_9, 0, x_41); return x_9; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_41 = l_Lean_ConstantInfo_levelParams(x_34); -x_42 = lean_unsigned_to_nat(0u); -x_43 = l_List_lengthTRAux___rarg(x_41, x_42); -lean_dec(x_41); -x_44 = l_List_lengthTRAux___rarg(x_8, x_42); -x_45 = lean_nat_dec_eq(x_43, x_44); +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = l_Lean_ConstantInfo_levelParams(x_35); +x_43 = lean_unsigned_to_nat(0u); +x_44 = l_List_lengthTRAux___rarg(x_42, x_43); +lean_dec(x_42); +x_45 = l_List_lengthTRAux___rarg(x_8, x_43); +x_46 = lean_nat_dec_eq(x_44, x_45); +lean_dec(x_45); lean_dec(x_44); -lean_dec(x_43); -if (x_45 == 0) +if (x_46 == 0) { -lean_object* x_46; -lean_dec(x_34); +lean_object* x_47; +lean_dec(x_35); lean_dec(x_8); lean_dec(x_1); -x_46 = lean_box(0); -lean_ctor_set(x_9, 0, x_46); +x_47 = lean_box(0); +lean_ctor_set(x_9, 0, x_47); return x_9; } 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; -x_47 = lean_instantiate_value_lparams(x_34, x_8); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; +x_48 = lean_instantiate_value_lparams(x_35, x_8); lean_dec(x_8); -lean_dec(x_34); -x_48 = l_Lean_Expr_getAppNumArgsAux(x_1, x_42); -x_49 = lean_mk_empty_array_with_capacity(x_48); -lean_dec(x_48); -x_50 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_49); -x_51 = l_Lean_Expr_betaRev(x_47, x_50); -lean_dec(x_50); -lean_dec(x_47); -x_52 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_9, 0, x_52); +lean_dec(x_35); +x_49 = l_Lean_Expr_getAppNumArgsAux(x_1, x_43); +x_50 = lean_mk_empty_array_with_capacity(x_49); +lean_dec(x_49); +x_51 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_50); +x_52 = 1; +x_53 = l_Lean_Expr_betaRev(x_48, x_51, x_52); +lean_dec(x_51); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_9, 0, x_54); return x_9; } } @@ -241,121 +241,121 @@ return x_9; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_9, 0); -x_54 = lean_ctor_get(x_9, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_9); -x_55 = lean_ctor_get(x_53, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_9, 0); +x_56 = lean_ctor_get(x_9, 1); +lean_inc(x_56); lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_environment_find(x_55, x_7); -if (lean_obj_tag(x_56) == 0) +lean_dec(x_9); +x_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_environment_find(x_57, x_7); +if (lean_obj_tag(x_58) == 0) { -lean_object* x_57; lean_object* x_58; +lean_object* x_59; lean_object* x_60; lean_dec(x_8); lean_dec(x_2); lean_dec(x_1); -x_57 = lean_box(0); -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_54); -return x_58; +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_56); +return x_60; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_59 = lean_ctor_get(x_56, 0); -lean_inc(x_59); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - x_60 = x_56; +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + x_62 = x_58; } else { - lean_dec_ref(x_56); - x_60 = lean_box(0); + lean_dec_ref(x_58); + x_62 = lean_box(0); } -x_61 = l_Lean_ConstantInfo_name(x_59); -x_62 = lean_apply_1(x_2, x_61); -x_63 = lean_unbox(x_62); +x_63 = l_Lean_ConstantInfo_name(x_61); +x_64 = lean_apply_1(x_2, x_63); +x_65 = lean_unbox(x_64); +lean_dec(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_dec(x_62); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_60); -lean_dec(x_59); +lean_dec(x_61); lean_dec(x_8); lean_dec(x_1); -x_64 = lean_box(0); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_54); -return x_65; +x_66 = lean_box(0); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_56); +return x_67; } else { -uint8_t x_66; -x_66 = l_Lean_ConstantInfo_hasValue(x_59); -if (x_66 == 0) +uint8_t x_68; +x_68 = l_Lean_ConstantInfo_hasValue(x_61); +if (x_68 == 0) { -lean_object* x_67; lean_object* x_68; -lean_dec(x_60); -lean_dec(x_59); +lean_object* x_69; lean_object* x_70; +lean_dec(x_62); +lean_dec(x_61); lean_dec(x_8); lean_dec(x_1); -x_67 = lean_box(0); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_54); -return x_68; +x_69 = lean_box(0); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_56); +return x_70; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_69 = l_Lean_ConstantInfo_levelParams(x_59); -x_70 = lean_unsigned_to_nat(0u); -x_71 = l_List_lengthTRAux___rarg(x_69, x_70); -lean_dec(x_69); -x_72 = l_List_lengthTRAux___rarg(x_8, x_70); -x_73 = lean_nat_dec_eq(x_71, x_72); -lean_dec(x_72); +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_71 = l_Lean_ConstantInfo_levelParams(x_61); +x_72 = lean_unsigned_to_nat(0u); +x_73 = l_List_lengthTRAux___rarg(x_71, x_72); lean_dec(x_71); -if (x_73 == 0) +x_74 = l_List_lengthTRAux___rarg(x_8, x_72); +x_75 = lean_nat_dec_eq(x_73, x_74); +lean_dec(x_74); +lean_dec(x_73); +if (x_75 == 0) { -lean_object* x_74; lean_object* x_75; -lean_dec(x_60); -lean_dec(x_59); +lean_object* x_76; lean_object* x_77; +lean_dec(x_62); +lean_dec(x_61); lean_dec(x_8); lean_dec(x_1); -x_74 = lean_box(0); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_54); -return x_75; +x_76 = lean_box(0); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_56); +return x_77; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_76 = lean_instantiate_value_lparams(x_59, x_8); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_78 = lean_instantiate_value_lparams(x_61, x_8); lean_dec(x_8); -lean_dec(x_59); -x_77 = l_Lean_Expr_getAppNumArgsAux(x_1, x_70); -x_78 = lean_mk_empty_array_with_capacity(x_77); -lean_dec(x_77); -x_79 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_78); -x_80 = l_Lean_Expr_betaRev(x_76, x_79); +lean_dec(x_61); +x_79 = l_Lean_Expr_getAppNumArgsAux(x_1, x_72); +x_80 = lean_mk_empty_array_with_capacity(x_79); lean_dec(x_79); -lean_dec(x_76); -if (lean_is_scalar(x_60)) { - x_81 = lean_alloc_ctor(1, 1, 0); +x_81 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_80); +x_82 = 1; +x_83 = l_Lean_Expr_betaRev(x_78, x_81, x_82); +lean_dec(x_81); +if (lean_is_scalar(x_62)) { + x_84 = lean_alloc_ctor(1, 1, 0); } else { - x_81 = x_60; + x_84 = x_62; } -lean_ctor_set(x_81, 0, x_80); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_54); -return x_82; +lean_ctor_set(x_84, 0, x_83); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_56); +return x_85; } } } @@ -364,15 +364,15 @@ return x_82; } else { -lean_object* x_83; lean_object* x_84; +lean_object* x_86; lean_object* x_87; lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_83 = lean_box(0); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_5); -return x_84; +x_86 = lean_box(0); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_5); +return x_87; } } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Induction.c b/stage0/stdlib/Lean/Meta/Tactic/Induction.c index 6b95fd5b59..0fe272bbde 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Induction.c @@ -98,7 +98,7 @@ lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint lean_object* l_Lean_Expr_fvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_InductionSubgoal_subst___default; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Induction_0__Lean_Meta_finalize_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*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); +uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_induction___spec__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*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_repr(lean_object*); static lean_object* l_Lean_Meta_instInhabitedInductionSubgoal___closed__1; @@ -250,20 +250,21 @@ goto _start; } default: { -uint8_t x_8; -x_8 = l_Lean_Expr_isHeadBetaTarget(x_1); -if (x_8 == 0) +uint8_t x_8; uint8_t x_9; +x_8 = 0; +x_9 = l_Lean_Expr_isHeadBetaTarget(x_1, x_8); +if (x_9 == 0) { -lean_object* x_9; +lean_object* x_10; lean_dec(x_1); -x_9 = lean_unsigned_to_nat(0u); -return x_9; +x_10 = lean_unsigned_to_nat(0u); +return x_10; } else { -lean_object* x_10; -x_10 = l_Lean_Expr_headBeta(x_1); -x_1 = x_10; +lean_object* x_11; +x_11 = l_Lean_Expr_headBeta(x_1); +x_1 = x_11; goto _start; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c index 54bc2c6487..705990b754 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Main.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Simp.Main -// Imports: Init Lean.Meta.Transform Lean.Meta.Tactic.Replace Lean.Meta.Tactic.Util Lean.Meta.Tactic.Clear Lean.Meta.Tactic.Simp.Types Lean.Meta.Tactic.Simp.Rewrite +// Imports: Init Lean.Meta.Transform Lean.Meta.CongrTheorems Lean.Meta.Tactic.Replace Lean.Meta.Tactic.Util Lean.Meta.Tactic.Clear Lean.Meta.Tactic.Simp.Types Lean.Meta.Tactic.Simp.Rewrite #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -36,15 +36,19 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Sim LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__3___closed__2; size_t lean_usize_add(size_t, size_t); +static lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withNewMCtxDepthImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Simp_simp_cacheResult___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_getSimpTheorems___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_cacheResult___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_stringToMessageData(lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___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* l_Lean_Meta_getCongrSimpKinds(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_Meta_Simp_getSimpCongrTheorems___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,6 +67,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_congrDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption___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_EXPORT lean_object* l_Lean_Meta_simpGoal___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -72,6 +77,7 @@ lean_object* lean_name_mk_string(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLambda___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); +static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLet___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21(lean_object*); @@ -82,10 +88,13 @@ LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__2(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_post(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpProj___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_panic___at_Lean_Meta_Simp_simp_simpStep___spec__1___closed__2; +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpArrow___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_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp___lambda__2(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_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Simp_simp_simpLet___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*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; extern lean_object* l_Lean_maxRecDepthErrorMessage; @@ -93,10 +102,12 @@ uint8_t l_Lean_Expr_isArrow(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLambda___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLoop___closed__1; static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_processCongrHypothesis(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLoop___closed__2; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_congrHypothesisExceptionId; @@ -107,6 +118,7 @@ static lean_object* l_panic___at_Lean_Meta_Simp_simp_simpStep___spec__1___closed lean_object* l_Lean_addTrace_addTraceOptions(lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLambda___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToTarget___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLetCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -128,10 +140,13 @@ uint8_t l_Lean_Expr_isApp(lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Meta_Simp_simp_simpLambda___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_EXPORT lean_object* l_Lean_Meta_simpGoal___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_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__1; lean_object* l_Lean_Expr_appFn_x21(lean_object*); +uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_SimpTheorems_add(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___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_expr_instantiate1(lean_object*, lean_object*); @@ -143,13 +158,18 @@ lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_cacheResult___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__7; LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_cacheResult___spec__6(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1; static lean_object* l_panic___at_Lean_Meta_Simp_simp_simpStep___spec__1___closed__4; lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg(uint8_t, uint8_t, lean_object*); +lean_object* l_Lean_Meta_getFunInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_congr___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_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__6; +static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__1; lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -160,10 +180,12 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed(lean_object lean_object* l_Lean_Meta_mkEqMP(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLit___closed__3; lean_object* l_Lean_Expr_appArg_x21(lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3(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*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__5___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Simp_simp_simpLet___spec__1(lean_object*); static lean_object* l_Lean_Meta_Simp_main___closed__1; static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__3___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__9(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_postDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -175,19 +197,24 @@ static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__1; extern lean_object* l_Lean_Meta_Simp_instInhabitedResult; static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__2; uint8_t lean_usize_dec_lt(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__4; LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_simp_simpForall___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(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_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__8(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_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__4; lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLet___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*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__2; LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Simp_simp_simpForall___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_processCongrHypothesis___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkCongrSimpCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_mkMData(lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); @@ -198,6 +225,7 @@ static lean_object* l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__3; static lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__4___closed__1; static lean_object* l_Lean_Meta_Simp_simp_simpStep___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_Simp_simp_simpLet___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*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_withNewLemmas___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Simp_simp_cacheResult___spec__3(lean_object*, lean_object*); @@ -205,7 +233,10 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tact static lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__5___closed__2; lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget___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_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__6; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__10; static lean_object* l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___spec__1___closed__1; @@ -226,10 +257,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda_ LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__4; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_simpTarget___closed__1; LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpForall___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_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_projExpr_x21(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -241,19 +273,24 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda_ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpArrow___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_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___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_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__6; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_toCtorIdx(uint8_t); +lean_object* l_Lean_Meta_throwNestedTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_simpTargetCore___closed__3; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__5; +lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_withNewLemmas___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__3; -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__10; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___boxed(lean_object*); extern lean_object* l_Lean_instInhabitedProjectionFunctionInfo; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -268,9 +305,12 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_instInhabited___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__5; lean_object* l_panic___at_Lean_Expr_getRevArg_x21___spec__1(lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__4___boxed(lean_object**); static lean_object* l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_Simp_simp___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLet___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*); @@ -289,23 +329,30 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_processCongrHypothesis___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__3; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__3; +uint8_t lean_is_matcher(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___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_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__4; uint64_t l_Lean_Expr_hash(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__7; LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_pre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevM_x3f___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__12(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkEqNDRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_natLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_cacheResult___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -313,6 +360,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Ma lean_object* l_Lean_Meta_Simp_post(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___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*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__6; @@ -330,9 +379,10 @@ uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp___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_LocalDecl_toExpr(lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__11; uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__8; +static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__3; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__1; lean_object* l_Std_HashMap_insert___at_Lean_MetavarContext_instantiateExprMVars___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg___closed__1; @@ -352,6 +402,7 @@ lean_object* l_Lean_Meta_SimpTheorems_eraseCore(lean_object*, lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__7; lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_lambdaTelescope___at_Lean_Meta_Simp_simp_simpLambda___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -370,9 +421,11 @@ static lean_object* l_Lean_Meta_Simp_initFn____x40_Lean_Meta_Tactic_Simp_Main___ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_cacheResult(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_projectionFnInfoExt; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Simp_simp_simpLoop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_visitFn___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_EXPORT lean_object* l_Lean_Meta_Simp_getSimpLetCase___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Simp_simp_simpLoop___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_pre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__2; lean_object* l_Lean_registerInternalExceptionId(lean_object*, lean_object*); @@ -393,19 +446,26 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___at___private_ LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__3(lean_object*); static lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Exception_isMaxHeartbeat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_congr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__7; +lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_visitFn___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_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f(lean_object*, 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_EXPORT lean_object* l_Lean_Meta_simp___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_cacheResult___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_simpTargetStar___lambda__3___closed__2; +static lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetCore___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___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*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; @@ -414,16 +474,20 @@ lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkCongrFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_tryClearMany(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceProj_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Lean_profileitM___at_Lean_Meta_synthInstance_x3f___spec__8___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__7___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___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_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__2(lean_object*, lean_object*, size_t, size_t); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_isOfNatNatLit___closed__4; lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___lambda__2___closed__1; @@ -440,13 +504,16 @@ static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___ static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__7; static lean_object* l_Lean_Meta_simpTargetCore___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6; lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_SynthInstance_removeUnusedArguments_x3f___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__7___boxed(lean_object**); lean_object* l_Lean_Meta_mkEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__2; +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__5(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___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_EXPORT lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__1; lean_object* l_Lean_Meta_SimpCongrTheorems_get(lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -455,16 +522,25 @@ lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkCongrArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_simpTargetStar___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Simp_main___closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_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*); static lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___closed__2; LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption___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*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__1; +static lean_object* l_Lean_Meta_simpTargetStar___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Std_PersistentArray_findSomeRevMAux___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_isOfNatNatLit(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__7(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_isOfNatNatLit___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -476,6 +552,7 @@ lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, l lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFalseElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14___boxed(lean_object*, lean_object*); @@ -486,6 +563,7 @@ lean_object* l_Lean_mkLet(lean_object*, lean_object*, lean_object*, lean_object* LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__8___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*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp___spec__1(lean_object*, lean_object*); uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpArrow___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_EXPORT lean_object* l_Lean_isProjectionFn___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_unfold_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -493,10 +571,14 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congr static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__9; lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__8; +static lean_object* l_Lean_Meta_simpTargetStar___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLoop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__2; static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__2___closed__5; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dischargeUsingAssumption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_applySimpResultToProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__4___closed__2; @@ -510,11 +592,18 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Ta LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpStep(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_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__7; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Simp_simp_cacheResult___spec__5(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpForall___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -524,12 +613,16 @@ static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Si static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___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_EXPORT lean_object* l_Lean_Meta_Simp_throwCongrHypothesisFailed___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_MetavarContext_instantiateExprMVars___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpStep___closed__4; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_lambdaTelescopeImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_elimDummyEqRec(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__14(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Meta_Simp_dischargeUsingAssumption___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_simpTargetStar___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9(lean_object*, size_t, size_t); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLetDeclImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__7___boxed(lean_object*, lean_object*); @@ -540,11 +633,15 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_withNewLemmas(lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_isEqnThmHypothesis(lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpLetCase___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Meta_simpGoal___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_indentExpr(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2(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*); static lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; +LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_processCongrHypothesis___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpLit___closed__1; @@ -553,7 +650,9 @@ static lean_object* l_Lean_Meta_simpGoal___lambda__3___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___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_EXPORT lean_object* l_Lean_Meta_Simp_simp_cacheResult___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_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__3; lean_object* l_Lean_Meta_reduceRecMatcher_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_simpTargetStar___closed__2; static lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___spec__1___closed__1; lean_object* l_Lean_Meta_mkFunExt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -562,18 +661,22 @@ LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tact lean_object* l_Lean_Expr_constName_x21(lean_object*); static lean_object* l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion(lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduce___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___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_EXPORT lean_object* l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___lambda__1___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkOfEqTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__3; +extern lean_object* l_instInhabitedPUnit; static lean_object* l_Lean_Meta_Simp_simp_simpStep___closed__1; static lean_object* l_Lean_Meta_Simp_simp_simpForall___closed__6; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_visitFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simp_simpArrow___lambda__3___closed__2; static lean_object* l_Lean_Meta_Simp_simp_simpStep___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_simpLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__9___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_simp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__5; lean_object* l_Lean_Meta_mkNumeral(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5227,30 +5330,29 @@ lean_inc(x_1); x_32 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2(x_1, x_2, x_3, x_4, x_31, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_32) == 0) { -lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; +lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; 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 = 0; -x_36 = 1; lean_inc(x_11); -x_37 = l_Lean_Meta_mkLambdaFVars(x_5, x_33, x_35, x_36, x_11, x_12, x_13, x_14, x_34); -if (lean_obj_tag(x_37) == 0) +x_36 = l_Lean_Meta_mkLambdaFVars(x_5, x_33, x_35, x_35, x_11, x_12, x_13, x_14, x_34); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__3(x_1, x_2, x_3, x_4, x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_39); -return x_40; +lean_dec(x_36); +x_39 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__3(x_1, x_2, x_3, x_4, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_38); +return x_39; } else { -uint8_t x_41; +uint8_t x_40; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -5263,29 +5365,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = !lean_is_exclusive(x_37); -if (x_41 == 0) +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 0) { -return x_37; +return x_36; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_37, 0); -x_43 = lean_ctor_get(x_37, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_36, 0); +x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); -lean_dec(x_37); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_inc(x_41); +lean_dec(x_36); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } else { -uint8_t x_45; +uint8_t x_44; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -5299,23 +5401,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_32); -if (x_45 == 0) +x_44 = !lean_is_exclusive(x_32); +if (x_44 == 0) { return x_32; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_32, 0); -x_47 = lean_ctor_get(x_32, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_32, 0); +x_46 = lean_ctor_get(x_32, 1); lean_inc(x_46); +lean_inc(x_45); lean_dec(x_32); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } @@ -5501,30 +5603,29 @@ lean_inc(x_1); x_32 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2(x_1, x_2, x_3, x_4, x_31, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_32) == 0) { -lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; +lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; 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 = 0; -x_36 = 1; lean_inc(x_11); -x_37 = l_Lean_Meta_mkForallFVars(x_5, x_33, x_35, x_36, x_11, x_12, x_13, x_14, x_34); -if (lean_obj_tag(x_37) == 0) +x_36 = l_Lean_Meta_mkForallFVars(x_5, x_33, x_35, x_35, x_11, x_12, x_13, x_14, x_34); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_37, 0); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__3(x_1, x_2, x_3, x_4, x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_39); -return x_40; +lean_dec(x_36); +x_39 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__3(x_1, x_2, x_3, x_4, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_38); +return x_39; } else { -uint8_t x_41; +uint8_t x_40; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -5537,29 +5638,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_41 = !lean_is_exclusive(x_37); -if (x_41 == 0) +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 0) { -return x_37; +return x_36; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_37, 0); -x_43 = lean_ctor_get(x_37, 1); -lean_inc(x_43); +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_36, 0); +x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); -lean_dec(x_37); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; +lean_inc(x_41); +lean_dec(x_36); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } else { -uint8_t x_45; +uint8_t x_44; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -5573,23 +5674,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_45 = !lean_is_exclusive(x_32); -if (x_45 == 0) +x_44 = !lean_is_exclusive(x_32); +if (x_44 == 0) { return x_32; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_32, 0); -x_47 = lean_ctor_get(x_32, 1); -lean_inc(x_47); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_32, 0); +x_46 = lean_ctor_get(x_32, 1); lean_inc(x_46); +lean_inc(x_45); lean_dec(x_32); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; } } } @@ -5838,30 +5939,29 @@ lean_inc(x_1); x_39 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2(x_1, x_2, x_3, x_4, x_38, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_39) == 0) { -lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; lean_object* x_44; +lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; x_40 = lean_ctor_get(x_39, 0); lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); x_42 = 0; -x_43 = 1; lean_inc(x_11); -x_44 = l_Lean_Meta_mkLambdaFVars(x_5, x_40, x_42, x_43, x_11, x_12, x_13, x_14, x_41); -if (lean_obj_tag(x_44) == 0) +x_43 = l_Lean_Meta_mkLambdaFVars(x_5, x_40, x_42, x_42, x_11, x_12, x_13, x_14, x_41); +if (lean_obj_tag(x_43) == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_44, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__3(x_1, x_2, x_3, x_4, x_45, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_46); -return x_47; +lean_dec(x_43); +x_46 = l_Lean_Meta_transform_visit_visitPost___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__3(x_1, x_2, x_3, x_4, x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_45); +return x_46; } else { -uint8_t x_48; +uint8_t x_47; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -5874,29 +5974,29 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_44); -if (x_48 == 0) +x_47 = !lean_is_exclusive(x_43); +if (x_47 == 0) { -return x_44; +return x_43; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_44, 0); -x_50 = lean_ctor_get(x_44, 1); -lean_inc(x_50); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_43, 0); +x_49 = lean_ctor_get(x_43, 1); lean_inc(x_49); -lean_dec(x_44); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +lean_inc(x_48); +lean_dec(x_43); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } else { -uint8_t x_52; +uint8_t x_51; lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); @@ -5910,23 +6010,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_52 = !lean_is_exclusive(x_39); -if (x_52 == 0) +x_51 = !lean_is_exclusive(x_39); +if (x_51 == 0) { return x_39; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_39, 0); -x_54 = lean_ctor_get(x_39, 1); -lean_inc(x_54); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_39, 0); +x_53 = lean_ctor_get(x_39, 1); lean_inc(x_53); +lean_inc(x_52); lean_dec(x_39); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +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; } } } @@ -7961,6 +8061,388 @@ lean_dec(x_3); return x_10; } } +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Eq"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("rec"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2; +x_2 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ndrec"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2; +x_2 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("refl"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2; +x_2 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__4; +x_3 = lean_unsigned_to_nat(6u); +x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__6; +x_6 = l_Lean_Expr_isAppOfArity(x_1, x_5, x_3); +if (x_6 == 0) +{ +uint8_t x_7; +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = l_Lean_Expr_appArg_x21(x_1); +x_9 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8; +x_10 = l_Lean_Expr_isAppOf(x_8, x_9); +lean_dec(x_8); +return x_10; +} +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = l_Lean_Expr_appArg_x21(x_1); +x_12 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8; +x_13 = l_Lean_Expr_isAppOf(x_11, x_12); +lean_dec(x_11); +return x_13; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts_elimDummyEqRec(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec(x_1); +if (x_2 == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = l_Lean_Expr_appFn_x21(x_1); +lean_dec(x_1); +x_4 = l_Lean_Expr_appFn_x21(x_3); +lean_dec(x_3); +x_5 = l_Lean_Expr_appArg_x21(x_4); +lean_dec(x_4); +x_1 = x_5; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_nat_dec_le(x_3, x_2); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_unsigned_to_nat(0u); +x_13 = lean_nat_dec_eq(x_1, x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_1, x_14); +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_5); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_17 = lean_ctor_get(x_5, 0); +x_18 = lean_ctor_get(x_5, 1); +x_19 = l_Lean_instInhabitedExpr; +x_20 = lean_array_get(x_19, x_17, x_2); +x_21 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec(x_20); +if (x_21 == 0) +{ +lean_object* x_22; +lean_dec(x_20); +x_22 = lean_nat_add(x_2, x_4); +lean_dec(x_2); +x_1 = x_15; +x_2 = x_22; +goto _start; +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_18); +x_24 = l_Lean_Meta_Simp_removeUnnecessaryCasts_elimDummyEqRec(x_20); +x_25 = lean_array_set(x_17, x_2, x_24); +x_26 = 1; +x_27 = lean_box(x_26); +lean_ctor_set(x_5, 1, x_27); +lean_ctor_set(x_5, 0, x_25); +x_28 = lean_nat_add(x_2, x_4); +lean_dec(x_2); +x_1 = x_15; +x_2 = x_28; +goto _start; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_30 = lean_ctor_get(x_5, 0); +x_31 = lean_ctor_get(x_5, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_5); +x_32 = l_Lean_instInhabitedExpr; +x_33 = lean_array_get(x_32, x_30, x_2); +x_34 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec(x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_30); +lean_ctor_set(x_35, 1, x_31); +x_36 = lean_nat_add(x_2, x_4); +lean_dec(x_2); +x_1 = x_15; +x_2 = x_36; +x_5 = x_35; +goto _start; +} +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_31); +x_38 = l_Lean_Meta_Simp_removeUnnecessaryCasts_elimDummyEqRec(x_33); +x_39 = lean_array_set(x_30, x_2, x_38); +x_40 = 1; +x_41 = lean_box(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_41); +x_43 = lean_nat_add(x_2, x_4); +lean_dec(x_2); +x_1 = x_15; +x_2 = x_43; +x_5 = x_42; +goto _start; +} +} +} +else +{ +lean_object* x_45; +lean_dec(x_2); +lean_dec(x_1); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_5); +lean_ctor_set(x_45, 1, x_10); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_2); +lean_dec(x_1); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_5); +lean_ctor_set(x_46, 1, x_10); +return x_46; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts(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; uint8_t 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_7 = lean_unsigned_to_nat(0u); +x_8 = l_Lean_Expr_getAppNumArgsAux(x_1, x_7); +x_9 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; +lean_inc(x_8); +x_10 = lean_mk_array(x_8, x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_8, x_11); +lean_dec(x_8); +lean_inc(x_1); +x_13 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_10, x_12); +x_14 = lean_array_get_size(x_13); +x_15 = 0; +x_16 = lean_box(x_15); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_13); +lean_ctor_set(x_17, 1, x_16); +lean_inc(x_14); +x_18 = l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1(x_14, x_7, x_14, x_11, x_17, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_14); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +x_21 = lean_unbox(x_20); +lean_dec(x_20); +if (x_21 == 0) +{ +uint8_t x_22; +lean_dec(x_19); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_18, 0); +lean_dec(x_23); +lean_ctor_set(x_18, 0, x_1); +return x_18; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_dec(x_18); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_1); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +else +{ +uint8_t x_26; +x_26 = !lean_is_exclusive(x_18); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_18, 0); +lean_dec(x_27); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_1); +x_30 = l_Lean_mkAppN(x_29, x_28); +lean_ctor_set(x_18, 0, x_30); +return x_18; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_31 = lean_ctor_get(x_18, 1); +lean_inc(x_31); +lean_dec(x_18); +x_32 = lean_ctor_get(x_19, 0); +lean_inc(x_32); +lean_dec(x_19); +x_33 = l_Lean_Expr_getAppFn(x_1); +lean_dec(x_1); +x_34 = l_Lean_mkAppN(x_33, x_32); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_31); +return x_35; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Std_Range_forIn_loop___at_Lean_Meta_Simp_removeUnnecessaryCasts___spec__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_4); +lean_dec(x_3); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_removeUnnecessaryCasts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Meta_Simp_removeUnnecessaryCasts(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} static lean_object* _init_l_Lean_Meta_Simp_simp_simpLit___closed__1() { _start: { @@ -8665,36 +9147,39 @@ 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_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_27 = lean_ctor_get(x_17, 0); x_28 = lean_ctor_get(x_17, 1); +x_29 = lean_ctor_get(x_17, 2); +lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_dec(x_17); lean_inc(x_3); -x_29 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_cacheResult___spec__1(x_27, x_1, x_3); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = lean_st_ref_set(x_6, x_30, x_18); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_33 = x_31; +x_30 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_cacheResult___spec__1(x_27, x_1, x_3); +x_31 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +lean_ctor_set(x_31, 2, x_29); +x_32 = lean_st_ref_set(x_6, x_31, x_18); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_34 = x_32; } else { - lean_dec_ref(x_31); - x_33 = lean_box(0); + lean_dec_ref(x_32); + x_34 = lean_box(0); } -if (lean_is_scalar(x_33)) { - x_34 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_34)) { + x_35 = lean_alloc_ctor(0, 2, 0); } else { - x_34 = x_33; + x_35 = x_34; } -lean_ctor_set(x_34, 0, x_3); -lean_ctor_set(x_34, 1, x_32); -return x_34; +lean_ctor_set(x_35, 0, x_3); +lean_ctor_set(x_35, 1, x_33); +return x_35; } } } @@ -9196,423 +9681,448 @@ return x_66; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; x_67 = lean_ctor_get(x_58, 1); +x_68 = lean_ctor_get(x_58, 2); +lean_inc(x_68); lean_inc(x_67); lean_dec(x_58); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_39); -lean_ctor_set(x_68, 1, x_67); -x_69 = lean_st_ref_set(x_5, x_68, x_59); +x_69 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_69, 0, x_39); +lean_ctor_set(x_69, 1, x_67); +lean_ctor_set(x_69, 2, x_68); +x_70 = lean_st_ref_set(x_5, x_69, x_59); lean_dec(x_5); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_71 = x_69; +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_72 = x_70; } else { - lean_dec_ref(x_69); - x_71 = lean_box(0); + lean_dec_ref(x_70); + x_72 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(0, 2, 0); } else { - x_72 = x_71; + x_73 = x_72; } -lean_ctor_set(x_72, 0, x_53); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_73, 0, x_53); +lean_ctor_set(x_73, 1, x_71); +return x_73; } } else { -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; uint8_t x_80; -x_73 = lean_ctor_get(x_52, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_52, 1); +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_74 = lean_ctor_get(x_52, 0); lean_inc(x_74); +x_75 = lean_ctor_get(x_52, 1); +lean_inc(x_75); lean_dec(x_52); -x_75 = lean_st_ref_get(x_9, x_74); +x_76 = lean_st_ref_get(x_9, x_75); lean_dec(x_9); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = lean_st_ref_take(x_5, x_76); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = lean_st_ref_take(x_5, x_77); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec(x_77); -x_80 = !lean_is_exclusive(x_78); -if (x_80 == 0) -{ -lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_81 = lean_ctor_get(x_78, 0); -lean_dec(x_81); -lean_ctor_set(x_78, 0, x_39); -x_82 = lean_st_ref_set(x_5, x_78, x_79); -lean_dec(x_5); -x_83 = !lean_is_exclusive(x_82); -if (x_83 == 0) -{ -lean_object* x_84; -x_84 = lean_ctor_get(x_82, 0); -lean_dec(x_84); -lean_ctor_set_tag(x_82, 1); -lean_ctor_set(x_82, 0, x_73); -return x_82; -} -else -{ -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec(x_82); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_73); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_87 = lean_ctor_get(x_78, 1); -lean_inc(x_87); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); lean_dec(x_78); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_39); -lean_ctor_set(x_88, 1, x_87); -x_89 = lean_st_ref_set(x_5, x_88, x_79); +x_81 = !lean_is_exclusive(x_79); +if (x_81 == 0) +{ +lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_82 = lean_ctor_get(x_79, 0); +lean_dec(x_82); +lean_ctor_set(x_79, 0, x_39); +x_83 = lean_st_ref_set(x_5, x_79, x_80); lean_dec(x_5); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_91 = x_89; -} else { - lean_dec_ref(x_89); - x_91 = lean_box(0); +x_84 = !lean_is_exclusive(x_83); +if (x_84 == 0) +{ +lean_object* x_85; +x_85 = lean_ctor_get(x_83, 0); +lean_dec(x_85); +lean_ctor_set_tag(x_83, 1); +lean_ctor_set(x_83, 0, x_74); +return x_83; } -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); -} else { - x_92 = x_91; - lean_ctor_set_tag(x_92, 1); +else +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +lean_dec(x_83); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_74); +lean_ctor_set(x_87, 1, x_86); +return x_87; } -lean_ctor_set(x_92, 0, x_73); -lean_ctor_set(x_92, 1, x_90); -return x_92; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_88 = lean_ctor_get(x_79, 1); +x_89 = lean_ctor_get(x_79, 2); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_79); +x_90 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_90, 0, x_39); +lean_ctor_set(x_90, 1, x_88); +lean_ctor_set(x_90, 2, x_89); +x_91 = lean_st_ref_set(x_5, x_90, x_80); +lean_dec(x_5); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; +} else { + lean_dec_ref(x_91); + x_93 = lean_box(0); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); +} else { + x_94 = x_93; + lean_ctor_set_tag(x_94, 1); +} +lean_ctor_set(x_94, 0, x_74); +lean_ctor_set(x_94, 1, x_92); +return x_94; } } } 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; -x_93 = lean_ctor_get(x_4, 0); -x_94 = lean_ctor_get(x_4, 2); -x_95 = lean_ctor_get(x_4, 3); -x_96 = lean_ctor_get(x_4, 4); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_95 = lean_ctor_get(x_4, 0); +x_96 = lean_ctor_get(x_4, 2); +x_97 = lean_ctor_get(x_4, 3); +x_98 = lean_ctor_get(x_4, 4); +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_4); -x_97 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_97, 0, x_93); -lean_ctor_set(x_97, 1, x_33); -lean_ctor_set(x_97, 2, x_94); -lean_ctor_set(x_97, 3, x_95); -lean_ctor_set(x_97, 4, x_96); +x_99 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_99, 0, x_95); +lean_ctor_set(x_99, 1, x_33); +lean_ctor_set(x_99, 2, x_96); +lean_ctor_set(x_99, 3, x_97); +lean_ctor_set(x_99, 4, x_98); lean_inc(x_9); lean_inc(x_5); -x_98 = lean_apply_8(x_2, x_3, x_97, x_5, x_6, x_7, x_8, x_9, x_49); -if (lean_obj_tag(x_98) == 0) +x_100 = lean_apply_8(x_2, x_3, x_99, x_5, x_6, x_7, x_8, x_9, x_49); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_st_ref_get(x_9, x_100); -lean_dec(x_9); -x_102 = lean_ctor_get(x_101, 1); +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_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); lean_inc(x_102); -lean_dec(x_101); -x_103 = lean_st_ref_take(x_5, x_102); -x_104 = lean_ctor_get(x_103, 0); +lean_dec(x_100); +x_103 = lean_st_ref_get(x_9, x_102); +lean_dec(x_9); +x_104 = lean_ctor_get(x_103, 1); lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); lean_dec(x_103); -x_106 = lean_ctor_get(x_104, 1); +x_105 = lean_st_ref_take(x_5, x_104); +x_106 = lean_ctor_get(x_105, 0); lean_inc(x_106); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_107 = x_104; +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +x_109 = lean_ctor_get(x_106, 2); +lean_inc(x_109); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + lean_ctor_release(x_106, 2); + x_110 = x_106; } else { - lean_dec_ref(x_104); - x_107 = lean_box(0); + lean_dec_ref(x_106); + x_110 = lean_box(0); } -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(0, 3, 0); } else { - x_108 = x_107; + x_111 = x_110; } -lean_ctor_set(x_108, 0, x_39); -lean_ctor_set(x_108, 1, x_106); -x_109 = lean_st_ref_set(x_5, x_108, x_105); +lean_ctor_set(x_111, 0, x_39); +lean_ctor_set(x_111, 1, x_108); +lean_ctor_set(x_111, 2, x_109); +x_112 = lean_st_ref_set(x_5, x_111, x_107); lean_dec(x_5); -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_111 = x_109; +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_114 = x_112; } else { - lean_dec_ref(x_109); - x_111 = lean_box(0); + lean_dec_ref(x_112); + x_114 = lean_box(0); } -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(0, 2, 0); } else { - x_112 = x_111; + x_115 = x_114; } -lean_ctor_set(x_112, 0, x_99); -lean_ctor_set(x_112, 1, x_110); -return x_112; +lean_ctor_set(x_115, 0, x_101); +lean_ctor_set(x_115, 1, x_113); +return x_115; } else { -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; -x_113 = lean_ctor_get(x_98, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_98, 1); -lean_inc(x_114); -lean_dec(x_98); -x_115 = lean_st_ref_get(x_9, x_114); -lean_dec(x_9); -x_116 = lean_ctor_get(x_115, 1); +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; +x_116 = lean_ctor_get(x_100, 0); lean_inc(x_116); -lean_dec(x_115); -x_117 = lean_st_ref_take(x_5, x_116); -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); +x_117 = lean_ctor_get(x_100, 1); +lean_inc(x_117); +lean_dec(x_100); +x_118 = lean_st_ref_get(x_9, x_117); +lean_dec(x_9); +x_119 = lean_ctor_get(x_118, 1); lean_inc(x_119); -lean_dec(x_117); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_121 = x_118; -} else { - lean_dec_ref(x_118); - x_121 = lean_box(0); -} -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(0, 2, 0); -} else { - x_122 = x_121; -} -lean_ctor_set(x_122, 0, x_39); -lean_ctor_set(x_122, 1, x_120); -x_123 = lean_st_ref_set(x_5, x_122, x_119); -lean_dec(x_5); -x_124 = lean_ctor_get(x_123, 1); +lean_dec(x_118); +x_120 = lean_st_ref_take(x_5, x_119); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +x_124 = lean_ctor_get(x_121, 2); lean_inc(x_124); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_125 = x_123; +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + lean_ctor_release(x_121, 2); + x_125 = x_121; } else { - lean_dec_ref(x_123); + lean_dec_ref(x_121); x_125 = lean_box(0); } if (lean_is_scalar(x_125)) { - x_126 = lean_alloc_ctor(1, 2, 0); + x_126 = lean_alloc_ctor(0, 3, 0); } else { x_126 = x_125; - lean_ctor_set_tag(x_126, 1); } -lean_ctor_set(x_126, 0, x_113); -lean_ctor_set(x_126, 1, x_124); -return x_126; +lean_ctor_set(x_126, 0, x_39); +lean_ctor_set(x_126, 1, x_123); +lean_ctor_set(x_126, 2, x_124); +x_127 = lean_st_ref_set(x_5, x_126, x_122); +lean_dec(x_5); +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_129 = x_127; +} else { + lean_dec_ref(x_127); + x_129 = lean_box(0); +} +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_129; + lean_ctor_set_tag(x_130, 1); +} +lean_ctor_set(x_130, 0, x_116); +lean_ctor_set(x_130, 1, x_128); +return x_130; } } } else { -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_127 = lean_ctor_get(x_43, 1); -lean_inc(x_127); -lean_dec(x_43); -x_128 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; -x_129 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_127); -x_130 = lean_st_ref_set(x_5, x_129, x_44); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -lean_dec(x_130); -x_132 = lean_ctor_get(x_4, 0); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_131 = lean_ctor_get(x_43, 1); +x_132 = lean_ctor_get(x_43, 2); lean_inc(x_132); -x_133 = lean_ctor_get(x_4, 2); -lean_inc(x_133); -x_134 = lean_ctor_get(x_4, 3); -lean_inc(x_134); -x_135 = lean_ctor_get(x_4, 4); -lean_inc(x_135); +lean_inc(x_131); +lean_dec(x_43); +x_133 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +x_134 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_131); +lean_ctor_set(x_134, 2, x_132); +x_135 = lean_st_ref_set(x_5, x_134, x_44); +x_136 = lean_ctor_get(x_135, 1); +lean_inc(x_136); +lean_dec(x_135); +x_137 = lean_ctor_get(x_4, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_4, 2); +lean_inc(x_138); +x_139 = lean_ctor_get(x_4, 3); +lean_inc(x_139); +x_140 = lean_ctor_get(x_4, 4); +lean_inc(x_140); 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); - x_136 = x_4; + x_141 = x_4; } else { lean_dec_ref(x_4); - x_136 = lean_box(0); + x_141 = lean_box(0); } -if (lean_is_scalar(x_136)) { - x_137 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(0, 5, 0); } else { - x_137 = x_136; + x_142 = x_141; } -lean_ctor_set(x_137, 0, x_132); -lean_ctor_set(x_137, 1, x_33); -lean_ctor_set(x_137, 2, x_133); -lean_ctor_set(x_137, 3, x_134); -lean_ctor_set(x_137, 4, x_135); +lean_ctor_set(x_142, 0, x_137); +lean_ctor_set(x_142, 1, x_33); +lean_ctor_set(x_142, 2, x_138); +lean_ctor_set(x_142, 3, x_139); +lean_ctor_set(x_142, 4, x_140); lean_inc(x_9); lean_inc(x_5); -x_138 = lean_apply_8(x_2, x_3, x_137, x_5, x_6, x_7, x_8, x_9, x_131); -if (lean_obj_tag(x_138) == 0) +x_143 = lean_apply_8(x_2, x_3, x_142, x_5, x_6, x_7, x_8, x_9, x_136); +if (lean_obj_tag(x_143) == 0) { -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; -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_st_ref_get(x_9, x_140); -lean_dec(x_9); -x_142 = lean_ctor_get(x_141, 1); -lean_inc(x_142); -lean_dec(x_141); -x_143 = lean_st_ref_take(x_5, x_142); +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; x_144 = lean_ctor_get(x_143, 0); lean_inc(x_144); x_145 = lean_ctor_get(x_143, 1); lean_inc(x_145); lean_dec(x_143); -x_146 = lean_ctor_get(x_144, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_147 = x_144; -} else { - lean_dec_ref(x_144); - x_147 = lean_box(0); -} -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_147; -} -lean_ctor_set(x_148, 0, x_39); -lean_ctor_set(x_148, 1, x_146); -x_149 = lean_st_ref_set(x_5, x_148, x_145); -lean_dec(x_5); -x_150 = lean_ctor_get(x_149, 1); +x_146 = lean_st_ref_get(x_9, x_145); +lean_dec(x_9); +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +lean_dec(x_146); +x_148 = lean_st_ref_take(x_5, x_147); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); lean_inc(x_150); +lean_dec(x_148); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +x_152 = lean_ctor_get(x_149, 2); +lean_inc(x_152); if (lean_is_exclusive(x_149)) { lean_ctor_release(x_149, 0); lean_ctor_release(x_149, 1); - x_151 = x_149; + lean_ctor_release(x_149, 2); + x_153 = x_149; } else { lean_dec_ref(x_149); - x_151 = lean_box(0); + x_153 = lean_box(0); } -if (lean_is_scalar(x_151)) { - x_152 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_153)) { + x_154 = lean_alloc_ctor(0, 3, 0); } else { - x_152 = x_151; + x_154 = x_153; } -lean_ctor_set(x_152, 0, x_139); -lean_ctor_set(x_152, 1, x_150); -return x_152; -} -else -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_153 = lean_ctor_get(x_138, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_138, 1); -lean_inc(x_154); -lean_dec(x_138); -x_155 = lean_st_ref_get(x_9, x_154); -lean_dec(x_9); +lean_ctor_set(x_154, 0, x_39); +lean_ctor_set(x_154, 1, x_151); +lean_ctor_set(x_154, 2, x_152); +x_155 = lean_st_ref_set(x_5, x_154, x_150); +lean_dec(x_5); x_156 = lean_ctor_get(x_155, 1); lean_inc(x_156); -lean_dec(x_155); -x_157 = lean_st_ref_take(x_5, x_156); -x_158 = lean_ctor_get(x_157, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_157, 1); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_157 = x_155; +} else { + lean_dec_ref(x_155); + x_157 = lean_box(0); +} +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(0, 2, 0); +} else { + x_158 = x_157; +} +lean_ctor_set(x_158, 0, x_144); +lean_ctor_set(x_158, 1, x_156); +return x_158; +} +else +{ +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; +x_159 = lean_ctor_get(x_143, 0); lean_inc(x_159); -lean_dec(x_157); -x_160 = lean_ctor_get(x_158, 1); +x_160 = lean_ctor_get(x_143, 1); lean_inc(x_160); -if (lean_is_exclusive(x_158)) { - lean_ctor_release(x_158, 0); - lean_ctor_release(x_158, 1); - x_161 = x_158; -} else { - lean_dec_ref(x_158); - x_161 = lean_box(0); -} -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(0, 2, 0); -} else { - x_162 = x_161; -} -lean_ctor_set(x_162, 0, x_39); -lean_ctor_set(x_162, 1, x_160); -x_163 = lean_st_ref_set(x_5, x_162, x_159); -lean_dec(x_5); -x_164 = lean_ctor_get(x_163, 1); +lean_dec(x_143); +x_161 = lean_st_ref_get(x_9, x_160); +lean_dec(x_9); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +x_163 = lean_st_ref_take(x_5, x_162); +x_164 = lean_ctor_get(x_163, 0); lean_inc(x_164); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_165 = x_163; +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +lean_dec(x_163); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +x_167 = lean_ctor_get(x_164, 2); +lean_inc(x_167); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + lean_ctor_release(x_164, 2); + x_168 = x_164; } else { - lean_dec_ref(x_163); - x_165 = lean_box(0); + lean_dec_ref(x_164); + x_168 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(0, 3, 0); } else { - x_166 = x_165; - lean_ctor_set_tag(x_166, 1); + x_169 = x_168; } -lean_ctor_set(x_166, 0, x_153); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_169, 0, x_39); +lean_ctor_set(x_169, 1, x_166); +lean_ctor_set(x_169, 2, x_167); +x_170 = lean_st_ref_set(x_5, x_169, x_165); +lean_dec(x_5); +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_172 = x_170; +} else { + lean_dec_ref(x_170); + x_172 = lean_box(0); +} +if (lean_is_scalar(x_172)) { + x_173 = lean_alloc_ctor(1, 2, 0); +} else { + x_173 = x_172; + lean_ctor_set_tag(x_173, 1); +} +lean_ctor_set(x_173, 0, x_159); +lean_ctor_set(x_173, 1, x_171); +return x_173; } } } } else { -uint8_t x_167; +uint8_t x_174; lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -9621,23 +10131,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_167 = !lean_is_exclusive(x_26); -if (x_167 == 0) +x_174 = !lean_is_exclusive(x_26); +if (x_174 == 0) { return x_26; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_26, 0); -x_169 = lean_ctor_get(x_26, 1); -lean_inc(x_169); -lean_inc(x_168); +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_26, 0); +x_176 = lean_ctor_get(x_26, 1); +lean_inc(x_176); +lean_inc(x_175); lean_dec(x_26); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_169); -return x_170; +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; } } } @@ -9676,6 +10186,1052 @@ lean_dec(x_1); return x_11; } } +LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; +x_3 = lean_box(0); +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 1); +x_6 = lean_ctor_get(x_2, 2); +x_7 = lean_expr_eqv(x_4, x_1); +if (x_7 == 0) +{ +x_2 = x_6; +goto _start; +} +else +{ +lean_object* x_9; +lean_inc(x_5); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_5); +return x_9; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint64_t x_5; size_t x_6; size_t x_7; lean_object* x_8; lean_object* x_9; +x_3 = lean_ctor_get(x_1, 1); +lean_inc(x_3); +lean_dec(x_1); +x_4 = lean_array_get_size(x_3); +x_5 = l_Lean_Expr_hash(x_2); +x_6 = lean_uint64_to_usize(x_5); +x_7 = lean_usize_modn(x_6, x_4); +lean_dec(x_4); +x_8 = lean_array_uget(x_3, x_7); +lean_dec(x_3); +x_9 = l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__2(x_2, x_8); +lean_dec(x_8); +lean_dec(x_2); +return x_9; +} +} +LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_expr_eqv(x_4, x_1); +if (x_6 == 0) +{ +x_2 = x_5; +goto _start; +} +else +{ +uint8_t x_8; +x_8 = 1; +return x_8; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__7(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_2); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; +x_4 = lean_ctor_get(x_2, 0); +x_5 = lean_ctor_get(x_2, 2); +x_6 = lean_array_get_size(x_1); +x_7 = l_Lean_Expr_hash(x_4); +x_8 = lean_uint64_to_usize(x_7); +x_9 = lean_usize_modn(x_8, x_6); +lean_dec(x_6); +x_10 = lean_array_uget(x_1, x_9); +lean_ctor_set(x_2, 2, x_10); +x_11 = lean_array_uset(x_1, x_9, x_2); +x_1 = x_11; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint64_t x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_13 = lean_ctor_get(x_2, 0); +x_14 = lean_ctor_get(x_2, 1); +x_15 = lean_ctor_get(x_2, 2); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_2); +x_16 = lean_array_get_size(x_1); +x_17 = l_Lean_Expr_hash(x_13); +x_18 = lean_uint64_to_usize(x_17); +x_19 = lean_usize_modn(x_18, x_16); +lean_dec(x_16); +x_20 = lean_array_uget(x_1, x_19); +x_21 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_21, 0, x_13); +lean_ctor_set(x_21, 1, x_14); +lean_ctor_set(x_21, 2, x_20); +x_22 = lean_array_uset(x_1, x_19, x_21); +x_1 = x_22; +x_2 = x_15; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_2); +x_5 = lean_nat_dec_lt(x_1, x_4); +lean_dec(x_4); +if (x_5 == 0) +{ +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_box(0); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = l_Std_AssocList_foldlM___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__7(x_3, x_6); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_1, x_10); +lean_dec(x_1); +x_1 = x_11; +x_2 = x_8; +x_3 = x_9; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__5(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; +x_3 = lean_array_get_size(x_2); +x_4 = lean_unsigned_to_nat(2u); +x_5 = lean_nat_mul(x_3, x_4); +lean_dec(x_3); +x_6 = lean_box(0); +x_7 = lean_mk_array(x_5, x_6); +x_8 = lean_unsigned_to_nat(0u); +x_9 = l_Std_HashMapImp_moveEntries___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__6(x_8, x_2, x_7); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(0); +return x_4; +} +else +{ +uint8_t x_5; +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_ctor_get(x_3, 1); +x_8 = lean_ctor_get(x_3, 2); +x_9 = lean_expr_eqv(x_6, x_1); +if (x_9 == 0) +{ +lean_object* x_10; +x_10 = l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__8(x_1, x_2, x_8); +lean_ctor_set(x_3, 2, x_10); +return x_3; +} +else +{ +lean_dec(x_7); +lean_dec(x_6); +lean_ctor_set(x_3, 1, x_2); +lean_ctor_set(x_3, 0, x_1); +return x_3; +} +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_11 = lean_ctor_get(x_3, 0); +x_12 = lean_ctor_get(x_3, 1); +x_13 = lean_ctor_get(x_3, 2); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_3); +x_14 = lean_expr_eqv(x_11, x_1); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__8(x_1, x_2, x_13); +x_16 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_12); +lean_ctor_set(x_16, 2, x_15); +return x_16; +} +else +{ +lean_object* x_17; +lean_dec(x_12); +lean_dec(x_11); +x_17 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_17, 0, x_1); +lean_ctor_set(x_17, 1, x_2); +lean_ctor_set(x_17, 2, x_13); +return x_17; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; size_t x_9; size_t x_10; lean_object* x_11; uint8_t x_12; +x_5 = lean_ctor_get(x_1, 0); +x_6 = lean_ctor_get(x_1, 1); +x_7 = lean_array_get_size(x_6); +x_8 = l_Lean_Expr_hash(x_2); +x_9 = lean_uint64_to_usize(x_8); +x_10 = lean_usize_modn(x_9, x_7); +x_11 = lean_array_uget(x_6, x_10); +x_12 = l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4(x_2, x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_unsigned_to_nat(1u); +x_14 = lean_nat_add(x_5, x_13); +lean_dec(x_5); +x_15 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_15, 0, x_2); +lean_ctor_set(x_15, 1, x_3); +lean_ctor_set(x_15, 2, x_11); +x_16 = lean_array_uset(x_6, x_10, x_15); +x_17 = l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(x_14); +x_18 = lean_nat_dec_le(x_17, x_7); +lean_dec(x_7); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; +lean_free_object(x_1); +x_19 = l_Std_HashMapImp_expand___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__5(x_14, x_16); +return x_19; +} +else +{ +lean_ctor_set(x_1, 1, x_16); +lean_ctor_set(x_1, 0, x_14); +return x_1; +} +} +else +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_7); +x_20 = l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__8(x_2, x_3, x_11); +x_21 = lean_array_uset(x_6, x_10, x_20); +lean_ctor_set(x_1, 1, x_21); +return x_1; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; uint64_t x_25; size_t x_26; size_t x_27; lean_object* x_28; uint8_t x_29; +x_22 = lean_ctor_get(x_1, 0); +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_1); +x_24 = lean_array_get_size(x_23); +x_25 = l_Lean_Expr_hash(x_2); +x_26 = lean_uint64_to_usize(x_25); +x_27 = lean_usize_modn(x_26, x_24); +x_28 = lean_array_uget(x_23, x_27); +x_29 = l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4(x_2, x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_22, x_30); +lean_dec(x_22); +x_32 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_32, 0, x_2); +lean_ctor_set(x_32, 1, x_3); +lean_ctor_set(x_32, 2, x_28); +x_33 = lean_array_uset(x_23, x_27, x_32); +x_34 = l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(x_31); +x_35 = lean_nat_dec_le(x_34, x_24); +lean_dec(x_24); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = l_Std_HashMapImp_expand___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__5(x_31, x_33); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_31); +lean_ctor_set(x_37, 1, x_33); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +lean_dec(x_24); +x_38 = l_Std_AssocList_replace___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__8(x_2, x_3, x_28); +x_39 = lean_array_uset(x_23, x_27, x_38); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_22); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9(lean_object* x_1, size_t x_2, size_t x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_usize_dec_eq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; lean_object* x_7; +x_5 = lean_array_uget(x_1, x_2); +x_6 = lean_unbox(x_5); +lean_dec(x_5); +x_7 = lean_box(x_6); +switch (lean_obj_tag(x_7)) { +case 0: +{ +size_t x_8; size_t x_9; +x_8 = 1; +x_9 = lean_usize_add(x_2, x_8); +x_2 = x_9; +goto _start; +} +case 2: +{ +size_t x_11; size_t x_12; +x_11 = 1; +x_12 = lean_usize_add(x_2, x_11); +x_2 = x_12; +goto _start; +} +default: +{ +uint8_t x_14; +lean_dec(x_7); +x_14 = 1; +return x_14; +} +} +} +else +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_10; uint8_t x_11; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_is_matcher(x_13, x_1); +x_15 = lean_box(x_14); +lean_ctor_set(x_10, 0, x_15); +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_is_matcher(x_18, x_1); +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_17); +return x_21; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_st_ref_get(x_11, x_12); +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_st_ref_get(x_7, x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_15, 0); +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_1); +x_20 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__1(x_19, x_1); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_free_object(x_15); +lean_inc(x_11); +lean_inc(x_1); +x_21 = l_Lean_Meta_mkCongrSimpCore_x3f(x_1, x_2, x_3, x_8, x_9, x_10, x_11, x_18); +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_st_ref_get(x_11, x_23); +lean_dec(x_11); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = lean_st_ref_take(x_7, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_22); +x_31 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(x_30, x_1, x_22); +lean_ctor_set(x_27, 1, x_31); +x_32 = lean_st_ref_set(x_7, x_27, x_28); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set(x_32, 0, x_22); +return x_32; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_22); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_37 = lean_ctor_get(x_27, 0); +x_38 = lean_ctor_get(x_27, 1); +x_39 = lean_ctor_get(x_27, 2); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_27); +lean_inc(x_22); +x_40 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(x_38, x_1, x_22); +x_41 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_41, 0, x_37); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_39); +x_42 = lean_st_ref_set(x_7, x_41, x_28); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_44 = x_42; +} else { + lean_dec_ref(x_42); + x_44 = lean_box(0); +} +if (lean_is_scalar(x_44)) { + x_45 = lean_alloc_ctor(0, 2, 0); +} else { + x_45 = x_44; +} +lean_ctor_set(x_45, 0, x_22); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +} +else +{ +lean_object* x_46; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_46 = lean_ctor_get(x_20, 0); +lean_inc(x_46); +lean_dec(x_20); +lean_ctor_set(x_15, 0, x_46); +return x_15; +} +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_15, 0); +x_48 = lean_ctor_get(x_15, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_15); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec(x_47); +lean_inc(x_1); +x_50 = l_Std_HashMapImp_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__1(x_49, x_1); +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 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_inc(x_11); +lean_inc(x_1); +x_51 = l_Lean_Meta_mkCongrSimpCore_x3f(x_1, x_2, x_3, x_8, x_9, x_10, x_11, x_48); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = lean_st_ref_get(x_11, x_53); +lean_dec(x_11); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_st_ref_take(x_7, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec(x_56); +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 2); +lean_inc(x_61); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + lean_ctor_release(x_57, 2); + x_62 = x_57; +} else { + lean_dec_ref(x_57); + x_62 = lean_box(0); +} +lean_inc(x_52); +x_63 = l_Std_HashMap_insert___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__3(x_60, x_1, x_52); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 3, 0); +} else { + x_64 = x_62; +} +lean_ctor_set(x_64, 0, x_59); +lean_ctor_set(x_64, 1, x_63); +lean_ctor_set(x_64, 2, x_61); +x_65 = lean_st_ref_set(x_7, x_64, x_58); +x_66 = lean_ctor_get(x_65, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + lean_ctor_release(x_65, 1); + x_67 = x_65; +} else { + lean_dec_ref(x_65); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_52); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_69 = lean_ctor_get(x_50, 0); +lean_inc(x_69); +lean_dec(x_50); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_48); +return x_70; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_dec(x_2); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_11 = l_Lean_Meta_getFunInfo(x_1, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +x_15 = l_Lean_Meta_getCongrSimpKinds(x_13); +x_16 = lean_array_get_size(x_15); +x_17 = lean_unsigned_to_nat(0u); +x_18 = lean_nat_dec_lt(x_17, x_16); +if (x_18 == 0) +{ +lean_object* x_19; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_19 = lean_box(0); +lean_ctor_set(x_11, 0, x_19); +return x_11; +} +else +{ +uint8_t x_20; +x_20 = lean_nat_dec_le(x_16, x_16); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_21 = lean_box(0); +lean_ctor_set(x_11, 0, x_21); +return x_11; +} +else +{ +size_t x_22; size_t x_23; uint8_t x_24; +x_22 = 0; +x_23 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_24 = l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9(x_15, x_22, x_23); +if (x_24 == 0) +{ +lean_object* x_25; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_25 = lean_box(0); +lean_ctor_set(x_11, 0, x_25); +return x_11; +} +else +{ +lean_object* x_26; lean_object* x_27; +lean_free_object(x_11); +x_26 = lean_box(0); +x_27 = l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__1(x_1, x_13, x_15, x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_27; +} +} +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_28 = lean_ctor_get(x_11, 0); +x_29 = lean_ctor_get(x_11, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_11); +lean_inc(x_28); +x_30 = l_Lean_Meta_getCongrSimpKinds(x_28); +x_31 = lean_array_get_size(x_30); +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_30); +lean_dec(x_28); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_34 = lean_box(0); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_29); +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_30); +lean_dec(x_28); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_29); +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_Meta_Simp_simp_mkCongrSimp_x3f___spec__9(x_30, x_39, x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_29); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_box(0); +x_45 = l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__1(x_1, x_28, x_30, x_44, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_29); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_45; +} +} +} +} +} +else +{ +uint8_t x_46; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_46 = !lean_is_exclusive(x_11); +if (x_46 == 0) +{ +return x_11; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_11, 0); +x_48 = lean_ctor_get(x_11, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_11); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; +x_10 = l_Lean_Expr_isConst(x_1); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__2(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = l_Lean_Expr_constName_x21(x_1); +x_14 = l_Lean_Meta_isMatcher___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__10(x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unbox(x_15); +lean_dec(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_box(0); +x_19 = l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___lambda__2(x_1, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_17); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_14); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_14, 0); +lean_dec(x_21); +x_22 = lean_box(0); +lean_ctor_set(x_14, 0, x_22); +return x_14; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_14, 1); +lean_inc(x_23); +lean_dec(x_14); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Std_AssocList_find_x3f___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Std_AssocList_contains___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__4(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; +x_4 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_5 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_6 = l_Array_anyMUnsafe_any___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___spec__9(x_1, x_4, x_5); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_isMatcher___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_Lean_Meta_isMatcher___at_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_EXPORT lean_object* l_Lean_Meta_Simp_simp_mkCongrSimp_x3f___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_Meta_Simp_simp_mkCongrSimp_x3f___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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_13; +} +} LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Simp_simp_simpLoop___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -9753,7 +11309,7 @@ lean_inc(x_18); lean_dec(x_16); x_19 = lean_ctor_get(x_12, 0); lean_inc(x_19); -x_20 = lean_ctor_get(x_17, 1); +x_20 = lean_ctor_get(x_17, 2); lean_inc(x_20); lean_dec(x_17); x_21 = lean_nat_dec_lt(x_19, x_20); @@ -9778,11 +11334,11 @@ x_28 = !lean_is_exclusive(x_26); 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; -x_29 = lean_ctor_get(x_26, 1); +x_29 = lean_ctor_get(x_26, 2); x_30 = lean_unsigned_to_nat(1u); x_31 = lean_nat_add(x_29, x_30); lean_dec(x_29); -lean_ctor_set(x_26, 1, x_31); +lean_ctor_set(x_26, 2, x_31); x_32 = lean_st_ref_set(x_5, x_26, x_27); x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); @@ -10280,22 +11836,25 @@ return x_107; } else { -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_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; x_108 = lean_ctor_get(x_26, 0); x_109 = lean_ctor_get(x_26, 1); +x_110 = lean_ctor_get(x_26, 2); +lean_inc(x_110); lean_inc(x_109); lean_inc(x_108); lean_dec(x_26); -x_110 = lean_unsigned_to_nat(1u); -x_111 = lean_nat_add(x_109, x_110); -lean_dec(x_109); -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_108); -lean_ctor_set(x_112, 1, x_111); -x_113 = lean_st_ref_set(x_5, x_112, x_27); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec(x_113); +x_111 = lean_unsigned_to_nat(1u); +x_112 = lean_nat_add(x_110, x_111); +lean_dec(x_110); +x_113 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_113, 0, x_108); +lean_ctor_set(x_113, 1, x_109); +lean_ctor_set(x_113, 2, x_112); +x_114 = lean_st_ref_set(x_5, x_113, x_27); +x_115 = lean_ctor_get(x_114, 1); +lean_inc(x_115); +lean_dec(x_114); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -10304,36 +11863,36 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_22); -x_115 = l_Lean_Meta_Simp_pre(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_114); -if (lean_obj_tag(x_115) == 0) -{ -lean_object* x_116; -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); +x_116 = l_Lean_Meta_Simp_pre(x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_115); if (lean_obj_tag(x_116) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_115, 1); +lean_object* x_117; +x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); -lean_dec(x_115); -x_118 = lean_ctor_get(x_116, 0); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_116, 1); lean_inc(x_118); lean_dec(x_116); +x_119 = lean_ctor_get(x_117, 0); +lean_inc(x_119); +lean_dec(x_117); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_119 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_2, x_118, x_6, x_7, x_8, x_9, x_117); -if (lean_obj_tag(x_119) == 0) +x_120 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_2, x_119, x_6, x_7, x_8, x_9, x_118); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -lean_dec(x_119); -x_122 = lean_ctor_get(x_120, 0); +x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); +lean_dec(x_120); +x_123 = lean_ctor_get(x_121, 0); +lean_inc(x_123); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -10341,30 +11900,30 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_123 = l_Lean_Meta_Simp_simp_simpStep(x_122, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_121); -if (lean_obj_tag(x_123) == 0) +x_124 = l_Lean_Meta_Simp_simp_simpStep(x_123, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_122); +if (lean_obj_tag(x_124) == 0) { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_124, 0); lean_inc(x_125); -lean_dec(x_123); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +lean_dec(x_124); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_126 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_120, x_124, x_6, x_7, x_8, x_9, x_125); -if (lean_obj_tag(x_126) == 0) +x_127 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_121, x_125, x_6, x_7, x_8, x_9, x_126); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -lean_dec(x_126); -x_129 = lean_ctor_get(x_127, 0); +x_129 = lean_ctor_get(x_127, 1); lean_inc(x_129); +lean_dec(x_127); +x_130 = lean_ctor_get(x_128, 0); +lean_inc(x_130); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -10372,54 +11931,54 @@ lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_130 = l_Lean_Meta_Simp_post(x_129, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_128); -if (lean_obj_tag(x_130) == 0) -{ -lean_object* x_131; -x_131 = lean_ctor_get(x_130, 0); -lean_inc(x_131); +x_131 = l_Lean_Meta_Simp_post(x_130, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_129); if (lean_obj_tag(x_131) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_130, 1); +lean_object* x_132; +x_132 = lean_ctor_get(x_131, 0); lean_inc(x_132); -lean_dec(x_130); -x_133 = lean_ctor_get(x_131, 0); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_131, 1); lean_inc(x_133); lean_dec(x_131); +x_134 = lean_ctor_get(x_132, 0); +lean_inc(x_134); +lean_dec(x_132); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_134 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_127, x_133, x_6, x_7, x_8, x_9, x_132); -if (lean_obj_tag(x_134) == 0) +x_135 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_128, x_134, x_6, x_7, x_8, x_9, x_133); +if (lean_obj_tag(x_135) == 0) { -uint8_t x_135; -x_135 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 2); -if (x_135 == 0) +uint8_t x_136; +x_136 = lean_ctor_get_uint8(x_12, sizeof(void*)*2 + 2); +if (x_136 == 0) { -lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_136 = lean_ctor_get(x_134, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_134, 1); +lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_137 = lean_ctor_get(x_135, 0); lean_inc(x_137); -lean_dec(x_134); -x_138 = lean_ctor_get(x_136, 0); +x_138 = lean_ctor_get(x_135, 1); lean_inc(x_138); -x_139 = lean_expr_eqv(x_22, x_138); -lean_dec(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_137, 0); +lean_inc(x_139); +x_140 = lean_expr_eqv(x_22, x_139); +lean_dec(x_139); lean_dec(x_22); -if (x_139 == 0) +if (x_140 == 0) { lean_dec(x_12); -x_2 = x_136; -x_10 = x_137; +x_2 = x_137; +x_10 = x_138; goto _start; } else { -lean_object* x_141; -x_141 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_136, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_137); +lean_object* x_142; +x_142 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_137, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_138); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10428,19 +11987,19 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_141; +return x_142; } } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_dec(x_22); -x_142 = lean_ctor_get(x_134, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_134, 1); +x_143 = lean_ctor_get(x_135, 0); lean_inc(x_143); -lean_dec(x_134); -x_144 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_142, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_143); +x_144 = lean_ctor_get(x_135, 1); +lean_inc(x_144); +lean_dec(x_135); +x_145 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_143, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_144); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10449,12 +12008,12 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_144; +return x_145; } } else { -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -10465,52 +12024,52 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_145 = lean_ctor_get(x_134, 0); -lean_inc(x_145); -x_146 = lean_ctor_get(x_134, 1); +x_146 = lean_ctor_get(x_135, 0); lean_inc(x_146); -if (lean_is_exclusive(x_134)) { - lean_ctor_release(x_134, 0); - lean_ctor_release(x_134, 1); - x_147 = x_134; +x_147 = lean_ctor_get(x_135, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_135)) { + lean_ctor_release(x_135, 0); + lean_ctor_release(x_135, 1); + x_148 = x_135; } else { - lean_dec_ref(x_134); - x_147 = lean_box(0); + lean_dec_ref(x_135); + x_148 = lean_box(0); } -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(1, 2, 0); } else { - x_148 = x_147; + x_149 = x_148; } -lean_ctor_set(x_148, 0, x_145); -lean_ctor_set(x_148, 1, x_146); -return x_148; +lean_ctor_set(x_149, 0, x_146); +lean_ctor_set(x_149, 1, x_147); +return x_149; } } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_dec(x_22); -x_149 = lean_ctor_get(x_130, 1); -lean_inc(x_149); -lean_dec(x_130); -x_150 = lean_ctor_get(x_131, 0); +x_150 = lean_ctor_get(x_131, 1); lean_inc(x_150); lean_dec(x_131); +x_151 = lean_ctor_get(x_132, 0); +lean_inc(x_151); +lean_dec(x_132); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_151 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_127, x_150, x_6, x_7, x_8, x_9, x_149); -if (lean_obj_tag(x_151) == 0) +x_152 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_128, x_151, x_6, x_7, x_8, x_9, x_150); +if (lean_obj_tag(x_152) == 0) { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); +lean_object* x_153; lean_object* x_154; lean_object* x_155; +x_153 = lean_ctor_get(x_152, 0); lean_inc(x_153); -lean_dec(x_151); -x_154 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_152, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_153); +x_154 = lean_ctor_get(x_152, 1); +lean_inc(x_154); +lean_dec(x_152); +x_155 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_153, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_154); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10519,11 +12078,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_154; +return x_155; } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -10533,33 +12092,33 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_155 = lean_ctor_get(x_151, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_151, 1); +x_156 = lean_ctor_get(x_152, 0); lean_inc(x_156); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_157 = x_151; +x_157 = lean_ctor_get(x_152, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_158 = x_152; } else { - lean_dec_ref(x_151); - x_157 = lean_box(0); + lean_dec_ref(x_152); + x_158 = lean_box(0); } -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); } else { - x_158 = x_157; + x_159 = x_158; } -lean_ctor_set(x_158, 0, x_155); -lean_ctor_set(x_158, 1, x_156); -return x_158; +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; } } } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_127); +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_128); lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -10570,31 +12129,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_159 = lean_ctor_get(x_130, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_130, 1); +x_160 = lean_ctor_get(x_131, 0); lean_inc(x_160); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_161 = x_130; +x_161 = lean_ctor_get(x_131, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_162 = x_131; } else { - lean_dec_ref(x_130); - x_161 = lean_box(0); + lean_dec_ref(x_131); + x_162 = lean_box(0); } -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(1, 2, 0); } else { - x_162 = x_161; + x_163 = x_162; } -lean_ctor_set(x_162, 0, x_159); -lean_ctor_set(x_162, 1, x_160); -return x_162; +lean_ctor_set(x_163, 0, x_160); +lean_ctor_set(x_163, 1, x_161); +return x_163; } } else { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -10605,32 +12164,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_163 = lean_ctor_get(x_126, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_126, 1); +x_164 = lean_ctor_get(x_127, 0); lean_inc(x_164); -if (lean_is_exclusive(x_126)) { - lean_ctor_release(x_126, 0); - lean_ctor_release(x_126, 1); - x_165 = x_126; +x_165 = lean_ctor_get(x_127, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_166 = x_127; } else { - lean_dec_ref(x_126); - x_165 = lean_box(0); + lean_dec_ref(x_127); + x_166 = lean_box(0); } -if (lean_is_scalar(x_165)) { - x_166 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_166)) { + x_167 = lean_alloc_ctor(1, 2, 0); } else { - x_166 = x_165; + x_167 = x_166; } -lean_ctor_set(x_166, 0, x_163); -lean_ctor_set(x_166, 1, x_164); -return x_166; +lean_ctor_set(x_167, 0, x_164); +lean_ctor_set(x_167, 1, x_165); +return x_167; } } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -lean_dec(x_120); +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_121); lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -10641,31 +12200,31 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_167 = lean_ctor_get(x_123, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_123, 1); +x_168 = lean_ctor_get(x_124, 0); lean_inc(x_168); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_169 = x_123; +x_169 = lean_ctor_get(x_124, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_170 = x_124; } else { - lean_dec_ref(x_123); - x_169 = lean_box(0); + lean_dec_ref(x_124); + x_170 = lean_box(0); } -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_170)) { + x_171 = lean_alloc_ctor(1, 2, 0); } else { - x_170 = x_169; + x_171 = x_170; } -lean_ctor_set(x_170, 0, x_167); -lean_ctor_set(x_170, 1, x_168); -return x_170; +lean_ctor_set(x_171, 0, x_168); +lean_ctor_set(x_171, 1, x_169); +return x_171; } } else { -lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -10676,52 +12235,52 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_171 = lean_ctor_get(x_119, 0); -lean_inc(x_171); -x_172 = lean_ctor_get(x_119, 1); +x_172 = lean_ctor_get(x_120, 0); lean_inc(x_172); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_173 = x_119; +x_173 = lean_ctor_get(x_120, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_174 = x_120; } else { - lean_dec_ref(x_119); - x_173 = lean_box(0); + lean_dec_ref(x_120); + x_174 = lean_box(0); } -if (lean_is_scalar(x_173)) { - x_174 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(1, 2, 0); } else { - x_174 = x_173; + x_175 = x_174; } -lean_ctor_set(x_174, 0, x_171); -lean_ctor_set(x_174, 1, x_172); -return x_174; +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_173); +return x_175; } } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_dec(x_22); -x_175 = lean_ctor_get(x_115, 1); -lean_inc(x_175); -lean_dec(x_115); -x_176 = lean_ctor_get(x_116, 0); +x_176 = lean_ctor_get(x_116, 1); lean_inc(x_176); lean_dec(x_116); +x_177 = lean_ctor_get(x_117, 0); +lean_inc(x_177); +lean_dec(x_117); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_177 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_2, x_176, x_6, x_7, x_8, x_9, x_175); -if (lean_obj_tag(x_177) == 0) +x_178 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_2, x_177, x_6, x_7, x_8, x_9, x_176); +if (lean_obj_tag(x_178) == 0) { -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_177, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_177, 1); +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_178, 0); lean_inc(x_179); -lean_dec(x_177); -x_180 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_178, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_179); +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +lean_dec(x_178); +x_181 = l_Lean_Meta_Simp_simp_cacheResult(x_1, x_12, x_179, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_180); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10730,11 +12289,11 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_12); -return x_180; +return x_181; } else { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_dec(x_12); lean_dec(x_9); lean_dec(x_8); @@ -10744,32 +12303,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_181 = lean_ctor_get(x_177, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_177, 1); +x_182 = lean_ctor_get(x_178, 0); lean_inc(x_182); -if (lean_is_exclusive(x_177)) { - lean_ctor_release(x_177, 0); - lean_ctor_release(x_177, 1); - x_183 = x_177; +x_183 = lean_ctor_get(x_178, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_184 = x_178; } else { - lean_dec_ref(x_177); - x_183 = lean_box(0); + lean_dec_ref(x_178); + x_184 = lean_box(0); } -if (lean_is_scalar(x_183)) { - x_184 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_184)) { + x_185 = lean_alloc_ctor(1, 2, 0); } else { - x_184 = x_183; + x_185 = x_184; } -lean_ctor_set(x_184, 0, x_181); -lean_ctor_set(x_184, 1, x_182); -return x_184; +lean_ctor_set(x_185, 0, x_182); +lean_ctor_set(x_185, 1, x_183); +return x_185; } } } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_dec(x_22); lean_dec(x_12); lean_dec(x_9); @@ -10781,37 +12340,37 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_185 = lean_ctor_get(x_115, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_115, 1); +x_186 = lean_ctor_get(x_116, 0); lean_inc(x_186); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_187 = x_115; +x_187 = lean_ctor_get(x_116, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_116)) { + lean_ctor_release(x_116, 0); + lean_ctor_release(x_116, 1); + x_188 = x_116; } else { - lean_dec_ref(x_115); - x_187 = lean_box(0); + lean_dec_ref(x_116); + x_188 = lean_box(0); } -if (lean_is_scalar(x_187)) { - x_188 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_188)) { + x_189 = lean_alloc_ctor(1, 2, 0); } else { - x_188 = x_187; + x_189 = x_188; } -lean_ctor_set(x_188, 0, x_185); -lean_ctor_set(x_188, 1, x_186); -return x_188; +lean_ctor_set(x_189, 0, x_186); +lean_ctor_set(x_189, 1, x_187); +return x_189; } } } else { -lean_object* x_189; lean_object* x_190; +lean_object* x_190; lean_object* x_191; lean_dec(x_12); lean_dec(x_2); lean_dec(x_1); -x_189 = l_Lean_Meta_Simp_simp_simpLoop___closed__2; -x_190 = l_Lean_throwError___at_Lean_Meta_Simp_simp_simpLoop___spec__1(x_189, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); +x_190 = l_Lean_Meta_Simp_simp_simpLoop___closed__2; +x_191 = l_Lean_throwError___at_Lean_Meta_Simp_simp_simpLoop___spec__1(x_190, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_18); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -10819,7 +12378,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -return x_190; +return x_191; } } } @@ -10902,7 +12461,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_Simp_simp_simpStep___closed__1; x_2 = l_Lean_Meta_Simp_simp_simpStep___closed__2; -x_3 = lean_unsigned_to_nat(185u); +x_3 = lean_unsigned_to_nat(209u); x_4 = lean_unsigned_to_nat(26u); x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -13126,7 +14685,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_Simp_simp_simpStep___closed__1; x_2 = l_Lean_Meta_Simp_simp_simpLet___closed__1; -x_3 = lean_unsigned_to_nat(395u); +x_3 = lean_unsigned_to_nat(516u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -15155,7 +16714,7 @@ lean_inc(x_4); x_21 = l_Lean_Meta_SimpTheorems_add(x_14, x_17, x_4, x_18, x_19, x_20, x_16, x_8, x_9, x_10, x_11, x_15); if (lean_obj_tag(x_21) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_51; lean_object* x_52; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +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_52; lean_object* x_53; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -15174,782 +16733,785 @@ lean_dec(x_26); x_29 = lean_ctor_get(x_27, 0); lean_inc(x_29); lean_dec(x_27); -x_72 = lean_st_ref_get(x_11, x_28); -x_73 = lean_ctor_get(x_72, 1); -lean_inc(x_73); -lean_dec(x_72); -x_74 = lean_st_ref_take(x_7, x_73); -x_75 = lean_ctor_get(x_74, 0); +x_74 = lean_st_ref_get(x_11, x_28); +x_75 = lean_ctor_get(x_74, 1); lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); lean_dec(x_74); -x_77 = !lean_is_exclusive(x_75); -if (x_77 == 0) +x_76 = lean_st_ref_take(x_7, x_75); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = !lean_is_exclusive(x_77); +if (x_79 == 0) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_78 = lean_ctor_get(x_75, 0); -lean_dec(x_78); -x_79 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; -lean_ctor_set(x_75, 0, x_79); -x_80 = lean_st_ref_set(x_7, x_75, x_76); -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +x_80 = lean_ctor_get(x_77, 0); lean_dec(x_80); -x_82 = !lean_is_exclusive(x_6); -if (x_82 == 0) +x_81 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +lean_ctor_set(x_77, 0, x_81); +x_82 = lean_st_ref_set(x_7, x_77, x_78); +x_83 = lean_ctor_get(x_82, 1); +lean_inc(x_83); +lean_dec(x_82); +x_84 = !lean_is_exclusive(x_6); +if (x_84 == 0) { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_6, 1); -lean_dec(x_83); +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_6, 1); +lean_dec(x_85); lean_ctor_set(x_6, 1, x_22); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_84 = l_Lean_Meta_Simp_simp(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_81); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_85, 1); -lean_inc(x_86); +x_86 = l_Lean_Meta_Simp_simp(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_83); if (lean_obj_tag(x_86) == 0) { lean_object* x_87; lean_object* x_88; -lean_dec(x_4); -lean_dec(x_3); -x_87 = lean_ctor_get(x_84, 1); +x_87 = lean_ctor_get(x_86, 0); lean_inc(x_87); -lean_dec(x_84); -lean_inc(x_11); -x_88 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_85, x_8, x_9, x_10, x_11, x_87); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); if (lean_obj_tag(x_88) == 0) { lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_88, 0); +lean_dec(x_4); +lean_dec(x_3); +x_89 = lean_ctor_get(x_86, 1); lean_inc(x_89); -x_90 = lean_ctor_get(x_88, 1); -lean_inc(x_90); -lean_dec(x_88); -x_30 = x_89; -x_31 = x_90; -goto block_50; -} -else +lean_dec(x_86); +lean_inc(x_11); +x_90 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_87, x_8, x_9, x_10, x_11, x_89); +if (lean_obj_tag(x_90) == 0) { lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_88, 0); +x_91 = lean_ctor_get(x_90, 0); lean_inc(x_91); -x_92 = lean_ctor_get(x_88, 1); +x_92 = lean_ctor_get(x_90, 1); lean_inc(x_92); -lean_dec(x_88); -x_51 = x_91; -x_52 = x_92; -goto block_71; +lean_dec(x_90); +x_30 = x_91; +x_31 = x_92; +goto block_51; +} +else +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_90, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_90, 1); +lean_inc(x_94); +lean_dec(x_90); +x_52 = x_93; +x_53 = x_94; +goto block_73; } } else { -lean_object* x_93; uint8_t x_94; -x_93 = lean_ctor_get(x_84, 1); -lean_inc(x_93); -lean_dec(x_84); -x_94 = !lean_is_exclusive(x_86); -if (x_94 == 0) +lean_object* x_95; uint8_t x_96; +x_95 = lean_ctor_get(x_86, 1); +lean_inc(x_95); +lean_dec(x_86); +x_96 = !lean_is_exclusive(x_88); +if (x_96 == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_95 = lean_ctor_get(x_86, 0); -x_96 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -x_97 = lean_array_push(x_96, x_4); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_97 = lean_ctor_get(x_88, 0); +x_98 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_99 = lean_array_push(x_98, x_4); lean_inc(x_8); -x_98 = l_Lean_Meta_mkLambdaFVars(x_97, x_95, x_18, x_19, x_8, x_9, x_10, x_11, x_93); -if (lean_obj_tag(x_98) == 0) +x_100 = l_Lean_Meta_mkLambdaFVars(x_99, x_97, x_18, x_19, x_8, x_9, x_10, x_11, x_95); +if (lean_obj_tag(x_100) == 0) { -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_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = lean_ctor_get(x_85, 0); +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; +x_101 = lean_ctor_get(x_100, 0); lean_inc(x_101); -lean_dec(x_85); -x_102 = l_Lean_Meta_mkArrow(x_3, x_101, x_8, x_9, x_10, x_11, x_100); -x_103 = lean_ctor_get(x_102, 0); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_103 = lean_ctor_get(x_87, 0); lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); +lean_dec(x_87); +x_104 = l_Lean_Meta_mkArrow(x_3, x_103, x_8, x_9, x_10, x_11, x_102); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_105 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_104); -if (lean_obj_tag(x_105) == 0) +x_107 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_106); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -lean_dec(x_105); -lean_inc(x_11); -x_108 = l_Lean_Meta_mkImpCongrCtx(x_106, x_99, x_8, x_9, x_10, x_11, x_107); -if (lean_obj_tag(x_108) == 0) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_108, 0); +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_107, 1); lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -lean_ctor_set(x_86, 0, x_109); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_103); -lean_ctor_set(x_111, 1, x_86); -x_30 = x_111; -x_31 = x_110; -goto block_50; -} -else +lean_dec(x_107); +lean_inc(x_11); +x_110 = l_Lean_Meta_mkImpCongrCtx(x_108, x_101, x_8, x_9, x_10, x_11, x_109); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_112; lean_object* x_113; -lean_dec(x_103); -lean_free_object(x_86); -x_112 = lean_ctor_get(x_108, 0); +lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); lean_inc(x_112); -x_113 = lean_ctor_get(x_108, 1); -lean_inc(x_113); -lean_dec(x_108); -x_51 = x_112; -x_52 = x_113; -goto block_71; -} +lean_dec(x_110); +lean_ctor_set(x_88, 0, x_111); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_105); +lean_ctor_set(x_113, 1, x_88); +x_30 = x_113; +x_31 = x_112; +goto block_51; } else { lean_object* x_114; lean_object* x_115; -lean_dec(x_103); -lean_dec(x_99); -lean_free_object(x_86); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_114 = lean_ctor_get(x_105, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_105, 1); -lean_inc(x_115); lean_dec(x_105); -x_51 = x_114; -x_52 = x_115; -goto block_71; +lean_free_object(x_88); +x_114 = lean_ctor_get(x_110, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_110, 1); +lean_inc(x_115); +lean_dec(x_110); +x_52 = x_114; +x_53 = x_115; +goto block_73; } } else { lean_object* x_116; lean_object* x_117; -lean_free_object(x_86); -lean_dec(x_85); +lean_dec(x_105); +lean_dec(x_101); +lean_free_object(x_88); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_116 = lean_ctor_get(x_107, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_107, 1); +lean_inc(x_117); +lean_dec(x_107); +x_52 = x_116; +x_53 = x_117; +goto block_73; +} +} +else +{ +lean_object* x_118; lean_object* x_119; +lean_free_object(x_88); +lean_dec(x_87); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_116 = lean_ctor_get(x_98, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_98, 1); -lean_inc(x_117); -lean_dec(x_98); -x_51 = x_116; -x_52 = x_117; -goto block_71; +x_118 = lean_ctor_get(x_100, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_100, 1); +lean_inc(x_119); +lean_dec(x_100); +x_52 = x_118; +x_53 = x_119; +goto block_73; } } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_118 = lean_ctor_get(x_86, 0); -lean_inc(x_118); -lean_dec(x_86); -x_119 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -x_120 = lean_array_push(x_119, x_4); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_120 = lean_ctor_get(x_88, 0); +lean_inc(x_120); +lean_dec(x_88); +x_121 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_122 = lean_array_push(x_121, x_4); lean_inc(x_8); -x_121 = l_Lean_Meta_mkLambdaFVars(x_120, x_118, x_18, x_19, x_8, x_9, x_10, x_11, x_93); -if (lean_obj_tag(x_121) == 0) +x_123 = l_Lean_Meta_mkLambdaFVars(x_122, x_120, x_18, x_19, x_8, x_9, x_10, x_11, x_95); +if (lean_obj_tag(x_123) == 0) { -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; -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_124 = lean_ctor_get(x_85, 0); +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; +x_124 = lean_ctor_get(x_123, 0); lean_inc(x_124); -lean_dec(x_85); -x_125 = l_Lean_Meta_mkArrow(x_3, x_124, x_8, x_9, x_10, x_11, x_123); -x_126 = lean_ctor_get(x_125, 0); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = lean_ctor_get(x_87, 0); lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); +lean_dec(x_87); +x_127 = l_Lean_Meta_mkArrow(x_3, x_126, x_8, x_9, x_10, x_11, x_125); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_128 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_127); -if (lean_obj_tag(x_128) == 0) +x_130 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_129); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -lean_inc(x_11); -x_131 = l_Lean_Meta_mkImpCongrCtx(x_129, x_122, x_8, x_9, x_10, x_11, x_130); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_131, 0); +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -lean_dec(x_131); -x_134 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_134, 0, x_132); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_126); -lean_ctor_set(x_135, 1, x_134); -x_30 = x_135; -x_31 = x_133; -goto block_50; -} -else +lean_dec(x_130); +lean_inc(x_11); +x_133 = l_Lean_Meta_mkImpCongrCtx(x_131, x_124, x_8, x_9, x_10, x_11, x_132); +if (lean_obj_tag(x_133) == 0) { -lean_object* x_136; lean_object* x_137; -lean_dec(x_126); -x_136 = lean_ctor_get(x_131, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_131, 1); -lean_inc(x_137); -lean_dec(x_131); -x_51 = x_136; -x_52 = x_137; -goto block_71; -} +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_134 = lean_ctor_get(x_133, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_133, 1); +lean_inc(x_135); +lean_dec(x_133); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_134); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_128); +lean_ctor_set(x_137, 1, x_136); +x_30 = x_137; +x_31 = x_135; +goto block_51; } else { lean_object* x_138; lean_object* x_139; -lean_dec(x_126); -lean_dec(x_122); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_138 = lean_ctor_get(x_128, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_128, 1); -lean_inc(x_139); lean_dec(x_128); -x_51 = x_138; -x_52 = x_139; -goto block_71; +x_138 = lean_ctor_get(x_133, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_133, 1); +lean_inc(x_139); +lean_dec(x_133); +x_52 = x_138; +x_53 = x_139; +goto block_73; } } else { lean_object* x_140; lean_object* x_141; -lean_dec(x_85); +lean_dec(x_128); +lean_dec(x_124); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_140 = lean_ctor_get(x_121, 0); +x_140 = lean_ctor_get(x_130, 0); lean_inc(x_140); -x_141 = lean_ctor_get(x_121, 1); +x_141 = lean_ctor_get(x_130, 1); lean_inc(x_141); -lean_dec(x_121); -x_51 = x_140; -x_52 = x_141; -goto block_71; -} -} +lean_dec(x_130); +x_52 = x_140; +x_53 = x_141; +goto block_73; } } else { lean_object* x_142; lean_object* x_143; +lean_dec(x_87); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_142 = lean_ctor_get(x_123, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_123, 1); +lean_inc(x_143); +lean_dec(x_123); +x_52 = x_142; +x_53 = x_143; +goto block_73; +} +} +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_142 = lean_ctor_get(x_84, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_84, 1); -lean_inc(x_143); -lean_dec(x_84); -x_51 = x_142; -x_52 = x_143; -goto block_71; +x_144 = lean_ctor_get(x_86, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_86, 1); +lean_inc(x_145); +lean_dec(x_86); +x_52 = x_144; +x_53 = x_145; +goto block_73; } } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_144 = lean_ctor_get(x_6, 0); -x_145 = lean_ctor_get(x_6, 2); -x_146 = lean_ctor_get(x_6, 3); -x_147 = lean_ctor_get(x_6, 4); +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_146 = lean_ctor_get(x_6, 0); +x_147 = lean_ctor_get(x_6, 2); +x_148 = lean_ctor_get(x_6, 3); +x_149 = lean_ctor_get(x_6, 4); +lean_inc(x_149); +lean_inc(x_148); lean_inc(x_147); lean_inc(x_146); -lean_inc(x_145); -lean_inc(x_144); lean_dec(x_6); -x_148 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_148, 0, x_144); -lean_ctor_set(x_148, 1, x_22); -lean_ctor_set(x_148, 2, x_145); -lean_ctor_set(x_148, 3, x_146); -lean_ctor_set(x_148, 4, x_147); +x_150 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_150, 0, x_146); +lean_ctor_set(x_150, 1, x_22); +lean_ctor_set(x_150, 2, x_147); +lean_ctor_set(x_150, 3, x_148); +lean_ctor_set(x_150, 4, x_149); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_149 = l_Lean_Meta_Simp_simp(x_1, x_5, x_148, x_7, x_8, x_9, x_10, x_11, x_81); -if (lean_obj_tag(x_149) == 0) -{ -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); +x_151 = l_Lean_Meta_Simp_simp(x_1, x_5, x_150, x_7, x_8, x_9, x_10, x_11, x_83); if (lean_obj_tag(x_151) == 0) { lean_object* x_152; lean_object* x_153; -lean_dec(x_4); -lean_dec(x_3); -x_152 = lean_ctor_get(x_149, 1); +x_152 = lean_ctor_get(x_151, 0); lean_inc(x_152); -lean_dec(x_149); -lean_inc(x_11); -x_153 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_150, x_8, x_9, x_10, x_11, x_152); +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); if (lean_obj_tag(x_153) == 0) { lean_object* x_154; lean_object* x_155; -x_154 = lean_ctor_get(x_153, 0); +lean_dec(x_4); +lean_dec(x_3); +x_154 = lean_ctor_get(x_151, 1); lean_inc(x_154); -x_155 = lean_ctor_get(x_153, 1); -lean_inc(x_155); -lean_dec(x_153); -x_30 = x_154; -x_31 = x_155; -goto block_50; -} -else +lean_dec(x_151); +lean_inc(x_11); +x_155 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_152, x_8, x_9, x_10, x_11, x_154); +if (lean_obj_tag(x_155) == 0) { lean_object* x_156; lean_object* x_157; -x_156 = lean_ctor_get(x_153, 0); +x_156 = lean_ctor_get(x_155, 0); lean_inc(x_156); -x_157 = lean_ctor_get(x_153, 1); +x_157 = lean_ctor_get(x_155, 1); lean_inc(x_157); -lean_dec(x_153); -x_51 = x_156; -x_52 = x_157; -goto block_71; +lean_dec(x_155); +x_30 = x_156; +x_31 = x_157; +goto block_51; +} +else +{ +lean_object* x_158; lean_object* x_159; +x_158 = lean_ctor_get(x_155, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_155, 1); +lean_inc(x_159); +lean_dec(x_155); +x_52 = x_158; +x_53 = x_159; +goto block_73; } } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_158 = lean_ctor_get(x_149, 1); -lean_inc(x_158); -lean_dec(x_149); -x_159 = lean_ctor_get(x_151, 0); -lean_inc(x_159); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - x_160 = x_151; +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_160 = lean_ctor_get(x_151, 1); +lean_inc(x_160); +lean_dec(x_151); +x_161 = lean_ctor_get(x_153, 0); +lean_inc(x_161); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + x_162 = x_153; } else { - lean_dec_ref(x_151); - x_160 = lean_box(0); + lean_dec_ref(x_153); + x_162 = lean_box(0); } -x_161 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -x_162 = lean_array_push(x_161, x_4); +x_163 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_164 = lean_array_push(x_163, x_4); lean_inc(x_8); -x_163 = l_Lean_Meta_mkLambdaFVars(x_162, x_159, x_18, x_19, x_8, x_9, x_10, x_11, x_158); -if (lean_obj_tag(x_163) == 0) +x_165 = l_Lean_Meta_mkLambdaFVars(x_164, x_161, x_18, x_19, x_8, x_9, x_10, x_11, x_160); +if (lean_obj_tag(x_165) == 0) { -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; -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_166 = lean_ctor_get(x_150, 0); +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; +x_166 = lean_ctor_get(x_165, 0); lean_inc(x_166); -lean_dec(x_150); -x_167 = l_Lean_Meta_mkArrow(x_3, x_166, x_8, x_9, x_10, x_11, x_165); -x_168 = lean_ctor_get(x_167, 0); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); +x_168 = lean_ctor_get(x_152, 0); lean_inc(x_168); -x_169 = lean_ctor_get(x_167, 1); -lean_inc(x_169); -lean_dec(x_167); +lean_dec(x_152); +x_169 = l_Lean_Meta_mkArrow(x_3, x_168, x_8, x_9, x_10, x_11, x_167); +x_170 = lean_ctor_get(x_169, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_169, 1); +lean_inc(x_171); +lean_dec(x_169); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_170 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_169); -if (lean_obj_tag(x_170) == 0) +x_172 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_171); +if (lean_obj_tag(x_172) == 0) { -lean_object* x_171; lean_object* x_172; lean_object* x_173; -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); -lean_inc(x_11); -x_173 = l_Lean_Meta_mkImpCongrCtx(x_171, x_164, x_8, x_9, x_10, x_11, x_172); -if (lean_obj_tag(x_173) == 0) -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; -x_174 = lean_ctor_get(x_173, 0); +lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); lean_inc(x_174); -x_175 = lean_ctor_get(x_173, 1); -lean_inc(x_175); -lean_dec(x_173); -if (lean_is_scalar(x_160)) { - x_176 = lean_alloc_ctor(1, 1, 0); -} else { - x_176 = x_160; -} -lean_ctor_set(x_176, 0, x_174); -x_177 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_177, 0, x_168); -lean_ctor_set(x_177, 1, x_176); -x_30 = x_177; -x_31 = x_175; -goto block_50; -} -else +lean_dec(x_172); +lean_inc(x_11); +x_175 = l_Lean_Meta_mkImpCongrCtx(x_173, x_166, x_8, x_9, x_10, x_11, x_174); +if (lean_obj_tag(x_175) == 0) { -lean_object* x_178; lean_object* x_179; -lean_dec(x_168); -lean_dec(x_160); -x_178 = lean_ctor_get(x_173, 0); -lean_inc(x_178); -x_179 = lean_ctor_get(x_173, 1); -lean_inc(x_179); -lean_dec(x_173); -x_51 = x_178; -x_52 = x_179; -goto block_71; +lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_176 = lean_ctor_get(x_175, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_175, 1); +lean_inc(x_177); +lean_dec(x_175); +if (lean_is_scalar(x_162)) { + x_178 = lean_alloc_ctor(1, 1, 0); +} else { + x_178 = x_162; } +lean_ctor_set(x_178, 0, x_176); +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_170); +lean_ctor_set(x_179, 1, x_178); +x_30 = x_179; +x_31 = x_177; +goto block_51; } else { lean_object* x_180; lean_object* x_181; -lean_dec(x_168); -lean_dec(x_164); -lean_dec(x_160); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_180 = lean_ctor_get(x_170, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_170, 1); -lean_inc(x_181); lean_dec(x_170); -x_51 = x_180; -x_52 = x_181; -goto block_71; +lean_dec(x_162); +x_180 = lean_ctor_get(x_175, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_175, 1); +lean_inc(x_181); +lean_dec(x_175); +x_52 = x_180; +x_53 = x_181; +goto block_73; } } else { lean_object* x_182; lean_object* x_183; -lean_dec(x_160); -lean_dec(x_150); +lean_dec(x_170); +lean_dec(x_166); +lean_dec(x_162); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -x_182 = lean_ctor_get(x_163, 0); +x_182 = lean_ctor_get(x_172, 0); lean_inc(x_182); -x_183 = lean_ctor_get(x_163, 1); +x_183 = lean_ctor_get(x_172, 1); lean_inc(x_183); -lean_dec(x_163); -x_51 = x_182; -x_52 = x_183; -goto block_71; -} +lean_dec(x_172); +x_52 = x_182; +x_53 = x_183; +goto block_73; } } else { lean_object* x_184; lean_object* x_185; +lean_dec(x_162); +lean_dec(x_152); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_2); +x_184 = lean_ctor_get(x_165, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_165, 1); +lean_inc(x_185); +lean_dec(x_165); +x_52 = x_184; +x_53 = x_185; +goto block_73; +} +} +} +else +{ +lean_object* x_186; lean_object* x_187; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_184 = lean_ctor_get(x_149, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_149, 1); -lean_inc(x_185); -lean_dec(x_149); -x_51 = x_184; -x_52 = x_185; -goto block_71; +x_186 = lean_ctor_get(x_151, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_151, 1); +lean_inc(x_187); +lean_dec(x_151); +x_52 = x_186; +x_53 = x_187; +goto block_73; } } } else { -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; -x_186 = lean_ctor_get(x_75, 1); -lean_inc(x_186); -lean_dec(x_75); -x_187 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -x_189 = lean_st_ref_set(x_7, x_188, x_76); -x_190 = lean_ctor_get(x_189, 1); -lean_inc(x_190); -lean_dec(x_189); -x_191 = lean_ctor_get(x_6, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_6, 2); -lean_inc(x_192); -x_193 = lean_ctor_get(x_6, 3); +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; +x_188 = lean_ctor_get(x_77, 1); +x_189 = lean_ctor_get(x_77, 2); +lean_inc(x_189); +lean_inc(x_188); +lean_dec(x_77); +x_190 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; +x_191 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_188); +lean_ctor_set(x_191, 2, x_189); +x_192 = lean_st_ref_set(x_7, x_191, x_78); +x_193 = lean_ctor_get(x_192, 1); lean_inc(x_193); -x_194 = lean_ctor_get(x_6, 4); +lean_dec(x_192); +x_194 = lean_ctor_get(x_6, 0); lean_inc(x_194); +x_195 = lean_ctor_get(x_6, 2); +lean_inc(x_195); +x_196 = lean_ctor_get(x_6, 3); +lean_inc(x_196); +x_197 = lean_ctor_get(x_6, 4); +lean_inc(x_197); if (lean_is_exclusive(x_6)) { lean_ctor_release(x_6, 0); lean_ctor_release(x_6, 1); lean_ctor_release(x_6, 2); lean_ctor_release(x_6, 3); lean_ctor_release(x_6, 4); - x_195 = x_6; + x_198 = x_6; } else { lean_dec_ref(x_6); - x_195 = lean_box(0); + x_198 = lean_box(0); } -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_198)) { + x_199 = lean_alloc_ctor(0, 5, 0); } else { - x_196 = x_195; + x_199 = x_198; } -lean_ctor_set(x_196, 0, x_191); -lean_ctor_set(x_196, 1, x_22); -lean_ctor_set(x_196, 2, x_192); -lean_ctor_set(x_196, 3, x_193); -lean_ctor_set(x_196, 4, x_194); +lean_ctor_set(x_199, 0, x_194); +lean_ctor_set(x_199, 1, x_22); +lean_ctor_set(x_199, 2, x_195); +lean_ctor_set(x_199, 3, x_196); +lean_ctor_set(x_199, 4, x_197); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_197 = l_Lean_Meta_Simp_simp(x_1, x_5, x_196, x_7, x_8, x_9, x_10, x_11, x_190); -if (lean_obj_tag(x_197) == 0) +x_200 = l_Lean_Meta_Simp_simp(x_1, x_5, x_199, x_7, x_8, x_9, x_10, x_11, x_193); +if (lean_obj_tag(x_200) == 0) { -lean_object* x_198; lean_object* x_199; -x_198 = lean_ctor_get(x_197, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_198, 1); -lean_inc(x_199); -if (lean_obj_tag(x_199) == 0) +lean_object* x_201; lean_object* x_202; +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_201, 1); +lean_inc(x_202); +if (lean_obj_tag(x_202) == 0) { -lean_object* x_200; lean_object* x_201; +lean_object* x_203; lean_object* x_204; lean_dec(x_4); lean_dec(x_3); -x_200 = lean_ctor_get(x_197, 1); -lean_inc(x_200); -lean_dec(x_197); -lean_inc(x_11); -x_201 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_198, x_8, x_9, x_10, x_11, x_200); -if (lean_obj_tag(x_201) == 0) -{ -lean_object* x_202; lean_object* x_203; -x_202 = lean_ctor_get(x_201, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_201, 1); +x_203 = lean_ctor_get(x_200, 1); lean_inc(x_203); -lean_dec(x_201); -x_30 = x_202; -x_31 = x_203; -goto block_50; -} -else -{ -lean_object* x_204; lean_object* x_205; -x_204 = lean_ctor_get(x_201, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_201, 1); -lean_inc(x_205); -lean_dec(x_201); -x_51 = x_204; -x_52 = x_205; -goto block_71; -} -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_206 = lean_ctor_get(x_197, 1); -lean_inc(x_206); -lean_dec(x_197); -x_207 = lean_ctor_get(x_199, 0); -lean_inc(x_207); -if (lean_is_exclusive(x_199)) { - lean_ctor_release(x_199, 0); - x_208 = x_199; -} else { - lean_dec_ref(x_199); - x_208 = lean_box(0); -} -x_209 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; -x_210 = lean_array_push(x_209, x_4); -lean_inc(x_8); -x_211 = l_Lean_Meta_mkLambdaFVars(x_210, x_207, x_18, x_19, x_8, x_9, x_10, x_11, x_206); -if (lean_obj_tag(x_211) == 0) -{ -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; -x_212 = lean_ctor_get(x_211, 0); -lean_inc(x_212); -x_213 = lean_ctor_get(x_211, 1); -lean_inc(x_213); -lean_dec(x_211); -x_214 = lean_ctor_get(x_198, 0); -lean_inc(x_214); -lean_dec(x_198); -x_215 = l_Lean_Meta_mkArrow(x_3, x_214, x_8, x_9, x_10, x_11, x_213); -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -lean_dec(x_215); +lean_dec(x_200); lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_218 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_217); -if (lean_obj_tag(x_218) == 0) +x_204 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkImpCongr(x_2, x_201, x_8, x_9, x_10, x_11, x_203); +if (lean_obj_tag(x_204) == 0) { -lean_object* x_219; lean_object* x_220; lean_object* x_221; +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +lean_dec(x_204); +x_30 = x_205; +x_31 = x_206; +goto block_51; +} +else +{ +lean_object* x_207; lean_object* x_208; +x_207 = lean_ctor_get(x_204, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_204, 1); +lean_inc(x_208); +lean_dec(x_204); +x_52 = x_207; +x_53 = x_208; +goto block_73; +} +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_209 = lean_ctor_get(x_200, 1); +lean_inc(x_209); +lean_dec(x_200); +x_210 = lean_ctor_get(x_202, 0); +lean_inc(x_210); +if (lean_is_exclusive(x_202)) { + lean_ctor_release(x_202, 0); + x_211 = x_202; +} else { + lean_dec_ref(x_202); + x_211 = lean_box(0); +} +x_212 = l_Lean_Meta_Simp_simp_simpLet___lambda__1___closed__1; +x_213 = lean_array_push(x_212, x_4); +lean_inc(x_8); +x_214 = l_Lean_Meta_mkLambdaFVars(x_213, x_210, x_18, x_19, x_8, x_9, x_10, x_11, x_209); +if (lean_obj_tag(x_214) == 0) +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec(x_214); +x_217 = lean_ctor_get(x_201, 0); +lean_inc(x_217); +lean_dec(x_201); +x_218 = l_Lean_Meta_mkArrow(x_3, x_217, x_8, x_9, x_10, x_11, x_216); x_219 = lean_ctor_get(x_218, 0); lean_inc(x_219); x_220 = lean_ctor_get(x_218, 1); lean_inc(x_220); lean_dec(x_218); lean_inc(x_11); -x_221 = l_Lean_Meta_mkImpCongrCtx(x_219, x_212, x_8, x_9, x_10, x_11, x_220); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_221 = l_Lean_Meta_Simp_Result_getProof(x_2, x_8, x_9, x_10, x_11, x_220); if (lean_obj_tag(x_221) == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; +lean_object* x_222; lean_object* x_223; lean_object* x_224; 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); -if (lean_is_scalar(x_208)) { - x_224 = lean_alloc_ctor(1, 1, 0); -} else { - x_224 = x_208; -} -lean_ctor_set(x_224, 0, x_222); -x_225 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_225, 0, x_216); -lean_ctor_set(x_225, 1, x_224); -x_30 = x_225; -x_31 = x_223; -goto block_50; -} -else +lean_inc(x_11); +x_224 = l_Lean_Meta_mkImpCongrCtx(x_222, x_215, x_8, x_9, x_10, x_11, x_223); +if (lean_obj_tag(x_224) == 0) { -lean_object* x_226; lean_object* x_227; -lean_dec(x_216); -lean_dec(x_208); -x_226 = lean_ctor_get(x_221, 0); +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_224, 1); lean_inc(x_226); -x_227 = lean_ctor_get(x_221, 1); -lean_inc(x_227); -lean_dec(x_221); -x_51 = x_226; -x_52 = x_227; -goto block_71; +lean_dec(x_224); +if (lean_is_scalar(x_211)) { + x_227 = lean_alloc_ctor(1, 1, 0); +} else { + x_227 = x_211; +} +lean_ctor_set(x_227, 0, x_225); +x_228 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_228, 0, x_219); +lean_ctor_set(x_228, 1, x_227); +x_30 = x_228; +x_31 = x_226; +goto block_51; +} +else +{ +lean_object* x_229; lean_object* x_230; +lean_dec(x_219); +lean_dec(x_211); +x_229 = lean_ctor_get(x_224, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_224, 1); +lean_inc(x_230); +lean_dec(x_224); +x_52 = x_229; +x_53 = x_230; +goto block_73; } } else { -lean_object* x_228; lean_object* x_229; -lean_dec(x_216); -lean_dec(x_212); -lean_dec(x_208); +lean_object* x_231; lean_object* x_232; +lean_dec(x_219); +lean_dec(x_215); +lean_dec(x_211); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_228 = lean_ctor_get(x_218, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_218, 1); -lean_inc(x_229); -lean_dec(x_218); -x_51 = x_228; -x_52 = x_229; -goto block_71; +x_231 = lean_ctor_get(x_221, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_221, 1); +lean_inc(x_232); +lean_dec(x_221); +x_52 = x_231; +x_53 = x_232; +goto block_73; } } else { -lean_object* x_230; lean_object* x_231; -lean_dec(x_208); -lean_dec(x_198); +lean_object* x_233; lean_object* x_234; +lean_dec(x_211); +lean_dec(x_201); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); lean_dec(x_2); -x_230 = lean_ctor_get(x_211, 0); -lean_inc(x_230); -x_231 = lean_ctor_get(x_211, 1); -lean_inc(x_231); -lean_dec(x_211); -x_51 = x_230; -x_52 = x_231; -goto block_71; +x_233 = lean_ctor_get(x_214, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_214, 1); +lean_inc(x_234); +lean_dec(x_214); +x_52 = x_233; +x_53 = x_234; +goto block_73; } } } else { -lean_object* x_232; lean_object* x_233; +lean_object* x_235; lean_object* x_236; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_232 = lean_ctor_get(x_197, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_197, 1); -lean_inc(x_233); -lean_dec(x_197); -x_51 = x_232; -x_52 = x_233; -goto block_71; +x_235 = lean_ctor_get(x_200, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_200, 1); +lean_inc(x_236); +lean_dec(x_200); +x_52 = x_235; +x_53 = x_236; +goto block_73; } } -block_50: +block_51: { lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; x_32 = lean_st_ref_get(x_11, x_31); @@ -15995,116 +17557,122 @@ return x_43; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_44 = lean_ctor_get(x_35, 1); +x_45 = lean_ctor_get(x_35, 2); +lean_inc(x_45); lean_inc(x_44); lean_dec(x_35); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_29); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_st_ref_set(x_7, x_45, x_36); +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_29); +lean_ctor_set(x_46, 1, x_44); +lean_ctor_set(x_46, 2, x_45); +x_47 = lean_st_ref_set(x_7, x_46, x_36); lean_dec(x_7); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_48 = x_46; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; } else { - lean_dec_ref(x_46); - x_48 = lean_box(0); + lean_dec_ref(x_47); + x_49 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_49 = x_48; + x_50 = x_49; } -lean_ctor_set(x_49, 0, x_30); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_ctor_set(x_50, 0, x_30); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } -block_71: +block_73: { -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; -x_53 = lean_st_ref_get(x_11, x_52); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_54 = lean_st_ref_get(x_11, x_53); lean_dec(x_11); -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = lean_st_ref_take(x_7, x_54); -x_56 = lean_ctor_get(x_55, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_55, 1); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_st_ref_take(x_7, x_55); +x_57 = lean_ctor_get(x_56, 0); lean_inc(x_57); -lean_dec(x_55); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_56, 0); -lean_dec(x_59); -lean_ctor_set(x_56, 0, x_29); -x_60 = lean_st_ref_set(x_7, x_56, x_57); -lean_dec(x_7); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; -x_62 = lean_ctor_get(x_60, 0); -lean_dec(x_62); -lean_ctor_set_tag(x_60, 1); -lean_ctor_set(x_60, 0, x_51); -return x_60; -} -else -{ -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_51); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_65 = lean_ctor_get(x_56, 1); -lean_inc(x_65); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); lean_dec(x_56); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_29); -lean_ctor_set(x_66, 1, x_65); -x_67 = lean_st_ref_set(x_7, x_66, x_57); +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = lean_ctor_get(x_57, 0); +lean_dec(x_60); +lean_ctor_set(x_57, 0, x_29); +x_61 = lean_st_ref_set(x_7, x_57, x_58); lean_dec(x_7); -x_68 = lean_ctor_get(x_67, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_69 = x_67; -} else { - lean_dec_ref(x_67); - x_69 = lean_box(0); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; +x_63 = lean_ctor_get(x_61, 0); +lean_dec(x_63); +lean_ctor_set_tag(x_61, 1); +lean_ctor_set(x_61, 0, x_52); +return x_61; } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); -} else { - x_70 = x_69; - lean_ctor_set_tag(x_70, 1); +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_52); +lean_ctor_set(x_65, 1, x_64); +return x_65; } -lean_ctor_set(x_70, 0, x_51); -lean_ctor_set(x_70, 1, x_68); -return x_70; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_66 = lean_ctor_get(x_57, 1); +x_67 = lean_ctor_get(x_57, 2); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_57); +x_68 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_68, 0, x_29); +lean_ctor_set(x_68, 1, x_66); +lean_ctor_set(x_68, 2, x_67); +x_69 = lean_st_ref_set(x_7, x_68, x_58); +lean_dec(x_7); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_71 = x_69; +} else { + lean_dec_ref(x_69); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; + lean_ctor_set_tag(x_72, 1); +} +lean_ctor_set(x_72, 0, x_52); +lean_ctor_set(x_72, 1, x_70); +return x_72; } } } else { -uint8_t x_234; +uint8_t x_237; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -16116,23 +17684,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_234 = !lean_is_exclusive(x_21); -if (x_234 == 0) +x_237 = !lean_is_exclusive(x_21); +if (x_237 == 0) { return x_21; } else { -lean_object* x_235; lean_object* x_236; lean_object* x_237; -x_235 = lean_ctor_get(x_21, 0); -x_236 = lean_ctor_get(x_21, 1); -lean_inc(x_236); -lean_inc(x_235); +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_21, 0); +x_239 = lean_ctor_get(x_21, 1); +lean_inc(x_239); +lean_inc(x_238); lean_dec(x_21); -x_237 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_237, 0, x_235); -lean_ctor_set(x_237, 1, x_236); -return x_237; +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +return x_240; } } } @@ -18217,51 +19785,159 @@ return x_25; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_congrDefault(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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; uint8_t x_16; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Lean_Expr_getAppNumArgsAux(x_1, x_10); -x_12 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; -lean_inc(x_11); -x_13 = lean_mk_array(x_11, x_12); -x_14 = lean_unsigned_to_nat(1u); -x_15 = lean_nat_sub(x_11, x_14); -lean_dec(x_11); -x_16 = !lean_is_exclusive(x_3); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_3, 3); -lean_dec(x_17); +lean_object* x_10; +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); lean_inc(x_1); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_1); -lean_ctor_set(x_3, 3, x_18); -x_19 = l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(x_1, x_13, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_19; +x_10 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f(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; uint8_t x_19; +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13); +x_15 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; +lean_inc(x_14); +x_16 = lean_mk_array(x_14, x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_14, x_17); +lean_dec(x_14); +x_19 = !lean_is_exclusive(x_3); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_3, 3); +lean_dec(x_20); +lean_inc(x_1); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_1); +lean_ctor_set(x_3, 3, x_21); +x_22 = l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(x_1, x_16, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +return x_22; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_20 = lean_ctor_get(x_3, 0); -x_21 = lean_ctor_get(x_3, 1); -x_22 = lean_ctor_get(x_3, 2); -x_23 = lean_ctor_get(x_3, 4); +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_23 = lean_ctor_get(x_3, 0); +x_24 = lean_ctor_get(x_3, 1); +x_25 = lean_ctor_get(x_3, 2); +x_26 = lean_ctor_get(x_3, 4); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_21); -lean_inc(x_20); lean_dec(x_3); lean_inc(x_1); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_1); -x_25 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_25, 1, x_21); -lean_ctor_set(x_25, 2, x_22); -lean_ctor_set(x_25, 3, x_24); -lean_ctor_set(x_25, 4, x_23); -x_26 = l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(x_1, x_13, x_15, x_2, x_25, x_4, x_5, x_6, x_7, x_8, x_9); -return x_26; +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_1); +x_28 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_24); +lean_ctor_set(x_28, 2, x_25); +lean_ctor_set(x_28, 3, x_27); +lean_ctor_set(x_28, 4, x_26); +x_29 = l_Lean_Expr_withAppAux___at_Lean_Meta_Simp_simp_congrDefault___spec__1(x_1, x_16, x_18, x_2, x_28, x_4, x_5, x_6, x_7, x_8, x_12); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_1); +x_30 = lean_ctor_get(x_10, 1); +lean_inc(x_30); +lean_dec(x_10); +x_31 = lean_ctor_get(x_11, 0); +lean_inc(x_31); +lean_dec(x_11); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_33 = l_Lean_Meta_Simp_simp_visitFn(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_30); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_mkEqTrans(x_31, x_34, x_5, x_6, x_7, x_8, x_35); +return x_36; +} +else +{ +uint8_t x_37; +lean_dec(x_31); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) +{ +return x_33; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_33, 0); +x_39 = lean_ctor_get(x_33, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_33); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_10); +if (x_41 == 0) +{ +return x_10; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_10, 0); +x_43 = lean_ctor_get(x_10, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_10); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} } } } @@ -19255,6 +20931,8873 @@ return x_38; } } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_3, x_2); +if (x_13 == 0) +{ +lean_object* x_14; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_4); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_array_uget(x_1, x_3); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_16 = l_Lean_Meta_mkCongrFun(x_4, x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; size_t x_19; size_t x_20; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 1; +x_20 = lean_usize_add(x_3, x_19); +x_3 = x_20; +x_4 = x_17; +x_12 = x_18; +goto _start; +} +else +{ +uint8_t x_22; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +x_22 = !lean_is_exclusive(x_16); +if (x_22 == 0) +{ +return x_16; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_16, 0); +x_24 = lean_ctor_get(x_16, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_16); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_visitFn___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_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_13 = l_Lean_Meta_Simp_Result_getProof(x_1, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_13) == 0) +{ +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_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_array_get_size(x_2); +x_17 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_18 = 0; +x_19 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___spec__1(x_2, x_17, x_18, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_19, 0); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_3); +lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_19, 0, x_23); +return x_19; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_19, 0); +x_25 = lean_ctor_get(x_19, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_19); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_3); +lean_ctor_set(x_27, 1, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_25); +return x_28; +} +} +else +{ +uint8_t x_29; +lean_dec(x_3); +x_29 = !lean_is_exclusive(x_19); +if (x_29 == 0) +{ +return x_19; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_19, 0); +x_31 = lean_ctor_get(x_19, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_19); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +else +{ +uint8_t x_33; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +x_33 = !lean_is_exclusive(x_13); +if (x_33 == 0) +{ +return x_13; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_visitFn(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Expr_getAppFn(x_1); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_10); +x_11 = l_Lean_Meta_Simp_simp(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_11, 1); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_expr_eqv(x_15, x_10); +lean_dec(x_10); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_17 = lean_unsigned_to_nat(0u); +x_18 = l_Lean_Expr_getAppNumArgsAux(x_1, x_17); +x_19 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; +lean_inc(x_18); +x_20 = lean_mk_array(x_18, x_19); +x_21 = lean_unsigned_to_nat(1u); +x_22 = lean_nat_sub(x_18, x_21); +lean_dec(x_18); +x_23 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_20, x_22); +lean_inc(x_23); +x_24 = l_Lean_mkAppN(x_15, x_23); +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +lean_dec(x_23); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_26); +lean_ctor_set(x_11, 0, x_27); +return x_11; +} +else +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_25); +lean_free_object(x_11); +x_28 = lean_box(0); +x_29 = l_Lean_Meta_Simp_simp_visitFn___lambda__1(x_13, x_23, x_24, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_14); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_23); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_box(0); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_30); +lean_ctor_set(x_11, 0, x_31); +return x_11; +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_11, 0); +x_33 = lean_ctor_get(x_11, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_11); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +x_35 = lean_expr_eqv(x_34, x_10); +lean_dec(x_10); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_36 = lean_unsigned_to_nat(0u); +x_37 = l_Lean_Expr_getAppNumArgsAux(x_1, x_36); +x_38 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; +lean_inc(x_37); +x_39 = lean_mk_array(x_37, x_38); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_sub(x_37, x_40); +lean_dec(x_37); +x_42 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_39, x_41); +lean_inc(x_42); +x_43 = l_Lean_mkAppN(x_34, x_42); +x_44 = lean_ctor_get(x_32, 1); +lean_inc(x_44); +if (lean_obj_tag(x_44) == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_42); +lean_dec(x_32); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_43); +lean_ctor_set(x_46, 1, x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_33); +return x_47; +} +else +{ +lean_object* x_48; lean_object* x_49; +lean_dec(x_44); +x_48 = lean_box(0); +x_49 = l_Lean_Meta_Simp_simp_visitFn___lambda__1(x_32, x_42, x_43, x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_33); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_42); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_34); +lean_dec(x_32); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_50 = lean_box(0); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_1); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_33); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_11); +if (x_53 == 0) +{ +return x_11; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_11, 0); +x_55 = lean_ctor_get(x_11, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_11); +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; +} +} +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at_Lean_Meta_Simp_simp_simpStep___spec__1___closed__1; +x_2 = l_instInhabitedPUnit; +x_3 = l_instInhabited___rarg(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__1; +x_2 = lean_alloc_closure((void*)(l_instInhabitedReaderT___rarg___boxed), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__2; +x_2 = lean_alloc_closure((void*)(l_instInhabitedReaderT___rarg___boxed), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__3; +x_11 = lean_panic_fn(x_10, x_1); +x_12 = lean_apply_8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___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, uint8_t x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +uint8_t x_18; +x_18 = lean_expr_eqv(x_1, x_2); +if (x_18 == 0) +{ +uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_19 = 1; +x_20 = lean_box(x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_3); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_4); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_5); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_6); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_box(x_7); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_27, 0, x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_17); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_29 = lean_box(x_8); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_3); +lean_ctor_set(x_30, 1, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_4); +lean_ctor_set(x_31, 1, x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_5); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_6); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_box(x_7); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_17); +return x_37; +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Lean.Meta.Simp.simp.tryAutoCongrTheorem?"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_1 = l_Lean_Meta_Simp_simp_simpStep___closed__1; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1; +x_3 = lean_unsigned_to_nat(324u); +x_4 = lean_unsigned_to_nat(13u); +x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2(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; +x_13 = lean_usize_dec_lt(x_3, x_2); +if (x_13 == 0) +{ +lean_object* x_14; +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); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_4); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_15 = lean_array_uget(x_1, x_3); +x_25 = lean_ctor_get(x_4, 1); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = !lean_is_exclusive(x_4); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_4, 0); +x_32 = lean_ctor_get(x_4, 1); +lean_dec(x_32); +x_33 = !lean_is_exclusive(x_25); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_25, 0); +x_35 = lean_ctor_get(x_25, 1); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_26); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_37 = lean_ctor_get(x_26, 0); +x_38 = lean_ctor_get(x_26, 1); +lean_dec(x_38); +x_39 = !lean_is_exclusive(x_27); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_27, 0); +x_41 = lean_ctor_get(x_27, 1); +lean_dec(x_41); +x_42 = !lean_is_exclusive(x_28); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_43 = lean_ctor_get(x_28, 1); +x_44 = lean_ctor_get(x_28, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_29, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_29, 1); +lean_inc(x_46); +x_47 = lean_ctor_get(x_29, 2); +lean_inc(x_47); +x_48 = lean_nat_dec_lt(x_46, x_47); +if (x_48 == 0) +{ +lean_object* x_49; +lean_dec(x_47); +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_15); +x_49 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_49, 0, x_4); +x_16 = x_49; +x_17 = x_12; +goto block_24; +} +else +{ +uint8_t x_50; +x_50 = !lean_is_exclusive(x_29); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_51 = lean_ctor_get(x_29, 2); +lean_dec(x_51); +x_52 = lean_ctor_get(x_29, 1); +lean_dec(x_52); +x_53 = lean_ctor_get(x_29, 0); +lean_dec(x_53); +x_54 = lean_array_fget(x_45, x_46); +x_55 = lean_unbox(x_54); +lean_dec(x_54); +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_add(x_46, x_56); +lean_dec(x_46); +lean_ctor_set(x_29, 1, x_57); +x_58 = lean_box(x_55); +switch (lean_obj_tag(x_58)) { +case 1: +{ +lean_object* x_59; lean_object* x_60; +lean_dec(x_15); +x_59 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_60 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_59, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_60, 1); +lean_inc(x_61); +lean_dec(x_60); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_4); +x_16 = x_62; +x_17 = x_61; +goto block_24; +} +else +{ +uint8_t x_63; +lean_dec(x_29); +lean_free_object(x_28); +lean_dec(x_43); +lean_free_object(x_27); +lean_dec(x_40); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_63 = !lean_is_exclusive(x_60); +if (x_63 == 0) +{ +return x_60; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_60, 0); +x_65 = lean_ctor_get(x_60, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_60); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +case 2: +{ +lean_object* x_67; +lean_free_object(x_28); +lean_free_object(x_27); +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_4); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_15); +x_67 = l_Lean_Meta_Simp_simp(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_68); +x_70 = lean_array_push(x_37, x_68); +x_71 = lean_ctor_get(x_68, 0); +lean_inc(x_71); +lean_inc(x_71); +x_72 = lean_array_push(x_40, x_71); +x_73 = lean_ctor_get(x_68, 1); +lean_inc(x_73); +lean_dec(x_68); +if (lean_obj_tag(x_73) == 0) +{ +lean_object* x_74; uint8_t x_75; uint8_t x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_74 = lean_box(0); +x_75 = lean_unbox(x_31); +lean_dec(x_31); +x_76 = lean_unbox(x_43); +lean_dec(x_43); +x_77 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_71, x_29, x_72, x_70, x_34, x_75, x_76, x_74, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_69); +lean_dec(x_71); +lean_dec(x_15); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_16 = x_78; +x_17 = x_79; +goto block_24; +} +else +{ +uint8_t x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_73); +lean_dec(x_31); +x_80 = 1; +x_81 = lean_box(0); +x_82 = lean_unbox(x_43); +lean_dec(x_43); +x_83 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_71, x_29, x_72, x_70, x_34, x_80, x_82, x_81, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_69); +lean_dec(x_71); +lean_dec(x_15); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_16 = x_84; +x_17 = x_85; +goto block_24; +} +} +else +{ +uint8_t x_86; +lean_dec(x_29); +lean_dec(x_43); +lean_dec(x_40); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_15); +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); +x_86 = !lean_is_exclusive(x_67); +if (x_86 == 0) +{ +return x_67; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_67, 0); +x_88 = lean_ctor_get(x_67, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_67); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +case 3: +{ +lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_34); +x_90 = lean_array_push(x_40, x_15); +lean_ctor_set(x_27, 0, x_90); +x_91 = 1; +x_92 = lean_box(x_91); +lean_ctor_set(x_25, 0, x_92); +x_93 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_93, 0, x_4); +x_16 = x_93; +x_17 = x_12; +goto block_24; +} +case 4: +{ +lean_object* x_94; lean_object* x_95; +lean_dec(x_15); +x_94 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_95 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_94, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +lean_dec(x_95); +x_97 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_97, 0, x_4); +x_16 = x_97; +x_17 = x_96; +goto block_24; +} +else +{ +uint8_t x_98; +lean_dec(x_29); +lean_free_object(x_28); +lean_dec(x_43); +lean_free_object(x_27); +lean_dec(x_40); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_98 = !lean_is_exclusive(x_95); +if (x_98 == 0) +{ +return x_95; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_95, 0); +x_100 = lean_ctor_get(x_95, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_95); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +return x_101; +} +} +} +default: +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_58); +x_102 = lean_array_push(x_40, x_15); +lean_ctor_set(x_27, 0, x_102); +x_103 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_103, 0, x_4); +x_16 = x_103; +x_17 = x_12; +goto block_24; +} +} +} +else +{ +lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_29); +x_104 = lean_array_fget(x_45, x_46); +x_105 = lean_unbox(x_104); +lean_dec(x_104); +x_106 = lean_unsigned_to_nat(1u); +x_107 = lean_nat_add(x_46, x_106); +lean_dec(x_46); +x_108 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_108, 0, x_45); +lean_ctor_set(x_108, 1, x_107); +lean_ctor_set(x_108, 2, x_47); +x_109 = lean_box(x_105); +switch (lean_obj_tag(x_109)) { +case 1: +{ +lean_object* x_110; lean_object* x_111; +lean_dec(x_15); +x_110 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_111 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_110, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_111, 1); +lean_inc(x_112); +lean_dec(x_111); +lean_ctor_set(x_28, 0, x_108); +x_113 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_113, 0, x_4); +x_16 = x_113; +x_17 = x_112; +goto block_24; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +lean_dec(x_108); +lean_free_object(x_28); +lean_dec(x_43); +lean_free_object(x_27); +lean_dec(x_40); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_114 = lean_ctor_get(x_111, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_111, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_116 = x_111; +} else { + lean_dec_ref(x_111); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} +case 2: +{ +lean_object* x_118; +lean_free_object(x_28); +lean_free_object(x_27); +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_4); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_15); +x_118 = l_Lean_Meta_Simp_simp(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +lean_inc(x_119); +x_121 = lean_array_push(x_37, x_119); +x_122 = lean_ctor_get(x_119, 0); +lean_inc(x_122); +lean_inc(x_122); +x_123 = lean_array_push(x_40, x_122); +x_124 = lean_ctor_get(x_119, 1); +lean_inc(x_124); +lean_dec(x_119); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; uint8_t x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_125 = lean_box(0); +x_126 = lean_unbox(x_31); +lean_dec(x_31); +x_127 = lean_unbox(x_43); +lean_dec(x_43); +x_128 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_122, x_108, x_123, x_121, x_34, x_126, x_127, x_125, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_120); +lean_dec(x_122); +lean_dec(x_15); +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_16 = x_129; +x_17 = x_130; +goto block_24; +} +else +{ +uint8_t x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_124); +lean_dec(x_31); +x_131 = 1; +x_132 = lean_box(0); +x_133 = lean_unbox(x_43); +lean_dec(x_43); +x_134 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_122, x_108, x_123, x_121, x_34, x_131, x_133, x_132, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_120); +lean_dec(x_122); +lean_dec(x_15); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +lean_dec(x_134); +x_16 = x_135; +x_17 = x_136; +goto block_24; +} +} +else +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_108); +lean_dec(x_43); +lean_dec(x_40); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_15); +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); +x_137 = lean_ctor_get(x_118, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_118, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_139 = x_118; +} else { + lean_dec_ref(x_118); + x_139 = lean_box(0); +} +if (lean_is_scalar(x_139)) { + x_140 = lean_alloc_ctor(1, 2, 0); +} else { + x_140 = x_139; +} +lean_ctor_set(x_140, 0, x_137); +lean_ctor_set(x_140, 1, x_138); +return x_140; +} +} +case 3: +{ +lean_object* x_141; uint8_t x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_34); +x_141 = lean_array_push(x_40, x_15); +lean_ctor_set(x_28, 0, x_108); +lean_ctor_set(x_27, 0, x_141); +x_142 = 1; +x_143 = lean_box(x_142); +lean_ctor_set(x_25, 0, x_143); +x_144 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_144, 0, x_4); +x_16 = x_144; +x_17 = x_12; +goto block_24; +} +case 4: +{ +lean_object* x_145; lean_object* x_146; +lean_dec(x_15); +x_145 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_146 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_145, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_146) == 0) +{ +lean_object* x_147; lean_object* x_148; +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +lean_dec(x_146); +lean_ctor_set(x_28, 0, x_108); +x_148 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_148, 0, x_4); +x_16 = x_148; +x_17 = x_147; +goto block_24; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_108); +lean_free_object(x_28); +lean_dec(x_43); +lean_free_object(x_27); +lean_dec(x_40); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_149 = lean_ctor_get(x_146, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_146, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_151 = x_146; +} else { + lean_dec_ref(x_146); + x_151 = lean_box(0); +} +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(1, 2, 0); +} else { + x_152 = x_151; +} +lean_ctor_set(x_152, 0, x_149); +lean_ctor_set(x_152, 1, x_150); +return x_152; +} +} +default: +{ +lean_object* x_153; lean_object* x_154; +lean_dec(x_109); +x_153 = lean_array_push(x_40, x_15); +lean_ctor_set(x_28, 0, x_108); +lean_ctor_set(x_27, 0, x_153); +x_154 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_154, 0, x_4); +x_16 = x_154; +x_17 = x_12; +goto block_24; +} +} +} +} +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_155 = lean_ctor_get(x_28, 1); +lean_inc(x_155); +lean_dec(x_28); +x_156 = lean_ctor_get(x_29, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_29, 1); +lean_inc(x_157); +x_158 = lean_ctor_get(x_29, 2); +lean_inc(x_158); +x_159 = lean_nat_dec_lt(x_157, x_158); +if (x_159 == 0) +{ +lean_object* x_160; lean_object* x_161; +lean_dec(x_158); +lean_dec(x_157); +lean_dec(x_156); +lean_dec(x_15); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_29); +lean_ctor_set(x_160, 1, x_155); +lean_ctor_set(x_27, 1, x_160); +x_161 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_161, 0, x_4); +x_16 = x_161; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_162; lean_object* x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + lean_ctor_release(x_29, 2); + x_162 = x_29; +} else { + lean_dec_ref(x_29); + x_162 = lean_box(0); +} +x_163 = lean_array_fget(x_156, x_157); +x_164 = lean_unbox(x_163); +lean_dec(x_163); +x_165 = lean_unsigned_to_nat(1u); +x_166 = lean_nat_add(x_157, x_165); +lean_dec(x_157); +if (lean_is_scalar(x_162)) { + x_167 = lean_alloc_ctor(0, 3, 0); +} else { + x_167 = x_162; +} +lean_ctor_set(x_167, 0, x_156); +lean_ctor_set(x_167, 1, x_166); +lean_ctor_set(x_167, 2, x_158); +x_168 = lean_box(x_164); +switch (lean_obj_tag(x_168)) { +case 1: +{ +lean_object* x_169; lean_object* x_170; +lean_dec(x_15); +x_169 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_170 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_169, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +lean_dec(x_170); +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_167); +lean_ctor_set(x_172, 1, x_155); +lean_ctor_set(x_27, 1, x_172); +x_173 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_173, 0, x_4); +x_16 = x_173; +x_17 = x_171; +goto block_24; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +lean_dec(x_167); +lean_dec(x_155); +lean_free_object(x_27); +lean_dec(x_40); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_174 = lean_ctor_get(x_170, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_170, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_176 = x_170; +} else { + lean_dec_ref(x_170); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +return x_177; +} +} +case 2: +{ +lean_object* x_178; +lean_free_object(x_27); +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_4); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_15); +x_178 = l_Lean_Meta_Simp_simp(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_178) == 0) +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +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); +lean_inc(x_179); +x_181 = lean_array_push(x_37, x_179); +x_182 = lean_ctor_get(x_179, 0); +lean_inc(x_182); +lean_inc(x_182); +x_183 = lean_array_push(x_40, x_182); +x_184 = lean_ctor_get(x_179, 1); +lean_inc(x_184); +lean_dec(x_179); +if (lean_obj_tag(x_184) == 0) +{ +lean_object* x_185; uint8_t x_186; uint8_t x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_185 = lean_box(0); +x_186 = lean_unbox(x_31); +lean_dec(x_31); +x_187 = lean_unbox(x_155); +lean_dec(x_155); +x_188 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_182, x_167, x_183, x_181, x_34, x_186, x_187, x_185, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_180); +lean_dec(x_182); +lean_dec(x_15); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +lean_dec(x_188); +x_16 = x_189; +x_17 = x_190; +goto block_24; +} +else +{ +uint8_t x_191; lean_object* x_192; uint8_t x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +lean_dec(x_184); +lean_dec(x_31); +x_191 = 1; +x_192 = lean_box(0); +x_193 = lean_unbox(x_155); +lean_dec(x_155); +x_194 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_182, x_167, x_183, x_181, x_34, x_191, x_193, x_192, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_180); +lean_dec(x_182); +lean_dec(x_15); +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +x_16 = x_195; +x_17 = x_196; +goto block_24; +} +} +else +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +lean_dec(x_167); +lean_dec(x_155); +lean_dec(x_40); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_15); +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); +x_197 = lean_ctor_get(x_178, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_178, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_199 = x_178; +} else { + lean_dec_ref(x_178); + x_199 = lean_box(0); +} +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(1, 2, 0); +} else { + x_200 = x_199; +} +lean_ctor_set(x_200, 0, x_197); +lean_ctor_set(x_200, 1, x_198); +return x_200; +} +} +case 3: +{ +lean_object* x_201; lean_object* x_202; uint8_t x_203; lean_object* x_204; lean_object* x_205; +lean_dec(x_34); +x_201 = lean_array_push(x_40, x_15); +x_202 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_202, 0, x_167); +lean_ctor_set(x_202, 1, x_155); +lean_ctor_set(x_27, 1, x_202); +lean_ctor_set(x_27, 0, x_201); +x_203 = 1; +x_204 = lean_box(x_203); +lean_ctor_set(x_25, 0, x_204); +x_205 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_205, 0, x_4); +x_16 = x_205; +x_17 = x_12; +goto block_24; +} +case 4: +{ +lean_object* x_206; lean_object* x_207; +lean_dec(x_15); +x_206 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_207 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_206, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_207) == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_207, 1); +lean_inc(x_208); +lean_dec(x_207); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_167); +lean_ctor_set(x_209, 1, x_155); +lean_ctor_set(x_27, 1, x_209); +x_210 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_210, 0, x_4); +x_16 = x_210; +x_17 = x_208; +goto block_24; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_167); +lean_dec(x_155); +lean_free_object(x_27); +lean_dec(x_40); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_211 = lean_ctor_get(x_207, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_207, 1); +lean_inc(x_212); +if (lean_is_exclusive(x_207)) { + lean_ctor_release(x_207, 0); + lean_ctor_release(x_207, 1); + x_213 = x_207; +} else { + lean_dec_ref(x_207); + x_213 = lean_box(0); +} +if (lean_is_scalar(x_213)) { + x_214 = lean_alloc_ctor(1, 2, 0); +} else { + x_214 = x_213; +} +lean_ctor_set(x_214, 0, x_211); +lean_ctor_set(x_214, 1, x_212); +return x_214; +} +} +default: +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; +lean_dec(x_168); +x_215 = lean_array_push(x_40, x_15); +x_216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_216, 0, x_167); +lean_ctor_set(x_216, 1, x_155); +lean_ctor_set(x_27, 1, x_216); +lean_ctor_set(x_27, 0, x_215); +x_217 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_217, 0, x_4); +x_16 = x_217; +x_17 = x_12; +goto block_24; +} +} +} +} +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; +x_218 = lean_ctor_get(x_27, 0); +lean_inc(x_218); +lean_dec(x_27); +x_219 = lean_ctor_get(x_28, 1); +lean_inc(x_219); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_220 = x_28; +} else { + lean_dec_ref(x_28); + x_220 = lean_box(0); +} +x_221 = lean_ctor_get(x_29, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_29, 1); +lean_inc(x_222); +x_223 = lean_ctor_get(x_29, 2); +lean_inc(x_223); +x_224 = lean_nat_dec_lt(x_222, x_223); +if (x_224 == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_15); +if (lean_is_scalar(x_220)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_220; +} +lean_ctor_set(x_225, 0, x_29); +lean_ctor_set(x_225, 1, x_219); +x_226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_226, 0, x_218); +lean_ctor_set(x_226, 1, x_225); +lean_ctor_set(x_26, 1, x_226); +x_227 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_227, 0, x_4); +x_16 = x_227; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_228; lean_object* x_229; uint8_t x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + lean_ctor_release(x_29, 2); + x_228 = x_29; +} else { + lean_dec_ref(x_29); + x_228 = lean_box(0); +} +x_229 = lean_array_fget(x_221, x_222); +x_230 = lean_unbox(x_229); +lean_dec(x_229); +x_231 = lean_unsigned_to_nat(1u); +x_232 = lean_nat_add(x_222, x_231); +lean_dec(x_222); +if (lean_is_scalar(x_228)) { + x_233 = lean_alloc_ctor(0, 3, 0); +} else { + x_233 = x_228; +} +lean_ctor_set(x_233, 0, x_221); +lean_ctor_set(x_233, 1, x_232); +lean_ctor_set(x_233, 2, x_223); +x_234 = lean_box(x_230); +switch (lean_obj_tag(x_234)) { +case 1: +{ +lean_object* x_235; lean_object* x_236; +lean_dec(x_15); +x_235 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_236 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_235, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_236) == 0) +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_237 = lean_ctor_get(x_236, 1); +lean_inc(x_237); +lean_dec(x_236); +if (lean_is_scalar(x_220)) { + x_238 = lean_alloc_ctor(0, 2, 0); +} else { + x_238 = x_220; +} +lean_ctor_set(x_238, 0, x_233); +lean_ctor_set(x_238, 1, x_219); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_218); +lean_ctor_set(x_239, 1, x_238); +lean_ctor_set(x_26, 1, x_239); +x_240 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_240, 0, x_4); +x_16 = x_240; +x_17 = x_237; +goto block_24; +} +else +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +lean_dec(x_233); +lean_dec(x_220); +lean_dec(x_219); +lean_dec(x_218); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_241 = lean_ctor_get(x_236, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_236, 1); +lean_inc(x_242); +if (lean_is_exclusive(x_236)) { + lean_ctor_release(x_236, 0); + lean_ctor_release(x_236, 1); + x_243 = x_236; +} else { + lean_dec_ref(x_236); + x_243 = lean_box(0); +} +if (lean_is_scalar(x_243)) { + x_244 = lean_alloc_ctor(1, 2, 0); +} else { + x_244 = x_243; +} +lean_ctor_set(x_244, 0, x_241); +lean_ctor_set(x_244, 1, x_242); +return x_244; +} +} +case 2: +{ +lean_object* x_245; +lean_dec(x_220); +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_4); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_15); +x_245 = l_Lean_Meta_Simp_simp(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_245, 1); +lean_inc(x_247); +lean_dec(x_245); +lean_inc(x_246); +x_248 = lean_array_push(x_37, x_246); +x_249 = lean_ctor_get(x_246, 0); +lean_inc(x_249); +lean_inc(x_249); +x_250 = lean_array_push(x_218, x_249); +x_251 = lean_ctor_get(x_246, 1); +lean_inc(x_251); +lean_dec(x_246); +if (lean_obj_tag(x_251) == 0) +{ +lean_object* x_252; uint8_t x_253; uint8_t x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_252 = lean_box(0); +x_253 = lean_unbox(x_31); +lean_dec(x_31); +x_254 = lean_unbox(x_219); +lean_dec(x_219); +x_255 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_249, x_233, x_250, x_248, x_34, x_253, x_254, x_252, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_247); +lean_dec(x_249); +lean_dec(x_15); +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +lean_dec(x_255); +x_16 = x_256; +x_17 = x_257; +goto block_24; +} +else +{ +uint8_t x_258; lean_object* x_259; uint8_t x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_dec(x_251); +lean_dec(x_31); +x_258 = 1; +x_259 = lean_box(0); +x_260 = lean_unbox(x_219); +lean_dec(x_219); +x_261 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_249, x_233, x_250, x_248, x_34, x_258, x_260, x_259, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_247); +lean_dec(x_249); +lean_dec(x_15); +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_16 = x_262; +x_17 = x_263; +goto block_24; +} +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +lean_dec(x_233); +lean_dec(x_219); +lean_dec(x_218); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_15); +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); +x_264 = lean_ctor_get(x_245, 0); +lean_inc(x_264); +x_265 = lean_ctor_get(x_245, 1); +lean_inc(x_265); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + x_266 = x_245; +} else { + lean_dec_ref(x_245); + x_266 = lean_box(0); +} +if (lean_is_scalar(x_266)) { + x_267 = lean_alloc_ctor(1, 2, 0); +} else { + x_267 = x_266; +} +lean_ctor_set(x_267, 0, x_264); +lean_ctor_set(x_267, 1, x_265); +return x_267; +} +} +case 3: +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; lean_object* x_272; lean_object* x_273; +lean_dec(x_34); +x_268 = lean_array_push(x_218, x_15); +if (lean_is_scalar(x_220)) { + x_269 = lean_alloc_ctor(0, 2, 0); +} else { + x_269 = x_220; +} +lean_ctor_set(x_269, 0, x_233); +lean_ctor_set(x_269, 1, x_219); +x_270 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_270, 0, x_268); +lean_ctor_set(x_270, 1, x_269); +lean_ctor_set(x_26, 1, x_270); +x_271 = 1; +x_272 = lean_box(x_271); +lean_ctor_set(x_25, 0, x_272); +x_273 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_273, 0, x_4); +x_16 = x_273; +x_17 = x_12; +goto block_24; +} +case 4: +{ +lean_object* x_274; lean_object* x_275; +lean_dec(x_15); +x_274 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_275 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_274, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_275) == 0) +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_276 = lean_ctor_get(x_275, 1); +lean_inc(x_276); +lean_dec(x_275); +if (lean_is_scalar(x_220)) { + x_277 = lean_alloc_ctor(0, 2, 0); +} else { + x_277 = x_220; +} +lean_ctor_set(x_277, 0, x_233); +lean_ctor_set(x_277, 1, x_219); +x_278 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_278, 0, x_218); +lean_ctor_set(x_278, 1, x_277); +lean_ctor_set(x_26, 1, x_278); +x_279 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_279, 0, x_4); +x_16 = x_279; +x_17 = x_276; +goto block_24; +} +else +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; +lean_dec(x_233); +lean_dec(x_220); +lean_dec(x_219); +lean_dec(x_218); +lean_free_object(x_26); +lean_dec(x_37); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_280 = lean_ctor_get(x_275, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_275, 1); +lean_inc(x_281); +if (lean_is_exclusive(x_275)) { + lean_ctor_release(x_275, 0); + lean_ctor_release(x_275, 1); + x_282 = x_275; +} else { + lean_dec_ref(x_275); + x_282 = lean_box(0); +} +if (lean_is_scalar(x_282)) { + x_283 = lean_alloc_ctor(1, 2, 0); +} else { + x_283 = x_282; +} +lean_ctor_set(x_283, 0, x_280); +lean_ctor_set(x_283, 1, x_281); +return x_283; +} +} +default: +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; +lean_dec(x_234); +x_284 = lean_array_push(x_218, x_15); +if (lean_is_scalar(x_220)) { + x_285 = lean_alloc_ctor(0, 2, 0); +} else { + x_285 = x_220; +} +lean_ctor_set(x_285, 0, x_233); +lean_ctor_set(x_285, 1, x_219); +x_286 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_286, 0, x_284); +lean_ctor_set(x_286, 1, x_285); +lean_ctor_set(x_26, 1, x_286); +x_287 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_287, 0, x_4); +x_16 = x_287; +x_17 = x_12; +goto block_24; +} +} +} +} +} +else +{ +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; uint8_t x_296; +x_288 = lean_ctor_get(x_26, 0); +lean_inc(x_288); +lean_dec(x_26); +x_289 = lean_ctor_get(x_27, 0); +lean_inc(x_289); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_290 = x_27; +} else { + lean_dec_ref(x_27); + x_290 = lean_box(0); +} +x_291 = lean_ctor_get(x_28, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_292 = x_28; +} else { + lean_dec_ref(x_28); + x_292 = lean_box(0); +} +x_293 = lean_ctor_get(x_29, 0); +lean_inc(x_293); +x_294 = lean_ctor_get(x_29, 1); +lean_inc(x_294); +x_295 = lean_ctor_get(x_29, 2); +lean_inc(x_295); +x_296 = lean_nat_dec_lt(x_294, x_295); +if (x_296 == 0) +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +lean_dec(x_295); +lean_dec(x_294); +lean_dec(x_293); +lean_dec(x_15); +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(0, 2, 0); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_29); +lean_ctor_set(x_297, 1, x_291); +if (lean_is_scalar(x_290)) { + x_298 = lean_alloc_ctor(0, 2, 0); +} else { + x_298 = x_290; +} +lean_ctor_set(x_298, 0, x_289); +lean_ctor_set(x_298, 1, x_297); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_288); +lean_ctor_set(x_299, 1, x_298); +lean_ctor_set(x_25, 1, x_299); +x_300 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_300, 0, x_4); +x_16 = x_300; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_301; lean_object* x_302; uint8_t x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + lean_ctor_release(x_29, 2); + x_301 = x_29; +} else { + lean_dec_ref(x_29); + x_301 = lean_box(0); +} +x_302 = lean_array_fget(x_293, x_294); +x_303 = lean_unbox(x_302); +lean_dec(x_302); +x_304 = lean_unsigned_to_nat(1u); +x_305 = lean_nat_add(x_294, x_304); +lean_dec(x_294); +if (lean_is_scalar(x_301)) { + x_306 = lean_alloc_ctor(0, 3, 0); +} else { + x_306 = x_301; +} +lean_ctor_set(x_306, 0, x_293); +lean_ctor_set(x_306, 1, x_305); +lean_ctor_set(x_306, 2, x_295); +x_307 = lean_box(x_303); +switch (lean_obj_tag(x_307)) { +case 1: +{ +lean_object* x_308; lean_object* x_309; +lean_dec(x_15); +x_308 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_309 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_308, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_309) == 0) +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_310 = lean_ctor_get(x_309, 1); +lean_inc(x_310); +lean_dec(x_309); +if (lean_is_scalar(x_292)) { + x_311 = lean_alloc_ctor(0, 2, 0); +} else { + x_311 = x_292; +} +lean_ctor_set(x_311, 0, x_306); +lean_ctor_set(x_311, 1, x_291); +if (lean_is_scalar(x_290)) { + x_312 = lean_alloc_ctor(0, 2, 0); +} else { + x_312 = x_290; +} +lean_ctor_set(x_312, 0, x_289); +lean_ctor_set(x_312, 1, x_311); +x_313 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_313, 0, x_288); +lean_ctor_set(x_313, 1, x_312); +lean_ctor_set(x_25, 1, x_313); +x_314 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_314, 0, x_4); +x_16 = x_314; +x_17 = x_310; +goto block_24; +} +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +lean_dec(x_306); +lean_dec(x_292); +lean_dec(x_291); +lean_dec(x_290); +lean_dec(x_289); +lean_dec(x_288); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_315 = lean_ctor_get(x_309, 0); +lean_inc(x_315); +x_316 = lean_ctor_get(x_309, 1); +lean_inc(x_316); +if (lean_is_exclusive(x_309)) { + lean_ctor_release(x_309, 0); + lean_ctor_release(x_309, 1); + x_317 = x_309; +} else { + lean_dec_ref(x_309); + x_317 = lean_box(0); +} +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(1, 2, 0); +} else { + x_318 = x_317; +} +lean_ctor_set(x_318, 0, x_315); +lean_ctor_set(x_318, 1, x_316); +return x_318; +} +} +case 2: +{ +lean_object* x_319; +lean_dec(x_292); +lean_dec(x_290); +lean_free_object(x_25); +lean_free_object(x_4); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_15); +x_319 = l_Lean_Meta_Simp_simp(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_319) == 0) +{ +lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; +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); +lean_inc(x_320); +x_322 = lean_array_push(x_288, x_320); +x_323 = lean_ctor_get(x_320, 0); +lean_inc(x_323); +lean_inc(x_323); +x_324 = lean_array_push(x_289, x_323); +x_325 = lean_ctor_get(x_320, 1); +lean_inc(x_325); +lean_dec(x_320); +if (lean_obj_tag(x_325) == 0) +{ +lean_object* x_326; uint8_t x_327; uint8_t x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_326 = lean_box(0); +x_327 = lean_unbox(x_31); +lean_dec(x_31); +x_328 = lean_unbox(x_291); +lean_dec(x_291); +x_329 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_323, x_306, x_324, x_322, x_34, x_327, x_328, x_326, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_321); +lean_dec(x_323); +lean_dec(x_15); +x_330 = lean_ctor_get(x_329, 0); +lean_inc(x_330); +x_331 = lean_ctor_get(x_329, 1); +lean_inc(x_331); +lean_dec(x_329); +x_16 = x_330; +x_17 = x_331; +goto block_24; +} +else +{ +uint8_t x_332; lean_object* x_333; uint8_t x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; +lean_dec(x_325); +lean_dec(x_31); +x_332 = 1; +x_333 = lean_box(0); +x_334 = lean_unbox(x_291); +lean_dec(x_291); +x_335 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_323, x_306, x_324, x_322, x_34, x_332, x_334, x_333, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_321); +lean_dec(x_323); +lean_dec(x_15); +x_336 = lean_ctor_get(x_335, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_335, 1); +lean_inc(x_337); +lean_dec(x_335); +x_16 = x_336; +x_17 = x_337; +goto block_24; +} +} +else +{ +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; +lean_dec(x_306); +lean_dec(x_291); +lean_dec(x_289); +lean_dec(x_288); +lean_dec(x_34); +lean_dec(x_31); +lean_dec(x_15); +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); +x_338 = lean_ctor_get(x_319, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_319, 1); +lean_inc(x_339); +if (lean_is_exclusive(x_319)) { + lean_ctor_release(x_319, 0); + lean_ctor_release(x_319, 1); + x_340 = x_319; +} else { + lean_dec_ref(x_319); + x_340 = lean_box(0); +} +if (lean_is_scalar(x_340)) { + x_341 = lean_alloc_ctor(1, 2, 0); +} else { + x_341 = x_340; +} +lean_ctor_set(x_341, 0, x_338); +lean_ctor_set(x_341, 1, x_339); +return x_341; +} +} +case 3: +{ +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; lean_object* x_347; lean_object* x_348; +lean_dec(x_34); +x_342 = lean_array_push(x_289, x_15); +if (lean_is_scalar(x_292)) { + x_343 = lean_alloc_ctor(0, 2, 0); +} else { + x_343 = x_292; +} +lean_ctor_set(x_343, 0, x_306); +lean_ctor_set(x_343, 1, x_291); +if (lean_is_scalar(x_290)) { + x_344 = lean_alloc_ctor(0, 2, 0); +} else { + x_344 = x_290; +} +lean_ctor_set(x_344, 0, x_342); +lean_ctor_set(x_344, 1, x_343); +x_345 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_345, 0, x_288); +lean_ctor_set(x_345, 1, x_344); +x_346 = 1; +x_347 = lean_box(x_346); +lean_ctor_set(x_25, 1, x_345); +lean_ctor_set(x_25, 0, x_347); +x_348 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_348, 0, x_4); +x_16 = x_348; +x_17 = x_12; +goto block_24; +} +case 4: +{ +lean_object* x_349; lean_object* x_350; +lean_dec(x_15); +x_349 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_350 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_349, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_350) == 0) +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_351 = lean_ctor_get(x_350, 1); +lean_inc(x_351); +lean_dec(x_350); +if (lean_is_scalar(x_292)) { + x_352 = lean_alloc_ctor(0, 2, 0); +} else { + x_352 = x_292; +} +lean_ctor_set(x_352, 0, x_306); +lean_ctor_set(x_352, 1, x_291); +if (lean_is_scalar(x_290)) { + x_353 = lean_alloc_ctor(0, 2, 0); +} else { + x_353 = x_290; +} +lean_ctor_set(x_353, 0, x_289); +lean_ctor_set(x_353, 1, x_352); +x_354 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_354, 0, x_288); +lean_ctor_set(x_354, 1, x_353); +lean_ctor_set(x_25, 1, x_354); +x_355 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_355, 0, x_4); +x_16 = x_355; +x_17 = x_351; +goto block_24; +} +else +{ +lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; +lean_dec(x_306); +lean_dec(x_292); +lean_dec(x_291); +lean_dec(x_290); +lean_dec(x_289); +lean_dec(x_288); +lean_free_object(x_25); +lean_dec(x_34); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_356 = lean_ctor_get(x_350, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_350, 1); +lean_inc(x_357); +if (lean_is_exclusive(x_350)) { + lean_ctor_release(x_350, 0); + lean_ctor_release(x_350, 1); + x_358 = x_350; +} else { + lean_dec_ref(x_350); + x_358 = lean_box(0); +} +if (lean_is_scalar(x_358)) { + x_359 = lean_alloc_ctor(1, 2, 0); +} else { + x_359 = x_358; +} +lean_ctor_set(x_359, 0, x_356); +lean_ctor_set(x_359, 1, x_357); +return x_359; +} +} +default: +{ +lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; +lean_dec(x_307); +x_360 = lean_array_push(x_289, x_15); +if (lean_is_scalar(x_292)) { + x_361 = lean_alloc_ctor(0, 2, 0); +} else { + x_361 = x_292; +} +lean_ctor_set(x_361, 0, x_306); +lean_ctor_set(x_361, 1, x_291); +if (lean_is_scalar(x_290)) { + x_362 = lean_alloc_ctor(0, 2, 0); +} else { + x_362 = x_290; +} +lean_ctor_set(x_362, 0, x_360); +lean_ctor_set(x_362, 1, x_361); +x_363 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_363, 0, x_288); +lean_ctor_set(x_363, 1, x_362); +lean_ctor_set(x_25, 1, x_363); +x_364 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_364, 0, x_4); +x_16 = x_364; +x_17 = x_12; +goto block_24; +} +} +} +} +} +else +{ +lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; uint8_t x_375; +x_365 = lean_ctor_get(x_25, 0); +lean_inc(x_365); +lean_dec(x_25); +x_366 = lean_ctor_get(x_26, 0); +lean_inc(x_366); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_367 = x_26; +} else { + lean_dec_ref(x_26); + x_367 = lean_box(0); +} +x_368 = lean_ctor_get(x_27, 0); +lean_inc(x_368); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_369 = x_27; +} else { + lean_dec_ref(x_27); + x_369 = lean_box(0); +} +x_370 = lean_ctor_get(x_28, 1); +lean_inc(x_370); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_371 = x_28; +} else { + lean_dec_ref(x_28); + x_371 = lean_box(0); +} +x_372 = lean_ctor_get(x_29, 0); +lean_inc(x_372); +x_373 = lean_ctor_get(x_29, 1); +lean_inc(x_373); +x_374 = lean_ctor_get(x_29, 2); +lean_inc(x_374); +x_375 = lean_nat_dec_lt(x_373, x_374); +if (x_375 == 0) +{ +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; +lean_dec(x_374); +lean_dec(x_373); +lean_dec(x_372); +lean_dec(x_15); +if (lean_is_scalar(x_371)) { + x_376 = lean_alloc_ctor(0, 2, 0); +} else { + x_376 = x_371; +} +lean_ctor_set(x_376, 0, x_29); +lean_ctor_set(x_376, 1, x_370); +if (lean_is_scalar(x_369)) { + x_377 = lean_alloc_ctor(0, 2, 0); +} else { + x_377 = x_369; +} +lean_ctor_set(x_377, 0, x_368); +lean_ctor_set(x_377, 1, x_376); +if (lean_is_scalar(x_367)) { + x_378 = lean_alloc_ctor(0, 2, 0); +} else { + x_378 = x_367; +} +lean_ctor_set(x_378, 0, x_366); +lean_ctor_set(x_378, 1, x_377); +x_379 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_379, 0, x_365); +lean_ctor_set(x_379, 1, x_378); +lean_ctor_set(x_4, 1, x_379); +x_380 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_380, 0, x_4); +x_16 = x_380; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_381; lean_object* x_382; uint8_t x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + lean_ctor_release(x_29, 2); + x_381 = x_29; +} else { + lean_dec_ref(x_29); + x_381 = lean_box(0); +} +x_382 = lean_array_fget(x_372, x_373); +x_383 = lean_unbox(x_382); +lean_dec(x_382); +x_384 = lean_unsigned_to_nat(1u); +x_385 = lean_nat_add(x_373, x_384); +lean_dec(x_373); +if (lean_is_scalar(x_381)) { + x_386 = lean_alloc_ctor(0, 3, 0); +} else { + x_386 = x_381; +} +lean_ctor_set(x_386, 0, x_372); +lean_ctor_set(x_386, 1, x_385); +lean_ctor_set(x_386, 2, x_374); +x_387 = lean_box(x_383); +switch (lean_obj_tag(x_387)) { +case 1: +{ +lean_object* x_388; lean_object* x_389; +lean_dec(x_15); +x_388 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_389 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_388, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_389) == 0) +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_390 = lean_ctor_get(x_389, 1); +lean_inc(x_390); +lean_dec(x_389); +if (lean_is_scalar(x_371)) { + x_391 = lean_alloc_ctor(0, 2, 0); +} else { + x_391 = x_371; +} +lean_ctor_set(x_391, 0, x_386); +lean_ctor_set(x_391, 1, x_370); +if (lean_is_scalar(x_369)) { + x_392 = lean_alloc_ctor(0, 2, 0); +} else { + x_392 = x_369; +} +lean_ctor_set(x_392, 0, x_368); +lean_ctor_set(x_392, 1, x_391); +if (lean_is_scalar(x_367)) { + x_393 = lean_alloc_ctor(0, 2, 0); +} else { + x_393 = x_367; +} +lean_ctor_set(x_393, 0, x_366); +lean_ctor_set(x_393, 1, x_392); +x_394 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_394, 0, x_365); +lean_ctor_set(x_394, 1, x_393); +lean_ctor_set(x_4, 1, x_394); +x_395 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_395, 0, x_4); +x_16 = x_395; +x_17 = x_390; +goto block_24; +} +else +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; +lean_dec(x_386); +lean_dec(x_371); +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_dec(x_366); +lean_dec(x_365); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_396 = lean_ctor_get(x_389, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_389, 1); +lean_inc(x_397); +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_398 = x_389; +} else { + lean_dec_ref(x_389); + x_398 = lean_box(0); +} +if (lean_is_scalar(x_398)) { + x_399 = lean_alloc_ctor(1, 2, 0); +} else { + x_399 = x_398; +} +lean_ctor_set(x_399, 0, x_396); +lean_ctor_set(x_399, 1, x_397); +return x_399; +} +} +case 2: +{ +lean_object* x_400; +lean_dec(x_371); +lean_dec(x_369); +lean_dec(x_367); +lean_free_object(x_4); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_15); +x_400 = l_Lean_Meta_Simp_simp(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_400) == 0) +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_401 = lean_ctor_get(x_400, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_400, 1); +lean_inc(x_402); +lean_dec(x_400); +lean_inc(x_401); +x_403 = lean_array_push(x_366, x_401); +x_404 = lean_ctor_get(x_401, 0); +lean_inc(x_404); +lean_inc(x_404); +x_405 = lean_array_push(x_368, x_404); +x_406 = lean_ctor_get(x_401, 1); +lean_inc(x_406); +lean_dec(x_401); +if (lean_obj_tag(x_406) == 0) +{ +lean_object* x_407; uint8_t x_408; uint8_t x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_407 = lean_box(0); +x_408 = lean_unbox(x_31); +lean_dec(x_31); +x_409 = lean_unbox(x_370); +lean_dec(x_370); +x_410 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_404, x_386, x_405, x_403, x_365, x_408, x_409, x_407, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_402); +lean_dec(x_404); +lean_dec(x_15); +x_411 = lean_ctor_get(x_410, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_410, 1); +lean_inc(x_412); +lean_dec(x_410); +x_16 = x_411; +x_17 = x_412; +goto block_24; +} +else +{ +uint8_t x_413; lean_object* x_414; uint8_t x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; +lean_dec(x_406); +lean_dec(x_31); +x_413 = 1; +x_414 = lean_box(0); +x_415 = lean_unbox(x_370); +lean_dec(x_370); +x_416 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_404, x_386, x_405, x_403, x_365, x_413, x_415, x_414, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_402); +lean_dec(x_404); +lean_dec(x_15); +x_417 = lean_ctor_get(x_416, 0); +lean_inc(x_417); +x_418 = lean_ctor_get(x_416, 1); +lean_inc(x_418); +lean_dec(x_416); +x_16 = x_417; +x_17 = x_418; +goto block_24; +} +} +else +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; +lean_dec(x_386); +lean_dec(x_370); +lean_dec(x_368); +lean_dec(x_366); +lean_dec(x_365); +lean_dec(x_31); +lean_dec(x_15); +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); +x_419 = lean_ctor_get(x_400, 0); +lean_inc(x_419); +x_420 = lean_ctor_get(x_400, 1); +lean_inc(x_420); +if (lean_is_exclusive(x_400)) { + lean_ctor_release(x_400, 0); + lean_ctor_release(x_400, 1); + x_421 = x_400; +} else { + lean_dec_ref(x_400); + x_421 = lean_box(0); +} +if (lean_is_scalar(x_421)) { + x_422 = lean_alloc_ctor(1, 2, 0); +} else { + x_422 = x_421; +} +lean_ctor_set(x_422, 0, x_419); +lean_ctor_set(x_422, 1, x_420); +return x_422; +} +} +case 3: +{ +lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; uint8_t x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +lean_dec(x_365); +x_423 = lean_array_push(x_368, x_15); +if (lean_is_scalar(x_371)) { + x_424 = lean_alloc_ctor(0, 2, 0); +} else { + x_424 = x_371; +} +lean_ctor_set(x_424, 0, x_386); +lean_ctor_set(x_424, 1, x_370); +if (lean_is_scalar(x_369)) { + x_425 = lean_alloc_ctor(0, 2, 0); +} else { + x_425 = x_369; +} +lean_ctor_set(x_425, 0, x_423); +lean_ctor_set(x_425, 1, x_424); +if (lean_is_scalar(x_367)) { + x_426 = lean_alloc_ctor(0, 2, 0); +} else { + x_426 = x_367; +} +lean_ctor_set(x_426, 0, x_366); +lean_ctor_set(x_426, 1, x_425); +x_427 = 1; +x_428 = lean_box(x_427); +x_429 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_429, 0, x_428); +lean_ctor_set(x_429, 1, x_426); +lean_ctor_set(x_4, 1, x_429); +x_430 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_430, 0, x_4); +x_16 = x_430; +x_17 = x_12; +goto block_24; +} +case 4: +{ +lean_object* x_431; lean_object* x_432; +lean_dec(x_15); +x_431 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_432 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_431, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_432) == 0) +{ +lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +x_433 = lean_ctor_get(x_432, 1); +lean_inc(x_433); +lean_dec(x_432); +if (lean_is_scalar(x_371)) { + x_434 = lean_alloc_ctor(0, 2, 0); +} else { + x_434 = x_371; +} +lean_ctor_set(x_434, 0, x_386); +lean_ctor_set(x_434, 1, x_370); +if (lean_is_scalar(x_369)) { + x_435 = lean_alloc_ctor(0, 2, 0); +} else { + x_435 = x_369; +} +lean_ctor_set(x_435, 0, x_368); +lean_ctor_set(x_435, 1, x_434); +if (lean_is_scalar(x_367)) { + x_436 = lean_alloc_ctor(0, 2, 0); +} else { + x_436 = x_367; +} +lean_ctor_set(x_436, 0, x_366); +lean_ctor_set(x_436, 1, x_435); +x_437 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_437, 0, x_365); +lean_ctor_set(x_437, 1, x_436); +lean_ctor_set(x_4, 1, x_437); +x_438 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_438, 0, x_4); +x_16 = x_438; +x_17 = x_433; +goto block_24; +} +else +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; +lean_dec(x_386); +lean_dec(x_371); +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_dec(x_366); +lean_dec(x_365); +lean_free_object(x_4); +lean_dec(x_31); +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); +x_439 = lean_ctor_get(x_432, 0); +lean_inc(x_439); +x_440 = lean_ctor_get(x_432, 1); +lean_inc(x_440); +if (lean_is_exclusive(x_432)) { + lean_ctor_release(x_432, 0); + lean_ctor_release(x_432, 1); + x_441 = x_432; +} else { + lean_dec_ref(x_432); + x_441 = lean_box(0); +} +if (lean_is_scalar(x_441)) { + x_442 = lean_alloc_ctor(1, 2, 0); +} else { + x_442 = x_441; +} +lean_ctor_set(x_442, 0, x_439); +lean_ctor_set(x_442, 1, x_440); +return x_442; +} +} +default: +{ +lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; +lean_dec(x_387); +x_443 = lean_array_push(x_368, x_15); +if (lean_is_scalar(x_371)) { + x_444 = lean_alloc_ctor(0, 2, 0); +} else { + x_444 = x_371; +} +lean_ctor_set(x_444, 0, x_386); +lean_ctor_set(x_444, 1, x_370); +if (lean_is_scalar(x_369)) { + x_445 = lean_alloc_ctor(0, 2, 0); +} else { + x_445 = x_369; +} +lean_ctor_set(x_445, 0, x_443); +lean_ctor_set(x_445, 1, x_444); +if (lean_is_scalar(x_367)) { + x_446 = lean_alloc_ctor(0, 2, 0); +} else { + x_446 = x_367; +} +lean_ctor_set(x_446, 0, x_366); +lean_ctor_set(x_446, 1, x_445); +x_447 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_447, 0, x_365); +lean_ctor_set(x_447, 1, x_446); +lean_ctor_set(x_4, 1, x_447); +x_448 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_448, 0, x_4); +x_16 = x_448; +x_17 = x_12; +goto block_24; +} +} +} +} +} +else +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; +x_449 = lean_ctor_get(x_4, 0); +lean_inc(x_449); +lean_dec(x_4); +x_450 = lean_ctor_get(x_25, 0); +lean_inc(x_450); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_451 = x_25; +} else { + lean_dec_ref(x_25); + x_451 = lean_box(0); +} +x_452 = lean_ctor_get(x_26, 0); +lean_inc(x_452); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_453 = x_26; +} else { + lean_dec_ref(x_26); + x_453 = lean_box(0); +} +x_454 = lean_ctor_get(x_27, 0); +lean_inc(x_454); +if (lean_is_exclusive(x_27)) { + lean_ctor_release(x_27, 0); + lean_ctor_release(x_27, 1); + x_455 = x_27; +} else { + lean_dec_ref(x_27); + x_455 = lean_box(0); +} +x_456 = lean_ctor_get(x_28, 1); +lean_inc(x_456); +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_457 = x_28; +} else { + lean_dec_ref(x_28); + x_457 = lean_box(0); +} +x_458 = lean_ctor_get(x_29, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_29, 1); +lean_inc(x_459); +x_460 = lean_ctor_get(x_29, 2); +lean_inc(x_460); +x_461 = lean_nat_dec_lt(x_459, x_460); +if (x_461 == 0) +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; +lean_dec(x_460); +lean_dec(x_459); +lean_dec(x_458); +lean_dec(x_15); +if (lean_is_scalar(x_457)) { + x_462 = lean_alloc_ctor(0, 2, 0); +} else { + x_462 = x_457; +} +lean_ctor_set(x_462, 0, x_29); +lean_ctor_set(x_462, 1, x_456); +if (lean_is_scalar(x_455)) { + x_463 = lean_alloc_ctor(0, 2, 0); +} else { + x_463 = x_455; +} +lean_ctor_set(x_463, 0, x_454); +lean_ctor_set(x_463, 1, x_462); +if (lean_is_scalar(x_453)) { + x_464 = lean_alloc_ctor(0, 2, 0); +} else { + x_464 = x_453; +} +lean_ctor_set(x_464, 0, x_452); +lean_ctor_set(x_464, 1, x_463); +if (lean_is_scalar(x_451)) { + x_465 = lean_alloc_ctor(0, 2, 0); +} else { + x_465 = x_451; +} +lean_ctor_set(x_465, 0, x_450); +lean_ctor_set(x_465, 1, x_464); +x_466 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_466, 0, x_449); +lean_ctor_set(x_466, 1, x_465); +x_467 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_467, 0, x_466); +x_16 = x_467; +x_17 = x_12; +goto block_24; +} +else +{ +lean_object* x_468; lean_object* x_469; uint8_t x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + lean_ctor_release(x_29, 2); + x_468 = x_29; +} else { + lean_dec_ref(x_29); + x_468 = lean_box(0); +} +x_469 = lean_array_fget(x_458, x_459); +x_470 = lean_unbox(x_469); +lean_dec(x_469); +x_471 = lean_unsigned_to_nat(1u); +x_472 = lean_nat_add(x_459, x_471); +lean_dec(x_459); +if (lean_is_scalar(x_468)) { + x_473 = lean_alloc_ctor(0, 3, 0); +} else { + x_473 = x_468; +} +lean_ctor_set(x_473, 0, x_458); +lean_ctor_set(x_473, 1, x_472); +lean_ctor_set(x_473, 2, x_460); +x_474 = lean_box(x_470); +switch (lean_obj_tag(x_474)) { +case 1: +{ +lean_object* x_475; lean_object* x_476; +lean_dec(x_15); +x_475 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_476 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_475, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_476) == 0) +{ +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; +x_477 = lean_ctor_get(x_476, 1); +lean_inc(x_477); +lean_dec(x_476); +if (lean_is_scalar(x_457)) { + x_478 = lean_alloc_ctor(0, 2, 0); +} else { + x_478 = x_457; +} +lean_ctor_set(x_478, 0, x_473); +lean_ctor_set(x_478, 1, x_456); +if (lean_is_scalar(x_455)) { + x_479 = lean_alloc_ctor(0, 2, 0); +} else { + x_479 = x_455; +} +lean_ctor_set(x_479, 0, x_454); +lean_ctor_set(x_479, 1, x_478); +if (lean_is_scalar(x_453)) { + x_480 = lean_alloc_ctor(0, 2, 0); +} else { + x_480 = x_453; +} +lean_ctor_set(x_480, 0, x_452); +lean_ctor_set(x_480, 1, x_479); +if (lean_is_scalar(x_451)) { + x_481 = lean_alloc_ctor(0, 2, 0); +} else { + x_481 = x_451; +} +lean_ctor_set(x_481, 0, x_450); +lean_ctor_set(x_481, 1, x_480); +x_482 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_482, 0, x_449); +lean_ctor_set(x_482, 1, x_481); +x_483 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_483, 0, x_482); +x_16 = x_483; +x_17 = x_477; +goto block_24; +} +else +{ +lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; +lean_dec(x_473); +lean_dec(x_457); +lean_dec(x_456); +lean_dec(x_455); +lean_dec(x_454); +lean_dec(x_453); +lean_dec(x_452); +lean_dec(x_451); +lean_dec(x_450); +lean_dec(x_449); +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); +x_484 = lean_ctor_get(x_476, 0); +lean_inc(x_484); +x_485 = lean_ctor_get(x_476, 1); +lean_inc(x_485); +if (lean_is_exclusive(x_476)) { + lean_ctor_release(x_476, 0); + lean_ctor_release(x_476, 1); + x_486 = x_476; +} else { + lean_dec_ref(x_476); + x_486 = lean_box(0); +} +if (lean_is_scalar(x_486)) { + x_487 = lean_alloc_ctor(1, 2, 0); +} else { + x_487 = x_486; +} +lean_ctor_set(x_487, 0, x_484); +lean_ctor_set(x_487, 1, x_485); +return x_487; +} +} +case 2: +{ +lean_object* x_488; +lean_dec(x_457); +lean_dec(x_455); +lean_dec(x_453); +lean_dec(x_451); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_15); +x_488 = l_Lean_Meta_Simp_simp(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_488) == 0) +{ +lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_489 = lean_ctor_get(x_488, 0); +lean_inc(x_489); +x_490 = lean_ctor_get(x_488, 1); +lean_inc(x_490); +lean_dec(x_488); +lean_inc(x_489); +x_491 = lean_array_push(x_452, x_489); +x_492 = lean_ctor_get(x_489, 0); +lean_inc(x_492); +lean_inc(x_492); +x_493 = lean_array_push(x_454, x_492); +x_494 = lean_ctor_get(x_489, 1); +lean_inc(x_494); +lean_dec(x_489); +if (lean_obj_tag(x_494) == 0) +{ +lean_object* x_495; uint8_t x_496; uint8_t x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_495 = lean_box(0); +x_496 = lean_unbox(x_449); +lean_dec(x_449); +x_497 = lean_unbox(x_456); +lean_dec(x_456); +x_498 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_492, x_473, x_493, x_491, x_450, x_496, x_497, x_495, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_490); +lean_dec(x_492); +lean_dec(x_15); +x_499 = lean_ctor_get(x_498, 0); +lean_inc(x_499); +x_500 = lean_ctor_get(x_498, 1); +lean_inc(x_500); +lean_dec(x_498); +x_16 = x_499; +x_17 = x_500; +goto block_24; +} +else +{ +uint8_t x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; +lean_dec(x_494); +lean_dec(x_449); +x_501 = 1; +x_502 = lean_box(0); +x_503 = lean_unbox(x_456); +lean_dec(x_456); +x_504 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_15, x_492, x_473, x_493, x_491, x_450, x_501, x_503, x_502, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_490); +lean_dec(x_492); +lean_dec(x_15); +x_505 = lean_ctor_get(x_504, 0); +lean_inc(x_505); +x_506 = lean_ctor_get(x_504, 1); +lean_inc(x_506); +lean_dec(x_504); +x_16 = x_505; +x_17 = x_506; +goto block_24; +} +} +else +{ +lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; +lean_dec(x_473); +lean_dec(x_456); +lean_dec(x_454); +lean_dec(x_452); +lean_dec(x_450); +lean_dec(x_449); +lean_dec(x_15); +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); +x_507 = lean_ctor_get(x_488, 0); +lean_inc(x_507); +x_508 = lean_ctor_get(x_488, 1); +lean_inc(x_508); +if (lean_is_exclusive(x_488)) { + lean_ctor_release(x_488, 0); + lean_ctor_release(x_488, 1); + x_509 = x_488; +} else { + lean_dec_ref(x_488); + x_509 = lean_box(0); +} +if (lean_is_scalar(x_509)) { + x_510 = lean_alloc_ctor(1, 2, 0); +} else { + x_510 = x_509; +} +lean_ctor_set(x_510, 0, x_507); +lean_ctor_set(x_510, 1, x_508); +return x_510; +} +} +case 3: +{ +lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; uint8_t x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; +lean_dec(x_450); +x_511 = lean_array_push(x_454, x_15); +if (lean_is_scalar(x_457)) { + x_512 = lean_alloc_ctor(0, 2, 0); +} else { + x_512 = x_457; +} +lean_ctor_set(x_512, 0, x_473); +lean_ctor_set(x_512, 1, x_456); +if (lean_is_scalar(x_455)) { + x_513 = lean_alloc_ctor(0, 2, 0); +} else { + x_513 = x_455; +} +lean_ctor_set(x_513, 0, x_511); +lean_ctor_set(x_513, 1, x_512); +if (lean_is_scalar(x_453)) { + x_514 = lean_alloc_ctor(0, 2, 0); +} else { + x_514 = x_453; +} +lean_ctor_set(x_514, 0, x_452); +lean_ctor_set(x_514, 1, x_513); +x_515 = 1; +x_516 = lean_box(x_515); +if (lean_is_scalar(x_451)) { + x_517 = lean_alloc_ctor(0, 2, 0); +} else { + x_517 = x_451; +} +lean_ctor_set(x_517, 0, x_516); +lean_ctor_set(x_517, 1, x_514); +x_518 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_518, 0, x_449); +lean_ctor_set(x_518, 1, x_517); +x_519 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_519, 0, x_518); +x_16 = x_519; +x_17 = x_12; +goto block_24; +} +case 4: +{ +lean_object* x_520; lean_object* x_521; +lean_dec(x_15); +x_520 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_521 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_520, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_521) == 0) +{ +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; +x_522 = lean_ctor_get(x_521, 1); +lean_inc(x_522); +lean_dec(x_521); +if (lean_is_scalar(x_457)) { + x_523 = lean_alloc_ctor(0, 2, 0); +} else { + x_523 = x_457; +} +lean_ctor_set(x_523, 0, x_473); +lean_ctor_set(x_523, 1, x_456); +if (lean_is_scalar(x_455)) { + x_524 = lean_alloc_ctor(0, 2, 0); +} else { + x_524 = x_455; +} +lean_ctor_set(x_524, 0, x_454); +lean_ctor_set(x_524, 1, x_523); +if (lean_is_scalar(x_453)) { + x_525 = lean_alloc_ctor(0, 2, 0); +} else { + x_525 = x_453; +} +lean_ctor_set(x_525, 0, x_452); +lean_ctor_set(x_525, 1, x_524); +if (lean_is_scalar(x_451)) { + x_526 = lean_alloc_ctor(0, 2, 0); +} else { + x_526 = x_451; +} +lean_ctor_set(x_526, 0, x_450); +lean_ctor_set(x_526, 1, x_525); +x_527 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_527, 0, x_449); +lean_ctor_set(x_527, 1, x_526); +x_528 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_528, 0, x_527); +x_16 = x_528; +x_17 = x_522; +goto block_24; +} +else +{ +lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; +lean_dec(x_473); +lean_dec(x_457); +lean_dec(x_456); +lean_dec(x_455); +lean_dec(x_454); +lean_dec(x_453); +lean_dec(x_452); +lean_dec(x_451); +lean_dec(x_450); +lean_dec(x_449); +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); +x_529 = lean_ctor_get(x_521, 0); +lean_inc(x_529); +x_530 = lean_ctor_get(x_521, 1); +lean_inc(x_530); +if (lean_is_exclusive(x_521)) { + lean_ctor_release(x_521, 0); + lean_ctor_release(x_521, 1); + x_531 = x_521; +} else { + lean_dec_ref(x_521); + x_531 = lean_box(0); +} +if (lean_is_scalar(x_531)) { + x_532 = lean_alloc_ctor(1, 2, 0); +} else { + x_532 = x_531; +} +lean_ctor_set(x_532, 0, x_529); +lean_ctor_set(x_532, 1, x_530); +return x_532; +} +} +default: +{ +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; +lean_dec(x_474); +x_533 = lean_array_push(x_454, x_15); +if (lean_is_scalar(x_457)) { + x_534 = lean_alloc_ctor(0, 2, 0); +} else { + x_534 = x_457; +} +lean_ctor_set(x_534, 0, x_473); +lean_ctor_set(x_534, 1, x_456); +if (lean_is_scalar(x_455)) { + x_535 = lean_alloc_ctor(0, 2, 0); +} else { + x_535 = x_455; +} +lean_ctor_set(x_535, 0, x_533); +lean_ctor_set(x_535, 1, x_534); +if (lean_is_scalar(x_453)) { + x_536 = lean_alloc_ctor(0, 2, 0); +} else { + x_536 = x_453; +} +lean_ctor_set(x_536, 0, x_452); +lean_ctor_set(x_536, 1, x_535); +if (lean_is_scalar(x_451)) { + x_537 = lean_alloc_ctor(0, 2, 0); +} else { + x_537 = x_451; +} +lean_ctor_set(x_537, 0, x_450); +lean_ctor_set(x_537, 1, x_536); +x_538 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_538, 0, x_449); +lean_ctor_set(x_538, 1, x_537); +x_539 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_539, 0, x_538); +x_16 = x_539; +x_17 = x_12; +goto block_24; +} +} +} +} +block_24: +{ +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_18; lean_object* x_19; +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); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +else +{ +lean_object* x_20; size_t x_21; size_t x_22; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = 1; +x_22 = lean_usize_add(x_3, x_21); +x_3 = x_22; +x_4 = x_20; +x_12 = x_17; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; 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_inc(x_7); +x_16 = l_Lean_mkApp(x_6, x_7); +x_17 = lean_array_push(x_4, x_7); +x_18 = l_Lean_Expr_bindingBody_x21(x_5); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_16); +lean_ctor_set(x_19, 1, x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_17); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_2); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_3); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_15); +return x_25; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +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_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_1); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_3); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_4); +lean_ctor_set(x_18, 1, x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_5); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_6); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_16); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_15); +return x_23; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1() { +_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_Simp_simp_simpStep___closed__1; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1; +x_3 = lean_unsigned_to_nat(359u); +x_4 = lean_unsigned_to_nat(13u); +x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Simp_simp_simpForall___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__2; +x_2 = l_Lean_Meta_Simp_simp_simpForall___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__3; +x_2 = l_Lean_Meta_Simp_simp___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("congr"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__4; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("failed to synthesize instance"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3(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, 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; +x_15 = lean_usize_dec_lt(x_5, x_4); +if (x_15 == 0) +{ +lean_object* x_16; +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_2); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_6); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_17 = lean_array_uget(x_3, x_5); +x_36 = lean_ctor_get(x_6, 1); +lean_inc(x_36); +lean_dec(x_6); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +x_41 = !lean_is_exclusive(x_36); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_36, 0); +x_43 = lean_ctor_get(x_36, 1); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_37); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_37, 0); +x_46 = lean_ctor_get(x_37, 1); +lean_dec(x_46); +x_47 = !lean_is_exclusive(x_38); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; uint8_t x_50; +x_48 = lean_ctor_get(x_38, 0); +x_49 = lean_ctor_get(x_38, 1); +lean_dec(x_49); +x_50 = !lean_is_exclusive(x_39); +if (x_50 == 0) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_51 = lean_ctor_get(x_39, 0); +x_52 = lean_ctor_get(x_39, 1); +lean_dec(x_52); +x_53 = lean_ctor_get(x_40, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_40, 1); +lean_inc(x_54); +x_55 = lean_ctor_get(x_40, 2); +lean_inc(x_55); +x_56 = lean_nat_dec_lt(x_54, x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_55); +lean_dec(x_54); +lean_dec(x_53); +lean_dec(x_17); +lean_inc(x_2); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_2); +lean_ctor_set(x_57, 1, x_36); +x_58 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_14); +x_18 = x_59; +goto block_35; +} +else +{ +uint8_t x_60; +x_60 = !lean_is_exclusive(x_40); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t 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; +x_61 = lean_ctor_get(x_40, 2); +lean_dec(x_61); +x_62 = lean_ctor_get(x_40, 1); +lean_dec(x_62); +x_63 = lean_ctor_get(x_40, 0); +lean_dec(x_63); +x_64 = lean_array_fget(x_53, x_54); +x_65 = lean_unbox(x_64); +lean_dec(x_64); +x_66 = lean_unsigned_to_nat(1u); +x_67 = lean_nat_add(x_54, x_66); +lean_dec(x_54); +lean_ctor_set(x_40, 1, x_67); +lean_inc(x_17); +x_68 = l_Lean_mkApp(x_51, x_17); +lean_inc(x_17); +x_69 = lean_array_push(x_45, x_17); +x_70 = l_Lean_Expr_bindingBody_x21(x_48); +lean_dec(x_48); +x_71 = lean_box(x_65); +switch (lean_obj_tag(x_71)) { +case 1: +{ +lean_object* x_72; lean_object* x_73; +lean_dec(x_17); +x_72 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_73 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_72, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_73) == 0) +{ +uint8_t x_74; +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +lean_ctor_set(x_39, 0, x_68); +lean_ctor_set(x_38, 0, x_70); +lean_ctor_set(x_37, 0, x_69); +lean_inc(x_2); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_2); +lean_ctor_set(x_76, 1, x_36); +x_77 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_73, 0, x_77); +x_18 = x_73; +goto block_35; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = lean_ctor_get(x_73, 1); +lean_inc(x_78); +lean_dec(x_73); +lean_ctor_set(x_39, 0, x_68); +lean_ctor_set(x_38, 0, x_70); +lean_ctor_set(x_37, 0, x_69); +lean_inc(x_2); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_2); +lean_ctor_set(x_79, 1, x_36); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_78); +x_18 = x_81; +goto block_35; +} +} +else +{ +uint8_t x_82; +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_40); +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_82 = !lean_is_exclusive(x_73); +if (x_82 == 0) +{ +x_18 = x_73; +goto block_35; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_73, 0); +x_84 = lean_ctor_get(x_73, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_73); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +x_18 = x_85; +goto block_35; +} +} +} +case 2: +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +lean_dec(x_17); +x_86 = l_Lean_Meta_Simp_instInhabitedResult; +x_87 = lean_array_get(x_86, x_1, x_42); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_87); +x_88 = l_Lean_Meta_Simp_Result_getProof(x_87, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_88) == 0) +{ +uint8_t x_89; +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_90 = lean_ctor_get(x_88, 0); +x_91 = lean_nat_add(x_42, x_66); +lean_dec(x_42); +x_92 = lean_ctor_get(x_87, 0); +lean_inc(x_92); +lean_dec(x_87); +lean_inc(x_90); +lean_inc(x_92); +x_93 = l_Lean_mkAppB(x_68, x_92, x_90); +x_94 = lean_array_push(x_69, x_92); +x_95 = lean_array_push(x_94, x_90); +x_96 = l_Lean_Expr_bindingBody_x21(x_70); +lean_dec(x_70); +x_97 = l_Lean_Expr_bindingBody_x21(x_96); +lean_dec(x_96); +lean_ctor_set(x_39, 0, x_93); +lean_ctor_set(x_38, 0, x_97); +lean_ctor_set(x_37, 0, x_95); +lean_ctor_set(x_36, 0, x_91); +lean_inc(x_2); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_2); +lean_ctor_set(x_98, 1, x_36); +x_99 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_88, 0, x_99); +x_18 = x_88; +goto block_35; +} +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; +x_100 = lean_ctor_get(x_88, 0); +x_101 = lean_ctor_get(x_88, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_88); +x_102 = lean_nat_add(x_42, x_66); +lean_dec(x_42); +x_103 = lean_ctor_get(x_87, 0); +lean_inc(x_103); +lean_dec(x_87); +lean_inc(x_100); +lean_inc(x_103); +x_104 = l_Lean_mkAppB(x_68, x_103, x_100); +x_105 = lean_array_push(x_69, x_103); +x_106 = lean_array_push(x_105, x_100); +x_107 = l_Lean_Expr_bindingBody_x21(x_70); +lean_dec(x_70); +x_108 = l_Lean_Expr_bindingBody_x21(x_107); +lean_dec(x_107); +lean_ctor_set(x_39, 0, x_104); +lean_ctor_set(x_38, 0, x_108); +lean_ctor_set(x_37, 0, x_106); +lean_ctor_set(x_36, 0, x_102); +lean_inc(x_2); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_2); +lean_ctor_set(x_109, 1, x_36); +x_110 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_110, 0, x_109); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_101); +x_18 = x_111; +goto block_35; +} +} +else +{ +uint8_t x_112; +lean_dec(x_87); +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_40); +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_112 = !lean_is_exclusive(x_88); +if (x_112 == 0) +{ +x_18 = x_88; +goto block_35; +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_113 = lean_ctor_get(x_88, 0); +x_114 = lean_ctor_get(x_88, 1); +lean_inc(x_114); +lean_inc(x_113); +lean_dec(x_88); +x_115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set(x_115, 1, x_114); +x_18 = x_115; +goto block_35; +} +} +} +case 4: +{ +lean_object* x_116; lean_object* x_117; +lean_dec(x_17); +x_116 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_117 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_116, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_117) == 0) +{ +uint8_t x_118; +x_118 = !lean_is_exclusive(x_117); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_117, 0); +lean_dec(x_119); +lean_ctor_set(x_39, 0, x_68); +lean_ctor_set(x_38, 0, x_70); +lean_ctor_set(x_37, 0, x_69); +lean_inc(x_2); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_2); +lean_ctor_set(x_120, 1, x_36); +x_121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_117, 0, x_121); +x_18 = x_117; +goto block_35; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_122 = lean_ctor_get(x_117, 1); +lean_inc(x_122); +lean_dec(x_117); +lean_ctor_set(x_39, 0, x_68); +lean_ctor_set(x_38, 0, x_70); +lean_ctor_set(x_37, 0, x_69); +lean_inc(x_2); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_2); +lean_ctor_set(x_123, 1, x_36); +x_124 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_124, 0, x_123); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_122); +x_18 = x_125; +goto block_35; +} +} +else +{ +uint8_t x_126; +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_40); +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_126 = !lean_is_exclusive(x_117); +if (x_126 == 0) +{ +x_18 = x_117; +goto block_35; +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_117, 0); +x_128 = lean_ctor_get(x_117, 1); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_117); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_127); +lean_ctor_set(x_129, 1, x_128); +x_18 = x_129; +goto block_35; +} +} +} +case 5: +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +x_130 = l_Lean_Expr_bindingDomain_x21(x_70); +x_131 = lean_expr_instantiate_rev(x_130, x_69); +lean_dec(x_130); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_17); +x_132 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_131); +x_135 = l_Lean_Meta_isExprDefEq(x_133, x_131, x_10, x_11, x_12, x_13, x_134); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; uint8_t x_137; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_unbox(x_136); +lean_dec(x_136); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_17); +x_138 = lean_ctor_get(x_135, 1); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_131); +x_140 = l_Lean_Meta_trySynthInstance(x_131, x_139, x_10, x_11, x_12, x_13, x_138); +if (lean_obj_tag(x_140) == 0) +{ +lean_object* x_141; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +switch (lean_obj_tag(x_141)) { +case 0: +{ +lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_158 = lean_st_ref_get(x_13, x_142); +x_159 = lean_ctor_get(x_158, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_159, 3); +lean_inc(x_160); +lean_dec(x_159); +x_161 = lean_ctor_get_uint8(x_160, sizeof(void*)*1); +lean_dec(x_160); +if (x_161 == 0) +{ +lean_object* x_162; uint8_t x_163; +x_162 = lean_ctor_get(x_158, 1); +lean_inc(x_162); +lean_dec(x_158); +x_163 = 0; +x_144 = x_163; +x_145 = x_162; +goto block_157; +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +x_164 = lean_ctor_get(x_158, 1); +lean_inc(x_164); +lean_dec(x_158); +x_165 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_143, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_164); +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); +x_168 = lean_unbox(x_166); +lean_dec(x_166); +x_144 = x_168; +x_145 = x_167; +goto block_157; +} +block_157: +{ +if (x_144 == 0) +{ +lean_object* x_146; lean_object* x_147; +lean_dec(x_131); +x_146 = lean_box(0); +x_147 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_139, x_68, x_40, x_70, x_69, x_42, x_146, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_145); +x_18 = x_147; +goto block_35; +} +else +{ +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; +x_148 = l_Lean_indentExpr(x_131); +x_149 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_150 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_148); +x_151 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_152 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_152, 0, x_150); +lean_ctor_set(x_152, 1, x_151); +x_153 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_143, x_152, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_145); +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_139, x_68, x_40, x_70, x_69, x_42, x_154, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_155); +lean_dec(x_154); +x_18 = x_156; +goto block_35; +} +} +} +case 1: +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; +lean_dec(x_131); +x_169 = lean_ctor_get(x_140, 1); +lean_inc(x_169); +lean_dec(x_140); +x_170 = lean_ctor_get(x_141, 0); +lean_inc(x_170); +lean_dec(x_141); +lean_inc(x_2); +x_171 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_40, x_42, x_2, x_69, x_70, x_68, x_170, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_169); +lean_dec(x_70); +x_18 = x_171; +goto block_35; +} +default: +{ +lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_188; lean_object* x_189; lean_object* x_190; uint8_t x_191; +x_172 = lean_ctor_get(x_140, 1); +lean_inc(x_172); +lean_dec(x_140); +x_173 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_188 = lean_st_ref_get(x_13, x_172); +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_189, 3); +lean_inc(x_190); +lean_dec(x_189); +x_191 = lean_ctor_get_uint8(x_190, sizeof(void*)*1); +lean_dec(x_190); +if (x_191 == 0) +{ +lean_object* x_192; uint8_t x_193; +x_192 = lean_ctor_get(x_188, 1); +lean_inc(x_192); +lean_dec(x_188); +x_193 = 0; +x_174 = x_193; +x_175 = x_192; +goto block_187; +} +else +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; +x_194 = lean_ctor_get(x_188, 1); +lean_inc(x_194); +lean_dec(x_188); +x_195 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_173, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_194); +x_196 = lean_ctor_get(x_195, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_195, 1); +lean_inc(x_197); +lean_dec(x_195); +x_198 = lean_unbox(x_196); +lean_dec(x_196); +x_174 = x_198; +x_175 = x_197; +goto block_187; +} +block_187: +{ +if (x_174 == 0) +{ +lean_object* x_176; lean_object* x_177; +lean_dec(x_131); +x_176 = lean_box(0); +x_177 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_139, x_68, x_40, x_70, x_69, x_42, x_176, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_175); +x_18 = x_177; +goto block_35; +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_178 = l_Lean_indentExpr(x_131); +x_179 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_180 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_178); +x_181 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_182 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +x_183 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_173, x_182, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_175); +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +lean_dec(x_183); +x_186 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_139, x_68, x_40, x_70, x_69, x_42, x_184, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_185); +lean_dec(x_184); +x_18 = x_186; +goto block_35; +} +} +} +} +} +else +{ +uint8_t x_199; +lean_dec(x_131); +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_40); +lean_dec(x_42); +x_199 = !lean_is_exclusive(x_140); +if (x_199 == 0) +{ +x_18 = x_140; +goto block_35; +} +else +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_200 = lean_ctor_get(x_140, 0); +x_201 = lean_ctor_get(x_140, 1); +lean_inc(x_201); +lean_inc(x_200); +lean_dec(x_140); +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_200); +lean_ctor_set(x_202, 1, x_201); +x_18 = x_202; +goto block_35; +} +} +} +else +{ +lean_object* x_203; lean_object* x_204; +lean_dec(x_131); +x_203 = lean_ctor_get(x_135, 1); +lean_inc(x_203); +lean_dec(x_135); +lean_inc(x_2); +x_204 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_40, x_42, x_2, x_69, x_70, x_68, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_203); +lean_dec(x_70); +x_18 = x_204; +goto block_35; +} +} +else +{ +uint8_t x_205; +lean_dec(x_131); +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_40); +lean_dec(x_42); +lean_dec(x_17); +x_205 = !lean_is_exclusive(x_135); +if (x_205 == 0) +{ +x_18 = x_135; +goto block_35; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_135, 0); +x_207 = lean_ctor_get(x_135, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_135); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +x_18 = x_208; +goto block_35; +} +} +} +else +{ +uint8_t x_209; +lean_dec(x_131); +lean_dec(x_70); +lean_dec(x_69); +lean_dec(x_68); +lean_dec(x_40); +lean_dec(x_42); +lean_dec(x_17); +x_209 = !lean_is_exclusive(x_132); +if (x_209 == 0) +{ +x_18 = x_132; +goto block_35; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_132, 0); +x_211 = lean_ctor_get(x_132, 1); +lean_inc(x_211); +lean_inc(x_210); +lean_dec(x_132); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +x_18 = x_212; +goto block_35; +} +} +} +default: +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_71); +lean_dec(x_17); +lean_ctor_set(x_39, 0, x_68); +lean_ctor_set(x_38, 0, x_70); +lean_ctor_set(x_37, 0, x_69); +lean_inc(x_2); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_2); +lean_ctor_set(x_213, 1, x_36); +x_214 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_214, 0, x_213); +x_215 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_14); +x_18 = x_215; +goto block_35; +} +} +} +else +{ +lean_object* x_216; uint8_t 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_dec(x_40); +x_216 = lean_array_fget(x_53, x_54); +x_217 = lean_unbox(x_216); +lean_dec(x_216); +x_218 = lean_unsigned_to_nat(1u); +x_219 = lean_nat_add(x_54, x_218); +lean_dec(x_54); +x_220 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_220, 0, x_53); +lean_ctor_set(x_220, 1, x_219); +lean_ctor_set(x_220, 2, x_55); +lean_inc(x_17); +x_221 = l_Lean_mkApp(x_51, x_17); +lean_inc(x_17); +x_222 = lean_array_push(x_45, x_17); +x_223 = l_Lean_Expr_bindingBody_x21(x_48); +lean_dec(x_48); +x_224 = lean_box(x_217); +switch (lean_obj_tag(x_224)) { +case 1: +{ +lean_object* x_225; lean_object* x_226; +lean_dec(x_17); +x_225 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_226 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_225, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_227 = lean_ctor_get(x_226, 1); +lean_inc(x_227); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_228 = x_226; +} else { + lean_dec_ref(x_226); + x_228 = lean_box(0); +} +lean_ctor_set(x_39, 1, x_220); +lean_ctor_set(x_39, 0, x_221); +lean_ctor_set(x_38, 0, x_223); +lean_ctor_set(x_37, 0, x_222); +lean_inc(x_2); +x_229 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_229, 0, x_2); +lean_ctor_set(x_229, 1, x_36); +x_230 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_230, 0, x_229); +if (lean_is_scalar(x_228)) { + x_231 = lean_alloc_ctor(0, 2, 0); +} else { + x_231 = x_228; +} +lean_ctor_set(x_231, 0, x_230); +lean_ctor_set(x_231, 1, x_227); +x_18 = x_231; +goto block_35; +} +else +{ +lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_232 = lean_ctor_get(x_226, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_226, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_234 = x_226; +} else { + lean_dec_ref(x_226); + x_234 = lean_box(0); +} +if (lean_is_scalar(x_234)) { + x_235 = lean_alloc_ctor(1, 2, 0); +} else { + x_235 = x_234; +} +lean_ctor_set(x_235, 0, x_232); +lean_ctor_set(x_235, 1, x_233); +x_18 = x_235; +goto block_35; +} +} +case 2: +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_17); +x_236 = l_Lean_Meta_Simp_instInhabitedResult; +x_237 = lean_array_get(x_236, x_1, x_42); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_237); +x_238 = l_Lean_Meta_Simp_Result_getProof(x_237, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_238) == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_241 = x_238; +} else { + lean_dec_ref(x_238); + x_241 = lean_box(0); +} +x_242 = lean_nat_add(x_42, x_218); +lean_dec(x_42); +x_243 = lean_ctor_get(x_237, 0); +lean_inc(x_243); +lean_dec(x_237); +lean_inc(x_239); +lean_inc(x_243); +x_244 = l_Lean_mkAppB(x_221, x_243, x_239); +x_245 = lean_array_push(x_222, x_243); +x_246 = lean_array_push(x_245, x_239); +x_247 = l_Lean_Expr_bindingBody_x21(x_223); +lean_dec(x_223); +x_248 = l_Lean_Expr_bindingBody_x21(x_247); +lean_dec(x_247); +lean_ctor_set(x_39, 1, x_220); +lean_ctor_set(x_39, 0, x_244); +lean_ctor_set(x_38, 0, x_248); +lean_ctor_set(x_37, 0, x_246); +lean_ctor_set(x_36, 0, x_242); +lean_inc(x_2); +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_2); +lean_ctor_set(x_249, 1, x_36); +x_250 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_250, 0, x_249); +if (lean_is_scalar(x_241)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_241; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_240); +x_18 = x_251; +goto block_35; +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_237); +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_252 = lean_ctor_get(x_238, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_238, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_254 = x_238; +} else { + lean_dec_ref(x_238); + x_254 = lean_box(0); +} +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(1, 2, 0); +} else { + x_255 = x_254; +} +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_253); +x_18 = x_255; +goto block_35; +} +} +case 4: +{ +lean_object* x_256; lean_object* x_257; +lean_dec(x_17); +x_256 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_257 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_256, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_257) == 0) +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_258 = lean_ctor_get(x_257, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_259 = x_257; +} else { + lean_dec_ref(x_257); + x_259 = lean_box(0); +} +lean_ctor_set(x_39, 1, x_220); +lean_ctor_set(x_39, 0, x_221); +lean_ctor_set(x_38, 0, x_223); +lean_ctor_set(x_37, 0, x_222); +lean_inc(x_2); +x_260 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_260, 0, x_2); +lean_ctor_set(x_260, 1, x_36); +x_261 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_261, 0, x_260); +if (lean_is_scalar(x_259)) { + x_262 = lean_alloc_ctor(0, 2, 0); +} else { + x_262 = x_259; +} +lean_ctor_set(x_262, 0, x_261); +lean_ctor_set(x_262, 1, x_258); +x_18 = x_262; +goto block_35; +} +else +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_263 = lean_ctor_get(x_257, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_257, 1); +lean_inc(x_264); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_265 = x_257; +} else { + lean_dec_ref(x_257); + x_265 = lean_box(0); +} +if (lean_is_scalar(x_265)) { + x_266 = lean_alloc_ctor(1, 2, 0); +} else { + x_266 = x_265; +} +lean_ctor_set(x_266, 0, x_263); +lean_ctor_set(x_266, 1, x_264); +x_18 = x_266; +goto block_35; +} +} +case 5: +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; +lean_free_object(x_39); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +x_267 = l_Lean_Expr_bindingDomain_x21(x_223); +x_268 = lean_expr_instantiate_rev(x_267, x_222); +lean_dec(x_267); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_17); +x_269 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_269) == 0) +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; +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); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_268); +x_272 = l_Lean_Meta_isExprDefEq(x_270, x_268, x_10, x_11, x_12, x_13, x_271); +if (lean_obj_tag(x_272) == 0) +{ +lean_object* x_273; uint8_t x_274; +x_273 = lean_ctor_get(x_272, 0); +lean_inc(x_273); +x_274 = lean_unbox(x_273); +lean_dec(x_273); +if (x_274 == 0) +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; +lean_dec(x_17); +x_275 = lean_ctor_get(x_272, 1); +lean_inc(x_275); +lean_dec(x_272); +x_276 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_268); +x_277 = l_Lean_Meta_trySynthInstance(x_268, x_276, x_10, x_11, x_12, x_13, x_275); +if (lean_obj_tag(x_277) == 0) +{ +lean_object* x_278; +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +switch (lean_obj_tag(x_278)) { +case 0: +{ +lean_object* x_279; lean_object* x_280; uint8_t x_281; lean_object* x_282; lean_object* x_295; lean_object* x_296; lean_object* x_297; uint8_t x_298; +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +lean_dec(x_277); +x_280 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_295 = lean_st_ref_get(x_13, x_279); +x_296 = lean_ctor_get(x_295, 0); +lean_inc(x_296); +x_297 = lean_ctor_get(x_296, 3); +lean_inc(x_297); +lean_dec(x_296); +x_298 = lean_ctor_get_uint8(x_297, sizeof(void*)*1); +lean_dec(x_297); +if (x_298 == 0) +{ +lean_object* x_299; uint8_t x_300; +x_299 = lean_ctor_get(x_295, 1); +lean_inc(x_299); +lean_dec(x_295); +x_300 = 0; +x_281 = x_300; +x_282 = x_299; +goto block_294; +} +else +{ +lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; uint8_t x_305; +x_301 = lean_ctor_get(x_295, 1); +lean_inc(x_301); +lean_dec(x_295); +x_302 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_280, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_301); +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_302, 1); +lean_inc(x_304); +lean_dec(x_302); +x_305 = lean_unbox(x_303); +lean_dec(x_303); +x_281 = x_305; +x_282 = x_304; +goto block_294; +} +block_294: +{ +if (x_281 == 0) +{ +lean_object* x_283; lean_object* x_284; +lean_dec(x_268); +x_283 = lean_box(0); +x_284 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_276, x_221, x_220, x_223, x_222, x_42, x_283, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_282); +x_18 = x_284; +goto block_35; +} +else +{ +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_285 = l_Lean_indentExpr(x_268); +x_286 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_287 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_287, 0, x_286); +lean_ctor_set(x_287, 1, x_285); +x_288 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_289 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +x_290 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_280, x_289, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_282); +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_290, 1); +lean_inc(x_292); +lean_dec(x_290); +x_293 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_276, x_221, x_220, x_223, x_222, x_42, x_291, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_292); +lean_dec(x_291); +x_18 = x_293; +goto block_35; +} +} +} +case 1: +{ +lean_object* x_306; lean_object* x_307; lean_object* x_308; +lean_dec(x_268); +x_306 = lean_ctor_get(x_277, 1); +lean_inc(x_306); +lean_dec(x_277); +x_307 = lean_ctor_get(x_278, 0); +lean_inc(x_307); +lean_dec(x_278); +lean_inc(x_2); +x_308 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_220, x_42, x_2, x_222, x_223, x_221, x_307, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_306); +lean_dec(x_223); +x_18 = x_308; +goto block_35; +} +default: +{ +lean_object* x_309; lean_object* x_310; uint8_t x_311; lean_object* x_312; lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; +x_309 = lean_ctor_get(x_277, 1); +lean_inc(x_309); +lean_dec(x_277); +x_310 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_325 = lean_st_ref_get(x_13, x_309); +x_326 = lean_ctor_get(x_325, 0); +lean_inc(x_326); +x_327 = lean_ctor_get(x_326, 3); +lean_inc(x_327); +lean_dec(x_326); +x_328 = lean_ctor_get_uint8(x_327, sizeof(void*)*1); +lean_dec(x_327); +if (x_328 == 0) +{ +lean_object* x_329; uint8_t x_330; +x_329 = lean_ctor_get(x_325, 1); +lean_inc(x_329); +lean_dec(x_325); +x_330 = 0; +x_311 = x_330; +x_312 = x_329; +goto block_324; +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; +x_331 = lean_ctor_get(x_325, 1); +lean_inc(x_331); +lean_dec(x_325); +x_332 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_310, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_331); +x_333 = lean_ctor_get(x_332, 0); +lean_inc(x_333); +x_334 = lean_ctor_get(x_332, 1); +lean_inc(x_334); +lean_dec(x_332); +x_335 = lean_unbox(x_333); +lean_dec(x_333); +x_311 = x_335; +x_312 = x_334; +goto block_324; +} +block_324: +{ +if (x_311 == 0) +{ +lean_object* x_313; lean_object* x_314; +lean_dec(x_268); +x_313 = lean_box(0); +x_314 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_276, x_221, x_220, x_223, x_222, x_42, x_313, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_312); +x_18 = x_314; +goto block_35; +} +else +{ +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; +x_315 = l_Lean_indentExpr(x_268); +x_316 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_317 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_315); +x_318 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_319 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_319, 0, x_317); +lean_ctor_set(x_319, 1, x_318); +x_320 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_310, x_319, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_312); +x_321 = lean_ctor_get(x_320, 0); +lean_inc(x_321); +x_322 = lean_ctor_get(x_320, 1); +lean_inc(x_322); +lean_dec(x_320); +x_323 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_276, x_221, x_220, x_223, x_222, x_42, x_321, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_322); +lean_dec(x_321); +x_18 = x_323; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; +lean_dec(x_268); +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_42); +x_336 = lean_ctor_get(x_277, 0); +lean_inc(x_336); +x_337 = lean_ctor_get(x_277, 1); +lean_inc(x_337); +if (lean_is_exclusive(x_277)) { + lean_ctor_release(x_277, 0); + lean_ctor_release(x_277, 1); + x_338 = x_277; +} else { + lean_dec_ref(x_277); + x_338 = lean_box(0); +} +if (lean_is_scalar(x_338)) { + x_339 = lean_alloc_ctor(1, 2, 0); +} else { + x_339 = x_338; +} +lean_ctor_set(x_339, 0, x_336); +lean_ctor_set(x_339, 1, x_337); +x_18 = x_339; +goto block_35; +} +} +else +{ +lean_object* x_340; lean_object* x_341; +lean_dec(x_268); +x_340 = lean_ctor_get(x_272, 1); +lean_inc(x_340); +lean_dec(x_272); +lean_inc(x_2); +x_341 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_220, x_42, x_2, x_222, x_223, x_221, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_340); +lean_dec(x_223); +x_18 = x_341; +goto block_35; +} +} +else +{ +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; +lean_dec(x_268); +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_42); +lean_dec(x_17); +x_342 = lean_ctor_get(x_272, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_272, 1); +lean_inc(x_343); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_344 = x_272; +} else { + lean_dec_ref(x_272); + x_344 = lean_box(0); +} +if (lean_is_scalar(x_344)) { + x_345 = lean_alloc_ctor(1, 2, 0); +} else { + x_345 = x_344; +} +lean_ctor_set(x_345, 0, x_342); +lean_ctor_set(x_345, 1, x_343); +x_18 = x_345; +goto block_35; +} +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; +lean_dec(x_268); +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_42); +lean_dec(x_17); +x_346 = lean_ctor_get(x_269, 0); +lean_inc(x_346); +x_347 = lean_ctor_get(x_269, 1); +lean_inc(x_347); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_348 = x_269; +} else { + lean_dec_ref(x_269); + x_348 = lean_box(0); +} +if (lean_is_scalar(x_348)) { + x_349 = lean_alloc_ctor(1, 2, 0); +} else { + x_349 = x_348; +} +lean_ctor_set(x_349, 0, x_346); +lean_ctor_set(x_349, 1, x_347); +x_18 = x_349; +goto block_35; +} +} +default: +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; +lean_dec(x_224); +lean_dec(x_17); +lean_ctor_set(x_39, 1, x_220); +lean_ctor_set(x_39, 0, x_221); +lean_ctor_set(x_38, 0, x_223); +lean_ctor_set(x_37, 0, x_222); +lean_inc(x_2); +x_350 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_350, 0, x_2); +lean_ctor_set(x_350, 1, x_36); +x_351 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_351, 0, x_350); +x_352 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_352, 0, x_351); +lean_ctor_set(x_352, 1, x_14); +x_18 = x_352; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; +x_353 = lean_ctor_get(x_39, 0); +lean_inc(x_353); +lean_dec(x_39); +x_354 = lean_ctor_get(x_40, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_40, 1); +lean_inc(x_355); +x_356 = lean_ctor_get(x_40, 2); +lean_inc(x_356); +x_357 = lean_nat_dec_lt(x_355, x_356); +if (x_357 == 0) +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; +lean_dec(x_356); +lean_dec(x_355); +lean_dec(x_354); +lean_dec(x_17); +x_358 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_358, 0, x_353); +lean_ctor_set(x_358, 1, x_40); +lean_ctor_set(x_38, 1, x_358); +lean_inc(x_2); +x_359 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_359, 0, x_2); +lean_ctor_set(x_359, 1, x_36); +x_360 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_360, 0, x_359); +x_361 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_361, 0, x_360); +lean_ctor_set(x_361, 1, x_14); +x_18 = x_361; +goto block_35; +} +else +{ +lean_object* x_362; lean_object* x_363; uint8_t x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_362 = x_40; +} else { + lean_dec_ref(x_40); + x_362 = lean_box(0); +} +x_363 = lean_array_fget(x_354, x_355); +x_364 = lean_unbox(x_363); +lean_dec(x_363); +x_365 = lean_unsigned_to_nat(1u); +x_366 = lean_nat_add(x_355, x_365); +lean_dec(x_355); +if (lean_is_scalar(x_362)) { + x_367 = lean_alloc_ctor(0, 3, 0); +} else { + x_367 = x_362; +} +lean_ctor_set(x_367, 0, x_354); +lean_ctor_set(x_367, 1, x_366); +lean_ctor_set(x_367, 2, x_356); +lean_inc(x_17); +x_368 = l_Lean_mkApp(x_353, x_17); +lean_inc(x_17); +x_369 = lean_array_push(x_45, x_17); +x_370 = l_Lean_Expr_bindingBody_x21(x_48); +lean_dec(x_48); +x_371 = lean_box(x_364); +switch (lean_obj_tag(x_371)) { +case 1: +{ +lean_object* x_372; lean_object* x_373; +lean_dec(x_17); +x_372 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_373 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_372, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_373) == 0) +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_374 = lean_ctor_get(x_373, 1); +lean_inc(x_374); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + x_375 = x_373; +} else { + lean_dec_ref(x_373); + x_375 = lean_box(0); +} +x_376 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_376, 0, x_368); +lean_ctor_set(x_376, 1, x_367); +lean_ctor_set(x_38, 1, x_376); +lean_ctor_set(x_38, 0, x_370); +lean_ctor_set(x_37, 0, x_369); +lean_inc(x_2); +x_377 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_377, 0, x_2); +lean_ctor_set(x_377, 1, x_36); +x_378 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_378, 0, x_377); +if (lean_is_scalar(x_375)) { + x_379 = lean_alloc_ctor(0, 2, 0); +} else { + x_379 = x_375; +} +lean_ctor_set(x_379, 0, x_378); +lean_ctor_set(x_379, 1, x_374); +x_18 = x_379; +goto block_35; +} +else +{ +lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_380 = lean_ctor_get(x_373, 0); +lean_inc(x_380); +x_381 = lean_ctor_get(x_373, 1); +lean_inc(x_381); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + x_382 = x_373; +} else { + lean_dec_ref(x_373); + x_382 = lean_box(0); +} +if (lean_is_scalar(x_382)) { + x_383 = lean_alloc_ctor(1, 2, 0); +} else { + x_383 = x_382; +} +lean_ctor_set(x_383, 0, x_380); +lean_ctor_set(x_383, 1, x_381); +x_18 = x_383; +goto block_35; +} +} +case 2: +{ +lean_object* x_384; lean_object* x_385; lean_object* x_386; +lean_dec(x_17); +x_384 = l_Lean_Meta_Simp_instInhabitedResult; +x_385 = lean_array_get(x_384, x_1, x_42); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_385); +x_386 = l_Lean_Meta_Simp_Result_getProof(x_385, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_386) == 0) +{ +lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; +x_387 = lean_ctor_get(x_386, 0); +lean_inc(x_387); +x_388 = lean_ctor_get(x_386, 1); +lean_inc(x_388); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + x_389 = x_386; +} else { + lean_dec_ref(x_386); + x_389 = lean_box(0); +} +x_390 = lean_nat_add(x_42, x_365); +lean_dec(x_42); +x_391 = lean_ctor_get(x_385, 0); +lean_inc(x_391); +lean_dec(x_385); +lean_inc(x_387); +lean_inc(x_391); +x_392 = l_Lean_mkAppB(x_368, x_391, x_387); +x_393 = lean_array_push(x_369, x_391); +x_394 = lean_array_push(x_393, x_387); +x_395 = l_Lean_Expr_bindingBody_x21(x_370); +lean_dec(x_370); +x_396 = l_Lean_Expr_bindingBody_x21(x_395); +lean_dec(x_395); +x_397 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_397, 0, x_392); +lean_ctor_set(x_397, 1, x_367); +lean_ctor_set(x_38, 1, x_397); +lean_ctor_set(x_38, 0, x_396); +lean_ctor_set(x_37, 0, x_394); +lean_ctor_set(x_36, 0, x_390); +lean_inc(x_2); +x_398 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_2); +lean_ctor_set(x_398, 1, x_36); +x_399 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_399, 0, x_398); +if (lean_is_scalar(x_389)) { + x_400 = lean_alloc_ctor(0, 2, 0); +} else { + x_400 = x_389; +} +lean_ctor_set(x_400, 0, x_399); +lean_ctor_set(x_400, 1, x_388); +x_18 = x_400; +goto block_35; +} +else +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +lean_dec(x_385); +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_401 = lean_ctor_get(x_386, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_386, 1); +lean_inc(x_402); +if (lean_is_exclusive(x_386)) { + lean_ctor_release(x_386, 0); + lean_ctor_release(x_386, 1); + x_403 = x_386; +} else { + lean_dec_ref(x_386); + x_403 = lean_box(0); +} +if (lean_is_scalar(x_403)) { + x_404 = lean_alloc_ctor(1, 2, 0); +} else { + x_404 = x_403; +} +lean_ctor_set(x_404, 0, x_401); +lean_ctor_set(x_404, 1, x_402); +x_18 = x_404; +goto block_35; +} +} +case 4: +{ +lean_object* x_405; lean_object* x_406; +lean_dec(x_17); +x_405 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_406 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_405, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_406) == 0) +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_407 = lean_ctor_get(x_406, 1); +lean_inc(x_407); +if (lean_is_exclusive(x_406)) { + lean_ctor_release(x_406, 0); + lean_ctor_release(x_406, 1); + x_408 = x_406; +} else { + lean_dec_ref(x_406); + x_408 = lean_box(0); +} +x_409 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_368); +lean_ctor_set(x_409, 1, x_367); +lean_ctor_set(x_38, 1, x_409); +lean_ctor_set(x_38, 0, x_370); +lean_ctor_set(x_37, 0, x_369); +lean_inc(x_2); +x_410 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_410, 0, x_2); +lean_ctor_set(x_410, 1, x_36); +x_411 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_411, 0, x_410); +if (lean_is_scalar(x_408)) { + x_412 = lean_alloc_ctor(0, 2, 0); +} else { + x_412 = x_408; +} +lean_ctor_set(x_412, 0, x_411); +lean_ctor_set(x_412, 1, x_407); +x_18 = x_412; +goto block_35; +} +else +{ +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_413 = lean_ctor_get(x_406, 0); +lean_inc(x_413); +x_414 = lean_ctor_get(x_406, 1); +lean_inc(x_414); +if (lean_is_exclusive(x_406)) { + lean_ctor_release(x_406, 0); + lean_ctor_release(x_406, 1); + x_415 = x_406; +} else { + lean_dec_ref(x_406); + x_415 = lean_box(0); +} +if (lean_is_scalar(x_415)) { + x_416 = lean_alloc_ctor(1, 2, 0); +} else { + x_416 = x_415; +} +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_414); +x_18 = x_416; +goto block_35; +} +} +case 5: +{ +lean_object* x_417; lean_object* x_418; lean_object* x_419; +lean_free_object(x_38); +lean_free_object(x_37); +lean_free_object(x_36); +x_417 = l_Lean_Expr_bindingDomain_x21(x_370); +x_418 = lean_expr_instantiate_rev(x_417, x_369); +lean_dec(x_417); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_17); +x_419 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_419) == 0) +{ +lean_object* x_420; lean_object* x_421; lean_object* x_422; +x_420 = lean_ctor_get(x_419, 0); +lean_inc(x_420); +x_421 = lean_ctor_get(x_419, 1); +lean_inc(x_421); +lean_dec(x_419); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_418); +x_422 = l_Lean_Meta_isExprDefEq(x_420, x_418, x_10, x_11, x_12, x_13, x_421); +if (lean_obj_tag(x_422) == 0) +{ +lean_object* x_423; uint8_t x_424; +x_423 = lean_ctor_get(x_422, 0); +lean_inc(x_423); +x_424 = lean_unbox(x_423); +lean_dec(x_423); +if (x_424 == 0) +{ +lean_object* x_425; lean_object* x_426; lean_object* x_427; +lean_dec(x_17); +x_425 = lean_ctor_get(x_422, 1); +lean_inc(x_425); +lean_dec(x_422); +x_426 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_418); +x_427 = l_Lean_Meta_trySynthInstance(x_418, x_426, x_10, x_11, x_12, x_13, x_425); +if (lean_obj_tag(x_427) == 0) +{ +lean_object* x_428; +x_428 = lean_ctor_get(x_427, 0); +lean_inc(x_428); +switch (lean_obj_tag(x_428)) { +case 0: +{ +lean_object* x_429; lean_object* x_430; uint8_t x_431; lean_object* x_432; lean_object* x_445; lean_object* x_446; lean_object* x_447; uint8_t x_448; +x_429 = lean_ctor_get(x_427, 1); +lean_inc(x_429); +lean_dec(x_427); +x_430 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_445 = lean_st_ref_get(x_13, x_429); +x_446 = lean_ctor_get(x_445, 0); +lean_inc(x_446); +x_447 = lean_ctor_get(x_446, 3); +lean_inc(x_447); +lean_dec(x_446); +x_448 = lean_ctor_get_uint8(x_447, sizeof(void*)*1); +lean_dec(x_447); +if (x_448 == 0) +{ +lean_object* x_449; uint8_t x_450; +x_449 = lean_ctor_get(x_445, 1); +lean_inc(x_449); +lean_dec(x_445); +x_450 = 0; +x_431 = x_450; +x_432 = x_449; +goto block_444; +} +else +{ +lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; uint8_t x_455; +x_451 = lean_ctor_get(x_445, 1); +lean_inc(x_451); +lean_dec(x_445); +x_452 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_430, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_451); +x_453 = lean_ctor_get(x_452, 0); +lean_inc(x_453); +x_454 = lean_ctor_get(x_452, 1); +lean_inc(x_454); +lean_dec(x_452); +x_455 = lean_unbox(x_453); +lean_dec(x_453); +x_431 = x_455; +x_432 = x_454; +goto block_444; +} +block_444: +{ +if (x_431 == 0) +{ +lean_object* x_433; lean_object* x_434; +lean_dec(x_418); +x_433 = lean_box(0); +x_434 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_426, x_368, x_367, x_370, x_369, x_42, x_433, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_432); +x_18 = x_434; +goto block_35; +} +else +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; +x_435 = l_Lean_indentExpr(x_418); +x_436 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_437 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_437, 0, x_436); +lean_ctor_set(x_437, 1, x_435); +x_438 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_439 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_439, 0, x_437); +lean_ctor_set(x_439, 1, x_438); +x_440 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_430, x_439, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_432); +x_441 = lean_ctor_get(x_440, 0); +lean_inc(x_441); +x_442 = lean_ctor_get(x_440, 1); +lean_inc(x_442); +lean_dec(x_440); +x_443 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_426, x_368, x_367, x_370, x_369, x_42, x_441, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_442); +lean_dec(x_441); +x_18 = x_443; +goto block_35; +} +} +} +case 1: +{ +lean_object* x_456; lean_object* x_457; lean_object* x_458; +lean_dec(x_418); +x_456 = lean_ctor_get(x_427, 1); +lean_inc(x_456); +lean_dec(x_427); +x_457 = lean_ctor_get(x_428, 0); +lean_inc(x_457); +lean_dec(x_428); +lean_inc(x_2); +x_458 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_367, x_42, x_2, x_369, x_370, x_368, x_457, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_456); +lean_dec(x_370); +x_18 = x_458; +goto block_35; +} +default: +{ +lean_object* x_459; lean_object* x_460; uint8_t x_461; lean_object* x_462; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; +x_459 = lean_ctor_get(x_427, 1); +lean_inc(x_459); +lean_dec(x_427); +x_460 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_475 = lean_st_ref_get(x_13, x_459); +x_476 = lean_ctor_get(x_475, 0); +lean_inc(x_476); +x_477 = lean_ctor_get(x_476, 3); +lean_inc(x_477); +lean_dec(x_476); +x_478 = lean_ctor_get_uint8(x_477, sizeof(void*)*1); +lean_dec(x_477); +if (x_478 == 0) +{ +lean_object* x_479; uint8_t x_480; +x_479 = lean_ctor_get(x_475, 1); +lean_inc(x_479); +lean_dec(x_475); +x_480 = 0; +x_461 = x_480; +x_462 = x_479; +goto block_474; +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; uint8_t x_485; +x_481 = lean_ctor_get(x_475, 1); +lean_inc(x_481); +lean_dec(x_475); +x_482 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_460, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_481); +x_483 = lean_ctor_get(x_482, 0); +lean_inc(x_483); +x_484 = lean_ctor_get(x_482, 1); +lean_inc(x_484); +lean_dec(x_482); +x_485 = lean_unbox(x_483); +lean_dec(x_483); +x_461 = x_485; +x_462 = x_484; +goto block_474; +} +block_474: +{ +if (x_461 == 0) +{ +lean_object* x_463; lean_object* x_464; +lean_dec(x_418); +x_463 = lean_box(0); +x_464 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_426, x_368, x_367, x_370, x_369, x_42, x_463, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_462); +x_18 = x_464; +goto block_35; +} +else +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; +x_465 = l_Lean_indentExpr(x_418); +x_466 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_467 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_467, 0, x_466); +lean_ctor_set(x_467, 1, x_465); +x_468 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_469 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_469, 0, x_467); +lean_ctor_set(x_469, 1, x_468); +x_470 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_460, x_469, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_462); +x_471 = lean_ctor_get(x_470, 0); +lean_inc(x_471); +x_472 = lean_ctor_get(x_470, 1); +lean_inc(x_472); +lean_dec(x_470); +x_473 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_426, x_368, x_367, x_370, x_369, x_42, x_471, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_472); +lean_dec(x_471); +x_18 = x_473; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; +lean_dec(x_418); +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_dec(x_42); +x_486 = lean_ctor_get(x_427, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_427, 1); +lean_inc(x_487); +if (lean_is_exclusive(x_427)) { + lean_ctor_release(x_427, 0); + lean_ctor_release(x_427, 1); + x_488 = x_427; +} else { + lean_dec_ref(x_427); + x_488 = lean_box(0); +} +if (lean_is_scalar(x_488)) { + x_489 = lean_alloc_ctor(1, 2, 0); +} else { + x_489 = x_488; +} +lean_ctor_set(x_489, 0, x_486); +lean_ctor_set(x_489, 1, x_487); +x_18 = x_489; +goto block_35; +} +} +else +{ +lean_object* x_490; lean_object* x_491; +lean_dec(x_418); +x_490 = lean_ctor_get(x_422, 1); +lean_inc(x_490); +lean_dec(x_422); +lean_inc(x_2); +x_491 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_367, x_42, x_2, x_369, x_370, x_368, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_490); +lean_dec(x_370); +x_18 = x_491; +goto block_35; +} +} +else +{ +lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; +lean_dec(x_418); +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_dec(x_42); +lean_dec(x_17); +x_492 = lean_ctor_get(x_422, 0); +lean_inc(x_492); +x_493 = lean_ctor_get(x_422, 1); +lean_inc(x_493); +if (lean_is_exclusive(x_422)) { + lean_ctor_release(x_422, 0); + lean_ctor_release(x_422, 1); + x_494 = x_422; +} else { + lean_dec_ref(x_422); + x_494 = lean_box(0); +} +if (lean_is_scalar(x_494)) { + x_495 = lean_alloc_ctor(1, 2, 0); +} else { + x_495 = x_494; +} +lean_ctor_set(x_495, 0, x_492); +lean_ctor_set(x_495, 1, x_493); +x_18 = x_495; +goto block_35; +} +} +else +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; +lean_dec(x_418); +lean_dec(x_370); +lean_dec(x_369); +lean_dec(x_368); +lean_dec(x_367); +lean_dec(x_42); +lean_dec(x_17); +x_496 = lean_ctor_get(x_419, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_419, 1); +lean_inc(x_497); +if (lean_is_exclusive(x_419)) { + lean_ctor_release(x_419, 0); + lean_ctor_release(x_419, 1); + x_498 = x_419; +} else { + lean_dec_ref(x_419); + x_498 = lean_box(0); +} +if (lean_is_scalar(x_498)) { + x_499 = lean_alloc_ctor(1, 2, 0); +} else { + x_499 = x_498; +} +lean_ctor_set(x_499, 0, x_496); +lean_ctor_set(x_499, 1, x_497); +x_18 = x_499; +goto block_35; +} +} +default: +{ +lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; +lean_dec(x_371); +lean_dec(x_17); +x_500 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_500, 0, x_368); +lean_ctor_set(x_500, 1, x_367); +lean_ctor_set(x_38, 1, x_500); +lean_ctor_set(x_38, 0, x_370); +lean_ctor_set(x_37, 0, x_369); +lean_inc(x_2); +x_501 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_501, 0, x_2); +lean_ctor_set(x_501, 1, x_36); +x_502 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_502, 0, x_501); +x_503 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_503, 0, x_502); +lean_ctor_set(x_503, 1, x_14); +x_18 = x_503; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; uint8_t x_510; +x_504 = lean_ctor_get(x_38, 0); +lean_inc(x_504); +lean_dec(x_38); +x_505 = lean_ctor_get(x_39, 0); +lean_inc(x_505); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_506 = x_39; +} else { + lean_dec_ref(x_39); + x_506 = lean_box(0); +} +x_507 = lean_ctor_get(x_40, 0); +lean_inc(x_507); +x_508 = lean_ctor_get(x_40, 1); +lean_inc(x_508); +x_509 = lean_ctor_get(x_40, 2); +lean_inc(x_509); +x_510 = lean_nat_dec_lt(x_508, x_509); +if (x_510 == 0) +{ +lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; +lean_dec(x_509); +lean_dec(x_508); +lean_dec(x_507); +lean_dec(x_17); +if (lean_is_scalar(x_506)) { + x_511 = lean_alloc_ctor(0, 2, 0); +} else { + x_511 = x_506; +} +lean_ctor_set(x_511, 0, x_505); +lean_ctor_set(x_511, 1, x_40); +x_512 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_512, 0, x_504); +lean_ctor_set(x_512, 1, x_511); +lean_ctor_set(x_37, 1, x_512); +lean_inc(x_2); +x_513 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_513, 0, x_2); +lean_ctor_set(x_513, 1, x_36); +x_514 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_514, 0, x_513); +x_515 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_515, 0, x_514); +lean_ctor_set(x_515, 1, x_14); +x_18 = x_515; +goto block_35; +} +else +{ +lean_object* x_516; lean_object* x_517; uint8_t x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_516 = x_40; +} else { + lean_dec_ref(x_40); + x_516 = lean_box(0); +} +x_517 = lean_array_fget(x_507, x_508); +x_518 = lean_unbox(x_517); +lean_dec(x_517); +x_519 = lean_unsigned_to_nat(1u); +x_520 = lean_nat_add(x_508, x_519); +lean_dec(x_508); +if (lean_is_scalar(x_516)) { + x_521 = lean_alloc_ctor(0, 3, 0); +} else { + x_521 = x_516; +} +lean_ctor_set(x_521, 0, x_507); +lean_ctor_set(x_521, 1, x_520); +lean_ctor_set(x_521, 2, x_509); +lean_inc(x_17); +x_522 = l_Lean_mkApp(x_505, x_17); +lean_inc(x_17); +x_523 = lean_array_push(x_45, x_17); +x_524 = l_Lean_Expr_bindingBody_x21(x_504); +lean_dec(x_504); +x_525 = lean_box(x_518); +switch (lean_obj_tag(x_525)) { +case 1: +{ +lean_object* x_526; lean_object* x_527; +lean_dec(x_17); +x_526 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_527 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_526, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_527) == 0) +{ +lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; +x_528 = lean_ctor_get(x_527, 1); +lean_inc(x_528); +if (lean_is_exclusive(x_527)) { + lean_ctor_release(x_527, 0); + lean_ctor_release(x_527, 1); + x_529 = x_527; +} else { + lean_dec_ref(x_527); + x_529 = lean_box(0); +} +if (lean_is_scalar(x_506)) { + x_530 = lean_alloc_ctor(0, 2, 0); +} else { + x_530 = x_506; +} +lean_ctor_set(x_530, 0, x_522); +lean_ctor_set(x_530, 1, x_521); +x_531 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_531, 0, x_524); +lean_ctor_set(x_531, 1, x_530); +lean_ctor_set(x_37, 1, x_531); +lean_ctor_set(x_37, 0, x_523); +lean_inc(x_2); +x_532 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_532, 0, x_2); +lean_ctor_set(x_532, 1, x_36); +x_533 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_533, 0, x_532); +if (lean_is_scalar(x_529)) { + x_534 = lean_alloc_ctor(0, 2, 0); +} else { + x_534 = x_529; +} +lean_ctor_set(x_534, 0, x_533); +lean_ctor_set(x_534, 1, x_528); +x_18 = x_534; +goto block_35; +} +else +{ +lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; +lean_dec(x_524); +lean_dec(x_523); +lean_dec(x_522); +lean_dec(x_521); +lean_dec(x_506); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_535 = lean_ctor_get(x_527, 0); +lean_inc(x_535); +x_536 = lean_ctor_get(x_527, 1); +lean_inc(x_536); +if (lean_is_exclusive(x_527)) { + lean_ctor_release(x_527, 0); + lean_ctor_release(x_527, 1); + x_537 = x_527; +} else { + lean_dec_ref(x_527); + x_537 = lean_box(0); +} +if (lean_is_scalar(x_537)) { + x_538 = lean_alloc_ctor(1, 2, 0); +} else { + x_538 = x_537; +} +lean_ctor_set(x_538, 0, x_535); +lean_ctor_set(x_538, 1, x_536); +x_18 = x_538; +goto block_35; +} +} +case 2: +{ +lean_object* x_539; lean_object* x_540; lean_object* x_541; +lean_dec(x_17); +x_539 = l_Lean_Meta_Simp_instInhabitedResult; +x_540 = lean_array_get(x_539, x_1, x_42); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_540); +x_541 = l_Lean_Meta_Simp_Result_getProof(x_540, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_541) == 0) +{ +lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; +x_542 = lean_ctor_get(x_541, 0); +lean_inc(x_542); +x_543 = lean_ctor_get(x_541, 1); +lean_inc(x_543); +if (lean_is_exclusive(x_541)) { + lean_ctor_release(x_541, 0); + lean_ctor_release(x_541, 1); + x_544 = x_541; +} else { + lean_dec_ref(x_541); + x_544 = lean_box(0); +} +x_545 = lean_nat_add(x_42, x_519); +lean_dec(x_42); +x_546 = lean_ctor_get(x_540, 0); +lean_inc(x_546); +lean_dec(x_540); +lean_inc(x_542); +lean_inc(x_546); +x_547 = l_Lean_mkAppB(x_522, x_546, x_542); +x_548 = lean_array_push(x_523, x_546); +x_549 = lean_array_push(x_548, x_542); +x_550 = l_Lean_Expr_bindingBody_x21(x_524); +lean_dec(x_524); +x_551 = l_Lean_Expr_bindingBody_x21(x_550); +lean_dec(x_550); +if (lean_is_scalar(x_506)) { + x_552 = lean_alloc_ctor(0, 2, 0); +} else { + x_552 = x_506; +} +lean_ctor_set(x_552, 0, x_547); +lean_ctor_set(x_552, 1, x_521); +x_553 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_553, 0, x_551); +lean_ctor_set(x_553, 1, x_552); +lean_ctor_set(x_37, 1, x_553); +lean_ctor_set(x_37, 0, x_549); +lean_ctor_set(x_36, 0, x_545); +lean_inc(x_2); +x_554 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_554, 0, x_2); +lean_ctor_set(x_554, 1, x_36); +x_555 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_555, 0, x_554); +if (lean_is_scalar(x_544)) { + x_556 = lean_alloc_ctor(0, 2, 0); +} else { + x_556 = x_544; +} +lean_ctor_set(x_556, 0, x_555); +lean_ctor_set(x_556, 1, x_543); +x_18 = x_556; +goto block_35; +} +else +{ +lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; +lean_dec(x_540); +lean_dec(x_524); +lean_dec(x_523); +lean_dec(x_522); +lean_dec(x_521); +lean_dec(x_506); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_557 = lean_ctor_get(x_541, 0); +lean_inc(x_557); +x_558 = lean_ctor_get(x_541, 1); +lean_inc(x_558); +if (lean_is_exclusive(x_541)) { + lean_ctor_release(x_541, 0); + lean_ctor_release(x_541, 1); + x_559 = x_541; +} else { + lean_dec_ref(x_541); + x_559 = lean_box(0); +} +if (lean_is_scalar(x_559)) { + x_560 = lean_alloc_ctor(1, 2, 0); +} else { + x_560 = x_559; +} +lean_ctor_set(x_560, 0, x_557); +lean_ctor_set(x_560, 1, x_558); +x_18 = x_560; +goto block_35; +} +} +case 4: +{ +lean_object* x_561; lean_object* x_562; +lean_dec(x_17); +x_561 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_562 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_561, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_562) == 0) +{ +lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; +x_563 = lean_ctor_get(x_562, 1); +lean_inc(x_563); +if (lean_is_exclusive(x_562)) { + lean_ctor_release(x_562, 0); + lean_ctor_release(x_562, 1); + x_564 = x_562; +} else { + lean_dec_ref(x_562); + x_564 = lean_box(0); +} +if (lean_is_scalar(x_506)) { + x_565 = lean_alloc_ctor(0, 2, 0); +} else { + x_565 = x_506; +} +lean_ctor_set(x_565, 0, x_522); +lean_ctor_set(x_565, 1, x_521); +x_566 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_566, 0, x_524); +lean_ctor_set(x_566, 1, x_565); +lean_ctor_set(x_37, 1, x_566); +lean_ctor_set(x_37, 0, x_523); +lean_inc(x_2); +x_567 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_567, 0, x_2); +lean_ctor_set(x_567, 1, x_36); +x_568 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_568, 0, x_567); +if (lean_is_scalar(x_564)) { + x_569 = lean_alloc_ctor(0, 2, 0); +} else { + x_569 = x_564; +} +lean_ctor_set(x_569, 0, x_568); +lean_ctor_set(x_569, 1, x_563); +x_18 = x_569; +goto block_35; +} +else +{ +lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; +lean_dec(x_524); +lean_dec(x_523); +lean_dec(x_522); +lean_dec(x_521); +lean_dec(x_506); +lean_free_object(x_37); +lean_free_object(x_36); +lean_dec(x_42); +x_570 = lean_ctor_get(x_562, 0); +lean_inc(x_570); +x_571 = lean_ctor_get(x_562, 1); +lean_inc(x_571); +if (lean_is_exclusive(x_562)) { + lean_ctor_release(x_562, 0); + lean_ctor_release(x_562, 1); + x_572 = x_562; +} else { + lean_dec_ref(x_562); + x_572 = lean_box(0); +} +if (lean_is_scalar(x_572)) { + x_573 = lean_alloc_ctor(1, 2, 0); +} else { + x_573 = x_572; +} +lean_ctor_set(x_573, 0, x_570); +lean_ctor_set(x_573, 1, x_571); +x_18 = x_573; +goto block_35; +} +} +case 5: +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; +lean_dec(x_506); +lean_free_object(x_37); +lean_free_object(x_36); +x_574 = l_Lean_Expr_bindingDomain_x21(x_524); +x_575 = lean_expr_instantiate_rev(x_574, x_523); +lean_dec(x_574); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_17); +x_576 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_576) == 0) +{ +lean_object* x_577; lean_object* x_578; lean_object* x_579; +x_577 = lean_ctor_get(x_576, 0); +lean_inc(x_577); +x_578 = lean_ctor_get(x_576, 1); +lean_inc(x_578); +lean_dec(x_576); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_575); +x_579 = l_Lean_Meta_isExprDefEq(x_577, x_575, x_10, x_11, x_12, x_13, x_578); +if (lean_obj_tag(x_579) == 0) +{ +lean_object* x_580; uint8_t x_581; +x_580 = lean_ctor_get(x_579, 0); +lean_inc(x_580); +x_581 = lean_unbox(x_580); +lean_dec(x_580); +if (x_581 == 0) +{ +lean_object* x_582; lean_object* x_583; lean_object* x_584; +lean_dec(x_17); +x_582 = lean_ctor_get(x_579, 1); +lean_inc(x_582); +lean_dec(x_579); +x_583 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_575); +x_584 = l_Lean_Meta_trySynthInstance(x_575, x_583, x_10, x_11, x_12, x_13, x_582); +if (lean_obj_tag(x_584) == 0) +{ +lean_object* x_585; +x_585 = lean_ctor_get(x_584, 0); +lean_inc(x_585); +switch (lean_obj_tag(x_585)) { +case 0: +{ +lean_object* x_586; lean_object* x_587; uint8_t x_588; lean_object* x_589; lean_object* x_602; lean_object* x_603; lean_object* x_604; uint8_t x_605; +x_586 = lean_ctor_get(x_584, 1); +lean_inc(x_586); +lean_dec(x_584); +x_587 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_602 = lean_st_ref_get(x_13, x_586); +x_603 = lean_ctor_get(x_602, 0); +lean_inc(x_603); +x_604 = lean_ctor_get(x_603, 3); +lean_inc(x_604); +lean_dec(x_603); +x_605 = lean_ctor_get_uint8(x_604, sizeof(void*)*1); +lean_dec(x_604); +if (x_605 == 0) +{ +lean_object* x_606; uint8_t x_607; +x_606 = lean_ctor_get(x_602, 1); +lean_inc(x_606); +lean_dec(x_602); +x_607 = 0; +x_588 = x_607; +x_589 = x_606; +goto block_601; +} +else +{ +lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; uint8_t x_612; +x_608 = lean_ctor_get(x_602, 1); +lean_inc(x_608); +lean_dec(x_602); +x_609 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_587, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_608); +x_610 = lean_ctor_get(x_609, 0); +lean_inc(x_610); +x_611 = lean_ctor_get(x_609, 1); +lean_inc(x_611); +lean_dec(x_609); +x_612 = lean_unbox(x_610); +lean_dec(x_610); +x_588 = x_612; +x_589 = x_611; +goto block_601; +} +block_601: +{ +if (x_588 == 0) +{ +lean_object* x_590; lean_object* x_591; +lean_dec(x_575); +x_590 = lean_box(0); +x_591 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_583, x_522, x_521, x_524, x_523, x_42, x_590, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_589); +x_18 = x_591; +goto block_35; +} +else +{ +lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; +x_592 = l_Lean_indentExpr(x_575); +x_593 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_594 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_594, 0, x_593); +lean_ctor_set(x_594, 1, x_592); +x_595 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_596 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_596, 0, x_594); +lean_ctor_set(x_596, 1, x_595); +x_597 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_587, x_596, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_589); +x_598 = lean_ctor_get(x_597, 0); +lean_inc(x_598); +x_599 = lean_ctor_get(x_597, 1); +lean_inc(x_599); +lean_dec(x_597); +x_600 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_583, x_522, x_521, x_524, x_523, x_42, x_598, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_599); +lean_dec(x_598); +x_18 = x_600; +goto block_35; +} +} +} +case 1: +{ +lean_object* x_613; lean_object* x_614; lean_object* x_615; +lean_dec(x_575); +x_613 = lean_ctor_get(x_584, 1); +lean_inc(x_613); +lean_dec(x_584); +x_614 = lean_ctor_get(x_585, 0); +lean_inc(x_614); +lean_dec(x_585); +lean_inc(x_2); +x_615 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_521, x_42, x_2, x_523, x_524, x_522, x_614, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_613); +lean_dec(x_524); +x_18 = x_615; +goto block_35; +} +default: +{ +lean_object* x_616; lean_object* x_617; uint8_t x_618; lean_object* x_619; lean_object* x_632; lean_object* x_633; lean_object* x_634; uint8_t x_635; +x_616 = lean_ctor_get(x_584, 1); +lean_inc(x_616); +lean_dec(x_584); +x_617 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_632 = lean_st_ref_get(x_13, x_616); +x_633 = lean_ctor_get(x_632, 0); +lean_inc(x_633); +x_634 = lean_ctor_get(x_633, 3); +lean_inc(x_634); +lean_dec(x_633); +x_635 = lean_ctor_get_uint8(x_634, sizeof(void*)*1); +lean_dec(x_634); +if (x_635 == 0) +{ +lean_object* x_636; uint8_t x_637; +x_636 = lean_ctor_get(x_632, 1); +lean_inc(x_636); +lean_dec(x_632); +x_637 = 0; +x_618 = x_637; +x_619 = x_636; +goto block_631; +} +else +{ +lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; uint8_t x_642; +x_638 = lean_ctor_get(x_632, 1); +lean_inc(x_638); +lean_dec(x_632); +x_639 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_617, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_638); +x_640 = lean_ctor_get(x_639, 0); +lean_inc(x_640); +x_641 = lean_ctor_get(x_639, 1); +lean_inc(x_641); +lean_dec(x_639); +x_642 = lean_unbox(x_640); +lean_dec(x_640); +x_618 = x_642; +x_619 = x_641; +goto block_631; +} +block_631: +{ +if (x_618 == 0) +{ +lean_object* x_620; lean_object* x_621; +lean_dec(x_575); +x_620 = lean_box(0); +x_621 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_583, x_522, x_521, x_524, x_523, x_42, x_620, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_619); +x_18 = x_621; +goto block_35; +} +else +{ +lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; +x_622 = l_Lean_indentExpr(x_575); +x_623 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_624 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_624, 0, x_623); +lean_ctor_set(x_624, 1, x_622); +x_625 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_626 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_626, 0, x_624); +lean_ctor_set(x_626, 1, x_625); +x_627 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_617, x_626, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_619); +x_628 = lean_ctor_get(x_627, 0); +lean_inc(x_628); +x_629 = lean_ctor_get(x_627, 1); +lean_inc(x_629); +lean_dec(x_627); +x_630 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_583, x_522, x_521, x_524, x_523, x_42, x_628, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_629); +lean_dec(x_628); +x_18 = x_630; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; +lean_dec(x_575); +lean_dec(x_524); +lean_dec(x_523); +lean_dec(x_522); +lean_dec(x_521); +lean_dec(x_42); +x_643 = lean_ctor_get(x_584, 0); +lean_inc(x_643); +x_644 = lean_ctor_get(x_584, 1); +lean_inc(x_644); +if (lean_is_exclusive(x_584)) { + lean_ctor_release(x_584, 0); + lean_ctor_release(x_584, 1); + x_645 = x_584; +} else { + lean_dec_ref(x_584); + x_645 = lean_box(0); +} +if (lean_is_scalar(x_645)) { + x_646 = lean_alloc_ctor(1, 2, 0); +} else { + x_646 = x_645; +} +lean_ctor_set(x_646, 0, x_643); +lean_ctor_set(x_646, 1, x_644); +x_18 = x_646; +goto block_35; +} +} +else +{ +lean_object* x_647; lean_object* x_648; +lean_dec(x_575); +x_647 = lean_ctor_get(x_579, 1); +lean_inc(x_647); +lean_dec(x_579); +lean_inc(x_2); +x_648 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_521, x_42, x_2, x_523, x_524, x_522, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_647); +lean_dec(x_524); +x_18 = x_648; +goto block_35; +} +} +else +{ +lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; +lean_dec(x_575); +lean_dec(x_524); +lean_dec(x_523); +lean_dec(x_522); +lean_dec(x_521); +lean_dec(x_42); +lean_dec(x_17); +x_649 = lean_ctor_get(x_579, 0); +lean_inc(x_649); +x_650 = lean_ctor_get(x_579, 1); +lean_inc(x_650); +if (lean_is_exclusive(x_579)) { + lean_ctor_release(x_579, 0); + lean_ctor_release(x_579, 1); + x_651 = x_579; +} else { + lean_dec_ref(x_579); + x_651 = lean_box(0); +} +if (lean_is_scalar(x_651)) { + x_652 = lean_alloc_ctor(1, 2, 0); +} else { + x_652 = x_651; +} +lean_ctor_set(x_652, 0, x_649); +lean_ctor_set(x_652, 1, x_650); +x_18 = x_652; +goto block_35; +} +} +else +{ +lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; +lean_dec(x_575); +lean_dec(x_524); +lean_dec(x_523); +lean_dec(x_522); +lean_dec(x_521); +lean_dec(x_42); +lean_dec(x_17); +x_653 = lean_ctor_get(x_576, 0); +lean_inc(x_653); +x_654 = lean_ctor_get(x_576, 1); +lean_inc(x_654); +if (lean_is_exclusive(x_576)) { + lean_ctor_release(x_576, 0); + lean_ctor_release(x_576, 1); + x_655 = x_576; +} else { + lean_dec_ref(x_576); + x_655 = lean_box(0); +} +if (lean_is_scalar(x_655)) { + x_656 = lean_alloc_ctor(1, 2, 0); +} else { + x_656 = x_655; +} +lean_ctor_set(x_656, 0, x_653); +lean_ctor_set(x_656, 1, x_654); +x_18 = x_656; +goto block_35; +} +} +default: +{ +lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; +lean_dec(x_525); +lean_dec(x_17); +if (lean_is_scalar(x_506)) { + x_657 = lean_alloc_ctor(0, 2, 0); +} else { + x_657 = x_506; +} +lean_ctor_set(x_657, 0, x_522); +lean_ctor_set(x_657, 1, x_521); +x_658 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_658, 0, x_524); +lean_ctor_set(x_658, 1, x_657); +lean_ctor_set(x_37, 1, x_658); +lean_ctor_set(x_37, 0, x_523); +lean_inc(x_2); +x_659 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_659, 0, x_2); +lean_ctor_set(x_659, 1, x_36); +x_660 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_660, 0, x_659); +x_661 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_661, 0, x_660); +lean_ctor_set(x_661, 1, x_14); +x_18 = x_661; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; uint8_t x_670; +x_662 = lean_ctor_get(x_37, 0); +lean_inc(x_662); +lean_dec(x_37); +x_663 = lean_ctor_get(x_38, 0); +lean_inc(x_663); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_664 = x_38; +} else { + lean_dec_ref(x_38); + x_664 = lean_box(0); +} +x_665 = lean_ctor_get(x_39, 0); +lean_inc(x_665); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_666 = x_39; +} else { + lean_dec_ref(x_39); + x_666 = lean_box(0); +} +x_667 = lean_ctor_get(x_40, 0); +lean_inc(x_667); +x_668 = lean_ctor_get(x_40, 1); +lean_inc(x_668); +x_669 = lean_ctor_get(x_40, 2); +lean_inc(x_669); +x_670 = lean_nat_dec_lt(x_668, x_669); +if (x_670 == 0) +{ +lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; +lean_dec(x_669); +lean_dec(x_668); +lean_dec(x_667); +lean_dec(x_17); +if (lean_is_scalar(x_666)) { + x_671 = lean_alloc_ctor(0, 2, 0); +} else { + x_671 = x_666; +} +lean_ctor_set(x_671, 0, x_665); +lean_ctor_set(x_671, 1, x_40); +if (lean_is_scalar(x_664)) { + x_672 = lean_alloc_ctor(0, 2, 0); +} else { + x_672 = x_664; +} +lean_ctor_set(x_672, 0, x_663); +lean_ctor_set(x_672, 1, x_671); +x_673 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_673, 0, x_662); +lean_ctor_set(x_673, 1, x_672); +lean_ctor_set(x_36, 1, x_673); +lean_inc(x_2); +x_674 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_674, 0, x_2); +lean_ctor_set(x_674, 1, x_36); +x_675 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_675, 0, x_674); +x_676 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_676, 0, x_675); +lean_ctor_set(x_676, 1, x_14); +x_18 = x_676; +goto block_35; +} +else +{ +lean_object* x_677; lean_object* x_678; uint8_t x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_677 = x_40; +} else { + lean_dec_ref(x_40); + x_677 = lean_box(0); +} +x_678 = lean_array_fget(x_667, x_668); +x_679 = lean_unbox(x_678); +lean_dec(x_678); +x_680 = lean_unsigned_to_nat(1u); +x_681 = lean_nat_add(x_668, x_680); +lean_dec(x_668); +if (lean_is_scalar(x_677)) { + x_682 = lean_alloc_ctor(0, 3, 0); +} else { + x_682 = x_677; +} +lean_ctor_set(x_682, 0, x_667); +lean_ctor_set(x_682, 1, x_681); +lean_ctor_set(x_682, 2, x_669); +lean_inc(x_17); +x_683 = l_Lean_mkApp(x_665, x_17); +lean_inc(x_17); +x_684 = lean_array_push(x_662, x_17); +x_685 = l_Lean_Expr_bindingBody_x21(x_663); +lean_dec(x_663); +x_686 = lean_box(x_679); +switch (lean_obj_tag(x_686)) { +case 1: +{ +lean_object* x_687; lean_object* x_688; +lean_dec(x_17); +x_687 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_688 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_687, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_688) == 0) +{ +lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; +x_689 = lean_ctor_get(x_688, 1); +lean_inc(x_689); +if (lean_is_exclusive(x_688)) { + lean_ctor_release(x_688, 0); + lean_ctor_release(x_688, 1); + x_690 = x_688; +} else { + lean_dec_ref(x_688); + x_690 = lean_box(0); +} +if (lean_is_scalar(x_666)) { + x_691 = lean_alloc_ctor(0, 2, 0); +} else { + x_691 = x_666; +} +lean_ctor_set(x_691, 0, x_683); +lean_ctor_set(x_691, 1, x_682); +if (lean_is_scalar(x_664)) { + x_692 = lean_alloc_ctor(0, 2, 0); +} else { + x_692 = x_664; +} +lean_ctor_set(x_692, 0, x_685); +lean_ctor_set(x_692, 1, x_691); +x_693 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_693, 0, x_684); +lean_ctor_set(x_693, 1, x_692); +lean_ctor_set(x_36, 1, x_693); +lean_inc(x_2); +x_694 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_694, 0, x_2); +lean_ctor_set(x_694, 1, x_36); +x_695 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_695, 0, x_694); +if (lean_is_scalar(x_690)) { + x_696 = lean_alloc_ctor(0, 2, 0); +} else { + x_696 = x_690; +} +lean_ctor_set(x_696, 0, x_695); +lean_ctor_set(x_696, 1, x_689); +x_18 = x_696; +goto block_35; +} +else +{ +lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_666); +lean_dec(x_664); +lean_free_object(x_36); +lean_dec(x_42); +x_697 = lean_ctor_get(x_688, 0); +lean_inc(x_697); +x_698 = lean_ctor_get(x_688, 1); +lean_inc(x_698); +if (lean_is_exclusive(x_688)) { + lean_ctor_release(x_688, 0); + lean_ctor_release(x_688, 1); + x_699 = x_688; +} else { + lean_dec_ref(x_688); + x_699 = lean_box(0); +} +if (lean_is_scalar(x_699)) { + x_700 = lean_alloc_ctor(1, 2, 0); +} else { + x_700 = x_699; +} +lean_ctor_set(x_700, 0, x_697); +lean_ctor_set(x_700, 1, x_698); +x_18 = x_700; +goto block_35; +} +} +case 2: +{ +lean_object* x_701; lean_object* x_702; lean_object* x_703; +lean_dec(x_17); +x_701 = l_Lean_Meta_Simp_instInhabitedResult; +x_702 = lean_array_get(x_701, x_1, x_42); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_702); +x_703 = l_Lean_Meta_Simp_Result_getProof(x_702, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_703) == 0) +{ +lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; +x_704 = lean_ctor_get(x_703, 0); +lean_inc(x_704); +x_705 = lean_ctor_get(x_703, 1); +lean_inc(x_705); +if (lean_is_exclusive(x_703)) { + lean_ctor_release(x_703, 0); + lean_ctor_release(x_703, 1); + x_706 = x_703; +} else { + lean_dec_ref(x_703); + x_706 = lean_box(0); +} +x_707 = lean_nat_add(x_42, x_680); +lean_dec(x_42); +x_708 = lean_ctor_get(x_702, 0); +lean_inc(x_708); +lean_dec(x_702); +lean_inc(x_704); +lean_inc(x_708); +x_709 = l_Lean_mkAppB(x_683, x_708, x_704); +x_710 = lean_array_push(x_684, x_708); +x_711 = lean_array_push(x_710, x_704); +x_712 = l_Lean_Expr_bindingBody_x21(x_685); +lean_dec(x_685); +x_713 = l_Lean_Expr_bindingBody_x21(x_712); +lean_dec(x_712); +if (lean_is_scalar(x_666)) { + x_714 = lean_alloc_ctor(0, 2, 0); +} else { + x_714 = x_666; +} +lean_ctor_set(x_714, 0, x_709); +lean_ctor_set(x_714, 1, x_682); +if (lean_is_scalar(x_664)) { + x_715 = lean_alloc_ctor(0, 2, 0); +} else { + x_715 = x_664; +} +lean_ctor_set(x_715, 0, x_713); +lean_ctor_set(x_715, 1, x_714); +x_716 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_716, 0, x_711); +lean_ctor_set(x_716, 1, x_715); +lean_ctor_set(x_36, 1, x_716); +lean_ctor_set(x_36, 0, x_707); +lean_inc(x_2); +x_717 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_717, 0, x_2); +lean_ctor_set(x_717, 1, x_36); +x_718 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_718, 0, x_717); +if (lean_is_scalar(x_706)) { + x_719 = lean_alloc_ctor(0, 2, 0); +} else { + x_719 = x_706; +} +lean_ctor_set(x_719, 0, x_718); +lean_ctor_set(x_719, 1, x_705); +x_18 = x_719; +goto block_35; +} +else +{ +lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; +lean_dec(x_702); +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_666); +lean_dec(x_664); +lean_free_object(x_36); +lean_dec(x_42); +x_720 = lean_ctor_get(x_703, 0); +lean_inc(x_720); +x_721 = lean_ctor_get(x_703, 1); +lean_inc(x_721); +if (lean_is_exclusive(x_703)) { + lean_ctor_release(x_703, 0); + lean_ctor_release(x_703, 1); + x_722 = x_703; +} else { + lean_dec_ref(x_703); + x_722 = lean_box(0); +} +if (lean_is_scalar(x_722)) { + x_723 = lean_alloc_ctor(1, 2, 0); +} else { + x_723 = x_722; +} +lean_ctor_set(x_723, 0, x_720); +lean_ctor_set(x_723, 1, x_721); +x_18 = x_723; +goto block_35; +} +} +case 4: +{ +lean_object* x_724; lean_object* x_725; +lean_dec(x_17); +x_724 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_725 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_724, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_725) == 0) +{ +lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; +x_726 = lean_ctor_get(x_725, 1); +lean_inc(x_726); +if (lean_is_exclusive(x_725)) { + lean_ctor_release(x_725, 0); + lean_ctor_release(x_725, 1); + x_727 = x_725; +} else { + lean_dec_ref(x_725); + x_727 = lean_box(0); +} +if (lean_is_scalar(x_666)) { + x_728 = lean_alloc_ctor(0, 2, 0); +} else { + x_728 = x_666; +} +lean_ctor_set(x_728, 0, x_683); +lean_ctor_set(x_728, 1, x_682); +if (lean_is_scalar(x_664)) { + x_729 = lean_alloc_ctor(0, 2, 0); +} else { + x_729 = x_664; +} +lean_ctor_set(x_729, 0, x_685); +lean_ctor_set(x_729, 1, x_728); +x_730 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_730, 0, x_684); +lean_ctor_set(x_730, 1, x_729); +lean_ctor_set(x_36, 1, x_730); +lean_inc(x_2); +x_731 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_731, 0, x_2); +lean_ctor_set(x_731, 1, x_36); +x_732 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_732, 0, x_731); +if (lean_is_scalar(x_727)) { + x_733 = lean_alloc_ctor(0, 2, 0); +} else { + x_733 = x_727; +} +lean_ctor_set(x_733, 0, x_732); +lean_ctor_set(x_733, 1, x_726); +x_18 = x_733; +goto block_35; +} +else +{ +lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_666); +lean_dec(x_664); +lean_free_object(x_36); +lean_dec(x_42); +x_734 = lean_ctor_get(x_725, 0); +lean_inc(x_734); +x_735 = lean_ctor_get(x_725, 1); +lean_inc(x_735); +if (lean_is_exclusive(x_725)) { + lean_ctor_release(x_725, 0); + lean_ctor_release(x_725, 1); + x_736 = x_725; +} else { + lean_dec_ref(x_725); + x_736 = lean_box(0); +} +if (lean_is_scalar(x_736)) { + x_737 = lean_alloc_ctor(1, 2, 0); +} else { + x_737 = x_736; +} +lean_ctor_set(x_737, 0, x_734); +lean_ctor_set(x_737, 1, x_735); +x_18 = x_737; +goto block_35; +} +} +case 5: +{ +lean_object* x_738; lean_object* x_739; lean_object* x_740; +lean_dec(x_666); +lean_dec(x_664); +lean_free_object(x_36); +x_738 = l_Lean_Expr_bindingDomain_x21(x_685); +x_739 = lean_expr_instantiate_rev(x_738, x_684); +lean_dec(x_738); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_17); +x_740 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_740) == 0) +{ +lean_object* x_741; lean_object* x_742; lean_object* x_743; +x_741 = lean_ctor_get(x_740, 0); +lean_inc(x_741); +x_742 = lean_ctor_get(x_740, 1); +lean_inc(x_742); +lean_dec(x_740); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_739); +x_743 = l_Lean_Meta_isExprDefEq(x_741, x_739, x_10, x_11, x_12, x_13, x_742); +if (lean_obj_tag(x_743) == 0) +{ +lean_object* x_744; uint8_t x_745; +x_744 = lean_ctor_get(x_743, 0); +lean_inc(x_744); +x_745 = lean_unbox(x_744); +lean_dec(x_744); +if (x_745 == 0) +{ +lean_object* x_746; lean_object* x_747; lean_object* x_748; +lean_dec(x_17); +x_746 = lean_ctor_get(x_743, 1); +lean_inc(x_746); +lean_dec(x_743); +x_747 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_739); +x_748 = l_Lean_Meta_trySynthInstance(x_739, x_747, x_10, x_11, x_12, x_13, x_746); +if (lean_obj_tag(x_748) == 0) +{ +lean_object* x_749; +x_749 = lean_ctor_get(x_748, 0); +lean_inc(x_749); +switch (lean_obj_tag(x_749)) { +case 0: +{ +lean_object* x_750; lean_object* x_751; uint8_t x_752; lean_object* x_753; lean_object* x_766; lean_object* x_767; lean_object* x_768; uint8_t x_769; +x_750 = lean_ctor_get(x_748, 1); +lean_inc(x_750); +lean_dec(x_748); +x_751 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_766 = lean_st_ref_get(x_13, x_750); +x_767 = lean_ctor_get(x_766, 0); +lean_inc(x_767); +x_768 = lean_ctor_get(x_767, 3); +lean_inc(x_768); +lean_dec(x_767); +x_769 = lean_ctor_get_uint8(x_768, sizeof(void*)*1); +lean_dec(x_768); +if (x_769 == 0) +{ +lean_object* x_770; uint8_t x_771; +x_770 = lean_ctor_get(x_766, 1); +lean_inc(x_770); +lean_dec(x_766); +x_771 = 0; +x_752 = x_771; +x_753 = x_770; +goto block_765; +} +else +{ +lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; uint8_t x_776; +x_772 = lean_ctor_get(x_766, 1); +lean_inc(x_772); +lean_dec(x_766); +x_773 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_751, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_772); +x_774 = lean_ctor_get(x_773, 0); +lean_inc(x_774); +x_775 = lean_ctor_get(x_773, 1); +lean_inc(x_775); +lean_dec(x_773); +x_776 = lean_unbox(x_774); +lean_dec(x_774); +x_752 = x_776; +x_753 = x_775; +goto block_765; +} +block_765: +{ +if (x_752 == 0) +{ +lean_object* x_754; lean_object* x_755; +lean_dec(x_739); +x_754 = lean_box(0); +x_755 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_747, x_683, x_682, x_685, x_684, x_42, x_754, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_753); +x_18 = x_755; +goto block_35; +} +else +{ +lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; +x_756 = l_Lean_indentExpr(x_739); +x_757 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_758 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_758, 0, x_757); +lean_ctor_set(x_758, 1, x_756); +x_759 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_760 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_760, 0, x_758); +lean_ctor_set(x_760, 1, x_759); +x_761 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_751, x_760, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_753); +x_762 = lean_ctor_get(x_761, 0); +lean_inc(x_762); +x_763 = lean_ctor_get(x_761, 1); +lean_inc(x_763); +lean_dec(x_761); +x_764 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_747, x_683, x_682, x_685, x_684, x_42, x_762, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_763); +lean_dec(x_762); +x_18 = x_764; +goto block_35; +} +} +} +case 1: +{ +lean_object* x_777; lean_object* x_778; lean_object* x_779; +lean_dec(x_739); +x_777 = lean_ctor_get(x_748, 1); +lean_inc(x_777); +lean_dec(x_748); +x_778 = lean_ctor_get(x_749, 0); +lean_inc(x_778); +lean_dec(x_749); +lean_inc(x_2); +x_779 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_682, x_42, x_2, x_684, x_685, x_683, x_778, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_777); +lean_dec(x_685); +x_18 = x_779; +goto block_35; +} +default: +{ +lean_object* x_780; lean_object* x_781; uint8_t x_782; lean_object* x_783; lean_object* x_796; lean_object* x_797; lean_object* x_798; uint8_t x_799; +x_780 = lean_ctor_get(x_748, 1); +lean_inc(x_780); +lean_dec(x_748); +x_781 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_796 = lean_st_ref_get(x_13, x_780); +x_797 = lean_ctor_get(x_796, 0); +lean_inc(x_797); +x_798 = lean_ctor_get(x_797, 3); +lean_inc(x_798); +lean_dec(x_797); +x_799 = lean_ctor_get_uint8(x_798, sizeof(void*)*1); +lean_dec(x_798); +if (x_799 == 0) +{ +lean_object* x_800; uint8_t x_801; +x_800 = lean_ctor_get(x_796, 1); +lean_inc(x_800); +lean_dec(x_796); +x_801 = 0; +x_782 = x_801; +x_783 = x_800; +goto block_795; +} +else +{ +lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; uint8_t x_806; +x_802 = lean_ctor_get(x_796, 1); +lean_inc(x_802); +lean_dec(x_796); +x_803 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_781, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_802); +x_804 = lean_ctor_get(x_803, 0); +lean_inc(x_804); +x_805 = lean_ctor_get(x_803, 1); +lean_inc(x_805); +lean_dec(x_803); +x_806 = lean_unbox(x_804); +lean_dec(x_804); +x_782 = x_806; +x_783 = x_805; +goto block_795; +} +block_795: +{ +if (x_782 == 0) +{ +lean_object* x_784; lean_object* x_785; +lean_dec(x_739); +x_784 = lean_box(0); +x_785 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_747, x_683, x_682, x_685, x_684, x_42, x_784, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_783); +x_18 = x_785; +goto block_35; +} +else +{ +lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; +x_786 = l_Lean_indentExpr(x_739); +x_787 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_788 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_788, 0, x_787); +lean_ctor_set(x_788, 1, x_786); +x_789 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_790 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_790, 0, x_788); +lean_ctor_set(x_790, 1, x_789); +x_791 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_781, x_790, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_783); +x_792 = lean_ctor_get(x_791, 0); +lean_inc(x_792); +x_793 = lean_ctor_get(x_791, 1); +lean_inc(x_793); +lean_dec(x_791); +x_794 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_747, x_683, x_682, x_685, x_684, x_42, x_792, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_793); +lean_dec(x_792); +x_18 = x_794; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; +lean_dec(x_739); +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_42); +x_807 = lean_ctor_get(x_748, 0); +lean_inc(x_807); +x_808 = lean_ctor_get(x_748, 1); +lean_inc(x_808); +if (lean_is_exclusive(x_748)) { + lean_ctor_release(x_748, 0); + lean_ctor_release(x_748, 1); + x_809 = x_748; +} else { + lean_dec_ref(x_748); + x_809 = lean_box(0); +} +if (lean_is_scalar(x_809)) { + x_810 = lean_alloc_ctor(1, 2, 0); +} else { + x_810 = x_809; +} +lean_ctor_set(x_810, 0, x_807); +lean_ctor_set(x_810, 1, x_808); +x_18 = x_810; +goto block_35; +} +} +else +{ +lean_object* x_811; lean_object* x_812; +lean_dec(x_739); +x_811 = lean_ctor_get(x_743, 1); +lean_inc(x_811); +lean_dec(x_743); +lean_inc(x_2); +x_812 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_682, x_42, x_2, x_684, x_685, x_683, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_811); +lean_dec(x_685); +x_18 = x_812; +goto block_35; +} +} +else +{ +lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; +lean_dec(x_739); +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_42); +lean_dec(x_17); +x_813 = lean_ctor_get(x_743, 0); +lean_inc(x_813); +x_814 = lean_ctor_get(x_743, 1); +lean_inc(x_814); +if (lean_is_exclusive(x_743)) { + lean_ctor_release(x_743, 0); + lean_ctor_release(x_743, 1); + x_815 = x_743; +} else { + lean_dec_ref(x_743); + x_815 = lean_box(0); +} +if (lean_is_scalar(x_815)) { + x_816 = lean_alloc_ctor(1, 2, 0); +} else { + x_816 = x_815; +} +lean_ctor_set(x_816, 0, x_813); +lean_ctor_set(x_816, 1, x_814); +x_18 = x_816; +goto block_35; +} +} +else +{ +lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; +lean_dec(x_739); +lean_dec(x_685); +lean_dec(x_684); +lean_dec(x_683); +lean_dec(x_682); +lean_dec(x_42); +lean_dec(x_17); +x_817 = lean_ctor_get(x_740, 0); +lean_inc(x_817); +x_818 = lean_ctor_get(x_740, 1); +lean_inc(x_818); +if (lean_is_exclusive(x_740)) { + lean_ctor_release(x_740, 0); + lean_ctor_release(x_740, 1); + x_819 = x_740; +} else { + lean_dec_ref(x_740); + x_819 = lean_box(0); +} +if (lean_is_scalar(x_819)) { + x_820 = lean_alloc_ctor(1, 2, 0); +} else { + x_820 = x_819; +} +lean_ctor_set(x_820, 0, x_817); +lean_ctor_set(x_820, 1, x_818); +x_18 = x_820; +goto block_35; +} +} +default: +{ +lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; +lean_dec(x_686); +lean_dec(x_17); +if (lean_is_scalar(x_666)) { + x_821 = lean_alloc_ctor(0, 2, 0); +} else { + x_821 = x_666; +} +lean_ctor_set(x_821, 0, x_683); +lean_ctor_set(x_821, 1, x_682); +if (lean_is_scalar(x_664)) { + x_822 = lean_alloc_ctor(0, 2, 0); +} else { + x_822 = x_664; +} +lean_ctor_set(x_822, 0, x_685); +lean_ctor_set(x_822, 1, x_821); +x_823 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_823, 0, x_684); +lean_ctor_set(x_823, 1, x_822); +lean_ctor_set(x_36, 1, x_823); +lean_inc(x_2); +x_824 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_824, 0, x_2); +lean_ctor_set(x_824, 1, x_36); +x_825 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_825, 0, x_824); +x_826 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_826, 0, x_825); +lean_ctor_set(x_826, 1, x_14); +x_18 = x_826; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; uint8_t x_837; +x_827 = lean_ctor_get(x_36, 0); +lean_inc(x_827); +lean_dec(x_36); +x_828 = lean_ctor_get(x_37, 0); +lean_inc(x_828); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_829 = x_37; +} else { + lean_dec_ref(x_37); + x_829 = lean_box(0); +} +x_830 = lean_ctor_get(x_38, 0); +lean_inc(x_830); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_831 = x_38; +} else { + lean_dec_ref(x_38); + x_831 = lean_box(0); +} +x_832 = lean_ctor_get(x_39, 0); +lean_inc(x_832); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_833 = x_39; +} else { + lean_dec_ref(x_39); + x_833 = lean_box(0); +} +x_834 = lean_ctor_get(x_40, 0); +lean_inc(x_834); +x_835 = lean_ctor_get(x_40, 1); +lean_inc(x_835); +x_836 = lean_ctor_get(x_40, 2); +lean_inc(x_836); +x_837 = lean_nat_dec_lt(x_835, x_836); +if (x_837 == 0) +{ +lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; +lean_dec(x_836); +lean_dec(x_835); +lean_dec(x_834); +lean_dec(x_17); +if (lean_is_scalar(x_833)) { + x_838 = lean_alloc_ctor(0, 2, 0); +} else { + x_838 = x_833; +} +lean_ctor_set(x_838, 0, x_832); +lean_ctor_set(x_838, 1, x_40); +if (lean_is_scalar(x_831)) { + x_839 = lean_alloc_ctor(0, 2, 0); +} else { + x_839 = x_831; +} +lean_ctor_set(x_839, 0, x_830); +lean_ctor_set(x_839, 1, x_838); +if (lean_is_scalar(x_829)) { + x_840 = lean_alloc_ctor(0, 2, 0); +} else { + x_840 = x_829; +} +lean_ctor_set(x_840, 0, x_828); +lean_ctor_set(x_840, 1, x_839); +x_841 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_841, 0, x_827); +lean_ctor_set(x_841, 1, x_840); +lean_inc(x_2); +x_842 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_842, 0, x_2); +lean_ctor_set(x_842, 1, x_841); +x_843 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_843, 0, x_842); +x_844 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_844, 0, x_843); +lean_ctor_set(x_844, 1, x_14); +x_18 = x_844; +goto block_35; +} +else +{ +lean_object* x_845; lean_object* x_846; uint8_t x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + lean_ctor_release(x_40, 2); + x_845 = x_40; +} else { + lean_dec_ref(x_40); + x_845 = lean_box(0); +} +x_846 = lean_array_fget(x_834, x_835); +x_847 = lean_unbox(x_846); +lean_dec(x_846); +x_848 = lean_unsigned_to_nat(1u); +x_849 = lean_nat_add(x_835, x_848); +lean_dec(x_835); +if (lean_is_scalar(x_845)) { + x_850 = lean_alloc_ctor(0, 3, 0); +} else { + x_850 = x_845; +} +lean_ctor_set(x_850, 0, x_834); +lean_ctor_set(x_850, 1, x_849); +lean_ctor_set(x_850, 2, x_836); +lean_inc(x_17); +x_851 = l_Lean_mkApp(x_832, x_17); +lean_inc(x_17); +x_852 = lean_array_push(x_828, x_17); +x_853 = l_Lean_Expr_bindingBody_x21(x_830); +lean_dec(x_830); +x_854 = lean_box(x_847); +switch (lean_obj_tag(x_854)) { +case 1: +{ +lean_object* x_855; lean_object* x_856; +lean_dec(x_17); +x_855 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_856 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_855, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_856) == 0) +{ +lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; +x_857 = lean_ctor_get(x_856, 1); +lean_inc(x_857); +if (lean_is_exclusive(x_856)) { + lean_ctor_release(x_856, 0); + lean_ctor_release(x_856, 1); + x_858 = x_856; +} else { + lean_dec_ref(x_856); + x_858 = lean_box(0); +} +if (lean_is_scalar(x_833)) { + x_859 = lean_alloc_ctor(0, 2, 0); +} else { + x_859 = x_833; +} +lean_ctor_set(x_859, 0, x_851); +lean_ctor_set(x_859, 1, x_850); +if (lean_is_scalar(x_831)) { + x_860 = lean_alloc_ctor(0, 2, 0); +} else { + x_860 = x_831; +} +lean_ctor_set(x_860, 0, x_853); +lean_ctor_set(x_860, 1, x_859); +if (lean_is_scalar(x_829)) { + x_861 = lean_alloc_ctor(0, 2, 0); +} else { + x_861 = x_829; +} +lean_ctor_set(x_861, 0, x_852); +lean_ctor_set(x_861, 1, x_860); +x_862 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_862, 0, x_827); +lean_ctor_set(x_862, 1, x_861); +lean_inc(x_2); +x_863 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_863, 0, x_2); +lean_ctor_set(x_863, 1, x_862); +x_864 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_864, 0, x_863); +if (lean_is_scalar(x_858)) { + x_865 = lean_alloc_ctor(0, 2, 0); +} else { + x_865 = x_858; +} +lean_ctor_set(x_865, 0, x_864); +lean_ctor_set(x_865, 1, x_857); +x_18 = x_865; +goto block_35; +} +else +{ +lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; +lean_dec(x_853); +lean_dec(x_852); +lean_dec(x_851); +lean_dec(x_850); +lean_dec(x_833); +lean_dec(x_831); +lean_dec(x_829); +lean_dec(x_827); +x_866 = lean_ctor_get(x_856, 0); +lean_inc(x_866); +x_867 = lean_ctor_get(x_856, 1); +lean_inc(x_867); +if (lean_is_exclusive(x_856)) { + lean_ctor_release(x_856, 0); + lean_ctor_release(x_856, 1); + x_868 = x_856; +} else { + lean_dec_ref(x_856); + x_868 = lean_box(0); +} +if (lean_is_scalar(x_868)) { + x_869 = lean_alloc_ctor(1, 2, 0); +} else { + x_869 = x_868; +} +lean_ctor_set(x_869, 0, x_866); +lean_ctor_set(x_869, 1, x_867); +x_18 = x_869; +goto block_35; +} +} +case 2: +{ +lean_object* x_870; lean_object* x_871; lean_object* x_872; +lean_dec(x_17); +x_870 = l_Lean_Meta_Simp_instInhabitedResult; +x_871 = lean_array_get(x_870, x_1, x_827); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_871); +x_872 = l_Lean_Meta_Simp_Result_getProof(x_871, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_872) == 0) +{ +lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; +x_873 = lean_ctor_get(x_872, 0); +lean_inc(x_873); +x_874 = lean_ctor_get(x_872, 1); +lean_inc(x_874); +if (lean_is_exclusive(x_872)) { + lean_ctor_release(x_872, 0); + lean_ctor_release(x_872, 1); + x_875 = x_872; +} else { + lean_dec_ref(x_872); + x_875 = lean_box(0); +} +x_876 = lean_nat_add(x_827, x_848); +lean_dec(x_827); +x_877 = lean_ctor_get(x_871, 0); +lean_inc(x_877); +lean_dec(x_871); +lean_inc(x_873); +lean_inc(x_877); +x_878 = l_Lean_mkAppB(x_851, x_877, x_873); +x_879 = lean_array_push(x_852, x_877); +x_880 = lean_array_push(x_879, x_873); +x_881 = l_Lean_Expr_bindingBody_x21(x_853); +lean_dec(x_853); +x_882 = l_Lean_Expr_bindingBody_x21(x_881); +lean_dec(x_881); +if (lean_is_scalar(x_833)) { + x_883 = lean_alloc_ctor(0, 2, 0); +} else { + x_883 = x_833; +} +lean_ctor_set(x_883, 0, x_878); +lean_ctor_set(x_883, 1, x_850); +if (lean_is_scalar(x_831)) { + x_884 = lean_alloc_ctor(0, 2, 0); +} else { + x_884 = x_831; +} +lean_ctor_set(x_884, 0, x_882); +lean_ctor_set(x_884, 1, x_883); +if (lean_is_scalar(x_829)) { + x_885 = lean_alloc_ctor(0, 2, 0); +} else { + x_885 = x_829; +} +lean_ctor_set(x_885, 0, x_880); +lean_ctor_set(x_885, 1, x_884); +x_886 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_886, 0, x_876); +lean_ctor_set(x_886, 1, x_885); +lean_inc(x_2); +x_887 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_887, 0, x_2); +lean_ctor_set(x_887, 1, x_886); +x_888 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_888, 0, x_887); +if (lean_is_scalar(x_875)) { + x_889 = lean_alloc_ctor(0, 2, 0); +} else { + x_889 = x_875; +} +lean_ctor_set(x_889, 0, x_888); +lean_ctor_set(x_889, 1, x_874); +x_18 = x_889; +goto block_35; +} +else +{ +lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; +lean_dec(x_871); +lean_dec(x_853); +lean_dec(x_852); +lean_dec(x_851); +lean_dec(x_850); +lean_dec(x_833); +lean_dec(x_831); +lean_dec(x_829); +lean_dec(x_827); +x_890 = lean_ctor_get(x_872, 0); +lean_inc(x_890); +x_891 = lean_ctor_get(x_872, 1); +lean_inc(x_891); +if (lean_is_exclusive(x_872)) { + lean_ctor_release(x_872, 0); + lean_ctor_release(x_872, 1); + x_892 = x_872; +} else { + lean_dec_ref(x_872); + x_892 = lean_box(0); +} +if (lean_is_scalar(x_892)) { + x_893 = lean_alloc_ctor(1, 2, 0); +} else { + x_893 = x_892; +} +lean_ctor_set(x_893, 0, x_890); +lean_ctor_set(x_893, 1, x_891); +x_18 = x_893; +goto block_35; +} +} +case 4: +{ +lean_object* x_894; lean_object* x_895; +lean_dec(x_17); +x_894 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1; +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_895 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1(x_894, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_895) == 0) +{ +lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; +x_896 = lean_ctor_get(x_895, 1); +lean_inc(x_896); +if (lean_is_exclusive(x_895)) { + lean_ctor_release(x_895, 0); + lean_ctor_release(x_895, 1); + x_897 = x_895; +} else { + lean_dec_ref(x_895); + x_897 = lean_box(0); +} +if (lean_is_scalar(x_833)) { + x_898 = lean_alloc_ctor(0, 2, 0); +} else { + x_898 = x_833; +} +lean_ctor_set(x_898, 0, x_851); +lean_ctor_set(x_898, 1, x_850); +if (lean_is_scalar(x_831)) { + x_899 = lean_alloc_ctor(0, 2, 0); +} else { + x_899 = x_831; +} +lean_ctor_set(x_899, 0, x_853); +lean_ctor_set(x_899, 1, x_898); +if (lean_is_scalar(x_829)) { + x_900 = lean_alloc_ctor(0, 2, 0); +} else { + x_900 = x_829; +} +lean_ctor_set(x_900, 0, x_852); +lean_ctor_set(x_900, 1, x_899); +x_901 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_901, 0, x_827); +lean_ctor_set(x_901, 1, x_900); +lean_inc(x_2); +x_902 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_902, 0, x_2); +lean_ctor_set(x_902, 1, x_901); +x_903 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_903, 0, x_902); +if (lean_is_scalar(x_897)) { + x_904 = lean_alloc_ctor(0, 2, 0); +} else { + x_904 = x_897; +} +lean_ctor_set(x_904, 0, x_903); +lean_ctor_set(x_904, 1, x_896); +x_18 = x_904; +goto block_35; +} +else +{ +lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; +lean_dec(x_853); +lean_dec(x_852); +lean_dec(x_851); +lean_dec(x_850); +lean_dec(x_833); +lean_dec(x_831); +lean_dec(x_829); +lean_dec(x_827); +x_905 = lean_ctor_get(x_895, 0); +lean_inc(x_905); +x_906 = lean_ctor_get(x_895, 1); +lean_inc(x_906); +if (lean_is_exclusive(x_895)) { + lean_ctor_release(x_895, 0); + lean_ctor_release(x_895, 1); + x_907 = x_895; +} else { + lean_dec_ref(x_895); + x_907 = lean_box(0); +} +if (lean_is_scalar(x_907)) { + x_908 = lean_alloc_ctor(1, 2, 0); +} else { + x_908 = x_907; +} +lean_ctor_set(x_908, 0, x_905); +lean_ctor_set(x_908, 1, x_906); +x_18 = x_908; +goto block_35; +} +} +case 5: +{ +lean_object* x_909; lean_object* x_910; lean_object* x_911; +lean_dec(x_833); +lean_dec(x_831); +lean_dec(x_829); +x_909 = l_Lean_Expr_bindingDomain_x21(x_853); +x_910 = lean_expr_instantiate_rev(x_909, x_852); +lean_dec(x_909); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_17); +x_911 = lean_infer_type(x_17, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_911) == 0) +{ +lean_object* x_912; lean_object* x_913; lean_object* x_914; +x_912 = lean_ctor_get(x_911, 0); +lean_inc(x_912); +x_913 = lean_ctor_get(x_911, 1); +lean_inc(x_913); +lean_dec(x_911); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_910); +x_914 = l_Lean_Meta_isExprDefEq(x_912, x_910, x_10, x_11, x_12, x_13, x_913); +if (lean_obj_tag(x_914) == 0) +{ +lean_object* x_915; uint8_t x_916; +x_915 = lean_ctor_get(x_914, 0); +lean_inc(x_915); +x_916 = lean_unbox(x_915); +lean_dec(x_915); +if (x_916 == 0) +{ +lean_object* x_917; lean_object* x_918; lean_object* x_919; +lean_dec(x_17); +x_917 = lean_ctor_get(x_914, 1); +lean_inc(x_917); +lean_dec(x_914); +x_918 = lean_box(0); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_910); +x_919 = l_Lean_Meta_trySynthInstance(x_910, x_918, x_10, x_11, x_12, x_13, x_917); +if (lean_obj_tag(x_919) == 0) +{ +lean_object* x_920; +x_920 = lean_ctor_get(x_919, 0); +lean_inc(x_920); +switch (lean_obj_tag(x_920)) { +case 0: +{ +lean_object* x_921; lean_object* x_922; uint8_t x_923; lean_object* x_924; lean_object* x_937; lean_object* x_938; lean_object* x_939; uint8_t x_940; +x_921 = lean_ctor_get(x_919, 1); +lean_inc(x_921); +lean_dec(x_919); +x_922 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_937 = lean_st_ref_get(x_13, x_921); +x_938 = lean_ctor_get(x_937, 0); +lean_inc(x_938); +x_939 = lean_ctor_get(x_938, 3); +lean_inc(x_939); +lean_dec(x_938); +x_940 = lean_ctor_get_uint8(x_939, sizeof(void*)*1); +lean_dec(x_939); +if (x_940 == 0) +{ +lean_object* x_941; uint8_t x_942; +x_941 = lean_ctor_get(x_937, 1); +lean_inc(x_941); +lean_dec(x_937); +x_942 = 0; +x_923 = x_942; +x_924 = x_941; +goto block_936; +} +else +{ +lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; uint8_t x_947; +x_943 = lean_ctor_get(x_937, 1); +lean_inc(x_943); +lean_dec(x_937); +x_944 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_922, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_943); +x_945 = lean_ctor_get(x_944, 0); +lean_inc(x_945); +x_946 = lean_ctor_get(x_944, 1); +lean_inc(x_946); +lean_dec(x_944); +x_947 = lean_unbox(x_945); +lean_dec(x_945); +x_923 = x_947; +x_924 = x_946; +goto block_936; +} +block_936: +{ +if (x_923 == 0) +{ +lean_object* x_925; lean_object* x_926; +lean_dec(x_910); +x_925 = lean_box(0); +x_926 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_918, x_851, x_850, x_853, x_852, x_827, x_925, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_924); +x_18 = x_926; +goto block_35; +} +else +{ +lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; +x_927 = l_Lean_indentExpr(x_910); +x_928 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_929 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_929, 0, x_928); +lean_ctor_set(x_929, 1, x_927); +x_930 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_931 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_931, 0, x_929); +lean_ctor_set(x_931, 1, x_930); +x_932 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_922, x_931, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_924); +x_933 = lean_ctor_get(x_932, 0); +lean_inc(x_933); +x_934 = lean_ctor_get(x_932, 1); +lean_inc(x_934); +lean_dec(x_932); +x_935 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_918, x_851, x_850, x_853, x_852, x_827, x_933, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_934); +lean_dec(x_933); +x_18 = x_935; +goto block_35; +} +} +} +case 1: +{ +lean_object* x_948; lean_object* x_949; lean_object* x_950; +lean_dec(x_910); +x_948 = lean_ctor_get(x_919, 1); +lean_inc(x_948); +lean_dec(x_919); +x_949 = lean_ctor_get(x_920, 0); +lean_inc(x_949); +lean_dec(x_920); +lean_inc(x_2); +x_950 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_850, x_827, x_2, x_852, x_853, x_851, x_949, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_948); +lean_dec(x_853); +x_18 = x_950; +goto block_35; +} +default: +{ +lean_object* x_951; lean_object* x_952; uint8_t x_953; lean_object* x_954; lean_object* x_967; lean_object* x_968; lean_object* x_969; uint8_t x_970; +x_951 = lean_ctor_get(x_919, 1); +lean_inc(x_951); +lean_dec(x_919); +x_952 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; +x_967 = lean_st_ref_get(x_13, x_951); +x_968 = lean_ctor_get(x_967, 0); +lean_inc(x_968); +x_969 = lean_ctor_get(x_968, 3); +lean_inc(x_969); +lean_dec(x_968); +x_970 = lean_ctor_get_uint8(x_969, sizeof(void*)*1); +lean_dec(x_969); +if (x_970 == 0) +{ +lean_object* x_971; uint8_t x_972; +x_971 = lean_ctor_get(x_967, 1); +lean_inc(x_971); +lean_dec(x_967); +x_972 = 0; +x_953 = x_972; +x_954 = x_971; +goto block_966; +} +else +{ +lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; uint8_t x_977; +x_973 = lean_ctor_get(x_967, 1); +lean_inc(x_973); +lean_dec(x_967); +x_974 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_Simp_simp_simpForall___spec__3(x_952, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_973); +x_975 = lean_ctor_get(x_974, 0); +lean_inc(x_975); +x_976 = lean_ctor_get(x_974, 1); +lean_inc(x_976); +lean_dec(x_974); +x_977 = lean_unbox(x_975); +lean_dec(x_975); +x_953 = x_977; +x_954 = x_976; +goto block_966; +} +block_966: +{ +if (x_953 == 0) +{ +lean_object* x_955; lean_object* x_956; +lean_dec(x_910); +x_955 = lean_box(0); +x_956 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_918, x_851, x_850, x_853, x_852, x_827, x_955, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_954); +x_18 = x_956; +goto block_35; +} +else +{ +lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; +x_957 = l_Lean_indentExpr(x_910); +x_958 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8; +x_959 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_959, 0, x_958); +lean_ctor_set(x_959, 1, x_957); +x_960 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_961 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_961, 0, x_959); +lean_ctor_set(x_961, 1, x_960); +x_962 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2(x_952, x_961, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_954); +x_963 = lean_ctor_get(x_962, 0); +lean_inc(x_963); +x_964 = lean_ctor_get(x_962, 1); +lean_inc(x_964); +lean_dec(x_962); +x_965 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_918, x_851, x_850, x_853, x_852, x_827, x_963, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_964); +lean_dec(x_963); +x_18 = x_965; +goto block_35; +} +} +} +} +} +else +{ +lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; +lean_dec(x_910); +lean_dec(x_853); +lean_dec(x_852); +lean_dec(x_851); +lean_dec(x_850); +lean_dec(x_827); +x_978 = lean_ctor_get(x_919, 0); +lean_inc(x_978); +x_979 = lean_ctor_get(x_919, 1); +lean_inc(x_979); +if (lean_is_exclusive(x_919)) { + lean_ctor_release(x_919, 0); + lean_ctor_release(x_919, 1); + x_980 = x_919; +} else { + lean_dec_ref(x_919); + x_980 = lean_box(0); +} +if (lean_is_scalar(x_980)) { + x_981 = lean_alloc_ctor(1, 2, 0); +} else { + x_981 = x_980; +} +lean_ctor_set(x_981, 0, x_978); +lean_ctor_set(x_981, 1, x_979); +x_18 = x_981; +goto block_35; +} +} +else +{ +lean_object* x_982; lean_object* x_983; +lean_dec(x_910); +x_982 = lean_ctor_get(x_914, 1); +lean_inc(x_982); +lean_dec(x_914); +lean_inc(x_2); +x_983 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_850, x_827, x_2, x_852, x_853, x_851, x_17, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_982); +lean_dec(x_853); +x_18 = x_983; +goto block_35; +} +} +else +{ +lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; +lean_dec(x_910); +lean_dec(x_853); +lean_dec(x_852); +lean_dec(x_851); +lean_dec(x_850); +lean_dec(x_827); +lean_dec(x_17); +x_984 = lean_ctor_get(x_914, 0); +lean_inc(x_984); +x_985 = lean_ctor_get(x_914, 1); +lean_inc(x_985); +if (lean_is_exclusive(x_914)) { + lean_ctor_release(x_914, 0); + lean_ctor_release(x_914, 1); + x_986 = x_914; +} else { + lean_dec_ref(x_914); + x_986 = lean_box(0); +} +if (lean_is_scalar(x_986)) { + x_987 = lean_alloc_ctor(1, 2, 0); +} else { + x_987 = x_986; +} +lean_ctor_set(x_987, 0, x_984); +lean_ctor_set(x_987, 1, x_985); +x_18 = x_987; +goto block_35; +} +} +else +{ +lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; +lean_dec(x_910); +lean_dec(x_853); +lean_dec(x_852); +lean_dec(x_851); +lean_dec(x_850); +lean_dec(x_827); +lean_dec(x_17); +x_988 = lean_ctor_get(x_911, 0); +lean_inc(x_988); +x_989 = lean_ctor_get(x_911, 1); +lean_inc(x_989); +if (lean_is_exclusive(x_911)) { + lean_ctor_release(x_911, 0); + lean_ctor_release(x_911, 1); + x_990 = x_911; +} else { + lean_dec_ref(x_911); + x_990 = lean_box(0); +} +if (lean_is_scalar(x_990)) { + x_991 = lean_alloc_ctor(1, 2, 0); +} else { + x_991 = x_990; +} +lean_ctor_set(x_991, 0, x_988); +lean_ctor_set(x_991, 1, x_989); +x_18 = x_991; +goto block_35; +} +} +default: +{ +lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; +lean_dec(x_854); +lean_dec(x_17); +if (lean_is_scalar(x_833)) { + x_992 = lean_alloc_ctor(0, 2, 0); +} else { + x_992 = x_833; +} +lean_ctor_set(x_992, 0, x_851); +lean_ctor_set(x_992, 1, x_850); +if (lean_is_scalar(x_831)) { + x_993 = lean_alloc_ctor(0, 2, 0); +} else { + x_993 = x_831; +} +lean_ctor_set(x_993, 0, x_853); +lean_ctor_set(x_993, 1, x_992); +if (lean_is_scalar(x_829)) { + x_994 = lean_alloc_ctor(0, 2, 0); +} else { + x_994 = x_829; +} +lean_ctor_set(x_994, 0, x_852); +lean_ctor_set(x_994, 1, x_993); +x_995 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_995, 0, x_827); +lean_ctor_set(x_995, 1, x_994); +lean_inc(x_2); +x_996 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_996, 0, x_2); +lean_ctor_set(x_996, 1, x_995); +x_997 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_997, 0, x_996); +x_998 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_998, 0, x_997); +lean_ctor_set(x_998, 1, x_14); +x_18 = x_998; +goto block_35; +} +} +} +} +block_35: +{ +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +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_2); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 0); +lean_dec(x_21); +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec(x_19); +lean_ctor_set(x_18, 0, x_22); +return x_18; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_ctor_get(x_19, 0); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_dec(x_18); +x_27 = lean_ctor_get(x_19, 0); +lean_inc(x_27); +lean_dec(x_19); +x_28 = 1; +x_29 = lean_usize_add(x_5, x_28); +x_5 = x_29; +x_6 = x_27; +x_14 = x_26; +goto _start; +} +} +else +{ +uint8_t x_31; +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_2); +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) +{ +return x_18; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_18, 0); +x_33 = lean_ctor_get(x_18, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_18); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_panic___at_Lean_Meta_Simp_simp_simpStep___spec__1___closed__1; +x_3 = l_instInhabited___rarg(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__1; +x_2 = lean_alloc_closure((void*)(l_instInhabitedReaderT___rarg___boxed), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__2; +x_2 = lean_alloc_closure((void*)(l_instInhabitedReaderT___rarg___boxed), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__3; +x_11 = lean_panic_fn(x_10, x_1); +x_12 = lean_apply_8(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_2); +lean_ctor_set(x_12, 1, x_11); +x_13 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_13, 0, x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +} +static lean_object* _init_l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1() { +_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_Simp_simp_simpStep___closed__1; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1; +x_3 = lean_unsigned_to_nat(360u); +x_4 = lean_unsigned_to_nat(63u); +x_5 = l_Lean_Meta_Simp_simp_simpStep___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2(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_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +lean_dec(x_5); +x_14 = lean_expr_instantiate_rev(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_15 = l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2; +x_16 = lean_unsigned_to_nat(3u); +x_17 = l_Lean_Expr_isAppOfArity(x_14, x_15, x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_14); +lean_dec(x_3); +x_18 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1; +x_19 = l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_19; +} +else +{ +lean_object* x_20; +x_20 = l_Lean_Expr_appArg_x21(x_14); +lean_dec(x_14); +if (x_4 == 0) +{ +lean_object* x_21; +x_21 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__1(x_3, x_20, 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); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = l_Lean_Meta_Simp_removeUnnecessaryCasts(x_20, 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 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__1(x_3, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_24); +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); +return x_25; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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, size_t x_7, size_t x_8, uint8_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; 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_10); +x_19 = lean_box(0); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_20, 1, x_2); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_3); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_4); +lean_ctor_set(x_22, 1, x_21); +x_23 = lean_unsigned_to_nat(0u); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_19); +lean_ctor_set(x_25, 1, x_24); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +x_26 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3(x_5, x_19, x_6, x_7, x_8, x_25, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_6); +lean_dec(x_5); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_27, 0); +lean_inc(x_32); +lean_dec(x_27); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_dec(x_26); +x_34 = lean_ctor_get(x_29, 0); +lean_inc(x_34); +lean_dec(x_29); +x_35 = lean_ctor_get(x_30, 0); +lean_inc(x_35); +lean_dec(x_30); +x_36 = lean_ctor_get(x_31, 0); +lean_inc(x_36); +lean_dec(x_31); +x_37 = lean_box(0); +x_38 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2(x_35, x_34, x_36, x_9, x_37, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_33); +return x_38; +} +else +{ +uint8_t x_39; +lean_dec(x_31); +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_39 = !lean_is_exclusive(x_26); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_ctor_get(x_26, 0); +lean_dec(x_40); +x_41 = lean_ctor_get(x_32, 0); +lean_inc(x_41); +lean_dec(x_32); +lean_ctor_set(x_26, 0, x_41); +return x_26; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_26, 1); +lean_inc(x_42); +lean_dec(x_26); +x_43 = lean_ctor_get(x_32, 0); +lean_inc(x_43); +lean_dec(x_32); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +return x_44; +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +x_45 = !lean_is_exclusive(x_26); +if (x_45 == 0) +{ +return x_26; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_26, 0); +x_47 = lean_ctor_get(x_26, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_26); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__4(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, size_t x_10, size_t x_11, uint8_t 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) { +_start: +{ +lean_dec(x_13); +if (x_1 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_22 = l_Lean_mkAppN(x_2, x_3); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_21); +return x_26; +} +else +{ +lean_object* x_27; lean_object* x_28; +lean_dec(x_3); +lean_dec(x_2); +x_27 = lean_box(0); +x_28 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__3(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +return x_28; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +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; 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_4); +x_13 = lean_unsigned_to_nat(0u); +x_14 = l_Lean_Expr_getAppNumArgsAux(x_1, x_13); +x_15 = l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_reduceProjFn_x3f___closed__1; +lean_inc(x_14); +x_16 = lean_mk_array(x_14, x_15); +x_17 = lean_unsigned_to_nat(1u); +x_18 = lean_nat_sub(x_14, x_17); +lean_dec(x_14); +lean_inc(x_1); +x_19 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_16, x_18); +x_20 = lean_ctor_get(x_2, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_2, 1); +lean_inc(x_21); +x_22 = lean_ctor_get(x_2, 2); +lean_inc(x_22); +lean_dec(x_2); +x_23 = lean_array_get_size(x_22); +x_24 = l_Array_toSubarray___rarg(x_22, x_13, x_23); +x_25 = 0; +x_26 = lean_box(x_25); +lean_inc(x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_24); +lean_ctor_set(x_27, 1, x_26); +x_28 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__1___closed__1; +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +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_box(x_25); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +x_33 = lean_box(x_25); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = lean_array_get_size(x_19); +x_36 = lean_usize_of_nat(x_35); +lean_dec(x_35); +x_37 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_38 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2(x_19, x_36, x_37, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 1); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec(x_43); +x_45 = lean_unbox(x_44); +lean_dec(x_44); +if (x_45 == 0) +{ +uint8_t x_46; +lean_dec(x_42); +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_39); +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_46 = !lean_is_exclusive(x_38); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = lean_ctor_get(x_38, 0); +lean_dec(x_47); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_38, 0, x_50); +return x_38; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_51 = lean_ctor_get(x_38, 1); +lean_inc(x_51); +lean_dec(x_38); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_1); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_51); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; lean_object* x_64; +lean_dec(x_1); +x_56 = lean_ctor_get(x_38, 1); +lean_inc(x_56); +lean_dec(x_38); +x_57 = lean_ctor_get(x_39, 0); +lean_inc(x_57); +lean_dec(x_39); +x_58 = lean_ctor_get(x_40, 0); +lean_inc(x_58); +lean_dec(x_40); +x_59 = lean_ctor_get(x_41, 0); +lean_inc(x_59); +lean_dec(x_41); +x_60 = lean_ctor_get(x_42, 0); +lean_inc(x_60); +lean_dec(x_42); +x_61 = lean_box(0); +x_62 = lean_unbox(x_57); +lean_dec(x_57); +x_63 = lean_unbox(x_58); +lean_dec(x_58); +x_64 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__4(x_62, x_3, x_60, x_21, x_24, x_20, x_28, x_59, x_19, x_36, x_37, x_63, x_61, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_56); +return x_64; +} +} +else +{ +uint8_t x_65; +lean_dec(x_24); +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_19); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_38); +if (x_65 == 0) +{ +return x_38; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_38, 0); +x_67 = lean_ctor_get(x_38, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_38); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, 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_Expr_getAppFn(x_1); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_10); +x_11 = l_Lean_Meta_Simp_simp_mkCongrSimp_x3f(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = lean_box(0); +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_box(0); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_12, 0); +lean_inc(x_19); +lean_dec(x_12); +x_20 = !lean_is_exclusive(x_11); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_21 = lean_ctor_get(x_11, 1); +x_22 = lean_ctor_get(x_11, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_19, 2); +lean_inc(x_23); +x_24 = lean_array_get_size(x_23); +lean_dec(x_23); +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Lean_Expr_getAppNumArgsAux(x_1, x_25); +x_27 = lean_nat_dec_eq(x_24, x_26); +lean_dec(x_26); +lean_dec(x_24); +if (x_27 == 0) +{ +lean_object* x_28; +lean_dec(x_19); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_28 = lean_box(0); +lean_ctor_set(x_11, 0, x_28); +return x_11; +} +else +{ +lean_object* x_29; lean_object* x_30; +lean_free_object(x_11); +x_29 = lean_box(0); +x_30 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__5(x_1, x_19, x_10, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_21); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_31 = lean_ctor_get(x_11, 1); +lean_inc(x_31); +lean_dec(x_11); +x_32 = lean_ctor_get(x_19, 2); +lean_inc(x_32); +x_33 = lean_array_get_size(x_32); +lean_dec(x_32); +x_34 = lean_unsigned_to_nat(0u); +x_35 = l_Lean_Expr_getAppNumArgsAux(x_1, x_34); +x_36 = lean_nat_dec_eq(x_33, x_35); +lean_dec(x_35); +lean_dec(x_33); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_19); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_31); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_box(0); +x_40 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__5(x_1, x_19, x_10, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_31); +return x_40; +} +} +} +} +else +{ +uint8_t x_41; +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_41 = !lean_is_exclusive(x_11); +if (x_41 == 0) +{ +return x_11; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_11, 0); +x_43 = lean_ctor_get(x_11, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_11); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -19300,69 +29843,21 @@ return x_4; static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Simp_simp_simpForall___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__2; -x_2 = l_Lean_Meta_Simp_simp_simpForall___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__3; -x_2 = l_Lean_Meta_Simp_simp___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("congr"); -return x_1; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4; -x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__7() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("processCongrHypothesis "); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__8() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__7; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__9() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4() { _start: { lean_object* x_1; @@ -19370,11 +29865,11 @@ x_1 = lean_mk_string(" failed "); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__10() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__9; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -19463,7 +29958,7 @@ lean_inc(x_50); x_51 = lean_ctor_get(x_42, 1); lean_inc(x_51); lean_dec(x_42); -x_52 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6; +x_52 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; x_92 = lean_st_ref_get(x_14, x_51); x_93 = lean_ctor_get(x_92, 0); lean_inc(x_93); @@ -19574,11 +30069,11 @@ lean_dec(x_64); lean_inc(x_1); x_67 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_67, 0, x_1); -x_68 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__8; +x_68 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__3; x_69 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); -x_70 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__10; +x_70 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5; x_71 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_71, 0, x_69); lean_ctor_set(x_71, 1, x_70); @@ -20061,7 +30556,7 @@ if (lean_is_exclusive(x_18)) { lean_dec_ref(x_18); x_22 = lean_box(0); } -x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6; +x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; x_38 = lean_st_ref_get(x_15, x_21); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); @@ -20246,7 +30741,7 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6; +x_18 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6; x_33 = lean_st_ref_get(x_16, x_17); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); @@ -21010,7 +31505,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_Simp_simp_simpForall___closed__7; -x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5; +x_2 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__5; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -21677,7 +32172,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_Simp_simp_simpProj___lambda__1___closed__1; x_2 = l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(1006u); +x_3 = lean_unsigned_to_nat(1019u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_Simp_simp_simpProj___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -22800,6 +33295,227 @@ lean_dec(x_2); return x_11; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_visitFn___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +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_Meta_Simp_simp_visitFn___spec__1(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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_visitFn___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_Meta_Simp_simp_visitFn___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_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +_start: +{ +uint8_t x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_unbox(x_7); +lean_dec(x_7); +x_19 = lean_unbox(x_8); +lean_dec(x_8); +x_20 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_18, x_19, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_16); +lean_dec(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_2); +lean_dec(x_1); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +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_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2(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_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +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_5); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, 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); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* 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; +x_15 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_16 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3(x_1, x_2, x_3, x_15, x_16, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_3); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___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: +{ +uint8_t x_14; lean_object* x_15; +x_14 = lean_unbox(x_4); +lean_dec(x_4); +x_15 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2(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); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__3___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +size_t x_19; size_t x_20; uint8_t x_21; lean_object* x_22; +x_19 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_20 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_21 = lean_unbox(x_9); +lean_dec(x_9); +x_22 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_19, x_20, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_22; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__4___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +lean_object* x_21 = _args[20]; +_start: +{ +uint8_t x_22; size_t x_23; size_t x_24; uint8_t x_25; lean_object* x_26; +x_22 = lean_unbox(x_1); +lean_dec(x_1); +x_23 = lean_unbox_usize(x_10); +lean_dec(x_10); +x_24 = lean_unbox_usize(x_11); +lean_dec(x_11); +x_25 = lean_unbox(x_12); +lean_dec(x_12); +x_26 = l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__4(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23, x_24, x_25, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_20, x_21); +return x_26; +} +} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { @@ -23009,9 +33725,20 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_transform___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__1___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = lean_alloc_ctor(0, 2, 0); +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, 1, x_1); +lean_ctor_set(x_3, 2, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Simp_main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Simp_simp___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -23047,11 +33774,17 @@ x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); lean_inc(x_19); x_21 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_19, x_4, x_5, x_6, x_7, x_20); if (lean_obj_tag(x_21) == 0) { lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_dec(x_4); +lean_dec(x_6); +lean_dec(x_5); x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); x_23 = lean_ctor_get(x_21, 1); @@ -23089,278 +33822,430 @@ else { uint8_t x_31; lean_dec(x_19); -lean_dec(x_7); x_31 = !lean_is_exclusive(x_21); if (x_31 == 0) { +lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +x_34 = l_Lean_Exception_isMaxHeartbeat(x_32); +if (x_34 == 0) +{ +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); return x_21; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_21, 0); -x_33 = lean_ctor_get(x_21, 1); -lean_inc(x_33); -lean_inc(x_32); +lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_free_object(x_21); +x_35 = l_Lean_Meta_Simp_main___closed__2; +x_36 = l_Lean_Meta_throwNestedTacticEx___rarg(x_35, x_32, x_4, x_5, x_6, x_7, x_33); +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) +{ +return x_36; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_21, 0); +x_42 = lean_ctor_get(x_21, 1); +lean_inc(x_42); +lean_inc(x_41); lean_dec(x_21); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -} -else +x_43 = l_Lean_Exception_isMaxHeartbeat(x_41); +if (x_43 == 0) { -uint8_t x_35; uint8_t x_36; uint8_t x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; uint8_t x_48; uint8_t 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; -x_35 = lean_ctor_get_uint8(x_10, 0); -x_36 = lean_ctor_get_uint8(x_10, 1); -x_37 = lean_ctor_get_uint8(x_10, 2); -x_38 = lean_ctor_get_uint8(x_10, 3); -x_39 = lean_ctor_get_uint8(x_10, 4); -x_40 = lean_ctor_get_uint8(x_10, 6); -x_41 = lean_ctor_get_uint8(x_10, 7); -x_42 = lean_ctor_get_uint8(x_10, 8); -x_43 = lean_ctor_get_uint8(x_10, 9); -x_44 = lean_ctor_get_uint8(x_10, 10); -x_45 = lean_ctor_get_uint8(x_10, 11); -x_46 = lean_ctor_get_uint8(x_10, 12); -lean_dec(x_10); -x_47 = lean_ctor_get(x_2, 0); -lean_inc(x_47); -x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*2 + 6); -lean_dec(x_47); -x_49 = 2; -x_50 = lean_alloc_ctor(0, 0, 14); -lean_ctor_set_uint8(x_50, 0, x_35); -lean_ctor_set_uint8(x_50, 1, x_36); -lean_ctor_set_uint8(x_50, 2, x_37); -lean_ctor_set_uint8(x_50, 3, x_38); -lean_ctor_set_uint8(x_50, 4, x_39); -lean_ctor_set_uint8(x_50, 5, x_49); -lean_ctor_set_uint8(x_50, 6, x_40); -lean_ctor_set_uint8(x_50, 7, x_41); -lean_ctor_set_uint8(x_50, 8, x_42); -lean_ctor_set_uint8(x_50, 9, x_43); -lean_ctor_set_uint8(x_50, 10, x_44); -lean_ctor_set_uint8(x_50, 11, x_45); -lean_ctor_set_uint8(x_50, 12, x_46); -lean_ctor_set_uint8(x_50, 13, x_48); -lean_ctor_set(x_4, 0, x_50); -x_51 = lean_st_ref_get(x_7, x_8); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = l_Lean_Meta_Simp_main___closed__1; -x_54 = lean_st_mk_ref(x_53, x_52); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -lean_inc(x_7); -lean_inc(x_55); -x_57 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_55, x_4, x_5, x_6, x_7, x_56); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = lean_st_ref_get(x_7, x_59); -lean_dec(x_7); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_62 = lean_st_ref_get(x_55, x_61); -lean_dec(x_55); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_64 = x_62; -} else { - lean_dec_ref(x_62); - x_64 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(0, 2, 0); -} else { - x_65 = x_64; -} -lean_ctor_set(x_65, 0, x_58); -lean_ctor_set(x_65, 1, x_63); -return x_65; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_55); -lean_dec(x_7); -x_66 = lean_ctor_get(x_57, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_57, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_68 = x_57; -} else { - lean_dec_ref(x_57); - x_68 = lean_box(0); -} -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_68; -} -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_67); -return x_69; -} -} -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; uint8_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; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_70 = lean_ctor_get(x_4, 0); -x_71 = lean_ctor_get(x_4, 1); -x_72 = lean_ctor_get(x_4, 2); -x_73 = lean_ctor_get(x_4, 3); -x_74 = lean_ctor_get(x_4, 4); -x_75 = lean_ctor_get(x_4, 5); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); +lean_object* x_44; lean_dec(x_4); -x_76 = lean_ctor_get_uint8(x_70, 0); -x_77 = lean_ctor_get_uint8(x_70, 1); -x_78 = lean_ctor_get_uint8(x_70, 2); -x_79 = lean_ctor_get_uint8(x_70, 3); -x_80 = lean_ctor_get_uint8(x_70, 4); -x_81 = lean_ctor_get_uint8(x_70, 6); -x_82 = lean_ctor_get_uint8(x_70, 7); -x_83 = lean_ctor_get_uint8(x_70, 8); -x_84 = lean_ctor_get_uint8(x_70, 9); -x_85 = lean_ctor_get_uint8(x_70, 10); -x_86 = lean_ctor_get_uint8(x_70, 11); -x_87 = lean_ctor_get_uint8(x_70, 12); -if (lean_is_exclusive(x_70)) { - x_88 = x_70; -} else { - lean_dec_ref(x_70); - x_88 = lean_box(0); -} -x_89 = lean_ctor_get(x_2, 0); -lean_inc(x_89); -x_90 = lean_ctor_get_uint8(x_89, sizeof(void*)*2 + 6); -lean_dec(x_89); -x_91 = 2; -if (lean_is_scalar(x_88)) { - x_92 = lean_alloc_ctor(0, 0, 14); -} else { - x_92 = x_88; -} -lean_ctor_set_uint8(x_92, 0, x_76); -lean_ctor_set_uint8(x_92, 1, x_77); -lean_ctor_set_uint8(x_92, 2, x_78); -lean_ctor_set_uint8(x_92, 3, x_79); -lean_ctor_set_uint8(x_92, 4, x_80); -lean_ctor_set_uint8(x_92, 5, x_91); -lean_ctor_set_uint8(x_92, 6, x_81); -lean_ctor_set_uint8(x_92, 7, x_82); -lean_ctor_set_uint8(x_92, 8, x_83); -lean_ctor_set_uint8(x_92, 9, x_84); -lean_ctor_set_uint8(x_92, 10, x_85); -lean_ctor_set_uint8(x_92, 11, x_86); -lean_ctor_set_uint8(x_92, 12, x_87); -lean_ctor_set_uint8(x_92, 13, x_90); -x_93 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_71); -lean_ctor_set(x_93, 2, x_72); -lean_ctor_set(x_93, 3, x_73); -lean_ctor_set(x_93, 4, x_74); -lean_ctor_set(x_93, 5, x_75); -x_94 = lean_st_ref_get(x_7, x_8); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_96 = l_Lean_Meta_Simp_main___closed__1; -x_97 = lean_st_mk_ref(x_96, x_95); -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); -lean_inc(x_7); -lean_inc(x_98); -x_100 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_98, x_93, x_5, x_6, x_7, x_99); -if (lean_obj_tag(x_100) == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -lean_dec(x_100); -x_103 = lean_st_ref_get(x_7, x_102); lean_dec(x_7); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -x_105 = lean_st_ref_get(x_98, x_104); -lean_dec(x_98); -x_106 = lean_ctor_get(x_105, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_105)) { - lean_ctor_release(x_105, 0); - lean_ctor_release(x_105, 1); - x_107 = x_105; -} else { - lean_dec_ref(x_105); - x_107 = lean_box(0); -} -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(0, 2, 0); -} else { - x_108 = x_107; -} -lean_ctor_set(x_108, 0, x_101); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_dec(x_6); +lean_dec(x_5); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_41); +lean_ctor_set(x_44, 1, x_42); +return x_44; } else { -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; -lean_dec(x_98); -lean_dec(x_7); -x_109 = lean_ctor_get(x_100, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_100, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_111 = x_100; +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_45 = l_Lean_Meta_Simp_main___closed__2; +x_46 = l_Lean_Meta_throwNestedTacticEx___rarg(x_45, x_41, x_4, x_5, x_6, x_7, x_42); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_46)) { + lean_ctor_release(x_46, 0); + lean_ctor_release(x_46, 1); + x_49 = x_46; } else { - lean_dec_ref(x_100); + lean_dec_ref(x_46); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +} +} +else +{ +uint8_t x_51; uint8_t x_52; uint8_t x_53; uint8_t x_54; uint8_t x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; uint8_t x_59; uint8_t x_60; uint8_t x_61; uint8_t x_62; lean_object* x_63; uint8_t x_64; uint8_t 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; +x_51 = lean_ctor_get_uint8(x_10, 0); +x_52 = lean_ctor_get_uint8(x_10, 1); +x_53 = lean_ctor_get_uint8(x_10, 2); +x_54 = lean_ctor_get_uint8(x_10, 3); +x_55 = lean_ctor_get_uint8(x_10, 4); +x_56 = lean_ctor_get_uint8(x_10, 6); +x_57 = lean_ctor_get_uint8(x_10, 7); +x_58 = lean_ctor_get_uint8(x_10, 8); +x_59 = lean_ctor_get_uint8(x_10, 9); +x_60 = lean_ctor_get_uint8(x_10, 10); +x_61 = lean_ctor_get_uint8(x_10, 11); +x_62 = lean_ctor_get_uint8(x_10, 12); +lean_dec(x_10); +x_63 = lean_ctor_get(x_2, 0); +lean_inc(x_63); +x_64 = lean_ctor_get_uint8(x_63, sizeof(void*)*2 + 6); +lean_dec(x_63); +x_65 = 2; +x_66 = lean_alloc_ctor(0, 0, 14); +lean_ctor_set_uint8(x_66, 0, x_51); +lean_ctor_set_uint8(x_66, 1, x_52); +lean_ctor_set_uint8(x_66, 2, x_53); +lean_ctor_set_uint8(x_66, 3, x_54); +lean_ctor_set_uint8(x_66, 4, x_55); +lean_ctor_set_uint8(x_66, 5, x_65); +lean_ctor_set_uint8(x_66, 6, x_56); +lean_ctor_set_uint8(x_66, 7, x_57); +lean_ctor_set_uint8(x_66, 8, x_58); +lean_ctor_set_uint8(x_66, 9, x_59); +lean_ctor_set_uint8(x_66, 10, x_60); +lean_ctor_set_uint8(x_66, 11, x_61); +lean_ctor_set_uint8(x_66, 12, x_62); +lean_ctor_set_uint8(x_66, 13, x_64); +lean_ctor_set(x_4, 0, x_66); +x_67 = lean_st_ref_get(x_7, x_8); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +lean_dec(x_67); +x_69 = l_Lean_Meta_Simp_main___closed__1; +x_70 = lean_st_mk_ref(x_69, x_68); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_71); +x_73 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_71, x_4, x_5, x_6, x_7, x_72); +if (lean_obj_tag(x_73) == 0) +{ +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_dec(x_4); +lean_dec(x_6); +lean_dec(x_5); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = lean_st_ref_get(x_7, x_75); +lean_dec(x_7); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +lean_dec(x_76); +x_78 = lean_st_ref_get(x_71, x_77); +lean_dec(x_71); +x_79 = lean_ctor_get(x_78, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_80 = x_78; +} else { + lean_dec_ref(x_78); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(0, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_74); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +lean_dec(x_71); +x_82 = lean_ctor_get(x_73, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_73, 1); +lean_inc(x_83); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_84 = x_73; +} else { + lean_dec_ref(x_73); + x_84 = lean_box(0); +} +x_85 = l_Lean_Exception_isMaxHeartbeat(x_82); +if (x_85 == 0) +{ +lean_object* x_86; +lean_dec(x_4); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_84)) { + x_86 = lean_alloc_ctor(1, 2, 0); +} else { + x_86 = x_84; +} +lean_ctor_set(x_86, 0, x_82); +lean_ctor_set(x_86, 1, x_83); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_84); +x_87 = l_Lean_Meta_Simp_main___closed__2; +x_88 = l_Lean_Meta_throwNestedTacticEx___rarg(x_87, x_82, x_4, x_5, x_6, x_7, x_83); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + lean_ctor_release(x_88, 1); + x_91 = x_88; +} else { + lean_dec_ref(x_88); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(1, 2, 0); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_89); +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; uint8_t x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; uint8_t x_103; uint8_t x_104; uint8_t x_105; uint8_t x_106; uint8_t x_107; uint8_t x_108; uint8_t x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; uint8_t 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; +x_93 = lean_ctor_get(x_4, 0); +x_94 = lean_ctor_get(x_4, 1); +x_95 = lean_ctor_get(x_4, 2); +x_96 = lean_ctor_get(x_4, 3); +x_97 = lean_ctor_get(x_4, 4); +x_98 = lean_ctor_get(x_4, 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_4); +x_99 = lean_ctor_get_uint8(x_93, 0); +x_100 = lean_ctor_get_uint8(x_93, 1); +x_101 = lean_ctor_get_uint8(x_93, 2); +x_102 = lean_ctor_get_uint8(x_93, 3); +x_103 = lean_ctor_get_uint8(x_93, 4); +x_104 = lean_ctor_get_uint8(x_93, 6); +x_105 = lean_ctor_get_uint8(x_93, 7); +x_106 = lean_ctor_get_uint8(x_93, 8); +x_107 = lean_ctor_get_uint8(x_93, 9); +x_108 = lean_ctor_get_uint8(x_93, 10); +x_109 = lean_ctor_get_uint8(x_93, 11); +x_110 = lean_ctor_get_uint8(x_93, 12); +if (lean_is_exclusive(x_93)) { + x_111 = x_93; +} else { + lean_dec_ref(x_93); x_111 = lean_box(0); } +x_112 = lean_ctor_get(x_2, 0); +lean_inc(x_112); +x_113 = lean_ctor_get_uint8(x_112, sizeof(void*)*2 + 6); +lean_dec(x_112); +x_114 = 2; if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(1, 2, 0); + x_115 = lean_alloc_ctor(0, 0, 14); } else { - x_112 = x_111; + x_115 = x_111; +} +lean_ctor_set_uint8(x_115, 0, x_99); +lean_ctor_set_uint8(x_115, 1, x_100); +lean_ctor_set_uint8(x_115, 2, x_101); +lean_ctor_set_uint8(x_115, 3, x_102); +lean_ctor_set_uint8(x_115, 4, x_103); +lean_ctor_set_uint8(x_115, 5, x_114); +lean_ctor_set_uint8(x_115, 6, x_104); +lean_ctor_set_uint8(x_115, 7, x_105); +lean_ctor_set_uint8(x_115, 8, x_106); +lean_ctor_set_uint8(x_115, 9, x_107); +lean_ctor_set_uint8(x_115, 10, x_108); +lean_ctor_set_uint8(x_115, 11, x_109); +lean_ctor_set_uint8(x_115, 12, x_110); +lean_ctor_set_uint8(x_115, 13, x_113); +x_116 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_94); +lean_ctor_set(x_116, 2, x_95); +lean_ctor_set(x_116, 3, x_96); +lean_ctor_set(x_116, 4, x_97); +lean_ctor_set(x_116, 5, x_98); +x_117 = lean_st_ref_get(x_7, x_8); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec(x_117); +x_119 = l_Lean_Meta_Simp_main___closed__1; +x_120 = lean_st_mk_ref(x_119, x_118); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_116); +lean_inc(x_121); +x_123 = l_Lean_Meta_Simp_simp(x_1, x_3, x_2, x_121, x_116, x_5, x_6, x_7, x_122); +if (lean_obj_tag(x_123) == 0) +{ +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_dec(x_116); +lean_dec(x_6); +lean_dec(x_5); +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +x_126 = lean_st_ref_get(x_7, x_125); +lean_dec(x_7); +x_127 = lean_ctor_get(x_126, 1); +lean_inc(x_127); +lean_dec(x_126); +x_128 = lean_st_ref_get(x_121, x_127); +lean_dec(x_121); +x_129 = lean_ctor_get(x_128, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_128)) { + lean_ctor_release(x_128, 0); + lean_ctor_release(x_128, 1); + x_130 = x_128; +} else { + lean_dec_ref(x_128); + x_130 = lean_box(0); +} +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(0, 2, 0); +} else { + x_131 = x_130; +} +lean_ctor_set(x_131, 0, x_124); +lean_ctor_set(x_131, 1, x_129); +return x_131; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +lean_dec(x_121); +x_132 = lean_ctor_get(x_123, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_123, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_134 = x_123; +} else { + lean_dec_ref(x_123); + x_134 = lean_box(0); +} +x_135 = l_Lean_Exception_isMaxHeartbeat(x_132); +if (x_135 == 0) +{ +lean_object* x_136; +lean_dec(x_116); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +if (lean_is_scalar(x_134)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_134; +} +lean_ctor_set(x_136, 0, x_132); +lean_ctor_set(x_136, 1, x_133); +return x_136; +} +else +{ +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_dec(x_134); +x_137 = l_Lean_Meta_Simp_main___closed__2; +x_138 = l_Lean_Meta_throwNestedTacticEx___rarg(x_137, x_132, x_116, x_5, x_6, x_7, x_133); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_141 = x_138; +} else { + lean_dec_ref(x_138); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; } -lean_ctor_set(x_112, 0, x_109); -lean_ctor_set(x_112, 1, x_110); -return x_112; } } } @@ -25002,7 +35887,7 @@ static lean_object* _init_l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__4; x_2 = l_Lean_Meta_Simp_DefaultMethods_discharge_x3f___lambda__3___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -25723,21 +36608,11 @@ return x_16; } } } -static lean_object* _init_l_Lean_Meta_simpTarget___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Simp_simp___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} LEAN_EXPORT lean_object* l_Lean_Meta_simpTarget(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Lean_Meta_simpTarget___closed__1; +x_9 = l_Lean_Meta_Simp_main___closed__2; lean_inc(x_1); x_10 = lean_alloc_closure((void*)(l_Lean_Meta_simpTarget___lambda__1), 9, 4); lean_closure_set(x_10, 0, x_1); @@ -27537,7 +38412,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_simpLocalDecl(lean_object* x_1, lean_object _start: { lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_Lean_Meta_simpTarget___closed__1; +x_10 = l_Lean_Meta_Simp_main___closed__2; lean_inc(x_1); x_11 = lean_alloc_closure((void*)(l_Lean_Meta_simpLocalDecl___lambda__1), 10, 5); lean_closure_set(x_11, 0, x_1); @@ -28492,7 +39367,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_simpGoal(lean_object* x_1, lean_object* x_2 _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = l_Lean_Meta_simpTarget___closed__1; +x_12 = l_Lean_Meta_Simp_main___closed__2; x_13 = lean_box(x_4); lean_inc(x_1); x_14 = lean_alloc_closure((void*)(l_Lean_Meta_simpGoal___lambda__3___boxed), 12, 7); @@ -28579,8 +39454,1069 @@ x_13 = l_Lean_Meta_simpGoal(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, return x_13; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_2); +if (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; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_10 = lean_ctor_get(x_2, 0); +x_11 = lean_ctor_get(x_2, 1); +x_12 = lean_ctor_get(x_2, 2); +x_13 = lean_ctor_get(x_2, 3); +x_14 = lean_ctor_get(x_2, 4); +x_15 = lean_box(0); +x_16 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__1___closed__1; +x_17 = 0; +x_18 = 1; +x_19 = lean_unsigned_to_nat(1000u); +x_20 = l_Lean_Meta_SimpTheorems_add(x_11, x_16, x_1, x_17, x_18, x_19, x_15, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_20) == 0) +{ +uint8_t x_21; +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_ctor_set(x_2, 1, x_22); +x_23 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_23, 0, x_2); +lean_ctor_set(x_20, 0, x_23); +return x_20; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_20, 0); +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_20); +lean_ctor_set(x_2, 1, x_24); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_2); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_free_object(x_2); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +x_28 = !lean_is_exclusive(x_20); +if (x_28 == 0) +{ +return x_20; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_20, 0); +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_20); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +lean_object* x_32; 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; uint8_t x_40; lean_object* x_41; lean_object* x_42; +x_32 = lean_ctor_get(x_2, 0); +x_33 = lean_ctor_get(x_2, 1); +x_34 = lean_ctor_get(x_2, 2); +x_35 = lean_ctor_get(x_2, 3); +x_36 = lean_ctor_get(x_2, 4); +lean_inc(x_36); +lean_inc(x_35); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_2); +x_37 = lean_box(0); +x_38 = l_Lean_Meta_transform_visit___at___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___spec__2___lambda__1___closed__1; +x_39 = 0; +x_40 = 1; +x_41 = lean_unsigned_to_nat(1000u); +x_42 = l_Lean_Meta_SimpTheorems_add(x_33, x_38, x_1, x_39, x_40, x_41, x_37, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_45 = x_42; +} else { + lean_dec_ref(x_42); + x_45 = lean_box(0); +} +x_46 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_46, 0, x_32); +lean_ctor_set(x_46, 1, x_43); +lean_ctor_set(x_46, 2, x_34); +lean_ctor_set(x_46, 3, x_35); +lean_ctor_set(x_46, 4, x_36); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_46); +if (lean_is_scalar(x_45)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_45; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_44); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_34); +lean_dec(x_32); +x_49 = lean_ctor_get(x_42, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_42, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_51 = x_42; +} else { + lean_dec_ref(x_42); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("adding "); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1(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) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_4, x_3); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_array_uget(x_2, x_4); +lean_inc(x_6); +x_14 = l_Lean_Meta_getLocalDecl(x_13, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_LocalDecl_toExpr(x_15); +lean_dec(x_15); +x_64 = lean_st_ref_get(x_9, x_16); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_65, 3); +lean_inc(x_66); +lean_dec(x_65); +x_67 = lean_ctor_get_uint8(x_66, sizeof(void*)*1); +lean_dec(x_66); +if (x_67 == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_64, 1); +lean_inc(x_68); +lean_dec(x_64); +x_69 = 0; +x_18 = x_69; +x_19 = x_68; +goto block_63; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_70 = lean_ctor_get(x_64, 1); +lean_inc(x_70); +lean_dec(x_64); +lean_inc(x_1); +x_71 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_1, x_6, x_7, x_8, x_9, x_70); +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_unbox(x_72); +lean_dec(x_72); +x_18 = x_74; +x_19 = x_73; +goto block_63; +} +block_63: +{ +if (x_18 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_21 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___lambda__1(x_17, x_5, x_20, x_6, x_7, x_8, x_9, x_19); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_21, 0); +lean_dec(x_24); +x_25 = lean_ctor_get(x_22, 0); +lean_inc(x_25); +lean_dec(x_22); +lean_ctor_set(x_21, 0, x_25); +return x_21; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_dec(x_21); +x_27 = lean_ctor_get(x_22, 0); +lean_inc(x_27); +lean_dec(x_22); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; +} +} +else +{ +lean_object* x_29; lean_object* x_30; size_t x_31; size_t x_32; +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_dec(x_21); +x_30 = lean_ctor_get(x_22, 0); +lean_inc(x_30); +lean_dec(x_22); +x_31 = 1; +x_32 = lean_usize_add(x_4, x_31); +x_4 = x_32; +x_5 = x_30; +x_10 = x_29; +goto _start; +} +} +else +{ +uint8_t x_34; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_21); +if (x_34 == 0) +{ +return x_21; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_21, 0); +x_36 = lean_ctor_get(x_21, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_21); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +lean_object* x_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_inc(x_17); +x_38 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_38, 0, x_17); +x_39 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__2; +x_40 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +x_41 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_42 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +lean_inc(x_1); +x_43 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_1, x_42, x_6, x_7, x_8, x_9, x_19); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_46 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___lambda__1(x_17, x_5, x_44, x_6, x_7, x_8, x_9, x_45); +lean_dec(x_44); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) +{ +uint8_t x_48; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_48 = !lean_is_exclusive(x_46); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_46, 0); +lean_dec(x_49); +x_50 = lean_ctor_get(x_47, 0); +lean_inc(x_50); +lean_dec(x_47); +lean_ctor_set(x_46, 0, x_50); +return x_46; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_46, 1); +lean_inc(x_51); +lean_dec(x_46); +x_52 = lean_ctor_get(x_47, 0); +lean_inc(x_52); +lean_dec(x_47); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +else +{ +lean_object* x_54; lean_object* x_55; size_t x_56; size_t x_57; +x_54 = lean_ctor_get(x_46, 1); +lean_inc(x_54); +lean_dec(x_46); +x_55 = lean_ctor_get(x_47, 0); +lean_inc(x_55); +lean_dec(x_47); +x_56 = 1; +x_57 = lean_usize_add(x_4, x_56); +x_4 = x_57; +x_5 = x_55; +x_10 = x_54; +goto _start; +} +} +else +{ +uint8_t x_59; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_59 = !lean_is_exclusive(x_46); +if (x_59 == 0) +{ +return x_46; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_46, 0); +x_61 = lean_ctor_get(x_46, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_46); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_14); +if (x_75 == 0) +{ +return x_14; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_14, 0); +x_77 = lean_ctor_get(x_14, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_14); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___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; +x_9 = l_Lean_Meta_getMVarType(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +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); +lean_inc(x_2); +x_12 = l_Lean_Meta_getMVarType(x_2, x_4, x_5, x_6, x_7, x_11); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_12, 0); +x_15 = lean_expr_eqv(x_10, x_14); +lean_dec(x_14); +lean_dec(x_10); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_16, 0, x_2); +lean_ctor_set(x_12, 0, x_16); +return x_12; +} +else +{ +lean_object* x_17; +lean_dec(x_2); +x_17 = lean_box(1); +lean_ctor_set(x_12, 0, x_17); +return x_12; +} +} +else +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +x_20 = lean_expr_eqv(x_10, x_18); +lean_dec(x_18); +lean_dec(x_10); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_2); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_19); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; +lean_dec(x_2); +x_23 = lean_box(1); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_19); +return x_24; +} +} +} +else +{ +uint8_t x_25; +lean_dec(x_10); +lean_dec(x_2); +x_25 = !lean_is_exclusive(x_12); +if (x_25 == 0) +{ +return x_12; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_12, 0); +x_27 = lean_ctor_get(x_12, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_12); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +uint8_t x_29; +lean_dec(x_2); +x_29 = !lean_is_exclusive(x_9); +if (x_29 == 0) +{ +return x_9; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} +static lean_object* _init_l_Lean_Meta_simpTargetStar___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("simpTargetStar result:\n"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_simpTargetStar___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_simpTargetStar___lambda__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___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_dec(x_5); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_11 = l_Lean_Meta_getPropHyps(x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_array_get_size(x_12); +x_15 = lean_usize_of_nat(x_14); +lean_dec(x_14); +x_16 = 0; +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_1); +x_17 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1(x_1, x_12, x_15, x_16, x_2, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_12); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_3); +x_20 = l_Lean_Meta_simpTarget(x_3, x_18, x_4, x_6, x_7, x_8, x_9, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +uint8_t x_22; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_20); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_20, 0); +lean_dec(x_23); +x_24 = lean_box(0); +lean_ctor_set(x_20, 0, x_24); +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 1); +lean_inc(x_25); +lean_dec(x_20); +x_26 = lean_box(0); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_28 = lean_ctor_get(x_20, 1); +lean_inc(x_28); +lean_dec(x_20); +x_29 = lean_ctor_get(x_21, 0); +lean_inc(x_29); +lean_dec(x_21); +x_44 = lean_st_ref_get(x_9, x_28); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_45, 3); +lean_inc(x_46); +lean_dec(x_45); +x_47 = lean_ctor_get_uint8(x_46, sizeof(void*)*1); +lean_dec(x_46); +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_44, 1); +lean_inc(x_48); +lean_dec(x_44); +x_49 = 0; +x_30 = x_49; +x_31 = x_48; +goto block_43; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_50 = lean_ctor_get(x_44, 1); +lean_inc(x_50); +lean_dec(x_44); +lean_inc(x_1); +x_51 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_1, x_6, x_7, x_8, x_9, x_50); +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = lean_unbox(x_52); +lean_dec(x_52); +x_30 = x_54; +x_31 = x_53; +goto block_43; +} +block_43: +{ +if (x_30 == 0) +{ +lean_object* x_32; lean_object* x_33; +lean_dec(x_1); +x_32 = lean_box(0); +x_33 = l_Lean_Meta_simpTargetStar___lambda__1(x_3, x_29, x_32, x_6, x_7, x_8, x_9, x_31); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +return x_33; +} +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_inc(x_29); +x_34 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_34, 0, x_29); +x_35 = l_Lean_Meta_simpTargetStar___lambda__2___closed__2; +x_36 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l_Lean_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_38 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_1, x_38, x_6, x_7, x_8, x_9, x_31); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l_Lean_Meta_simpTargetStar___lambda__1(x_3, x_29, x_40, x_6, x_7, x_8, x_9, x_41); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_40); +return x_42; +} +} +} +} +else +{ +uint8_t x_55; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_55 = !lean_is_exclusive(x_20); +if (x_55 == 0) +{ +return x_20; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_20, 0); +x_57 = lean_ctor_get(x_20, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_20); +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; +} +} +} +else +{ +uint8_t x_59; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_59 = !lean_is_exclusive(x_17); +if (x_59 == 0) +{ +return x_17; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_17, 0); +x_61 = lean_ctor_get(x_17, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_17); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; +} +} +} +else +{ +uint8_t x_63; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_63 = !lean_is_exclusive(x_11); +if (x_63 == 0) +{ +return x_11; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_11, 0); +x_65 = lean_ctor_get(x_11, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_11); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +} +} +static lean_object* _init_l_Lean_Meta_simpTargetStar___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("simpTargetStar:\n"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_simpTargetStar___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_simpTargetStar___lambda__3___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___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: +{ +uint8_t x_10; lean_object* x_11; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_st_ref_get(x_8, x_9); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 3); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_ctor_get_uint8(x_26, sizeof(void*)*1); +lean_dec(x_26); +if (x_27 == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +x_29 = 0; +x_10 = x_29; +x_11 = x_28; +goto block_23; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_dec(x_24); +lean_inc(x_1); +x_31 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_1, x_5, x_6, x_7, x_8, x_30); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_unbox(x_32); +lean_dec(x_32); +x_10 = x_34; +x_11 = x_33; +goto block_23; +} +block_23: +{ +if (x_10 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = l_Lean_Meta_simpTargetStar___lambda__2(x_1, x_2, x_3, x_4, x_12, x_5, x_6, x_7, x_8, x_11); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_inc(x_3); +x_14 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_14, 0, x_3); +x_15 = l_Lean_Meta_simpTargetStar___lambda__3___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_addTrace___at_Lean_Meta_Simp_simp_simpForall___spec__2___closed__8; +x_18 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +lean_inc(x_1); +x_19 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_1, x_18, x_5, x_6, x_7, x_8, x_11); +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_Meta_simpTargetStar___lambda__2(x_1, x_2, x_3, x_4, x_20, x_5, x_6, x_7, x_8, x_21); +return x_22; +} +} +} +} +static lean_object* _init_l_Lean_Meta_simpTargetStar___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("debug"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_simpTargetStar___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__2; +x_2 = l_Lean_Meta_simpTargetStar___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = l_Lean_Meta_simpTargetStar___closed__2; +lean_inc(x_1); +x_10 = lean_alloc_closure((void*)(l_Lean_Meta_simpTargetStar___lambda__3), 9, 4); +lean_closure_set(x_10, 0, x_9); +lean_closure_set(x_10, 1, x_2); +lean_closure_set(x_10, 2, x_1); +lean_closure_set(x_10, 3, x_3); +x_11 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(x_1, x_10, x_4, x_5, x_6, x_7, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_simpTargetStar___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_Lean_Meta_simpTargetStar___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_9; +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Transform(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_CongrTheorems(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Replace(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Clear(uint8_t builtin, lean_object*); @@ -28597,6 +40533,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Transform(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_CongrTheorems(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Replace(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -28653,6 +40592,22 @@ l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__2 = _in lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Main_0__Lean_Meta_Simp_dsimp___closed__2); l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___closed__1 = _init_l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_SimpLetCase_noConfusion___rarg___closed__1); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__1 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__1); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__2); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__3 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__3(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__3); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__4 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__4(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__4); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__5 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__5(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__5); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__6 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__6(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__6); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__7 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__7(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__7); +l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8 = _init_l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8(); +lean_mark_persistent(l_Lean_Meta_Simp_removeUnnecessaryCasts_isDummyEqRec___closed__8); l_Lean_Meta_Simp_simp_simpLit___closed__1 = _init_l_Lean_Meta_Simp_simp_simpLit___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_simp_simpLit___closed__1); l_Lean_Meta_Simp_simp_simpLit___closed__2 = _init_l_Lean_Meta_Simp_simp_simpLit___closed__2(); @@ -28779,6 +40734,40 @@ l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__ lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__5); l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__6(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_congrArgs___spec__1___closed__6); +l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__1 = _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__1); +l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__2 = _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__2); +l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__3 = _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__3(); +lean_mark_persistent(l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__1___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__2___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__3); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__4 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__4); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__5(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__5); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__6); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__7(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__7); +l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__3___closed__8); +l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__1 = _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__1); +l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__2 = _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__2); +l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__3 = _init_l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__3(); +lean_mark_persistent(l_panic___at_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___spec__4___closed__3); +l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1 = _init_l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_Simp_simp_tryAutoCongrTheorem_x3f___lambda__2___closed__1); l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__1); l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__2(); @@ -28789,16 +40778,6 @@ l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__4); l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__5); -l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__6); -l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__7 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__7(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__7); -l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__8 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__8(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__8); -l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__9 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__9(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__9); -l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__10 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__10(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___spec__1___closed__10); l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__4___closed__1 = _init_l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__4___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__4___closed__1); l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__4___closed__2 = _init_l_Lean_Meta_Simp_simp_trySimpCongrTheorem_x3f___lambda__4___closed__2(); @@ -28829,6 +40808,8 @@ l_Lean_Meta_Simp_simp_simpProj___closed__2 = _init_l_Lean_Meta_Simp_simp_simpPro lean_mark_persistent(l_Lean_Meta_Simp_simp_simpProj___closed__2); l_Lean_Meta_Simp_main___closed__1 = _init_l_Lean_Meta_Simp_main___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_main___closed__1); +l_Lean_Meta_Simp_main___closed__2 = _init_l_Lean_Meta_Simp_main___closed__2(); +lean_mark_persistent(l_Lean_Meta_Simp_main___closed__2); l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__1 = _init_l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__1); l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2 = _init_l_Lean_Meta_Simp_isEqnThmHypothesis_go___closed__2(); @@ -28869,12 +40850,26 @@ l_Lean_Meta_simpTargetCore___closed__3 = _init_l_Lean_Meta_simpTargetCore___clos lean_mark_persistent(l_Lean_Meta_simpTargetCore___closed__3); l_Lean_Meta_simpTargetCore___closed__4 = _init_l_Lean_Meta_simpTargetCore___closed__4(); lean_mark_persistent(l_Lean_Meta_simpTargetCore___closed__4); -l_Lean_Meta_simpTarget___closed__1 = _init_l_Lean_Meta_simpTarget___closed__1(); -lean_mark_persistent(l_Lean_Meta_simpTarget___closed__1); l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_simpGoal___spec__2___lambda__1___closed__1); l_Lean_Meta_simpGoal___lambda__3___closed__1 = _init_l_Lean_Meta_simpGoal___lambda__3___closed__1(); lean_mark_persistent(l_Lean_Meta_simpGoal___lambda__3___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Meta_simpTargetStar___spec__1___closed__2); +l_Lean_Meta_simpTargetStar___lambda__2___closed__1 = _init_l_Lean_Meta_simpTargetStar___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Meta_simpTargetStar___lambda__2___closed__1); +l_Lean_Meta_simpTargetStar___lambda__2___closed__2 = _init_l_Lean_Meta_simpTargetStar___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Meta_simpTargetStar___lambda__2___closed__2); +l_Lean_Meta_simpTargetStar___lambda__3___closed__1 = _init_l_Lean_Meta_simpTargetStar___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Meta_simpTargetStar___lambda__3___closed__1); +l_Lean_Meta_simpTargetStar___lambda__3___closed__2 = _init_l_Lean_Meta_simpTargetStar___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Meta_simpTargetStar___lambda__3___closed__2); +l_Lean_Meta_simpTargetStar___closed__1 = _init_l_Lean_Meta_simpTargetStar___closed__1(); +lean_mark_persistent(l_Lean_Meta_simpTargetStar___closed__1); +l_Lean_Meta_simpTargetStar___closed__2 = _init_l_Lean_Meta_simpTargetStar___closed__2(); +lean_mark_persistent(l_Lean_Meta_simpTargetStar___closed__2); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c index 0c6bbd3c23..d9ef437a75 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/SimpTheorems.c @@ -11767,7 +11767,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_SimpTheorem_getValue___closed__1; x_2 = l_Lean_Meta_SimpTheorem_getValue___closed__2; -x_3 = lean_unsigned_to_nat(975u); +x_3 = lean_unsigned_to_nat(988u); x_4 = lean_unsigned_to_nat(20u); x_5 = l_Lean_Meta_SimpTheorem_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/Tactic/Simp/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c index 4c76705847..0b1bf209d3 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Simp.Types -// Imports: Init Lean.Meta.AppBuilder Lean.Meta.Tactic.Simp.SimpTheorems Lean.Meta.Tactic.Simp.SimpCongrTheorems +// Imports: Init Lean.Meta.AppBuilder Lean.Meta.CongrTheorems Lean.Meta.Tactic.Simp.SimpTheorems Lean.Meta.Tactic.Simp.SimpCongrTheorems #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -72,6 +72,7 @@ extern lean_object* l_Std_PersistentHashMap_empty___at_Lean_Meta_Instances_insta LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getConfig___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instInhabitedMethods___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Simp_State_congrCache___default___spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Methods_pre___default___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Methods_post___default(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Step_result(lean_object*); @@ -82,8 +83,10 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getConfig___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Context_mkDefault___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_withParent(lean_object*); static lean_object* l_Lean_Meta_Simp_instInhabitedResult___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_Simp_State_congrCache___default; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instInhabitedMethods; +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Simp_State_congrCache___default___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_getSimpTheorems(lean_object*); static lean_object* l_Lean_Meta_Simp_Context_simpTheorems___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instInhabitedMethods___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -503,6 +506,32 @@ lean_dec(x_1); return x_2; } } +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Simp_State_congrCache___default___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Simp_State_congrCache___default() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Simp_State_congrCache___default___spec__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMap___at_Lean_Meta_Simp_State_congrCache___default___spec__1(x_1); +lean_dec(x_1); +return x_2; +} +} static lean_object* _init_l_Lean_Meta_Simp_State_numSteps___default() { _start: { @@ -1122,416 +1151,441 @@ return x_43; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_44 = lean_ctor_get(x_35, 1); +x_45 = lean_ctor_get(x_35, 2); +lean_inc(x_45); lean_inc(x_44); lean_dec(x_35); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_16); -lean_ctor_set(x_45, 1, x_44); -x_46 = lean_st_ref_set(x_5, x_45, x_36); +x_46 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_46, 0, x_16); +lean_ctor_set(x_46, 1, x_44); +lean_ctor_set(x_46, 2, x_45); +x_47 = lean_st_ref_set(x_5, x_46, x_36); lean_dec(x_5); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_48 = x_46; +x_48 = lean_ctor_get(x_47, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_49 = x_47; } else { - lean_dec_ref(x_46); - x_48 = lean_box(0); + lean_dec_ref(x_47); + x_49 = lean_box(0); } -if (lean_is_scalar(x_48)) { - x_49 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(0, 2, 0); } else { - x_49 = x_48; + x_50 = x_49; } -lean_ctor_set(x_49, 0, x_30); -lean_ctor_set(x_49, 1, x_47); -return x_49; +lean_ctor_set(x_50, 0, x_30); +lean_ctor_set(x_50, 1, x_48); +return x_50; } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_50 = lean_ctor_get(x_29, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_29, 1); +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; uint8_t x_58; +x_51 = lean_ctor_get(x_29, 0); lean_inc(x_51); +x_52 = lean_ctor_get(x_29, 1); +lean_inc(x_52); lean_dec(x_29); -x_52 = lean_st_ref_get(x_9, x_51); +x_53 = lean_st_ref_get(x_9, x_52); lean_dec(x_9); -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec(x_52); -x_54 = lean_st_ref_take(x_5, x_53); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); +x_54 = lean_ctor_get(x_53, 1); +lean_inc(x_54); +lean_dec(x_53); +x_55 = lean_st_ref_take(x_5, x_54); +x_56 = lean_ctor_get(x_55, 0); lean_inc(x_56); -lean_dec(x_54); -x_57 = !lean_is_exclusive(x_55); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = lean_ctor_get(x_55, 0); -lean_dec(x_58); -lean_ctor_set(x_55, 0, x_16); -x_59 = lean_st_ref_set(x_5, x_55, x_56); -lean_dec(x_5); -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) -{ -lean_object* x_61; -x_61 = lean_ctor_get(x_59, 0); -lean_dec(x_61); -lean_ctor_set_tag(x_59, 1); -lean_ctor_set(x_59, 0, x_50); -return x_59; -} -else -{ -lean_object* x_62; lean_object* x_63; -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -lean_dec(x_59); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_50); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_64 = lean_ctor_get(x_55, 1); -lean_inc(x_64); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); lean_dec(x_55); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_16); -lean_ctor_set(x_65, 1, x_64); -x_66 = lean_st_ref_set(x_5, x_65, x_56); +x_58 = !lean_is_exclusive(x_56); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_59 = lean_ctor_get(x_56, 0); +lean_dec(x_59); +lean_ctor_set(x_56, 0, x_16); +x_60 = lean_st_ref_set(x_5, x_56, x_57); lean_dec(x_5); -x_67 = lean_ctor_get(x_66, 1); -lean_inc(x_67); -if (lean_is_exclusive(x_66)) { - lean_ctor_release(x_66, 0); - lean_ctor_release(x_66, 1); - x_68 = x_66; -} else { - lean_dec_ref(x_66); - x_68 = lean_box(0); +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_60, 0); +lean_dec(x_62); +lean_ctor_set_tag(x_60, 1); +lean_ctor_set(x_60, 0, x_51); +return x_60; } -if (lean_is_scalar(x_68)) { - x_69 = lean_alloc_ctor(1, 2, 0); -} else { - x_69 = x_68; - lean_ctor_set_tag(x_69, 1); +else +{ +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_51); +lean_ctor_set(x_64, 1, x_63); +return x_64; } -lean_ctor_set(x_69, 0, x_50); -lean_ctor_set(x_69, 1, x_67); -return x_69; +} +else +{ +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; +x_65 = lean_ctor_get(x_56, 1); +x_66 = lean_ctor_get(x_56, 2); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_56); +x_67 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_67, 0, x_16); +lean_ctor_set(x_67, 1, x_65); +lean_ctor_set(x_67, 2, x_66); +x_68 = lean_st_ref_set(x_5, x_67, x_57); +lean_dec(x_5); +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_70 = x_68; +} else { + lean_dec_ref(x_68); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; + lean_ctor_set_tag(x_71, 1); +} +lean_ctor_set(x_71, 0, x_51); +lean_ctor_set(x_71, 1, x_69); +return x_71; } } } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_70 = lean_ctor_get(x_4, 0); -x_71 = lean_ctor_get(x_4, 2); -x_72 = lean_ctor_get(x_4, 3); -x_73 = lean_ctor_get(x_4, 4); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_72 = lean_ctor_get(x_4, 0); +x_73 = lean_ctor_get(x_4, 2); +x_74 = lean_ctor_get(x_4, 3); +x_75 = lean_ctor_get(x_4, 4); +lean_inc(x_75); +lean_inc(x_74); lean_inc(x_73); lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); lean_dec(x_4); -x_74 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_74, 0, x_70); -lean_ctor_set(x_74, 1, x_1); -lean_ctor_set(x_74, 2, x_71); -lean_ctor_set(x_74, 3, x_72); -lean_ctor_set(x_74, 4, x_73); +x_76 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_76, 0, x_72); +lean_ctor_set(x_76, 1, x_1); +lean_ctor_set(x_76, 2, x_73); +lean_ctor_set(x_76, 3, x_74); +lean_ctor_set(x_76, 4, x_75); lean_inc(x_9); lean_inc(x_5); -x_75 = lean_apply_8(x_2, x_3, x_74, x_5, x_6, x_7, x_8, x_9, x_26); -if (lean_obj_tag(x_75) == 0) +x_77 = lean_apply_8(x_2, x_3, x_76, x_5, x_6, x_7, x_8, x_9, x_26); +if (lean_obj_tag(x_77) == 0) { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_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_st_ref_get(x_9, x_77); -lean_dec(x_9); -x_79 = lean_ctor_get(x_78, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); lean_inc(x_79); -lean_dec(x_78); -x_80 = lean_st_ref_take(x_5, x_79); -x_81 = lean_ctor_get(x_80, 0); +lean_dec(x_77); +x_80 = lean_st_ref_get(x_9, x_79); +lean_dec(x_9); +x_81 = lean_ctor_get(x_80, 1); lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); lean_dec(x_80); -x_83 = lean_ctor_get(x_81, 1); +x_82 = lean_st_ref_take(x_5, x_81); +x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_84 = x_81; +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +x_86 = lean_ctor_get(x_83, 2); +lean_inc(x_86); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + lean_ctor_release(x_83, 2); + x_87 = x_83; } else { - lean_dec_ref(x_81); - x_84 = lean_box(0); + lean_dec_ref(x_83); + x_87 = lean_box(0); } -if (lean_is_scalar(x_84)) { - x_85 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_87)) { + x_88 = lean_alloc_ctor(0, 3, 0); } else { - x_85 = x_84; + x_88 = x_87; } -lean_ctor_set(x_85, 0, x_16); -lean_ctor_set(x_85, 1, x_83); -x_86 = lean_st_ref_set(x_5, x_85, x_82); +lean_ctor_set(x_88, 0, x_16); +lean_ctor_set(x_88, 1, x_85); +lean_ctor_set(x_88, 2, x_86); +x_89 = lean_st_ref_set(x_5, x_88, x_84); lean_dec(x_5); -x_87 = lean_ctor_get(x_86, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_88 = x_86; +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_91 = x_89; } else { - lean_dec_ref(x_86); - x_88 = lean_box(0); + lean_dec_ref(x_89); + x_91 = lean_box(0); } -if (lean_is_scalar(x_88)) { - x_89 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 2, 0); } else { - x_89 = x_88; + x_92 = x_91; } -lean_ctor_set(x_89, 0, x_76); -lean_ctor_set(x_89, 1, x_87); -return x_89; +lean_ctor_set(x_92, 0, x_78); +lean_ctor_set(x_92, 1, x_90); +return x_92; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; 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_90 = lean_ctor_get(x_75, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_75, 1); -lean_inc(x_91); -lean_dec(x_75); -x_92 = lean_st_ref_get(x_9, x_91); -lean_dec(x_9); -x_93 = lean_ctor_get(x_92, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_93 = lean_ctor_get(x_77, 0); lean_inc(x_93); -lean_dec(x_92); -x_94 = lean_st_ref_take(x_5, x_93); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); +x_94 = lean_ctor_get(x_77, 1); +lean_inc(x_94); +lean_dec(x_77); +x_95 = lean_st_ref_get(x_9, x_94); +lean_dec(x_9); +x_96 = lean_ctor_get(x_95, 1); lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_98 = x_95; -} else { - lean_dec_ref(x_95); - x_98 = lean_box(0); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(0, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_16); -lean_ctor_set(x_99, 1, x_97); -x_100 = lean_st_ref_set(x_5, x_99, x_96); -lean_dec(x_5); -x_101 = lean_ctor_get(x_100, 1); +lean_dec(x_95); +x_97 = lean_st_ref_take(x_5, x_96); +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_ctor_get(x_98, 1); +lean_inc(x_100); +x_101 = lean_ctor_get(x_98, 2); lean_inc(x_101); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_102 = x_100; +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + lean_ctor_release(x_98, 2); + x_102 = x_98; } else { - lean_dec_ref(x_100); + lean_dec_ref(x_98); x_102 = lean_box(0); } if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(1, 2, 0); + x_103 = lean_alloc_ctor(0, 3, 0); } else { x_103 = x_102; - lean_ctor_set_tag(x_103, 1); } -lean_ctor_set(x_103, 0, x_90); -lean_ctor_set(x_103, 1, x_101); -return x_103; +lean_ctor_set(x_103, 0, x_16); +lean_ctor_set(x_103, 1, x_100); +lean_ctor_set(x_103, 2, x_101); +x_104 = lean_st_ref_set(x_5, x_103, x_99); +lean_dec(x_5); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_106 = x_104; +} else { + lean_dec_ref(x_104); + x_106 = lean_box(0); +} +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_106; + lean_ctor_set_tag(x_107, 1); +} +lean_ctor_set(x_107, 0, x_93); +lean_ctor_set(x_107, 1, x_105); +return x_107; } } } 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; -x_104 = lean_ctor_get(x_20, 1); -lean_inc(x_104); -lean_dec(x_20); -x_105 = l_Lean_Meta_Simp_Context_congrTheorems___default___closed__1; -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_104); -x_107 = lean_st_ref_set(x_5, x_106, x_21); -x_108 = lean_ctor_get(x_107, 1); -lean_inc(x_108); -lean_dec(x_107); -x_109 = lean_ctor_get(x_4, 0); +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; +x_108 = lean_ctor_get(x_20, 1); +x_109 = lean_ctor_get(x_20, 2); lean_inc(x_109); -x_110 = lean_ctor_get(x_4, 2); -lean_inc(x_110); -x_111 = lean_ctor_get(x_4, 3); -lean_inc(x_111); -x_112 = lean_ctor_get(x_4, 4); -lean_inc(x_112); +lean_inc(x_108); +lean_dec(x_20); +x_110 = l_Lean_Meta_Simp_Context_congrTheorems___default___closed__1; +x_111 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_108); +lean_ctor_set(x_111, 2, x_109); +x_112 = lean_st_ref_set(x_5, x_111, x_21); +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +lean_dec(x_112); +x_114 = lean_ctor_get(x_4, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_4, 2); +lean_inc(x_115); +x_116 = lean_ctor_get(x_4, 3); +lean_inc(x_116); +x_117 = lean_ctor_get(x_4, 4); +lean_inc(x_117); 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); - x_113 = x_4; + x_118 = x_4; } else { lean_dec_ref(x_4); - x_113 = lean_box(0); + x_118 = lean_box(0); } -if (lean_is_scalar(x_113)) { - x_114 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 5, 0); } else { - x_114 = x_113; + x_119 = x_118; } -lean_ctor_set(x_114, 0, x_109); -lean_ctor_set(x_114, 1, x_1); -lean_ctor_set(x_114, 2, x_110); -lean_ctor_set(x_114, 3, x_111); -lean_ctor_set(x_114, 4, x_112); +lean_ctor_set(x_119, 0, x_114); +lean_ctor_set(x_119, 1, x_1); +lean_ctor_set(x_119, 2, x_115); +lean_ctor_set(x_119, 3, x_116); +lean_ctor_set(x_119, 4, x_117); lean_inc(x_9); lean_inc(x_5); -x_115 = lean_apply_8(x_2, x_3, x_114, x_5, x_6, x_7, x_8, x_9, x_108); -if (lean_obj_tag(x_115) == 0) +x_120 = lean_apply_8(x_2, x_3, x_119, x_5, x_6, x_7, x_8, x_9, x_113); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_116 = lean_ctor_get(x_115, 0); -lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -lean_dec(x_115); -x_118 = lean_st_ref_get(x_9, x_117); -lean_dec(x_9); -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -lean_dec(x_118); -x_120 = lean_st_ref_take(x_5, x_119); +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; x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); lean_dec(x_120); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - x_124 = x_121; -} else { - lean_dec_ref(x_121); - x_124 = lean_box(0); -} -if (lean_is_scalar(x_124)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_124; -} -lean_ctor_set(x_125, 0, x_16); -lean_ctor_set(x_125, 1, x_123); -x_126 = lean_st_ref_set(x_5, x_125, x_122); -lean_dec(x_5); -x_127 = lean_ctor_get(x_126, 1); +x_123 = lean_st_ref_get(x_9, x_122); +lean_dec(x_9); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec(x_123); +x_125 = lean_st_ref_take(x_5, x_124); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); lean_inc(x_127); +lean_dec(x_125); +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +x_129 = lean_ctor_get(x_126, 2); +lean_inc(x_129); if (lean_is_exclusive(x_126)) { lean_ctor_release(x_126, 0); lean_ctor_release(x_126, 1); - x_128 = x_126; + lean_ctor_release(x_126, 2); + x_130 = x_126; } else { lean_dec_ref(x_126); - x_128 = lean_box(0); + x_130 = lean_box(0); } -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_130)) { + x_131 = lean_alloc_ctor(0, 3, 0); } else { - x_129 = x_128; + x_131 = x_130; } -lean_ctor_set(x_129, 0, x_116); -lean_ctor_set(x_129, 1, x_127); -return x_129; +lean_ctor_set(x_131, 0, x_16); +lean_ctor_set(x_131, 1, x_128); +lean_ctor_set(x_131, 2, x_129); +x_132 = lean_st_ref_set(x_5, x_131, x_127); +lean_dec(x_5); +x_133 = lean_ctor_get(x_132, 1); +lean_inc(x_133); +if (lean_is_exclusive(x_132)) { + lean_ctor_release(x_132, 0); + lean_ctor_release(x_132, 1); + x_134 = x_132; +} else { + lean_dec_ref(x_132); + x_134 = lean_box(0); +} +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(0, 2, 0); +} else { + x_135 = x_134; +} +lean_ctor_set(x_135, 0, x_121); +lean_ctor_set(x_135, 1, x_133); +return x_135; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_130 = lean_ctor_get(x_115, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_115, 1); -lean_inc(x_131); -lean_dec(x_115); -x_132 = lean_st_ref_get(x_9, x_131); -lean_dec(x_9); -x_133 = lean_ctor_get(x_132, 1); -lean_inc(x_133); -lean_dec(x_132); -x_134 = lean_st_ref_take(x_5, x_133); -x_135 = lean_ctor_get(x_134, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_134, 1); +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_136 = lean_ctor_get(x_120, 0); lean_inc(x_136); -lean_dec(x_134); -x_137 = lean_ctor_get(x_135, 1); +x_137 = lean_ctor_get(x_120, 1); lean_inc(x_137); -if (lean_is_exclusive(x_135)) { - lean_ctor_release(x_135, 0); - lean_ctor_release(x_135, 1); - x_138 = x_135; -} else { - lean_dec_ref(x_135); - x_138 = lean_box(0); -} -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(0, 2, 0); -} else { - x_139 = x_138; -} -lean_ctor_set(x_139, 0, x_16); -lean_ctor_set(x_139, 1, x_137); -x_140 = lean_st_ref_set(x_5, x_139, x_136); -lean_dec(x_5); -x_141 = lean_ctor_get(x_140, 1); +lean_dec(x_120); +x_138 = lean_st_ref_get(x_9, x_137); +lean_dec(x_9); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +lean_dec(x_138); +x_140 = lean_st_ref_take(x_5, x_139); +x_141 = lean_ctor_get(x_140, 0); lean_inc(x_141); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_142 = x_140; +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +x_144 = lean_ctor_get(x_141, 2); +lean_inc(x_144); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + lean_ctor_release(x_141, 2); + x_145 = x_141; } else { - lean_dec_ref(x_140); - x_142 = lean_box(0); + lean_dec_ref(x_141); + x_145 = lean_box(0); } -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_145)) { + x_146 = lean_alloc_ctor(0, 3, 0); } else { - x_143 = x_142; - lean_ctor_set_tag(x_143, 1); + x_146 = x_145; } -lean_ctor_set(x_143, 0, x_130); -lean_ctor_set(x_143, 1, x_141); -return x_143; +lean_ctor_set(x_146, 0, x_16); +lean_ctor_set(x_146, 1, x_143); +lean_ctor_set(x_146, 2, x_144); +x_147 = lean_st_ref_set(x_5, x_146, x_142); +lean_dec(x_5); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_149 = x_147; +} else { + lean_dec_ref(x_147); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = x_149; + lean_ctor_set_tag(x_150, 1); +} +lean_ctor_set(x_150, 0, x_136); +lean_ctor_set(x_150, 1, x_148); +return x_150; } } } @@ -1546,6 +1600,7 @@ return x_2; } lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_AppBuilder(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_CongrTheorems(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Simp_SimpTheorems(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Simp_SimpCongrTheorems(uint8_t builtin, lean_object*); static bool _G_initialized = false; @@ -1559,6 +1614,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_AppBuilder(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_CongrTheorems(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Simp_SimpTheorems(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -1616,6 +1674,8 @@ l_Lean_Meta_Simp_Context_mkDefault___rarg___closed__1 = _init_l_Lean_Meta_Simp_C lean_mark_persistent(l_Lean_Meta_Simp_Context_mkDefault___rarg___closed__1); l_Lean_Meta_Simp_State_cache___default = _init_l_Lean_Meta_Simp_State_cache___default(); lean_mark_persistent(l_Lean_Meta_Simp_State_cache___default); +l_Lean_Meta_Simp_State_congrCache___default = _init_l_Lean_Meta_Simp_State_congrCache___default(); +lean_mark_persistent(l_Lean_Meta_Simp_State_congrCache___default); l_Lean_Meta_Simp_State_numSteps___default = _init_l_Lean_Meta_Simp_State_numSteps___default(); lean_mark_persistent(l_Lean_Meta_Simp_State_numSteps___default); l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___closed__1 = _init_l_Lean_Meta_Simp_instMonadBacktrackSavedStateSimpM___closed__1(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Split.c b/stage0/stdlib/Lean/Meta/Tactic/Split.c index 54f38704d5..f4abc57459 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Split.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Split.c @@ -19,16 +19,18 @@ lean_object* l_Lean_Meta_replaceTargetDefEq(lean_object*, lean_object*, lean_obj lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__6; lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_Lean_Meta_Split_simpMatch_pre___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Lean_mkSort(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__2___closed__2; lean_object* l_Lean_Meta_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__11; lean_object* lean_name_mk_string(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__1; static lean_object* l_Lean_Meta_Split_applyMatchSplitter___closed__1; @@ -52,7 +54,7 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__2; static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1___closed__2; static lean_object* l_Lean_Meta_Split_simpMatch___closed__4; -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_instInhabitedNat; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg(lean_object*, lean_object*); @@ -65,59 +67,67 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isIte(lean_object*); +lean_object* l_Std_mkHashSetImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__3; lean_object* l_Array_mapMUnsafe_map___at_Lean_LocalContext_getFVars___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__1; lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Match_withMkMatcherInput___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__2; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__2___closed__1; extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__10; lean_object* l_Lean_Meta_apply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___lambda__1___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__7; +LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1___closed__1; lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchTargetCore___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_replaceTargetEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Simp_neutralConfig; lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_Cases_unifyEqs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Meta_throwNestedTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__5; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__1(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l_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*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__6; lean_object* l_Lean_Meta_generalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(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*); -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__2; +uint8_t l_Std_HashSetImp_contains___at_Lean_CollectMVars_visit___spec__1(lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_splitLocalDecl_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___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_EXPORT lean_object* l_Lean_Meta_Split_simpMatch_pre(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___closed__1; lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_splitIfLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Split_simpMatch___closed__3; @@ -131,12 +141,12 @@ LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1 lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatchTarget___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___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_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedFVarId; lean_object* l_List_redLength___rarg(lean_object*); -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__5; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_Split_splitMatch___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); @@ -147,36 +157,38 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_s uint8_t l_Lean_Expr_isDIte(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__10; static lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1; static lean_object* l_Lean_Meta_Split_splitMatch___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_tryTheorem_x3f(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_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___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_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f(lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__1(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_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__3; -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitter___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__9; uint8_t l_Lean_Expr_isFVar(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*); extern lean_object* l_Lean_instInhabitedName; +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__9; lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_Split_applyMatchSplitter___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Match_getEquationsFor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_go(lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l_Lean_Meta_Match_MatcherInfo_arity(lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__8; lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter(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_splitTarget_x3f_go___closed__4; +LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_reduceMatcher_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeTargetsEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -185,15 +197,15 @@ LEAN_EXPORT lean_object* l_Lean_Meta_getMatcherInfo_x3f___at_Lean_Meta_Split_sim LEAN_EXPORT uint8_t l_Lean_Meta_Split_findSplit_x3f_isCandidate___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3___closed__1; -static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__4; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Meta_Split_applyMatchSplitter___closed__2; lean_object* l_Lean_Meta_Match_MatcherInfo_numAlts(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_simpMatch_pre___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Split_simpMatch_pre___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_splitTarget_x3f_go___closed__11; lean_object* l_Lean_Meta_Match_Extension_getMatcherInfo_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_2618_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_2692_(lean_object*); LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_reduceRecMatcher_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_getSimpMatchContext___rarg___closed__1; @@ -4782,102 +4794,42 @@ x_3 = lean_nat_sub(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_3; -x_3 = l_Lean_Expr_isIte(x_2); -if (x_3 == 0) -{ -uint8_t x_4; -x_4 = l_Lean_Expr_isDIte(x_2); -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = l_Lean_Meta_isMatcherAppCore_x3f(x_1, x_2); -if (lean_obj_tag(x_5) == 0) -{ -uint8_t x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = 0; -x_7 = lean_box(x_6); -return x_7; -} -else -{ -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; -x_8 = lean_ctor_get(x_5, 0); -lean_inc(x_8); -lean_dec(x_5); -x_9 = lean_unsigned_to_nat(0u); -x_10 = l_Lean_Expr_getAppNumArgsAux(x_2, x_9); -x_11 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1; -lean_inc(x_10); -x_12 = lean_mk_array(x_10, x_11); -x_13 = lean_unsigned_to_nat(1u); -x_14 = lean_nat_sub(x_10, x_13); -lean_dec(x_10); -x_15 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_2, x_12, x_14); -x_16 = l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(x_8); -x_17 = lean_ctor_get(x_8, 1); -lean_inc(x_17); -lean_dec(x_8); -x_18 = lean_nat_add(x_16, x_17); -lean_dec(x_17); -x_19 = l_Lean_Meta_Split_simpMatch_pre___closed__1; -lean_inc(x_18); -x_20 = l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1(x_15, x_19, x_18, x_16, x_18, x_13, x_19); -lean_dec(x_18); -lean_dec(x_15); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -lean_dec(x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; -x_22 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__2; -return x_22; -} -else -{ -lean_object* x_23; -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -lean_dec(x_21); -return x_23; -} -} -} -else -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; -lean_dec(x_1); -x_24 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; -x_25 = l_Lean_Expr_getRevArg_x21(x_2, x_24); -x_26 = l_Lean_Expr_hasLooseBVars(x_25); -lean_dec(x_25); +lean_object* x_5; uint8_t x_26; +lean_inc(x_4); +x_26 = l_Std_HashSetImp_contains___at_Lean_CollectMVars_visit___spec__1(x_3, x_4); if (x_26 == 0) { -uint8_t x_27; lean_object* x_28; -x_27 = 1; -x_28 = lean_box(x_27); -return x_28; +if (x_2 == 0) +{ +lean_object* x_27; +x_27 = lean_box(0); +x_5 = x_27; +goto block_25; } else { -uint8_t x_29; lean_object* x_30; -x_29 = 0; -x_30 = lean_box(x_29); -return x_30; -} -} +uint8_t x_28; +x_28 = l_Lean_Expr_isIte(x_4); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = l_Lean_Expr_isDIte(x_4); +if (x_29 == 0) +{ +lean_object* x_30; +x_30 = lean_box(0); +x_5 = x_30; +goto block_25; } else { lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_dec(x_1); x_31 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; -x_32 = l_Lean_Expr_getRevArg_x21(x_2, x_31); +x_32 = l_Lean_Expr_getRevArg_x21(x_4, x_31); x_33 = l_Lean_Expr_hasLooseBVars(x_32); lean_dec(x_32); if (x_33 == 0) @@ -4896,6 +4848,99 @@ return x_37; } } } +else +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_1); +x_38 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; +x_39 = l_Lean_Expr_getRevArg_x21(x_4, x_38); +x_40 = l_Lean_Expr_hasLooseBVars(x_39); +lean_dec(x_39); +if (x_40 == 0) +{ +uint8_t x_41; lean_object* x_42; +x_41 = 1; +x_42 = lean_box(x_41); +return x_42; +} +else +{ +uint8_t x_43; lean_object* x_44; +x_43 = 0; +x_44 = lean_box(x_43); +return x_44; +} +} +} +} +else +{ +uint8_t x_45; lean_object* x_46; +lean_dec(x_4); +lean_dec(x_1); +x_45 = 0; +x_46 = lean_box(x_45); +return x_46; +} +block_25: +{ +lean_object* x_6; +lean_dec(x_5); +x_6 = l_Lean_Meta_isMatcherAppCore_x3f(x_1, x_4); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; lean_object* x_8; +lean_dec(x_4); +x_7 = 0; +x_8 = lean_box(x_7); +return x_8; +} +else +{ +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_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Lean_Expr_getAppNumArgsAux(x_4, x_10); +x_12 = l_Lean_Meta_matchMatcherApp_x3f___at_Lean_Meta_Split_simpMatch_pre___spec__1___closed__1; +lean_inc(x_11); +x_13 = lean_mk_array(x_11, x_12); +x_14 = lean_unsigned_to_nat(1u); +x_15 = lean_nat_sub(x_11, x_14); +lean_dec(x_11); +x_16 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_4, x_13, x_15); +x_17 = l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(x_9); +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_dec(x_9); +x_19 = lean_nat_add(x_17, x_18); +lean_dec(x_18); +x_20 = l_Lean_Meta_Split_simpMatch_pre___closed__1; +lean_inc(x_19); +x_21 = l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1(x_16, x_20, x_19, x_17, x_19, x_14, x_20); +lean_dec(x_19); +lean_dec(x_16); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +lean_dec(x_21); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__2; +return x_23; +} +else +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_22, 0); +lean_inc(x_24); +lean_dec(x_22); +return x_24; +} +} +} +} } LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: @@ -4920,209 +4965,1233 @@ x_3 = lean_box(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_3; lean_object* x_4; -lean_inc(x_1); -x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Split_findSplit_x3f_isCandidate), 2, 1); -lean_closure_set(x_3, 0, x_1); -lean_inc(x_2); -x_4 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_3, x_2); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); lean_dec(x_2); +x_6 = l_Lean_Meta_Split_findSplit_x3f_isCandidate(x_1, x_5, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_go(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = lean_box(x_2); +lean_inc(x_3); +lean_inc(x_1); +x_6 = lean_alloc_closure((void*)(l_Lean_Meta_Split_findSplit_x3f_isCandidate___boxed), 4, 3); +lean_closure_set(x_6, 0, x_1); +lean_closure_set(x_6, 1, x_5); +lean_closure_set(x_6, 2, x_3); +lean_inc(x_4); +x_7 = l_Lean_Expr_FindImpl_findUnsafe_x3f(x_6, x_4); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_1); -x_5 = lean_box(0); -return x_5; +x_8 = lean_box(0); +return x_8; } else { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_4); -if (x_6 == 0) -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_ctor_get(x_4, 0); -x_8 = l_Lean_Expr_isIte(x_2); -if (x_8 == 0) -{ uint8_t x_9; -x_9 = l_Lean_Expr_isDIte(x_2); -lean_dec(x_2); +x_9 = !lean_is_exclusive(x_7); if (x_9 == 0) { +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_7, 0); +x_11 = l_Lean_Expr_isIte(x_4); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = l_Lean_Expr_isDIte(x_4); +lean_dec(x_4); +if (x_12 == 0) +{ +lean_dec(x_3); lean_dec(x_1); -return x_4; +return x_7; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; -lean_inc(x_7); -x_11 = l_Lean_Expr_getRevArg_x21(x_7, x_10); -x_12 = l_Lean_Meta_Split_findSplit_x3f(x_1, x_11); -if (lean_obj_tag(x_12) == 0) +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; +lean_inc(x_10); +x_14 = l_Lean_Expr_getRevArg_x21(x_10, x_13); +x_15 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_14); +if (lean_obj_tag(x_15) == 0) { -return x_4; +return x_7; } else { -uint8_t x_13; -lean_free_object(x_4); -lean_dec(x_7); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) +uint8_t x_16; +lean_free_object(x_7); +lean_dec(x_10); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -return x_12; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_15, 0, x_14); return x_15; } -} -} -} else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_2); -x_16 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; -lean_inc(x_7); -x_17 = l_Lean_Expr_getRevArg_x21(x_7, x_16); -x_18 = l_Lean_Meta_Split_findSplit_x3f(x_1, x_17); -if (lean_obj_tag(x_18) == 0) -{ -return x_4; -} -else -{ -uint8_t x_19; -lean_free_object(x_4); -lean_dec(x_7); -x_19 = !lean_is_exclusive(x_18); -if (x_19 == 0) -{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); return x_18; } +} +} +} else { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -lean_dec(x_18); -x_21 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_21, 0, x_20); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_dec(x_4); +x_19 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; +lean_inc(x_10); +x_20 = l_Lean_Expr_getRevArg_x21(x_10, x_19); +x_21 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_20); +if (lean_obj_tag(x_21) == 0) +{ +return x_7; +} +else +{ +uint8_t x_22; +lean_free_object(x_7); +lean_dec(x_10); +x_22 = !lean_is_exclusive(x_21); +if (x_22 == 0) +{ return x_21; } +else +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +return x_24; +} } } } else { -lean_object* x_22; uint8_t x_23; -x_22 = lean_ctor_get(x_4, 0); -lean_inc(x_22); +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_7, 0); +lean_inc(x_25); +lean_dec(x_7); +x_26 = l_Lean_Expr_isIte(x_4); +if (x_26 == 0) +{ +uint8_t x_27; +x_27 = l_Lean_Expr_isDIte(x_4); lean_dec(x_4); -x_23 = l_Lean_Expr_isIte(x_2); -if (x_23 == 0) +if (x_27 == 0) { -uint8_t x_24; -x_24 = l_Lean_Expr_isDIte(x_2); -lean_dec(x_2); -if (x_24 == 0) -{ -lean_object* x_25; +lean_object* x_28; +lean_dec(x_3); lean_dec(x_1); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_22); -return x_25; +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_25); +return x_28; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; -lean_inc(x_22); -x_27 = l_Lean_Expr_getRevArg_x21(x_22, x_26); -x_28 = l_Lean_Meta_Split_findSplit_x3f(x_1, x_27); -if (lean_obj_tag(x_28) == 0) +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; +lean_inc(x_25); +x_30 = l_Lean_Expr_getRevArg_x21(x_25, x_29); +x_31 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_30); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_29; -x_29 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_29, 0, x_22); -return x_29; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_dec(x_22); -x_30 = lean_ctor_get(x_28, 0); -lean_inc(x_30); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - x_31 = x_28; -} else { - lean_dec_ref(x_28); - x_31 = lean_box(0); -} -if (lean_is_scalar(x_31)) { - x_32 = lean_alloc_ctor(1, 1, 0); -} else { - x_32 = x_31; -} -lean_ctor_set(x_32, 0, x_30); +lean_object* x_32; +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_25); return x_32; } -} -} else { lean_object* x_33; lean_object* x_34; lean_object* x_35; -lean_dec(x_2); -x_33 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; -lean_inc(x_22); -x_34 = l_Lean_Expr_getRevArg_x21(x_22, x_33); -x_35 = l_Lean_Meta_Split_findSplit_x3f(x_1, x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_22); -return x_36; +lean_dec(x_25); +x_33 = lean_ctor_get(x_31, 0); +lean_inc(x_33); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + x_34 = x_31; +} else { + lean_dec_ref(x_31); + x_34 = lean_box(0); +} +if (lean_is_scalar(x_34)) { + x_35 = lean_alloc_ctor(1, 1, 0); +} else { + x_35 = x_34; +} +lean_ctor_set(x_35, 0, x_33); +return x_35; +} +} } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_dec(x_22); -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - x_38 = x_35; -} else { - lean_dec_ref(x_35); - x_38 = lean_box(0); -} -if (lean_is_scalar(x_38)) { - x_39 = lean_alloc_ctor(1, 1, 0); -} else { - x_39 = x_38; -} -lean_ctor_set(x_39, 0, x_37); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_4); +x_36 = l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4; +lean_inc(x_25); +x_37 = l_Lean_Expr_getRevArg_x21(x_25, x_36); +x_38 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_2, x_3, x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_25); return x_39; } +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_25); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + x_41 = x_38; +} else { + lean_dec_ref(x_38); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 1, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_40); +return x_42; } } } } } +} +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); +lean_dec(x_2); +x_6 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_5, x_3, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Meta_Split_findSplit_x3f_go(x_1, x_3, x_4, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_3); +lean_dec(x_3); +x_6 = l_Lean_Meta_Split_findSplit_x3f(x_1, x_2, x_5, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___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 = lean_box(0); +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; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Meta"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_splitTarget_x3f_go___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Tactic"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_splitTarget_x3f_go___closed__2; +x_2 = l_Lean_Meta_splitTarget_x3f_go___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("split"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_splitTarget_x3f_go___closed__4; +x_2 = l_Lean_Meta_splitTarget_x3f_go___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_splitTarget_x3f_go___lambda__1___boxed), 6, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("did not find term to split\n"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_splitTarget_x3f_go___closed__8; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_splitTarget_x3f_go___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Meta_splitTarget_x3f_go___closed__10; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go(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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +lean_inc(x_1); +x_13 = l_Lean_Meta_getMVarType(x_1, x_4, x_5, x_6, x_7, x_11); +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; +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); +lean_inc(x_5); +x_16 = l_Lean_Meta_instantiateMVars(x_14, x_4, x_5, x_6, x_7, 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); +lean_dec(x_16); +lean_inc(x_3); +x_19 = l_Lean_Meta_Split_findSplit_x3f_go(x_12, x_2, x_3, x_17); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_dec(x_3); +x_20 = l_Lean_Meta_splitTarget_x3f_go___closed__6; +x_36 = lean_st_ref_get(x_7, x_18); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_37, 3); +lean_inc(x_38); +lean_dec(x_37); +x_39 = lean_ctor_get_uint8(x_38, sizeof(void*)*1); +lean_dec(x_38); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_36, 1); +lean_inc(x_40); +lean_dec(x_36); +x_41 = 0; +x_21 = x_41; +x_22 = x_40; +goto block_35; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_42 = lean_ctor_get(x_36, 1); +lean_inc(x_42); +lean_dec(x_36); +x_43 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_20, x_4, x_5, x_6, x_7, x_42); +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = lean_unbox(x_44); +lean_dec(x_44); +x_21 = x_46; +x_22 = x_45; +goto block_35; +} +block_35: +{ +lean_object* x_23; +x_23 = l_Lean_Meta_splitTarget_x3f_go___closed__7; +if (x_21 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_1); +x_24 = lean_box(0); +x_25 = lean_apply_6(x_23, x_24, x_4, x_5, x_6, x_7, x_22); +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; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_26 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_26, 0, x_1); +x_27 = l_Lean_Meta_splitTarget_x3f_go___closed__9; +x_28 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_Meta_splitTarget_x3f_go___closed__11; +x_30 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +x_31 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_20, x_30, x_4, x_5, x_6, x_7, x_22); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = lean_apply_6(x_23, x_32, x_4, x_5, x_6, x_7, x_33); +return x_34; +} +} +} +else +{ +uint8_t x_47; +x_47 = !lean_is_exclusive(x_19); +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; +x_48 = lean_ctor_get(x_19, 0); +x_49 = l_Lean_Expr_isIte(x_48); +if (x_49 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Expr_isDIte(x_48); +if (x_50 == 0) +{ +lean_object* x_51; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_48); +lean_inc(x_1); +x_51 = l_Lean_Meta_Split_splitMatch(x_1, x_48, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_51) == 0) +{ +uint8_t x_52; +lean_dec(x_48); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_51, 0); +lean_ctor_set(x_19, 0, x_53); +lean_ctor_set(x_51, 0, x_19); +return x_51; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_51, 0); +x_55 = lean_ctor_get(x_51, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_51); +lean_ctor_set(x_19, 0, x_54); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_19); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_free_object(x_19); +x_57 = lean_ctor_get(x_51, 1); +lean_inc(x_57); +lean_dec(x_51); +x_58 = l_Std_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_3, x_48); +x_3 = x_58; +x_8 = x_57; +goto _start; +} +} +else +{ +lean_object* x_60; lean_object* x_61; +lean_free_object(x_19); +lean_dec(x_48); +lean_dec(x_3); +x_60 = lean_box(0); +x_61 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_60, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +uint8_t x_63; +x_63 = !lean_is_exclusive(x_61); +if (x_63 == 0) +{ +lean_object* x_64; +x_64 = lean_ctor_get(x_61, 0); +lean_dec(x_64); +lean_ctor_set(x_61, 0, x_60); +return x_61; +} +else +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_61, 1); +lean_inc(x_65); +lean_dec(x_61); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_60); +lean_ctor_set(x_66, 1, x_65); +return x_66; +} +} +else +{ +uint8_t x_67; +x_67 = !lean_is_exclusive(x_62); +if (x_67 == 0) +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_68 = lean_ctor_get(x_62, 0); +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = !lean_is_exclusive(x_61); +if (x_71 == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_72 = lean_ctor_get(x_61, 0); +lean_dec(x_72); +x_73 = lean_ctor_get(x_69, 0); +lean_inc(x_73); +lean_dec(x_69); +x_74 = lean_ctor_get(x_70, 0); +lean_inc(x_74); +lean_dec(x_70); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_73); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_62, 0, x_77); +return x_61; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_78 = lean_ctor_get(x_61, 1); +lean_inc(x_78); +lean_dec(x_61); +x_79 = lean_ctor_get(x_69, 0); +lean_inc(x_79); +lean_dec(x_69); +x_80 = lean_ctor_get(x_70, 0); +lean_inc(x_80); +lean_dec(x_70); +x_81 = lean_box(0); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_79); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_62, 0, x_83); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_62); +lean_ctor_set(x_84, 1, x_78); +return x_84; +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_85 = lean_ctor_get(x_62, 0); +lean_inc(x_85); +lean_dec(x_62); +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = lean_ctor_get(x_61, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + x_89 = x_61; +} else { + lean_dec_ref(x_61); + x_89 = lean_box(0); +} +x_90 = lean_ctor_get(x_86, 0); +lean_inc(x_90); +lean_dec(x_86); +x_91 = lean_ctor_get(x_87, 0); +lean_inc(x_91); +lean_dec(x_87); +x_92 = lean_box(0); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_90); +lean_ctor_set(x_94, 1, x_93); +x_95 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_95, 0, x_94); +if (lean_is_scalar(x_89)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_89; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_88); +return x_96; +} +} +} +else +{ +uint8_t x_97; +x_97 = !lean_is_exclusive(x_61); +if (x_97 == 0) +{ +return x_61; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_61, 0); +x_99 = lean_ctor_get(x_61, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_61); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; +} +} +} +} +else +{ +lean_object* x_101; lean_object* x_102; +lean_free_object(x_19); +lean_dec(x_48); +lean_dec(x_3); +x_101 = lean_box(0); +x_102 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_101, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +if (lean_obj_tag(x_103) == 0) +{ +uint8_t x_104; +x_104 = !lean_is_exclusive(x_102); +if (x_104 == 0) +{ +lean_object* x_105; +x_105 = lean_ctor_get(x_102, 0); +lean_dec(x_105); +lean_ctor_set(x_102, 0, x_101); +return x_102; +} +else +{ +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_102, 1); +lean_inc(x_106); +lean_dec(x_102); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_101); +lean_ctor_set(x_107, 1, x_106); +return x_107; +} +} +else +{ +uint8_t x_108; +x_108 = !lean_is_exclusive(x_103); +if (x_108 == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_109 = lean_ctor_get(x_103, 0); +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_is_exclusive(x_102); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_113 = lean_ctor_get(x_102, 0); +lean_dec(x_113); +x_114 = lean_ctor_get(x_110, 0); +lean_inc(x_114); +lean_dec(x_110); +x_115 = lean_ctor_get(x_111, 0); +lean_inc(x_115); +lean_dec(x_111); +x_116 = lean_box(0); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_114); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set(x_103, 0, x_118); +return x_102; +} +else +{ +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; +x_119 = lean_ctor_get(x_102, 1); +lean_inc(x_119); +lean_dec(x_102); +x_120 = lean_ctor_get(x_110, 0); +lean_inc(x_120); +lean_dec(x_110); +x_121 = lean_ctor_get(x_111, 0); +lean_inc(x_121); +lean_dec(x_111); +x_122 = lean_box(0); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_120); +lean_ctor_set(x_124, 1, x_123); +lean_ctor_set(x_103, 0, x_124); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_103); +lean_ctor_set(x_125, 1, x_119); +return x_125; +} +} +else +{ +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; +x_126 = lean_ctor_get(x_103, 0); +lean_inc(x_126); +lean_dec(x_103); +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_102, 1); +lean_inc(x_129); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_130 = x_102; +} else { + lean_dec_ref(x_102); + x_130 = lean_box(0); +} +x_131 = lean_ctor_get(x_127, 0); +lean_inc(x_131); +lean_dec(x_127); +x_132 = lean_ctor_get(x_128, 0); +lean_inc(x_132); +lean_dec(x_128); +x_133 = lean_box(0); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_131); +lean_ctor_set(x_135, 1, x_134); +x_136 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_136, 0, x_135); +if (lean_is_scalar(x_130)) { + x_137 = lean_alloc_ctor(0, 2, 0); +} else { + x_137 = x_130; +} +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_129); +return x_137; +} +} +} +else +{ +uint8_t x_138; +x_138 = !lean_is_exclusive(x_102); +if (x_138 == 0) +{ +return x_102; +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_102, 0); +x_140 = lean_ctor_get(x_102, 1); +lean_inc(x_140); +lean_inc(x_139); +lean_dec(x_102); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +} +} +} +else +{ +lean_object* x_142; uint8_t x_143; +x_142 = lean_ctor_get(x_19, 0); +lean_inc(x_142); +lean_dec(x_19); +x_143 = l_Lean_Expr_isIte(x_142); +if (x_143 == 0) +{ +uint8_t x_144; +x_144 = l_Lean_Expr_isDIte(x_142); +if (x_144 == 0) +{ +lean_object* x_145; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_142); +lean_inc(x_1); +x_145 = l_Lean_Meta_Split_splitMatch(x_1, x_142, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_142); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_148 = x_145; +} else { + lean_dec_ref(x_145); + x_148 = lean_box(0); +} +x_149 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_149, 0, x_146); +if (lean_is_scalar(x_148)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_148; +} +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_147); +return x_150; +} +else +{ +lean_object* x_151; lean_object* x_152; +x_151 = lean_ctor_get(x_145, 1); +lean_inc(x_151); +lean_dec(x_145); +x_152 = l_Std_HashSetImp_insert___at_Lean_CollectMVars_visit___spec__3(x_3, x_142); +x_3 = x_152; +x_8 = x_151; +goto _start; +} +} +else +{ +lean_object* x_154; lean_object* x_155; +lean_dec(x_142); +lean_dec(x_3); +x_154 = lean_box(0); +x_155 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_154, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; +x_156 = lean_ctor_get(x_155, 0); +lean_inc(x_156); +if (lean_obj_tag(x_156) == 0) +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; +x_157 = lean_ctor_get(x_155, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_158 = x_155; +} else { + lean_dec_ref(x_155); + x_158 = lean_box(0); +} +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_158; +} +lean_ctor_set(x_159, 0, x_154); +lean_ctor_set(x_159, 1, x_157); +return x_159; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 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; +x_160 = lean_ctor_get(x_156, 0); +lean_inc(x_160); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + x_161 = x_156; +} else { + lean_dec_ref(x_156); + x_161 = lean_box(0); +} +x_162 = lean_ctor_get(x_160, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_160, 1); +lean_inc(x_163); +lean_dec(x_160); +x_164 = lean_ctor_get(x_155, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_165 = x_155; +} else { + lean_dec_ref(x_155); + x_165 = lean_box(0); +} +x_166 = lean_ctor_get(x_162, 0); +lean_inc(x_166); +lean_dec(x_162); +x_167 = lean_ctor_get(x_163, 0); +lean_inc(x_167); +lean_dec(x_163); +x_168 = lean_box(0); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_166); +lean_ctor_set(x_170, 1, x_169); +if (lean_is_scalar(x_161)) { + x_171 = lean_alloc_ctor(1, 1, 0); +} else { + x_171 = x_161; +} +lean_ctor_set(x_171, 0, x_170); +if (lean_is_scalar(x_165)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_165; +} +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_164); +return x_172; +} +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_173 = lean_ctor_get(x_155, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_155, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_175 = x_155; +} else { + lean_dec_ref(x_155); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(1, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +} +else +{ +lean_object* x_177; lean_object* x_178; +lean_dec(x_142); +lean_dec(x_3); +x_177 = lean_box(0); +x_178 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_177, x_4, x_5, x_6, x_7, x_18); +if (lean_obj_tag(x_178) == 0) +{ +lean_object* x_179; +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +if (lean_obj_tag(x_179) == 0) +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_181 = x_178; +} else { + lean_dec_ref(x_178); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(0, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_177); +lean_ctor_set(x_182, 1, x_180); +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; +x_183 = lean_ctor_get(x_179, 0); +lean_inc(x_183); +if (lean_is_exclusive(x_179)) { + lean_ctor_release(x_179, 0); + x_184 = x_179; +} else { + lean_dec_ref(x_179); + x_184 = lean_box(0); +} +x_185 = lean_ctor_get(x_183, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_183, 1); +lean_inc(x_186); +lean_dec(x_183); +x_187 = lean_ctor_get(x_178, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_188 = x_178; +} else { + lean_dec_ref(x_178); + x_188 = lean_box(0); +} +x_189 = lean_ctor_get(x_185, 0); +lean_inc(x_189); +lean_dec(x_185); +x_190 = lean_ctor_get(x_186, 0); +lean_inc(x_190); +lean_dec(x_186); +x_191 = lean_box(0); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_189); +lean_ctor_set(x_193, 1, x_192); +if (lean_is_scalar(x_184)) { + x_194 = lean_alloc_ctor(1, 1, 0); +} else { + x_194 = x_184; +} +lean_ctor_set(x_194, 0, x_193); +if (lean_is_scalar(x_188)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_188; +} +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_187); +return x_195; +} +} +else +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_196 = lean_ctor_get(x_178, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_178, 1); +lean_inc(x_197); +if (lean_is_exclusive(x_178)) { + lean_ctor_release(x_178, 0); + lean_ctor_release(x_178, 1); + x_198 = x_178; +} else { + lean_dec_ref(x_178); + x_198 = lean_box(0); +} +if (lean_is_scalar(x_198)) { + x_199 = lean_alloc_ctor(1, 2, 0); +} else { + x_199 = x_198; +} +lean_ctor_set(x_199, 0, x_196); +lean_ctor_set(x_199, 1, x_197); +return x_199; +} +} +} +} +} +else +{ +uint8_t x_200; +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_200 = !lean_is_exclusive(x_13); +if (x_200 == 0) +{ +return x_13; +} +else +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_201 = lean_ctor_get(x_13, 0); +x_202 = lean_ctor_get(x_13, 1); +lean_inc(x_202); +lean_inc(x_201); +lean_dec(x_13); +x_203 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set(x_203, 1, x_202); +return x_203; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___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_Meta_splitTarget_x3f_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___boxed(lean_object* x_1, lean_object* x_2, 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_2); +lean_dec(x_2); +x_10 = l_Lean_Meta_splitTarget_x3f_go(x_1, x_9, x_3, x_4, x_5, x_6, x_7, x_8); +return x_10; +} +} LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -5275,918 +6344,194 @@ return x_36; } } } -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___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 = lean_box(0); -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; -} -} static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Meta"); -return x_1; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Tactic"); -return x_1; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__2; -x_2 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("split"); -return x_1; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__4; -x_2 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___lambda__1___boxed), 6, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("did not find term to split\n"); -return x_1; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__9() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__8; -x_2 = l_Lean_stringToMessageData(x_1); +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_Std_mkHashSetImp___rarg(x_1); return x_2; } } -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__10() { +LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_1; -x_1 = lean_mk_string(""); -return x_1; -} -} -static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__10; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_26; lean_object* x_27; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_7 = l_Lean_Meta_saveState___rarg(x_3, 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_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_7); +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_10 = x_7; -} else { - lean_dec_ref(x_7); - x_10 = lean_box(0); -} -x_34 = lean_st_ref_get(x_5, x_9); -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_ctor_get(x_35, 0); -lean_inc(x_37); -lean_dec(x_35); -lean_inc(x_1); -x_38 = l_Lean_Meta_getMVarType(x_1, x_2, x_3, x_4, x_5, x_36); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -lean_inc(x_3); -x_41 = l_Lean_Meta_instantiateMVars(x_39, x_2, x_3, x_4, x_5, x_40); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l_Lean_Meta_Split_findSplit_x3f(x_37, x_42); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; -x_45 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__6; -x_69 = lean_st_ref_get(x_5, x_43); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_70, 3); -lean_inc(x_71); -lean_dec(x_70); -x_72 = lean_ctor_get_uint8(x_71, sizeof(void*)*1); -lean_dec(x_71); -if (x_72 == 0) -{ -lean_object* x_73; uint8_t x_74; -x_73 = lean_ctor_get(x_69, 1); -lean_inc(x_73); -lean_dec(x_69); -x_74 = 0; -x_46 = x_74; -x_47 = x_73; -goto block_68; -} -else -{ -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_75 = lean_ctor_get(x_69, 1); -lean_inc(x_75); -lean_dec(x_69); -x_76 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Meta_Basic_0__Lean_Meta_processPostponedStep___spec__14(x_45, x_2, x_3, x_4, x_5, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_unbox(x_77); -lean_dec(x_77); -x_46 = x_79; -x_47 = x_78; -goto block_68; -} -block_68: -{ -lean_object* x_48; -x_48 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__7; -if (x_46 == 0) -{ -lean_object* x_49; lean_object* x_50; -lean_dec(x_1); -x_49 = lean_box(0); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1; +lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_2); -x_50 = lean_apply_6(x_48, x_49, x_2, x_3, x_4, x_5, x_47); -if (lean_obj_tag(x_50) == 0) +x_12 = l_Lean_Meta_splitTarget_x3f_go(x_1, x_2, x_11, x_3, x_4, x_5, x_6, x_10); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); -x_11 = x_51; -x_12 = x_52; -goto block_25; -} -else +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_53; lean_object* x_54; -lean_dec(x_10); -x_53 = lean_ctor_get(x_50, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_50, 1); -lean_inc(x_54); -lean_dec(x_50); -x_26 = x_53; -x_27 = x_54; -goto block_33; -} -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_55 = lean_alloc_ctor(5, 1, 0); -lean_ctor_set(x_55, 0, x_1); -x_56 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__9; -x_57 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_55); -x_58 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__11; -x_59 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -x_60 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__1(x_45, x_59, x_2, x_3, x_4, x_5, x_47); -x_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_63 = lean_apply_6(x_48, x_61, x_2, x_3, x_4, x_5, x_62); -if (lean_obj_tag(x_63) == 0) -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_63, 1); -lean_inc(x_65); -lean_dec(x_63); -x_11 = x_64; -x_12 = x_65; -goto block_25; -} -else -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_10); -x_66 = lean_ctor_get(x_63, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_63, 1); -lean_inc(x_67); -lean_dec(x_63); -x_26 = x_66; -x_27 = x_67; -goto block_33; -} -} -} -} -else -{ -uint8_t x_80; -x_80 = !lean_is_exclusive(x_44); -if (x_80 == 0) -{ -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_44, 0); -x_82 = l_Lean_Expr_isIte(x_81); -if (x_82 == 0) -{ -uint8_t x_83; -x_83 = l_Lean_Expr_isDIte(x_81); -if (x_83 == 0) -{ -lean_object* x_84; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_84 = l_Lean_Meta_Split_splitMatch(x_1, x_81, x_2, x_3, x_4, x_5, x_43); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -lean_ctor_set(x_44, 0, x_85); -x_11 = x_44; -x_12 = x_86; -goto block_25; -} -else -{ -lean_object* x_87; lean_object* x_88; -lean_free_object(x_44); -lean_dec(x_10); -x_87 = lean_ctor_get(x_84, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_84, 1); -lean_inc(x_88); -lean_dec(x_84); -x_26 = x_87; -x_27 = x_88; -goto block_33; -} -} -else -{ -lean_object* x_89; lean_object* x_90; -lean_free_object(x_44); -lean_dec(x_81); -x_89 = lean_box(0); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_90 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_89, x_2, x_3, x_4, x_5, x_43); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec(x_90); -x_11 = x_89; -x_12 = x_92; -goto block_25; -} -else -{ -uint8_t x_93; -x_93 = !lean_is_exclusive(x_91); -if (x_93 == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_94 = lean_ctor_get(x_91, 0); -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_97 = lean_ctor_get(x_90, 1); -lean_inc(x_97); -lean_dec(x_90); -x_98 = lean_ctor_get(x_95, 0); -lean_inc(x_98); -lean_dec(x_95); -x_99 = lean_ctor_get(x_96, 0); -lean_inc(x_99); -lean_dec(x_96); -x_100 = lean_box(0); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_98); -lean_ctor_set(x_102, 1, x_101); -lean_ctor_set(x_91, 0, x_102); -x_11 = x_91; -x_12 = x_97; -goto block_25; -} -else -{ -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; -x_103 = lean_ctor_get(x_91, 0); -lean_inc(x_103); -lean_dec(x_91); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); -lean_inc(x_105); -lean_dec(x_103); -x_106 = lean_ctor_get(x_90, 1); -lean_inc(x_106); -lean_dec(x_90); -x_107 = lean_ctor_get(x_104, 0); -lean_inc(x_107); -lean_dec(x_104); -x_108 = lean_ctor_get(x_105, 0); -lean_inc(x_108); -lean_dec(x_105); -x_109 = lean_box(0); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_107); -lean_ctor_set(x_111, 1, x_110); -x_112 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_112, 0, x_111); -x_11 = x_112; -x_12 = x_106; -goto block_25; -} -} -} -else -{ -lean_object* x_113; lean_object* x_114; -lean_dec(x_10); -x_113 = lean_ctor_get(x_90, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_90, 1); -lean_inc(x_114); -lean_dec(x_90); -x_26 = x_113; -x_27 = x_114; -goto block_33; -} -} -} -else -{ -lean_object* x_115; lean_object* x_116; -lean_free_object(x_44); -lean_dec(x_81); -x_115 = lean_box(0); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_116 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_115, x_2, x_3, x_4, x_5, x_43); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -if (lean_obj_tag(x_117) == 0) -{ -lean_object* x_118; -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -x_11 = x_115; -x_12 = x_118; -goto block_25; -} -else -{ -uint8_t x_119; -x_119 = !lean_is_exclusive(x_117); -if (x_119 == 0) -{ -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; -x_120 = lean_ctor_get(x_117, 0); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec(x_120); -x_123 = lean_ctor_get(x_116, 1); -lean_inc(x_123); -lean_dec(x_116); -x_124 = lean_ctor_get(x_121, 0); -lean_inc(x_124); -lean_dec(x_121); -x_125 = lean_ctor_get(x_122, 0); -lean_inc(x_125); -lean_dec(x_122); -x_126 = lean_box(0); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_124); -lean_ctor_set(x_128, 1, x_127); -lean_ctor_set(x_117, 0, x_128); -x_11 = x_117; -x_12 = x_123; -goto block_25; -} -else -{ -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_129 = lean_ctor_get(x_117, 0); -lean_inc(x_129); -lean_dec(x_117); -x_130 = lean_ctor_get(x_129, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_129, 1); -lean_inc(x_131); -lean_dec(x_129); -x_132 = lean_ctor_get(x_116, 1); -lean_inc(x_132); -lean_dec(x_116); -x_133 = lean_ctor_get(x_130, 0); -lean_inc(x_133); -lean_dec(x_130); -x_134 = lean_ctor_get(x_131, 0); -lean_inc(x_134); -lean_dec(x_131); -x_135 = lean_box(0); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_133); -lean_ctor_set(x_137, 1, x_136); -x_138 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_138, 0, x_137); -x_11 = x_138; -x_12 = x_132; -goto block_25; -} -} -} -else -{ -lean_object* x_139; lean_object* x_140; -lean_dec(x_10); -x_139 = lean_ctor_get(x_116, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_116, 1); -lean_inc(x_140); -lean_dec(x_116); -x_26 = x_139; -x_27 = x_140; -goto block_33; -} -} -} -else -{ -lean_object* x_141; uint8_t x_142; -x_141 = lean_ctor_get(x_44, 0); -lean_inc(x_141); -lean_dec(x_44); -x_142 = l_Lean_Expr_isIte(x_141); -if (x_142 == 0) -{ -uint8_t x_143; -x_143 = l_Lean_Expr_isDIte(x_141); -if (x_143 == 0) -{ -lean_object* x_144; -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_144 = l_Lean_Meta_Split_splitMatch(x_1, x_141, x_2, x_3, x_4, x_5, x_43); -if (lean_obj_tag(x_144) == 0) -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -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_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_145); -x_11 = x_147; -x_12 = x_146; -goto block_25; -} -else -{ -lean_object* x_148; lean_object* x_149; -lean_dec(x_10); -x_148 = lean_ctor_get(x_144, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_144, 1); -lean_inc(x_149); -lean_dec(x_144); -x_26 = x_148; -x_27 = x_149; -goto block_33; -} -} -else -{ -lean_object* x_150; lean_object* x_151; -lean_dec(x_141); -x_150 = lean_box(0); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_151 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_150, x_2, x_3, x_4, x_5, x_43); -if (lean_obj_tag(x_151) == 0) -{ -lean_object* x_152; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_153; -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec(x_151); -x_11 = x_150; -x_12 = x_153; -goto block_25; -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_154 = lean_ctor_get(x_152, 0); -lean_inc(x_154); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - x_155 = x_152; -} else { - lean_dec_ref(x_152); - x_155 = lean_box(0); -} -x_156 = lean_ctor_get(x_154, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_154, 1); -lean_inc(x_157); -lean_dec(x_154); -x_158 = lean_ctor_get(x_151, 1); -lean_inc(x_158); -lean_dec(x_151); -x_159 = lean_ctor_get(x_156, 0); -lean_inc(x_159); -lean_dec(x_156); -x_160 = lean_ctor_get(x_157, 0); -lean_inc(x_160); -lean_dec(x_157); -x_161 = lean_box(0); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_160); -lean_ctor_set(x_162, 1, x_161); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_159); -lean_ctor_set(x_163, 1, x_162); -if (lean_is_scalar(x_155)) { - x_164 = lean_alloc_ctor(1, 1, 0); -} else { - x_164 = x_155; -} -lean_ctor_set(x_164, 0, x_163); -x_11 = x_164; -x_12 = x_158; -goto block_25; -} -} -else -{ -lean_object* x_165; lean_object* x_166; -lean_dec(x_10); -x_165 = lean_ctor_get(x_151, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_151, 1); -lean_inc(x_166); -lean_dec(x_151); -x_26 = x_165; -x_27 = x_166; -goto block_33; -} -} -} -else -{ -lean_object* x_167; lean_object* x_168; -lean_dec(x_141); -x_167 = lean_box(0); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_168 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_167, x_2, x_3, x_4, x_5, x_43); -if (lean_obj_tag(x_168) == 0) -{ -lean_object* x_169; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -lean_dec(x_168); -x_11 = x_167; -x_12 = x_170; -goto block_25; -} -else -{ -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; -x_171 = lean_ctor_get(x_169, 0); -lean_inc(x_171); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - x_172 = x_169; -} else { - lean_dec_ref(x_169); - x_172 = lean_box(0); -} -x_173 = lean_ctor_get(x_171, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_171, 1); -lean_inc(x_174); -lean_dec(x_171); -x_175 = lean_ctor_get(x_168, 1); -lean_inc(x_175); -lean_dec(x_168); -x_176 = lean_ctor_get(x_173, 0); -lean_inc(x_176); -lean_dec(x_173); -x_177 = lean_ctor_get(x_174, 0); -lean_inc(x_177); -lean_dec(x_174); -x_178 = lean_box(0); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_178); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_176); -lean_ctor_set(x_180, 1, x_179); -if (lean_is_scalar(x_172)) { - x_181 = lean_alloc_ctor(1, 1, 0); -} else { - x_181 = x_172; -} -lean_ctor_set(x_181, 0, x_180); -x_11 = x_181; -x_12 = x_175; -goto block_25; -} -} -else -{ -lean_object* x_182; lean_object* x_183; -lean_dec(x_10); -x_182 = lean_ctor_get(x_168, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_168, 1); -lean_inc(x_183); -lean_dec(x_168); -x_26 = x_182; -x_27 = x_183; -goto block_33; -} -} -} -} -} -else -{ -lean_object* x_184; lean_object* x_185; -lean_dec(x_37); -lean_dec(x_10); -lean_dec(x_1); -x_184 = lean_ctor_get(x_38, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_38, 1); -lean_inc(x_185); -lean_dec(x_38); -x_26 = x_184; -x_27 = x_185; -goto block_33; -} -block_25: -{ -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_13; uint8_t x_14; -lean_dec(x_10); -x_13 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12); +lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_14); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_8); -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +lean_dec(x_9); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) { -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -lean_dec(x_15); -x_16 = lean_box(0); -lean_ctor_set(x_13, 0, x_16); -return x_13; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_13, 1); -lean_inc(x_17); -lean_dec(x_13); +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; -} +lean_ctor_set(x_15, 0, x_18); +return x_15; } else { -uint8_t x_20; -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_20 = !lean_is_exclusive(x_11); -if (x_20 == 0) -{ -lean_object* x_21; -if (lean_is_scalar(x_10)) { - x_21 = lean_alloc_ctor(0, 2, 0); -} else { - x_21 = x_10; -} -lean_ctor_set(x_21, 0, x_11); -lean_ctor_set(x_21, 1, x_12); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); return x_21; } +} else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_ctor_get(x_11, 0); -lean_inc(x_22); -lean_dec(x_11); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_22); -if (lean_is_scalar(x_10)) { - x_24 = lean_alloc_ctor(0, 2, 0); +uint8_t x_22; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_22 = !lean_is_exclusive(x_12); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = lean_ctor_get(x_12, 0); +lean_dec(x_23); +x_24 = !lean_is_exclusive(x_13); +if (x_24 == 0) +{ +return x_12; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_13, 0); +lean_inc(x_25); +lean_dec(x_13); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_12, 0, x_26); +return x_12; +} +} +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_12, 1); +lean_inc(x_27); +lean_dec(x_12); +x_28 = lean_ctor_get(x_13, 0); +lean_inc(x_28); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + x_29 = x_13; } else { - x_24 = x_10; + lean_dec_ref(x_13); + x_29 = lean_box(0); } -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_12); -return x_24; +if (lean_is_scalar(x_29)) { + x_30 = lean_alloc_ctor(1, 1, 0); +} else { + x_30 = x_29; +} +lean_ctor_set(x_30, 0, x_28); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_27); +return x_31; } } } -block_33: -{ -lean_object* x_28; uint8_t x_29; -x_28 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_27); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_8); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -lean_object* x_30; -x_30 = lean_ctor_get(x_28, 0); -lean_dec(x_30); -lean_ctor_set_tag(x_28, 1); -lean_ctor_set(x_28, 0, x_26); -return x_28; -} else { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec(x_28); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_26); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f(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_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___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_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_12, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_12, 1); +lean_inc(x_33); +lean_dec(x_12); +x_34 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_33); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_9); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set_tag(x_34, 1); +lean_ctor_set(x_34, 0, x_32); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_2); lean_dec(x_2); -lean_dec(x_1); -return x_7; +x_9 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f___boxed(lean_object* x_1, 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_2); +lean_dec(x_2); +x_9 = l_Lean_Meta_splitTarget_x3f(x_1, x_8, x_3, x_4, x_5, x_6, x_7); +return x_9; } } LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { @@ -6478,875 +6823,877 @@ x_16 = l_Lean_Meta_instantiateMVars(x_14, x_3, x_4, x_5, x_6, x_15); x_17 = !lean_is_exclusive(x_16); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; x_18 = lean_ctor_get(x_16, 0); x_19 = lean_ctor_get(x_16, 1); -x_20 = l_Lean_Meta_Split_findSplit_x3f(x_11, x_18); -if (lean_obj_tag(x_20) == 0) +x_20 = 1; +x_21 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1; +x_22 = l_Lean_Meta_Split_findSplit_x3f_go(x_11, x_20, x_21, x_18); +if (lean_obj_tag(x_22) == 0) { -lean_object* x_21; +lean_object* x_23; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_21 = lean_box(0); -lean_ctor_set(x_16, 0, x_21); +x_23 = lean_box(0); +lean_ctor_set(x_16, 0, x_23); return x_16; } else { -uint8_t x_22; +uint8_t x_24; lean_free_object(x_16); -x_22 = !lean_is_exclusive(x_20); -if (x_22 == 0) -{ -lean_object* x_23; uint8_t x_24; -x_23 = lean_ctor_get(x_20, 0); -x_24 = l_Lean_Expr_isIte(x_23); +x_24 = !lean_is_exclusive(x_22); if (x_24 == 0) { -uint8_t x_25; -x_25 = l_Lean_Expr_isDIte(x_23); -if (x_25 == 0) +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_22, 0); +x_26 = l_Lean_Expr_isIte(x_25); +if (x_26 == 0) { -lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_26 = l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; -x_27 = lean_array_push(x_26, x_1); -x_28 = 0; +uint8_t x_27; +x_27 = l_Lean_Expr_isDIte(x_25); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_28 = l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; +x_29 = lean_array_push(x_28, x_1); +x_30 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_29 = l_Lean_Meta_revert(x_2, x_27, x_28, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_29) == 0) +x_31 = l_Lean_Meta_revert(x_2, x_29, x_30, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_ctor_get(x_30, 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; +x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); +x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_array_get_size(x_32); +lean_dec(x_31); +x_34 = lean_ctor_get(x_32, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); lean_dec(x_32); +x_36 = lean_array_get_size(x_34); +lean_dec(x_34); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_35 = l_Lean_Meta_Split_splitMatch(x_33, x_23, x_3, x_4, x_5, x_6, x_31); -if (lean_obj_tag(x_35) == 0) +x_37 = l_Lean_Meta_Split_splitMatch(x_35, x_25, x_3, x_4, x_5, x_6, x_33); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -lean_dec(x_35); -x_38 = l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(x_34, x_36, x_3, x_4, x_5, x_6, x_37); -if (lean_obj_tag(x_38) == 0) +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(x_36, x_38, x_3, x_4, x_5, x_6, x_39); +if (lean_obj_tag(x_40) == 0) { -uint8_t x_39; -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_40; -x_40 = lean_ctor_get(x_38, 0); -lean_ctor_set(x_20, 0, x_40); -lean_ctor_set(x_38, 0, x_20); -return x_38; +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_ctor_set(x_22, 0, x_42); +lean_ctor_set(x_40, 0, x_22); +return x_40; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_38, 0); -x_42 = lean_ctor_get(x_38, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_38); -lean_ctor_set(x_20, 0, x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_20); -lean_ctor_set(x_43, 1, x_42); -return x_43; +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_40, 0); +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_40); +lean_ctor_set(x_22, 0, x_43); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_22); +lean_ctor_set(x_45, 1, x_44); +return x_45; } } else { -uint8_t x_44; -lean_free_object(x_20); -x_44 = !lean_is_exclusive(x_38); -if (x_44 == 0) +uint8_t x_46; +lean_free_object(x_22); +x_46 = !lean_is_exclusive(x_40); +if (x_46 == 0) { -return x_38; +return x_40; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_38, 0); -x_46 = lean_ctor_get(x_38, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_38); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_40, 0); +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_40); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } } else { -uint8_t x_48; -lean_dec(x_34); -lean_free_object(x_20); +uint8_t x_50; +lean_dec(x_36); +lean_free_object(x_22); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_48 = !lean_is_exclusive(x_35); -if (x_48 == 0) +x_50 = !lean_is_exclusive(x_37); +if (x_50 == 0) { -return x_35; +return x_37; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_35, 0); -x_50 = lean_ctor_get(x_35, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_35); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_37, 0); +x_52 = lean_ctor_get(x_37, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_37); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } else { -uint8_t x_52; -lean_free_object(x_20); -lean_dec(x_23); +uint8_t x_54; +lean_free_object(x_22); +lean_dec(x_25); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_52 = !lean_is_exclusive(x_29); -if (x_52 == 0) +x_54 = !lean_is_exclusive(x_31); +if (x_54 == 0) { -return x_29; +return x_31; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_29, 0); -x_54 = lean_ctor_get(x_29, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_29); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_31, 0); +x_56 = lean_ctor_get(x_31, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_31); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; } } } else { -lean_object* x_56; lean_object* x_57; -lean_free_object(x_20); -lean_dec(x_23); -x_56 = lean_box(0); -x_57 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_56, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -if (lean_obj_tag(x_58) == 0) -{ -uint8_t x_59; -x_59 = !lean_is_exclusive(x_57); -if (x_59 == 0) +lean_object* x_58; lean_object* x_59; +lean_free_object(x_22); +lean_dec(x_25); +x_58 = lean_box(0); +x_59 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_58, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_59) == 0) { lean_object* x_60; -x_60 = lean_ctor_get(x_57, 0); -lean_dec(x_60); -lean_ctor_set(x_57, 0, x_56); -return x_57; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +uint8_t x_61; +x_61 = !lean_is_exclusive(x_59); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_59, 0); +lean_dec(x_62); +lean_ctor_set(x_59, 0, x_58); +return x_59; } else { -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_57, 1); -lean_inc(x_61); -lean_dec(x_57); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set(x_62, 1, x_61); -return x_62; +lean_object* x_63; lean_object* x_64; +x_63 = lean_ctor_get(x_59, 1); +lean_inc(x_63); +lean_dec(x_59); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_58); +lean_ctor_set(x_64, 1, x_63); +return x_64; } } else { -uint8_t x_63; -x_63 = !lean_is_exclusive(x_58); -if (x_63 == 0) +uint8_t x_65; +x_65 = !lean_is_exclusive(x_60); +if (x_65 == 0) { -uint8_t x_64; -x_64 = !lean_is_exclusive(x_57); -if (x_64 == 0) +uint8_t x_66; +x_66 = !lean_is_exclusive(x_59); +if (x_66 == 0) { -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; -x_65 = lean_ctor_get(x_58, 0); -x_66 = lean_ctor_get(x_57, 0); -lean_dec(x_66); -x_67 = lean_ctor_get(x_65, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_65, 1); -lean_inc(x_68); -lean_dec(x_65); -x_69 = lean_box(0); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_67); -lean_ctor_set(x_71, 1, x_70); -lean_ctor_set(x_58, 0, x_71); -return x_57; +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_67 = lean_ctor_get(x_60, 0); +x_68 = lean_ctor_get(x_59, 0); +lean_dec(x_68); +x_69 = lean_ctor_get(x_67, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +lean_dec(x_67); +x_71 = lean_box(0); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_69); +lean_ctor_set(x_73, 1, x_72); +lean_ctor_set(x_60, 0, x_73); +return x_59; } else { -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; -x_72 = lean_ctor_get(x_58, 0); -x_73 = lean_ctor_get(x_57, 1); -lean_inc(x_73); -lean_dec(x_57); -x_74 = lean_ctor_get(x_72, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_72, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_74 = lean_ctor_get(x_60, 0); +x_75 = lean_ctor_get(x_59, 1); lean_inc(x_75); -lean_dec(x_72); -x_76 = lean_box(0); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_74); -lean_ctor_set(x_78, 1, x_77); -lean_ctor_set(x_58, 0, x_78); -x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_58); -lean_ctor_set(x_79, 1, x_73); -return x_79; +lean_dec(x_59); +x_76 = lean_ctor_get(x_74, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_74, 1); +lean_inc(x_77); +lean_dec(x_74); +x_78 = lean_box(0); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_76); +lean_ctor_set(x_80, 1, x_79); +lean_ctor_set(x_60, 0, x_80); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_60); +lean_ctor_set(x_81, 1, x_75); +return x_81; } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_80 = lean_ctor_get(x_58, 0); -lean_inc(x_80); -lean_dec(x_58); -x_81 = lean_ctor_get(x_57, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_82 = x_57; -} else { - lean_dec_ref(x_57); - x_82 = lean_box(0); -} -x_83 = lean_ctor_get(x_80, 0); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_82 = lean_ctor_get(x_60, 0); +lean_inc(x_82); +lean_dec(x_60); +x_83 = lean_ctor_get(x_59, 1); lean_inc(x_83); -x_84 = lean_ctor_get(x_80, 1); -lean_inc(x_84); -lean_dec(x_80); -x_85 = lean_box(0); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_83); -lean_ctor_set(x_87, 1, x_86); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_87); -if (lean_is_scalar(x_82)) { - x_89 = lean_alloc_ctor(0, 2, 0); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_84 = x_59; } else { - x_89 = x_82; + lean_dec_ref(x_59); + x_84 = lean_box(0); } -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_81); -return x_89; +x_85 = lean_ctor_get(x_82, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_82, 1); +lean_inc(x_86); +lean_dec(x_82); +x_87 = lean_box(0); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_85); +lean_ctor_set(x_89, 1, x_88); +x_90 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_90, 0, x_89); +if (lean_is_scalar(x_84)) { + x_91 = lean_alloc_ctor(0, 2, 0); +} else { + x_91 = x_84; +} +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_83); +return x_91; } } } else { -uint8_t x_90; -x_90 = !lean_is_exclusive(x_57); -if (x_90 == 0) +uint8_t x_92; +x_92 = !lean_is_exclusive(x_59); +if (x_92 == 0) { -return x_57; +return x_59; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_57, 0); -x_92 = lean_ctor_get(x_57, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_57); -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -return x_93; +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_59, 0); +x_94 = lean_ctor_get(x_59, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_59); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } } else { -lean_object* x_94; lean_object* x_95; -lean_free_object(x_20); -lean_dec(x_23); -x_94 = lean_box(0); -x_95 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_94, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_95) == 0) -{ -lean_object* x_96; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -if (lean_obj_tag(x_96) == 0) -{ -uint8_t x_97; -x_97 = !lean_is_exclusive(x_95); -if (x_97 == 0) +lean_object* x_96; lean_object* x_97; +lean_free_object(x_22); +lean_dec(x_25); +x_96 = lean_box(0); +x_97 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_96, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_97) == 0) { lean_object* x_98; -x_98 = lean_ctor_get(x_95, 0); -lean_dec(x_98); -lean_ctor_set(x_95, 0, x_94); -return x_95; +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +if (lean_obj_tag(x_98) == 0) +{ +uint8_t x_99; +x_99 = !lean_is_exclusive(x_97); +if (x_99 == 0) +{ +lean_object* x_100; +x_100 = lean_ctor_get(x_97, 0); +lean_dec(x_100); +lean_ctor_set(x_97, 0, x_96); +return x_97; } else { -lean_object* x_99; lean_object* x_100; -x_99 = lean_ctor_get(x_95, 1); -lean_inc(x_99); -lean_dec(x_95); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_94); -lean_ctor_set(x_100, 1, x_99); -return x_100; +lean_object* x_101; lean_object* x_102; +x_101 = lean_ctor_get(x_97, 1); +lean_inc(x_101); +lean_dec(x_97); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_96); +lean_ctor_set(x_102, 1, x_101); +return x_102; } } else { -uint8_t x_101; -x_101 = !lean_is_exclusive(x_96); -if (x_101 == 0) +uint8_t x_103; +x_103 = !lean_is_exclusive(x_98); +if (x_103 == 0) { -uint8_t x_102; -x_102 = !lean_is_exclusive(x_95); -if (x_102 == 0) +uint8_t x_104; +x_104 = !lean_is_exclusive(x_97); +if (x_104 == 0) { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_103 = lean_ctor_get(x_96, 0); -x_104 = lean_ctor_get(x_95, 0); -lean_dec(x_104); -x_105 = lean_ctor_get(x_103, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); -lean_dec(x_103); -x_107 = lean_box(0); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_105); -lean_ctor_set(x_109, 1, x_108); -lean_ctor_set(x_96, 0, x_109); -return x_95; +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; +x_105 = lean_ctor_get(x_98, 0); +x_106 = lean_ctor_get(x_97, 0); +lean_dec(x_106); +x_107 = lean_ctor_get(x_105, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_105, 1); +lean_inc(x_108); +lean_dec(x_105); +x_109 = lean_box(0); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_107); +lean_ctor_set(x_111, 1, x_110); +lean_ctor_set(x_98, 0, x_111); +return x_97; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_110 = lean_ctor_get(x_96, 0); -x_111 = lean_ctor_get(x_95, 1); -lean_inc(x_111); -lean_dec(x_95); -x_112 = lean_ctor_get(x_110, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_110, 1); +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; +x_112 = lean_ctor_get(x_98, 0); +x_113 = lean_ctor_get(x_97, 1); lean_inc(x_113); -lean_dec(x_110); -x_114 = lean_box(0); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_112); -lean_ctor_set(x_116, 1, x_115); -lean_ctor_set(x_96, 0, x_116); -x_117 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_117, 0, x_96); -lean_ctor_set(x_117, 1, x_111); -return x_117; +lean_dec(x_97); +x_114 = lean_ctor_get(x_112, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_115); +lean_dec(x_112); +x_116 = lean_box(0); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_115); +lean_ctor_set(x_117, 1, x_116); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_114); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set(x_98, 0, x_118); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_98); +lean_ctor_set(x_119, 1, x_113); +return x_119; } } else { -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; -x_118 = lean_ctor_get(x_96, 0); -lean_inc(x_118); -lean_dec(x_96); -x_119 = lean_ctor_get(x_95, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_120 = x_95; -} else { - lean_dec_ref(x_95); - x_120 = lean_box(0); -} -x_121 = lean_ctor_get(x_118, 0); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_120 = lean_ctor_get(x_98, 0); +lean_inc(x_120); +lean_dec(x_98); +x_121 = lean_ctor_get(x_97, 1); lean_inc(x_121); -x_122 = lean_ctor_get(x_118, 1); -lean_inc(x_122); -lean_dec(x_118); -x_123 = lean_box(0); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_121); -lean_ctor_set(x_125, 1, x_124); -x_126 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_126, 0, x_125); -if (lean_is_scalar(x_120)) { - x_127 = lean_alloc_ctor(0, 2, 0); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_122 = x_97; } else { - x_127 = x_120; + lean_dec_ref(x_97); + x_122 = lean_box(0); } -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_119); -return x_127; +x_123 = lean_ctor_get(x_120, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_120, 1); +lean_inc(x_124); +lean_dec(x_120); +x_125 = lean_box(0); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set(x_126, 1, x_125); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_123); +lean_ctor_set(x_127, 1, x_126); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_127); +if (lean_is_scalar(x_122)) { + x_129 = lean_alloc_ctor(0, 2, 0); +} else { + x_129 = x_122; +} +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_121); +return x_129; } } } else { -uint8_t x_128; -x_128 = !lean_is_exclusive(x_95); -if (x_128 == 0) +uint8_t x_130; +x_130 = !lean_is_exclusive(x_97); +if (x_130 == 0) { -return x_95; +return x_97; } else { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_95, 0); -x_130 = lean_ctor_get(x_95, 1); -lean_inc(x_130); -lean_inc(x_129); -lean_dec(x_95); -x_131 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_131, 0, x_129); -lean_ctor_set(x_131, 1, x_130); -return x_131; -} -} -} -} -else -{ -lean_object* x_132; uint8_t x_133; -x_132 = lean_ctor_get(x_20, 0); +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_97, 0); +x_132 = lean_ctor_get(x_97, 1); lean_inc(x_132); -lean_dec(x_20); -x_133 = l_Lean_Expr_isIte(x_132); -if (x_133 == 0) +lean_inc(x_131); +lean_dec(x_97); +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; -x_134 = l_Lean_Expr_isDIte(x_132); -if (x_134 == 0) +lean_object* x_134; uint8_t x_135; +x_134 = lean_ctor_get(x_22, 0); +lean_inc(x_134); +lean_dec(x_22); +x_135 = l_Lean_Expr_isIte(x_134); +if (x_135 == 0) { -lean_object* x_135; lean_object* x_136; uint8_t x_137; lean_object* x_138; -x_135 = l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; -x_136 = lean_array_push(x_135, x_1); -x_137 = 0; +uint8_t x_136; +x_136 = l_Lean_Expr_isDIte(x_134); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; +x_137 = l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; +x_138 = lean_array_push(x_137, x_1); +x_139 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_138 = l_Lean_Meta_revert(x_2, x_136, x_137, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_138) == 0) +x_140 = l_Lean_Meta_revert(x_2, x_138, x_139, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_140) == 0) { -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -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_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_141 = lean_ctor_get(x_140, 0); lean_inc(x_141); -x_142 = lean_ctor_get(x_139, 1); +x_142 = lean_ctor_get(x_140, 1); lean_inc(x_142); -lean_dec(x_139); -x_143 = lean_array_get_size(x_141); +lean_dec(x_140); +x_143 = lean_ctor_get(x_141, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_141, 1); +lean_inc(x_144); lean_dec(x_141); +x_145 = lean_array_get_size(x_143); +lean_dec(x_143); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_144 = l_Lean_Meta_Split_splitMatch(x_142, x_132, x_3, x_4, x_5, x_6, x_140); -if (lean_obj_tag(x_144) == 0) +x_146 = l_Lean_Meta_Split_splitMatch(x_144, x_134, x_3, x_4, x_5, x_6, x_142); +if (lean_obj_tag(x_146) == 0) { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -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_147 = l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(x_143, x_145, x_3, x_4, x_5, x_6, x_146); -if (lean_obj_tag(x_147) == 0) -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_148 = lean_ctor_get(x_147, 0); +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_146, 1); lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); -lean_inc(x_149); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_150 = x_147; +lean_dec(x_146); +x_149 = l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(x_145, x_147, x_3, x_4, x_5, x_6, x_148); +if (lean_obj_tag(x_149) == 0) +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_152 = x_149; } else { - lean_dec_ref(x_147); - x_150 = lean_box(0); + lean_dec_ref(x_149); + x_152 = lean_box(0); } -x_151 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_151, 0, x_148); -if (lean_is_scalar(x_150)) { - x_152 = lean_alloc_ctor(0, 2, 0); +x_153 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_153, 0, x_150); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 2, 0); } else { - x_152 = x_150; + x_154 = x_152; } -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_149); -return x_152; +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_151); +return x_154; } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_153 = lean_ctor_get(x_147, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_147, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_147)) { - lean_ctor_release(x_147, 0); - lean_ctor_release(x_147, 1); - x_155 = x_147; +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_155 = lean_ctor_get(x_149, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_149, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_157 = x_149; } else { - lean_dec_ref(x_147); - x_155 = lean_box(0); + lean_dec_ref(x_149); + x_157 = lean_box(0); } -if (lean_is_scalar(x_155)) { - x_156 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); } else { - x_156 = x_155; + x_158 = x_157; } -lean_ctor_set(x_156, 0, x_153); -lean_ctor_set(x_156, 1, x_154); -return x_156; +lean_ctor_set(x_158, 0, x_155); +lean_ctor_set(x_158, 1, x_156); +return x_158; } } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_143); +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_145); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_157 = lean_ctor_get(x_144, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_144, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_159 = x_144; +x_159 = lean_ctor_get(x_146, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_146, 1); +lean_inc(x_160); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_161 = x_146; } else { - lean_dec_ref(x_144); - x_159 = lean_box(0); + lean_dec_ref(x_146); + x_161 = lean_box(0); } -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); } else { - x_160 = x_159; + x_162 = x_161; } -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; } } else { -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -lean_dec(x_132); +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_134); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_161 = lean_ctor_get(x_138, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_138, 1); -lean_inc(x_162); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_163 = x_138; +x_163 = lean_ctor_get(x_140, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_140, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_165 = x_140; } else { - lean_dec_ref(x_138); - x_163 = lean_box(0); + lean_dec_ref(x_140); + x_165 = lean_box(0); } -if (lean_is_scalar(x_163)) { - x_164 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); } else { - x_164 = x_163; + x_166 = x_165; } -lean_ctor_set(x_164, 0, x_161); -lean_ctor_set(x_164, 1, x_162); -return x_164; +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; } } else { -lean_object* x_165; lean_object* x_166; -lean_dec(x_132); -x_165 = lean_box(0); -x_166 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_165, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_166) == 0) +lean_object* x_167; lean_object* x_168; +lean_dec(x_134); +x_167 = lean_box(0); +x_168 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_167, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_168) == 0) { -lean_object* x_167; -x_167 = lean_ctor_get(x_166, 0); -lean_inc(x_167); -if (lean_obj_tag(x_167) == 0) +lean_object* x_169; +x_169 = lean_ctor_get(x_168, 0); +lean_inc(x_169); +if (lean_obj_tag(x_169) == 0) { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_166, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_169 = x_166; +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_168, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_171 = x_168; } else { - lean_dec_ref(x_166); - x_169 = lean_box(0); + lean_dec_ref(x_168); + x_171 = lean_box(0); } -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_171)) { + x_172 = lean_alloc_ctor(0, 2, 0); } else { - x_170 = x_169; + x_172 = x_171; } -lean_ctor_set(x_170, 0, x_165); -lean_ctor_set(x_170, 1, x_168); -return x_170; +lean_ctor_set(x_172, 0, x_167); +lean_ctor_set(x_172, 1, x_170); +return x_172; } else { -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; -x_171 = lean_ctor_get(x_167, 0); -lean_inc(x_171); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - x_172 = x_167; -} else { - lean_dec_ref(x_167); - x_172 = lean_box(0); -} -x_173 = lean_ctor_get(x_166, 1); +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_173 = lean_ctor_get(x_169, 0); lean_inc(x_173); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_174 = x_166; +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + x_174 = x_169; } else { - lean_dec_ref(x_166); + lean_dec_ref(x_169); x_174 = lean_box(0); } -x_175 = lean_ctor_get(x_171, 0); +x_175 = lean_ctor_get(x_168, 1); lean_inc(x_175); -x_176 = lean_ctor_get(x_171, 1); -lean_inc(x_176); -lean_dec(x_171); -x_177 = lean_box(0); -x_178 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_178, 0, x_176); -lean_ctor_set(x_178, 1, x_177); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_175); -lean_ctor_set(x_179, 1, x_178); -if (lean_is_scalar(x_172)) { - x_180 = lean_alloc_ctor(1, 1, 0); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_176 = x_168; } else { - x_180 = x_172; + lean_dec_ref(x_168); + x_176 = lean_box(0); } -lean_ctor_set(x_180, 0, x_179); +x_177 = lean_ctor_get(x_173, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_173, 1); +lean_inc(x_178); +lean_dec(x_173); +x_179 = lean_box(0); +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_178); +lean_ctor_set(x_180, 1, x_179); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_177); +lean_ctor_set(x_181, 1, x_180); if (lean_is_scalar(x_174)) { - x_181 = lean_alloc_ctor(0, 2, 0); + x_182 = lean_alloc_ctor(1, 1, 0); } else { - x_181 = x_174; + x_182 = x_174; } -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_173); -return x_181; +lean_ctor_set(x_182, 0, x_181); +if (lean_is_scalar(x_176)) { + x_183 = lean_alloc_ctor(0, 2, 0); +} else { + x_183 = x_176; +} +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_175); +return x_183; } } else { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_182 = lean_ctor_get(x_166, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_166, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - x_184 = x_166; +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_184 = lean_ctor_get(x_168, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_168, 1); +lean_inc(x_185); +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + x_186 = x_168; } else { - lean_dec_ref(x_166); - x_184 = lean_box(0); + lean_dec_ref(x_168); + x_186 = lean_box(0); } -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_186)) { + x_187 = lean_alloc_ctor(1, 2, 0); } else { - x_185 = x_184; + x_187 = x_186; } -lean_ctor_set(x_185, 0, x_182); -lean_ctor_set(x_185, 1, x_183); -return x_185; +lean_ctor_set(x_187, 0, x_184); +lean_ctor_set(x_187, 1, x_185); +return x_187; } } } else { -lean_object* x_186; lean_object* x_187; -lean_dec(x_132); -x_186 = lean_box(0); -x_187 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_186, x_3, x_4, x_5, x_6, x_19); -if (lean_obj_tag(x_187) == 0) +lean_object* x_188; lean_object* x_189; +lean_dec(x_134); +x_188 = lean_box(0); +x_189 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_188, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_189) == 0) { -lean_object* x_188; -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -if (lean_obj_tag(x_188) == 0) +lean_object* x_190; +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +if (lean_obj_tag(x_190) == 0) { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_190 = x_187; +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_192 = x_189; } else { - lean_dec_ref(x_187); - x_190 = lean_box(0); + lean_dec_ref(x_189); + x_192 = lean_box(0); } -if (lean_is_scalar(x_190)) { - x_191 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_192)) { + x_193 = lean_alloc_ctor(0, 2, 0); } else { - x_191 = x_190; + x_193 = x_192; } -lean_ctor_set(x_191, 0, x_186); -lean_ctor_set(x_191, 1, x_189); -return x_191; +lean_ctor_set(x_193, 0, x_188); +lean_ctor_set(x_193, 1, x_191); +return x_193; } else { -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; -x_192 = lean_ctor_get(x_188, 0); -lean_inc(x_192); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - x_193 = x_188; -} else { - lean_dec_ref(x_188); - x_193 = lean_box(0); -} -x_194 = lean_ctor_get(x_187, 1); +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; +x_194 = lean_ctor_get(x_190, 0); lean_inc(x_194); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_195 = x_187; +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + x_195 = x_190; } else { - lean_dec_ref(x_187); + lean_dec_ref(x_190); x_195 = lean_box(0); } -x_196 = lean_ctor_get(x_192, 0); +x_196 = lean_ctor_get(x_189, 1); lean_inc(x_196); -x_197 = lean_ctor_get(x_192, 1); -lean_inc(x_197); -lean_dec(x_192); -x_198 = lean_box(0); -x_199 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_199, 0, x_197); -lean_ctor_set(x_199, 1, x_198); -x_200 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_200, 0, x_196); -lean_ctor_set(x_200, 1, x_199); -if (lean_is_scalar(x_193)) { - x_201 = lean_alloc_ctor(1, 1, 0); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_197 = x_189; } else { - x_201 = x_193; + lean_dec_ref(x_189); + x_197 = lean_box(0); } -lean_ctor_set(x_201, 0, x_200); +x_198 = lean_ctor_get(x_194, 0); +lean_inc(x_198); +x_199 = lean_ctor_get(x_194, 1); +lean_inc(x_199); +lean_dec(x_194); +x_200 = lean_box(0); +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_199); +lean_ctor_set(x_201, 1, x_200); +x_202 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_202, 0, x_198); +lean_ctor_set(x_202, 1, x_201); if (lean_is_scalar(x_195)) { - x_202 = lean_alloc_ctor(0, 2, 0); + x_203 = lean_alloc_ctor(1, 1, 0); } else { - x_202 = x_195; + x_203 = x_195; } -lean_ctor_set(x_202, 0, x_201); -lean_ctor_set(x_202, 1, x_194); -return x_202; +lean_ctor_set(x_203, 0, x_202); +if (lean_is_scalar(x_197)) { + x_204 = lean_alloc_ctor(0, 2, 0); +} else { + x_204 = x_197; +} +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_196); +return x_204; } } else { -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_203 = lean_ctor_get(x_187, 0); -lean_inc(x_203); -x_204 = lean_ctor_get(x_187, 1); -lean_inc(x_204); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_205 = x_187; +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_205 = lean_ctor_get(x_189, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_189, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_207 = x_189; } else { - lean_dec_ref(x_187); - x_205 = lean_box(0); + lean_dec_ref(x_189); + x_207 = lean_box(0); } -if (lean_is_scalar(x_205)) { - x_206 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(1, 2, 0); } else { - x_206 = x_205; + x_208 = x_207; } -lean_ctor_set(x_206, 0, x_203); -lean_ctor_set(x_206, 1, x_204); -return x_206; +lean_ctor_set(x_208, 0, x_205); +lean_ctor_set(x_208, 1, x_206); +return x_208; } } } @@ -7354,160 +7701,131 @@ return x_206; } else { -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_16, 0); -x_208 = lean_ctor_get(x_16, 1); -lean_inc(x_208); -lean_inc(x_207); +lean_object* x_209; lean_object* x_210; uint8_t x_211; lean_object* x_212; lean_object* x_213; +x_209 = lean_ctor_get(x_16, 0); +x_210 = lean_ctor_get(x_16, 1); +lean_inc(x_210); +lean_inc(x_209); lean_dec(x_16); -x_209 = l_Lean_Meta_Split_findSplit_x3f(x_11, x_207); -if (lean_obj_tag(x_209) == 0) +x_211 = 1; +x_212 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1; +x_213 = l_Lean_Meta_Split_findSplit_x3f_go(x_11, x_211, x_212, x_209); +if (lean_obj_tag(x_213) == 0) { -lean_object* x_210; lean_object* x_211; +lean_object* x_214; lean_object* x_215; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_210 = lean_box(0); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_208); -return x_211; +x_214 = lean_box(0); +x_215 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_210); +return x_215; } else { -lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_212 = lean_ctor_get(x_209, 0); -lean_inc(x_212); -if (lean_is_exclusive(x_209)) { - lean_ctor_release(x_209, 0); - x_213 = x_209; +lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_216 = lean_ctor_get(x_213, 0); +lean_inc(x_216); +if (lean_is_exclusive(x_213)) { + lean_ctor_release(x_213, 0); + x_217 = x_213; } else { - lean_dec_ref(x_209); - x_213 = lean_box(0); + lean_dec_ref(x_213); + x_217 = lean_box(0); } -x_214 = l_Lean_Expr_isIte(x_212); -if (x_214 == 0) +x_218 = l_Lean_Expr_isIte(x_216); +if (x_218 == 0) { -uint8_t x_215; -x_215 = l_Lean_Expr_isDIte(x_212); -if (x_215 == 0) +uint8_t x_219; +x_219 = l_Lean_Expr_isDIte(x_216); +if (x_219 == 0) { -lean_object* x_216; lean_object* x_217; uint8_t x_218; lean_object* x_219; -x_216 = l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; -x_217 = lean_array_push(x_216, x_1); -x_218 = 0; +lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; +x_220 = l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1; +x_221 = lean_array_push(x_220, x_1); +x_222 = 0; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_219 = l_Lean_Meta_revert(x_2, x_217, x_218, x_3, x_4, x_5, x_6, x_208); -if (lean_obj_tag(x_219) == 0) +x_223 = l_Lean_Meta_revert(x_2, x_221, x_222, x_3, x_4, x_5, x_6, x_210); +if (lean_obj_tag(x_223) == 0) { -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; -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, 0); -lean_inc(x_222); -x_223 = lean_ctor_get(x_220, 1); -lean_inc(x_223); -lean_dec(x_220); -x_224 = lean_array_get_size(x_222); -lean_dec(x_222); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_225 = l_Lean_Meta_Split_splitMatch(x_223, x_212, x_3, x_4, x_5, x_6, x_221); -if (lean_obj_tag(x_225) == 0) -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_225, 0); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +x_226 = lean_ctor_get(x_224, 0); lean_inc(x_226); -x_227 = lean_ctor_get(x_225, 1); +x_227 = lean_ctor_get(x_224, 1); lean_inc(x_227); -lean_dec(x_225); -x_228 = l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(x_224, x_226, x_3, x_4, x_5, x_6, x_227); -if (lean_obj_tag(x_228) == 0) +lean_dec(x_224); +x_228 = lean_array_get_size(x_226); +lean_dec(x_226); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_229 = l_Lean_Meta_Split_splitMatch(x_227, x_216, x_3, x_4, x_5, x_6, x_225); +if (lean_obj_tag(x_229) == 0) { -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_229, 0); lean_inc(x_230); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_231 = x_228; -} else { - lean_dec_ref(x_228); - x_231 = lean_box(0); -} -if (lean_is_scalar(x_213)) { - x_232 = lean_alloc_ctor(1, 1, 0); -} else { - x_232 = x_213; -} -lean_ctor_set(x_232, 0, x_229); -if (lean_is_scalar(x_231)) { - x_233 = lean_alloc_ctor(0, 2, 0); -} else { - x_233 = x_231; -} -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_230); -return x_233; -} -else +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +lean_dec(x_229); +x_232 = l_List_mapM___at_Lean_Meta_splitLocalDecl_x3f___spec__1(x_228, x_230, x_3, x_4, x_5, x_6, x_231); +if (lean_obj_tag(x_232) == 0) { -lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; -lean_dec(x_213); -x_234 = lean_ctor_get(x_228, 0); +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); lean_inc(x_234); -x_235 = lean_ctor_get(x_228, 1); -lean_inc(x_235); -if (lean_is_exclusive(x_228)) { - lean_ctor_release(x_228, 0); - lean_ctor_release(x_228, 1); - x_236 = x_228; +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_235 = x_232; } else { - lean_dec_ref(x_228); - x_236 = lean_box(0); + lean_dec_ref(x_232); + x_235 = lean_box(0); } -if (lean_is_scalar(x_236)) { - x_237 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_217)) { + x_236 = lean_alloc_ctor(1, 1, 0); } else { - x_237 = x_236; + x_236 = x_217; } -lean_ctor_set(x_237, 0, x_234); -lean_ctor_set(x_237, 1, x_235); +lean_ctor_set(x_236, 0, x_233); +if (lean_is_scalar(x_235)) { + x_237 = lean_alloc_ctor(0, 2, 0); +} else { + x_237 = x_235; +} +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_234); return x_237; } -} else { lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -lean_dec(x_224); -lean_dec(x_213); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_238 = lean_ctor_get(x_225, 0); +lean_dec(x_217); +x_238 = lean_ctor_get(x_232, 0); lean_inc(x_238); -x_239 = lean_ctor_get(x_225, 1); +x_239 = lean_ctor_get(x_232, 1); lean_inc(x_239); -if (lean_is_exclusive(x_225)) { - lean_ctor_release(x_225, 0); - lean_ctor_release(x_225, 1); - x_240 = x_225; +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_240 = x_232; } else { - lean_dec_ref(x_225); + lean_dec_ref(x_232); x_240 = lean_box(0); } if (lean_is_scalar(x_240)) { @@ -7523,22 +7841,22 @@ return x_241; else { lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -lean_dec(x_213); -lean_dec(x_212); +lean_dec(x_228); +lean_dec(x_217); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_242 = lean_ctor_get(x_219, 0); +x_242 = lean_ctor_get(x_229, 0); lean_inc(x_242); -x_243 = lean_ctor_get(x_219, 1); +x_243 = lean_ctor_get(x_229, 1); lean_inc(x_243); -if (lean_is_exclusive(x_219)) { - lean_ctor_release(x_219, 0); - lean_ctor_release(x_219, 1); - x_244 = x_219; +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + x_244 = x_229; } else { - lean_dec_ref(x_219); + lean_dec_ref(x_229); x_244 = lean_box(0); } if (lean_is_scalar(x_244)) { @@ -7553,229 +7871,260 @@ return x_245; } else { -lean_object* x_246; lean_object* x_247; -lean_dec(x_213); -lean_dec(x_212); -x_246 = lean_box(0); -x_247 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_246, x_3, x_4, x_5, x_6, x_208); -if (lean_obj_tag(x_247) == 0) -{ -lean_object* x_248; -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -if (lean_obj_tag(x_248) == 0) -{ -lean_object* x_249; lean_object* x_250; lean_object* x_251; -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_250 = x_247; +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_217); +lean_dec(x_216); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_246 = lean_ctor_get(x_223, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_223, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_248 = x_223; } else { - lean_dec_ref(x_247); - x_250 = lean_box(0); + lean_dec_ref(x_223); + x_248 = lean_box(0); } -if (lean_is_scalar(x_250)) { - x_251 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_248)) { + x_249 = lean_alloc_ctor(1, 2, 0); } else { - x_251 = x_250; + x_249 = x_248; +} +lean_ctor_set(x_249, 0, x_246); +lean_ctor_set(x_249, 1, x_247); +return x_249; } -lean_ctor_set(x_251, 0, x_246); -lean_ctor_set(x_251, 1, x_249); -return x_251; } else { -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; -x_252 = lean_ctor_get(x_248, 0); +lean_object* x_250; lean_object* x_251; +lean_dec(x_217); +lean_dec(x_216); +x_250 = lean_box(0); +x_251 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_250, x_3, x_4, x_5, x_6, x_210); +if (lean_obj_tag(x_251) == 0) +{ +lean_object* x_252; +x_252 = lean_ctor_get(x_251, 0); lean_inc(x_252); -if (lean_is_exclusive(x_248)) { - lean_ctor_release(x_248, 0); - x_253 = x_248; +if (lean_obj_tag(x_252) == 0) +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_253 = lean_ctor_get(x_251, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_254 = x_251; } else { - lean_dec_ref(x_248); - x_253 = lean_box(0); + lean_dec_ref(x_251); + x_254 = lean_box(0); } -x_254 = lean_ctor_get(x_247, 1); -lean_inc(x_254); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_255 = x_247; +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_247); - x_255 = lean_box(0); + x_255 = x_254; } +lean_ctor_set(x_255, 0, x_250); +lean_ctor_set(x_255, 1, x_253); +return x_255; +} +else +{ +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; x_256 = lean_ctor_get(x_252, 0); lean_inc(x_256); -x_257 = lean_ctor_get(x_252, 1); -lean_inc(x_257); -lean_dec(x_252); -x_258 = lean_box(0); -x_259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_259, 0, x_257); -lean_ctor_set(x_259, 1, x_258); -x_260 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_260, 0, x_256); -lean_ctor_set(x_260, 1, x_259); -if (lean_is_scalar(x_253)) { - x_261 = lean_alloc_ctor(1, 1, 0); +if (lean_is_exclusive(x_252)) { + lean_ctor_release(x_252, 0); + x_257 = x_252; } else { - x_261 = x_253; + lean_dec_ref(x_252); + x_257 = lean_box(0); } -lean_ctor_set(x_261, 0, x_260); -if (lean_is_scalar(x_255)) { - x_262 = lean_alloc_ctor(0, 2, 0); +x_258 = lean_ctor_get(x_251, 1); +lean_inc(x_258); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_259 = x_251; } else { - x_262 = x_255; + lean_dec_ref(x_251); + x_259 = lean_box(0); } -lean_ctor_set(x_262, 0, x_261); -lean_ctor_set(x_262, 1, x_254); -return x_262; -} -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_263 = lean_ctor_get(x_247, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_247, 1); -lean_inc(x_264); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_265 = x_247; +x_260 = lean_ctor_get(x_256, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_256, 1); +lean_inc(x_261); +lean_dec(x_256); +x_262 = lean_box(0); +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_261); +lean_ctor_set(x_263, 1, x_262); +x_264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_264, 0, x_260); +lean_ctor_set(x_264, 1, x_263); +if (lean_is_scalar(x_257)) { + x_265 = lean_alloc_ctor(1, 1, 0); } else { - lean_dec_ref(x_247); - x_265 = lean_box(0); + x_265 = x_257; } -if (lean_is_scalar(x_265)) { - x_266 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_264); +if (lean_is_scalar(x_259)) { + x_266 = lean_alloc_ctor(0, 2, 0); } else { - x_266 = x_265; + x_266 = x_259; } -lean_ctor_set(x_266, 0, x_263); -lean_ctor_set(x_266, 1, x_264); +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_258); return x_266; } } +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_267 = lean_ctor_get(x_251, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_251, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_269 = x_251; +} else { + lean_dec_ref(x_251); + x_269 = lean_box(0); +} +if (lean_is_scalar(x_269)) { + x_270 = lean_alloc_ctor(1, 2, 0); +} else { + x_270 = x_269; +} +lean_ctor_set(x_270, 0, x_267); +lean_ctor_set(x_270, 1, x_268); +return x_270; +} +} } else { -lean_object* x_267; lean_object* x_268; -lean_dec(x_213); -lean_dec(x_212); -x_267 = lean_box(0); -x_268 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_267, x_3, x_4, x_5, x_6, x_208); -if (lean_obj_tag(x_268) == 0) +lean_object* x_271; lean_object* x_272; +lean_dec(x_217); +lean_dec(x_216); +x_271 = lean_box(0); +x_272 = l_Lean_Meta_splitIfLocalDecl_x3f(x_2, x_1, x_271, x_3, x_4, x_5, x_6, x_210); +if (lean_obj_tag(x_272) == 0) { -lean_object* x_269; -x_269 = lean_ctor_get(x_268, 0); -lean_inc(x_269); -if (lean_obj_tag(x_269) == 0) -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_270 = lean_ctor_get(x_268, 1); -lean_inc(x_270); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_271 = x_268; -} else { - lean_dec_ref(x_268); - x_271 = lean_box(0); -} -if (lean_is_scalar(x_271)) { - x_272 = lean_alloc_ctor(0, 2, 0); -} else { - x_272 = x_271; -} -lean_ctor_set(x_272, 0, x_267); -lean_ctor_set(x_272, 1, x_270); -return x_272; -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; -x_273 = lean_ctor_get(x_269, 0); +lean_object* x_273; +x_273 = lean_ctor_get(x_272, 0); lean_inc(x_273); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - x_274 = x_269; +if (lean_obj_tag(x_273) == 0) +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; +x_274 = lean_ctor_get(x_272, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_275 = x_272; } else { - lean_dec_ref(x_269); - x_274 = lean_box(0); + lean_dec_ref(x_272); + x_275 = lean_box(0); } -x_275 = lean_ctor_get(x_268, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_276 = x_268; +if (lean_is_scalar(x_275)) { + x_276 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_268); - x_276 = lean_box(0); + x_276 = x_275; } +lean_ctor_set(x_276, 0, x_271); +lean_ctor_set(x_276, 1, x_274); +return x_276; +} +else +{ +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; x_277 = lean_ctor_get(x_273, 0); lean_inc(x_277); -x_278 = lean_ctor_get(x_273, 1); -lean_inc(x_278); -lean_dec(x_273); -x_279 = lean_box(0); -x_280 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_280, 0, x_278); -lean_ctor_set(x_280, 1, x_279); -x_281 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_281, 0, x_277); -lean_ctor_set(x_281, 1, x_280); -if (lean_is_scalar(x_274)) { - x_282 = lean_alloc_ctor(1, 1, 0); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + x_278 = x_273; } else { - x_282 = x_274; + lean_dec_ref(x_273); + x_278 = lean_box(0); } -lean_ctor_set(x_282, 0, x_281); -if (lean_is_scalar(x_276)) { - x_283 = lean_alloc_ctor(0, 2, 0); +x_279 = lean_ctor_get(x_272, 1); +lean_inc(x_279); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_280 = x_272; } else { - x_283 = x_276; + lean_dec_ref(x_272); + x_280 = lean_box(0); } -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_275); -return x_283; -} -} -else -{ -lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -x_284 = lean_ctor_get(x_268, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_268, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_286 = x_268; +x_281 = lean_ctor_get(x_277, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_277, 1); +lean_inc(x_282); +lean_dec(x_277); +x_283 = lean_box(0); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_282); +lean_ctor_set(x_284, 1, x_283); +x_285 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_285, 0, x_281); +lean_ctor_set(x_285, 1, x_284); +if (lean_is_scalar(x_278)) { + x_286 = lean_alloc_ctor(1, 1, 0); } else { - lean_dec_ref(x_268); - x_286 = lean_box(0); + x_286 = x_278; } -if (lean_is_scalar(x_286)) { - x_287 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_286, 0, x_285); +if (lean_is_scalar(x_280)) { + x_287 = lean_alloc_ctor(0, 2, 0); } else { - x_287 = x_286; + x_287 = x_280; } -lean_ctor_set(x_287, 0, x_284); -lean_ctor_set(x_287, 1, x_285); +lean_ctor_set(x_287, 0, x_286); +lean_ctor_set(x_287, 1, x_279); return x_287; } } +else +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_288 = lean_ctor_get(x_272, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_272, 1); +lean_inc(x_289); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_290 = x_272; +} else { + lean_dec_ref(x_272); + x_290 = lean_box(0); +} +if (lean_is_scalar(x_290)) { + x_291 = lean_alloc_ctor(1, 2, 0); +} else { + x_291 = x_290; +} +lean_ctor_set(x_291, 0, x_288); +lean_ctor_set(x_291, 1, x_289); +return x_291; +} +} } } } else { -uint8_t x_288; +uint8_t x_292; lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); @@ -7783,23 +8132,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_288 = !lean_is_exclusive(x_13); -if (x_288 == 0) +x_292 = !lean_is_exclusive(x_13); +if (x_292 == 0) { return x_13; } else { -lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_289 = lean_ctor_get(x_13, 0); -x_290 = lean_ctor_get(x_13, 1); -lean_inc(x_290); -lean_inc(x_289); +lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_293 = lean_ctor_get(x_13, 0); +x_294 = lean_ctor_get(x_13, 1); +lean_inc(x_294); +lean_inc(x_293); lean_dec(x_13); -x_291 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_291, 0, x_289); -lean_ctor_set(x_291, 1, x_290); -return x_291; +x_295 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_295, 0, x_293); +lean_ctor_set(x_295, 1, x_294); +return x_295; } } } @@ -7819,11 +8168,11 @@ x_10 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(x_9, x return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_2618_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_2692_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__6; +x_2 = l_Lean_Meta_splitTarget_x3f_go___closed__6; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -7907,31 +8256,33 @@ l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__3 = _init_l_Lean_Meta_Spli lean_mark_persistent(l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__3); l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4 = _init_l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4(); lean_mark_persistent(l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4); +l_Lean_Meta_splitTarget_x3f_go___closed__1 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__1(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__1); +l_Lean_Meta_splitTarget_x3f_go___closed__2 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__2(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__2); +l_Lean_Meta_splitTarget_x3f_go___closed__3 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__3(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__3); +l_Lean_Meta_splitTarget_x3f_go___closed__4 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__4(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__4); +l_Lean_Meta_splitTarget_x3f_go___closed__5 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__5(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__5); +l_Lean_Meta_splitTarget_x3f_go___closed__6 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__6(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__6); +l_Lean_Meta_splitTarget_x3f_go___closed__7 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__7(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__7); +l_Lean_Meta_splitTarget_x3f_go___closed__8 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__8(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__8); +l_Lean_Meta_splitTarget_x3f_go___closed__9 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__9(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__9); +l_Lean_Meta_splitTarget_x3f_go___closed__10 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__10(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__10); +l_Lean_Meta_splitTarget_x3f_go___closed__11 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__11(); +lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__11); l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1(); lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__2 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__2(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__2); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__3 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__3(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__3); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__4 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__4(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__4); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__5 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__5(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__5); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__6 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__6(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__6); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__7 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__7(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__7); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__8 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__8(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__8); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__9 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__9(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__9); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__10 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__10(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__10); -l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__11 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__11(); -lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__11); l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1 = _init_l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1); -res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_2618_(lean_io_mk_world()); +res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_2692_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Util.c b/stage0/stdlib/Lean/Meta/Tactic/Util.c index 8f79add8dc..d15208bf4d 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Util.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Util.c @@ -26,6 +26,7 @@ lean_object* l_Lean_stringToMessageData(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_appendTagSuffix(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___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*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); @@ -80,6 +81,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondep lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSorry(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_headBetaMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -88,6 +90,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_throwNestedTacticEx___rarg(lean_object*, le LEAN_EXPORT lean_object* l_Lean_ForEachExpr_visit___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_throwNestedTacticEx(lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getPropHyps___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getNondepPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); @@ -120,6 +123,8 @@ lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_ static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_301____closed__4; LEAN_EXPORT lean_object* l_List_replace___at_Lean_Meta_getNondepPropHyps___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getPropHyps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_throwNestedTacticEx___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_appendTagSuffix___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -127,6 +132,7 @@ static lean_object* l_Lean_Meta_admit___closed__2; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Meta_saturate_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashSetImp_moveEntries___at_Lean_Meta_getNondepPropHyps___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -136,6 +142,7 @@ static lean_object* l_Lean_Meta_throwTacticEx___rarg___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_301____closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_erase___at_Lean_Meta_getNondepPropHyps_removeDeps___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_Lean_MacroScopesView_review(lean_object*); @@ -159,6 +166,7 @@ lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_o LEAN_EXPORT lean_object* l_Lean_Meta_saturate_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwNestedTacticEx___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_throwTacticEx___spec__1(lean_object*); @@ -166,6 +174,8 @@ static lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Util___hyg_301___ LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getNondepPropHyps___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_saturate_go___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___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_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_exactlyOne___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getNondepPropHyps___spec__11(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -180,6 +190,7 @@ lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Meta_getMVarTag___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_setMVarTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_getNondepPropHyps___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Meta_saturate_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -6802,6 +6813,1077 @@ lean_dec(x_2); return x_7; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__3(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, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_usize_dec_lt(x_5, x_4); +if (x_12 == 0) +{ +lean_object* x_13; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_6); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +else +{ +lean_object* x_14; uint8_t x_15; +x_14 = lean_array_uget(x_3, x_5); +x_15 = !lean_is_exclusive(x_6); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_6, 1); +x_17 = lean_ctor_get(x_6, 0); +lean_dec(x_17); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_16); +x_18 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2(x_1, x_14, x_16, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_14); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +uint8_t x_20; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 0); +lean_dec(x_21); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_19); +lean_ctor_set(x_6, 0, x_22); +lean_ctor_set(x_18, 0, x_6); +return x_18; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_19); +lean_ctor_set(x_6, 0, x_24); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_6); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; +lean_dec(x_16); +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_dec(x_18); +x_27 = lean_ctor_get(x_19, 0); +lean_inc(x_27); +lean_dec(x_19); +lean_inc(x_2); +lean_ctor_set(x_6, 1, x_27); +lean_ctor_set(x_6, 0, x_2); +x_28 = 1; +x_29 = lean_usize_add(x_5, x_28); +x_5 = x_29; +x_11 = x_26; +goto _start; +} +} +else +{ +uint8_t x_31; +lean_free_object(x_6); +lean_dec(x_16); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) +{ +return x_18; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_18, 0); +x_33 = lean_ctor_get(x_18, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_18); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_6, 1); +lean_inc(x_35); +lean_dec(x_6); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_35); +x_36 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2(x_1, x_14, x_35, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_14); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_39 = x_36; +} else { + lean_dec_ref(x_36); + x_39 = lean_box(0); +} +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_37); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_35); +if (lean_is_scalar(x_39)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_39; +} +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_38); +return x_42; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; size_t x_46; size_t x_47; +lean_dec(x_35); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +lean_dec(x_36); +x_44 = lean_ctor_get(x_37, 0); +lean_inc(x_44); +lean_dec(x_37); +lean_inc(x_2); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_2); +lean_ctor_set(x_45, 1, x_44); +x_46 = 1; +x_47 = lean_usize_add(x_5, x_46); +x_5 = x_47; +x_6 = x_45; +x_11 = x_43; +goto _start; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_35); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +x_49 = lean_ctor_get(x_36, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_36, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_51 = x_36; +} else { + lean_dec_ref(x_36); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__4(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) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_4, x_3); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_array_uget(x_2, x_4); +x_14 = lean_ctor_get(x_5, 1); +lean_inc(x_14); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + x_15 = x_5; +} else { + lean_dec_ref(x_5); + x_15 = lean_box(0); +} +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_24; +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_14); +x_16 = x_24; +x_17 = x_10; +goto block_23; +} +else +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_13, 0); +lean_inc(x_25); +lean_dec(x_13); +x_26 = l_Lean_LocalDecl_isAuxDecl(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = l_Lean_LocalDecl_type(x_25); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_28 = l_Lean_Meta_isProp(x_27, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_25); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_14); +x_16 = x_32; +x_17 = x_31; +goto block_23; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_dec(x_28); +x_34 = l_Lean_LocalDecl_fvarId(x_25); +lean_dec(x_25); +x_35 = lean_array_push(x_14, x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +x_16 = x_36; +x_17 = x_33; +goto block_23; +} +} +else +{ +uint8_t x_37; +lean_dec(x_25); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_28); +if (x_37 == 0) +{ +return x_28; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_28, 0); +x_39 = lean_ctor_get(x_28, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_28); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_object* x_41; +lean_dec(x_25); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_14); +x_16 = x_41; +x_17 = x_10; +goto block_23; +} +} +block_23: +{ +lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_1); +if (lean_is_scalar(x_15)) { + x_19 = lean_alloc_ctor(0, 2, 0); +} else { + x_19 = x_15; +} +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_19, 1, x_18); +x_20 = 1; +x_21 = lean_usize_add(x_4, x_20); +x_4 = x_21; +x_5 = x_19; +x_10 = x_17; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; +x_9 = lean_ctor_get(x_2, 0); +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_3); +x_12 = lean_array_get_size(x_9); +x_13 = lean_usize_of_nat(x_12); +lean_dec(x_12); +x_14 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_15 = l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__3(x_1, x_10, x_9, x_13, x_14, x_11, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_box(0); +x_21 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(x_19, x_20, x_4, x_5, x_6, x_7, x_18); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_21; +} +else +{ +uint8_t x_22; +lean_dec(x_16); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_22 = !lean_is_exclusive(x_15); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; +x_23 = lean_ctor_get(x_15, 0); +lean_dec(x_23); +x_24 = lean_ctor_get(x_17, 0); +lean_inc(x_24); +lean_dec(x_17); +lean_ctor_set(x_15, 0, x_24); +return x_15; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_15, 1); +lean_inc(x_25); +lean_dec(x_15); +x_26 = lean_ctor_get(x_17, 0); +lean_inc(x_26); +lean_dec(x_17); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +} +} +else +{ +uint8_t x_28; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_28 = !lean_is_exclusive(x_15); +if (x_28 == 0) +{ +return x_15; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_15, 0); +x_30 = lean_ctor_get(x_15, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_15); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +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; +x_32 = lean_ctor_get(x_2, 0); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_3); +x_35 = lean_array_get_size(x_32); +x_36 = lean_usize_of_nat(x_35); +lean_dec(x_35); +x_37 = 0; +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +x_38 = l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__4(x_33, x_32, x_36, x_37, x_34, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_dec(x_38); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_box(0); +x_44 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getNondepPropHyps___spec__8___lambda__1(x_42, x_43, x_4, x_5, x_6, x_7, x_41); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_44; +} +else +{ +uint8_t x_45; +lean_dec(x_39); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_45 = !lean_is_exclusive(x_38); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_38, 0); +lean_dec(x_46); +x_47 = lean_ctor_get(x_40, 0); +lean_inc(x_47); +lean_dec(x_40); +lean_ctor_set(x_38, 0, x_47); +return x_38; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_38, 1); +lean_inc(x_48); +lean_dec(x_38); +x_49 = lean_ctor_get(x_40, 0); +lean_inc(x_49); +lean_dec(x_40); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_51 = !lean_is_exclusive(x_38); +if (x_51 == 0) +{ +return x_38; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_38, 0); +x_53 = lean_ctor_get(x_38, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_38); +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_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___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, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = lean_usize_dec_lt(x_4, x_3); +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = lean_array_uget(x_2, x_4); +x_14 = lean_ctor_get(x_5, 1); +lean_inc(x_14); +if (lean_is_exclusive(x_5)) { + lean_ctor_release(x_5, 0); + lean_ctor_release(x_5, 1); + x_15 = x_5; +} else { + lean_dec_ref(x_5); + x_15 = lean_box(0); +} +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_24; +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_14); +x_16 = x_24; +x_17 = x_10; +goto block_23; +} +else +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_13, 0); +lean_inc(x_25); +lean_dec(x_13); +x_26 = l_Lean_LocalDecl_isAuxDecl(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = l_Lean_LocalDecl_type(x_25); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_28 = l_Lean_Meta_isProp(x_27, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +lean_dec(x_25); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_14); +x_16 = x_32; +x_17 = x_31; +goto block_23; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_28, 1); +lean_inc(x_33); +lean_dec(x_28); +x_34 = l_Lean_LocalDecl_fvarId(x_25); +lean_dec(x_25); +x_35 = lean_array_push(x_14, x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +x_16 = x_36; +x_17 = x_33; +goto block_23; +} +} +else +{ +uint8_t x_37; +lean_dec(x_25); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_37 = !lean_is_exclusive(x_28); +if (x_37 == 0) +{ +return x_28; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_28, 0); +x_39 = lean_ctor_get(x_28, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_28); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; +} +} +} +else +{ +lean_object* x_41; +lean_dec(x_25); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_14); +x_16 = x_41; +x_17 = x_10; +goto block_23; +} +} +block_23: +{ +lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +lean_inc(x_1); +if (lean_is_scalar(x_15)) { + x_19 = lean_alloc_ctor(0, 2, 0); +} else { + x_19 = x_15; +} +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_19, 1, x_18); +x_20 = 1; +x_21 = lean_usize_add(x_4, x_20); +x_4 = x_21; +x_5 = x_19; +x_10 = x_17; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getPropHyps___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_9 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2(x_2, x_8, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; lean_object* x_25; +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +x_19 = lean_ctor_get(x_1, 1); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_18); +x_22 = lean_array_get_size(x_19); +x_23 = lean_usize_of_nat(x_22); +lean_dec(x_22); +x_24 = 0; +x_25 = l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__5(x_20, x_19, x_23, x_24, x_21, x_3, x_4, x_5, x_6, x_17); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +if (lean_obj_tag(x_27) == 0) +{ +uint8_t x_28; +x_28 = !lean_is_exclusive(x_25); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_25, 0); +lean_dec(x_29); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_dec(x_26); +lean_ctor_set(x_25, 0, x_30); +return x_25; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_dec(x_25); +x_32 = lean_ctor_get(x_26, 1); +lean_inc(x_32); +lean_dec(x_26); +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; +} +} +else +{ +uint8_t x_34; +lean_dec(x_26); +x_34 = !lean_is_exclusive(x_25); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_25, 0); +lean_dec(x_35); +x_36 = lean_ctor_get(x_27, 0); +lean_inc(x_36); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_36); +return x_25; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_25, 1); +lean_inc(x_37); +lean_dec(x_25); +x_38 = lean_ctor_get(x_27, 0); +lean_inc(x_38); +lean_dec(x_27); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +return x_39; +} +} +} +else +{ +uint8_t x_40; +x_40 = !lean_is_exclusive(x_25); +if (x_40 == 0) +{ +return x_25; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_25, 0); +x_42 = lean_ctor_get(x_25, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_25); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +} +} +} +else +{ +uint8_t x_44; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_9); +if (x_44 == 0) +{ +return x_9; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_9, 0); +x_46 = lean_ctor_get(x_9, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_9); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_getPropHyps(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_1, 1); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); +x_8 = l_Lean_Meta_getNondepPropHyps___lambda__1___closed__1; +x_9 = l_Std_PersistentArray_forIn___at_Lean_Meta_getPropHyps___spec__1(x_7, x_8, x_1, x_2, x_3, x_4, x_5); +lean_dec(x_7); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_9); +if (x_14 == 0) +{ +return x_9; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_9, 0); +x_16 = lean_ctor_get(x_9, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_9); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__3(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_3); +lean_dec(x_1); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__4(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Std_PersistentArray_forInAux___at_Lean_Meta_getPropHyps___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___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) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Array_forInUnsafe_loop___at_Lean_Meta_getPropHyps___spec__5(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at_Lean_Meta_getPropHyps___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Std_PersistentArray_forIn___at_Lean_Meta_getPropHyps___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Util_ForEachExpr(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); diff --git a/stage0/stdlib/Lean/Meta/Transform.c b/stage0/stdlib/Lean/Meta/Transform.c index 0123fb90c9..5d290e68b2 100644 --- a/stage0/stdlib/Lean/Meta/Transform.c +++ b/stage0/stdlib/Lean/Meta/Transform.c @@ -657,7 +657,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(1034u); +x_3 = lean_unsigned_to_nat(1047u); 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); @@ -763,7 +763,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(1020u); +x_3 = lean_unsigned_to_nat(1033u); 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); @@ -869,7 +869,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(1043u); +x_3 = lean_unsigned_to_nat(1056u); 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); @@ -1006,7 +1006,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(1001u); +x_3 = lean_unsigned_to_nat(1014u); 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); @@ -1079,7 +1079,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(1006u); +x_3 = lean_unsigned_to_nat(1019u); 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); @@ -5020,29 +5020,28 @@ return x_10; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___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; uint8_t 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; +uint8_t 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 = 0; -x_13 = 1; +x_13 = lean_box(x_12); x_14 = lean_box(x_12); -x_15 = lean_box(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambdaFVars___boxed), 9, 4); -lean_closure_set(x_16, 0, x_1); -lean_closure_set(x_16, 1, x_11); -lean_closure_set(x_16, 2, x_14); -lean_closure_set(x_16, 3, x_15); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambdaFVars___boxed), 9, 4); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_11); +lean_closure_set(x_15, 2, x_13); +lean_closure_set(x_15, 3, x_14); lean_inc(x_2); -x_17 = lean_apply_2(x_2, lean_box(0), x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__1), 9, 8); -lean_closure_set(x_18, 0, x_3); -lean_closure_set(x_18, 1, x_2); -lean_closure_set(x_18, 2, x_4); -lean_closure_set(x_18, 3, x_5); -lean_closure_set(x_18, 4, x_6); -lean_closure_set(x_18, 5, x_7); -lean_closure_set(x_18, 6, x_8); -lean_closure_set(x_18, 7, x_9); -x_19 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_17, x_18); -return x_19; +x_16 = lean_apply_2(x_2, lean_box(0), x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__1), 9, 8); +lean_closure_set(x_17, 0, x_3); +lean_closure_set(x_17, 1, x_2); +lean_closure_set(x_17, 2, x_4); +lean_closure_set(x_17, 3, x_5); +lean_closure_set(x_17, 4, x_6); +lean_closure_set(x_17, 5, x_7); +lean_closure_set(x_17, 6, x_8); +lean_closure_set(x_17, 7, x_9); +x_18 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_16, x_17); +return x_18; } } LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLambda___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) { @@ -5196,29 +5195,28 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -uint8_t x_12; uint8_t 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; +uint8_t 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 = 0; -x_13 = 1; +x_13 = lean_box(x_12); x_14 = lean_box(x_12); -x_15 = lean_box(x_13); -x_16 = lean_alloc_closure((void*)(l_Lean_Meta_mkForallFVars___boxed), 9, 4); -lean_closure_set(x_16, 0, x_1); -lean_closure_set(x_16, 1, x_11); -lean_closure_set(x_16, 2, x_14); -lean_closure_set(x_16, 3, x_15); +x_15 = lean_alloc_closure((void*)(l_Lean_Meta_mkForallFVars___boxed), 9, 4); +lean_closure_set(x_15, 0, x_1); +lean_closure_set(x_15, 1, x_11); +lean_closure_set(x_15, 2, x_13); +lean_closure_set(x_15, 3, x_14); lean_inc(x_2); -x_17 = lean_apply_2(x_2, lean_box(0), x_16); -x_18 = lean_alloc_closure((void*)(l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__1), 9, 8); -lean_closure_set(x_18, 0, x_3); -lean_closure_set(x_18, 1, x_2); -lean_closure_set(x_18, 2, x_4); -lean_closure_set(x_18, 3, x_5); -lean_closure_set(x_18, 4, x_6); -lean_closure_set(x_18, 5, x_7); -lean_closure_set(x_18, 6, x_8); -lean_closure_set(x_18, 7, x_9); -x_19 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_17, x_18); -return x_19; +x_16 = lean_apply_2(x_2, lean_box(0), x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_Meta_transform_visit_visitLambda___rarg___lambda__1), 9, 8); +lean_closure_set(x_17, 0, x_3); +lean_closure_set(x_17, 1, x_2); +lean_closure_set(x_17, 2, x_4); +lean_closure_set(x_17, 3, x_5); +lean_closure_set(x_17, 4, x_6); +lean_closure_set(x_17, 5, x_7); +lean_closure_set(x_17, 6, x_8); +lean_closure_set(x_17, 7, x_9); +x_18 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_16, x_17); +return x_18; } } LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitForall___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) { @@ -5384,7 +5382,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_transform_visit_visitLet___rarg___lambda__1 _start: { uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_12 = 1; +x_12 = 0; x_13 = lean_box(x_12); x_14 = lean_alloc_closure((void*)(l_Lean_Meta_mkLetFVars___boxed), 8, 3); lean_closure_set(x_14, 0, x_1); diff --git a/stage0/stdlib/Lean/Meta/WHNF.c b/stage0/stdlib/Lean/Meta/WHNF.c index 0ba5a1fef8..674c688a2d 100644 --- a/stage0/stdlib/Lean/Meta/WHNF.c +++ b/stage0/stdlib/Lean/Meta/WHNF.c @@ -350,7 +350,7 @@ uint8_t l_Lean_Expr_hasMVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_mkNullaryCtor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_reduceRec(lean_object*); -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); static lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_canUnfoldAtMatcher___closed__34; LEAN_EXPORT lean_object* l_Lean_getProjectionFnInfo_x3f___at_Lean_Meta_unfoldProjInst_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_WHNF_0__Lean_Meta_deltaDefinition___at_Lean_Meta_unfoldDefinition_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5548,13 +5548,13 @@ return x_12; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; +lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_dec(x_4); x_13 = lean_instantiate_value_lparams(x_1, x_2); -x_14 = l_Lean_Expr_betaRev(x_13, x_3); -lean_dec(x_13); -x_15 = lean_apply_1(x_5, x_14); -return x_15; +x_14 = 0; +x_15 = l_Lean_Expr_betaRev(x_13, x_3, x_14); +x_16 = lean_apply_1(x_5, x_15); +return x_16; } } } @@ -9659,16 +9659,16 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_1); x_16 = lean_instantiate_value_lparams(x_2, x_3); lean_dec(x_3); lean_dec(x_2); -x_17 = l_Lean_Expr_betaRev(x_16, x_4); +x_17 = 0; +x_18 = l_Lean_Expr_betaRev(x_16, x_4, x_17); lean_dec(x_4); -lean_dec(x_16); -x_18 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_17, x_5, x_6, x_7, x_8, x_9); -return x_18; +x_19 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_18, x_5, x_6, x_7, x_8, x_9); +return x_19; } } } @@ -12625,154 +12625,154 @@ return x_91; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_dec(x_10); x_97 = lean_unsigned_to_nat(0u); x_98 = l_Lean_Expr_getAppNumArgsAux(x_1, x_97); x_99 = lean_mk_empty_array_with_capacity(x_98); lean_dec(x_98); x_100 = l___private_Lean_Expr_0__Lean_Expr_getAppRevArgsAux(x_1, x_99); -x_101 = l_Lean_Expr_betaRev(x_12, x_100); +x_101 = 0; +x_102 = l_Lean_Expr_betaRev(x_12, x_100, x_101); lean_dec(x_100); -lean_dec(x_12); -x_102 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_101, x_3, x_4, x_5, x_6, x_13); -return x_102; +x_103 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_102, x_3, x_4, x_5, x_6, x_13); +return x_103; } } else { -uint8_t x_103; +uint8_t x_104; lean_dec(x_10); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_103 = !lean_is_exclusive(x_11); -if (x_103 == 0) +x_104 = !lean_is_exclusive(x_11); +if (x_104 == 0) { return x_11; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_11, 0); -x_105 = lean_ctor_get(x_11, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_105 = lean_ctor_get(x_11, 0); +x_106 = lean_ctor_get(x_11, 1); +lean_inc(x_106); lean_inc(x_105); -lean_inc(x_104); lean_dec(x_11); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +return x_107; } } } case 8: { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_107 = lean_ctor_get(x_1, 2); -lean_inc(x_107); -x_108 = lean_ctor_get(x_1, 3); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_108 = lean_ctor_get(x_1, 2); lean_inc(x_108); +x_109 = lean_ctor_get(x_1, 3); +lean_inc(x_109); lean_dec(x_1); -x_109 = lean_expr_instantiate1(x_108, x_107); -lean_dec(x_107); +x_110 = lean_expr_instantiate1(x_109, x_108); lean_dec(x_108); -x_110 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_109, x_3, x_4, x_5, x_6, x_7); -return x_110; +lean_dec(x_109); +x_111 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_110, x_3, x_4, x_5, x_6, x_7); +return x_111; } case 11: { -lean_object* x_111; +lean_object* x_112; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_111 = l_Lean_Meta_reduceProj_x3f(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_111) == 0) -{ -lean_object* x_112; -x_112 = lean_ctor_get(x_111, 0); -lean_inc(x_112); +x_112 = l_Lean_Meta_reduceProj_x3f(x_1, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_112) == 0) { -uint8_t x_113; +lean_object* x_113; +x_113 = lean_ctor_get(x_112, 0); +lean_inc(x_113); +if (lean_obj_tag(x_113) == 0) +{ +uint8_t x_114; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_113 = !lean_is_exclusive(x_111); -if (x_113 == 0) +x_114 = !lean_is_exclusive(x_112); +if (x_114 == 0) { -lean_object* x_114; -x_114 = lean_ctor_get(x_111, 0); -lean_dec(x_114); -lean_ctor_set(x_111, 0, x_1); -return x_111; +lean_object* x_115; +x_115 = lean_ctor_get(x_112, 0); +lean_dec(x_115); +lean_ctor_set(x_112, 0, x_1); +return x_112; } else { -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_111, 1); -lean_inc(x_115); -lean_dec(x_111); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_1); -lean_ctor_set(x_116, 1, x_115); -return x_116; +lean_object* x_116; lean_object* x_117; +x_116 = lean_ctor_get(x_112, 1); +lean_inc(x_116); +lean_dec(x_112); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_1); +lean_ctor_set(x_117, 1, x_116); +return x_117; } } else { -lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_dec(x_1); -x_117 = lean_ctor_get(x_111, 1); -lean_inc(x_117); -lean_dec(x_111); -x_118 = lean_ctor_get(x_112, 0); +x_118 = lean_ctor_get(x_112, 1); lean_inc(x_118); lean_dec(x_112); -x_119 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_118, x_3, x_4, x_5, x_6, x_117); -return x_119; +x_119 = lean_ctor_get(x_113, 0); +lean_inc(x_119); +lean_dec(x_113); +x_120 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3(x_119, x_3, x_4, x_5, x_6, x_118); +return x_120; } } else { -uint8_t x_120; +uint8_t x_121; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_120 = !lean_is_exclusive(x_111); -if (x_120 == 0) +x_121 = !lean_is_exclusive(x_112); +if (x_121 == 0) { -return x_111; +return x_112; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_111, 0); -x_122 = lean_ctor_get(x_111, 1); +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_112, 0); +x_123 = lean_ctor_get(x_112, 1); +lean_inc(x_123); lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_111); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; +lean_dec(x_112); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; } } } default: { -lean_object* x_124; lean_object* x_125; +lean_object* x_125; lean_object* x_126; lean_dec(x_1); -x_124 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3___lambda__3___closed__2; -x_125 = l_panic___at_Lean_Meta_whnfCore___spec__1(x_124, x_3, x_4, x_5, x_6, x_7); -return x_125; +x_125 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore___spec__3___lambda__3___closed__2; +x_126 = l_panic___at_Lean_Meta_whnfCore___spec__1(x_125, x_3, x_4, x_5, x_6, x_7); +return x_126; } } } @@ -16306,16 +16306,16 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_16 = lean_instantiate_value_lparams(x_1, x_2); -x_17 = l_Lean_Expr_betaRev(x_16, x_3); -lean_dec(x_16); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_17); -x_19 = lean_alloc_ctor(0, 2, 0); +x_17 = 0; +x_18 = l_Lean_Expr_betaRev(x_16, x_3, x_17); +x_19 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_8); -return x_19; +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_8); +return x_20; } } } @@ -16346,12 +16346,12 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; x_16 = lean_instantiate_value_lparams(x_1, x_2); -x_17 = l_Lean_Expr_betaRev(x_16, x_3); -lean_dec(x_16); -x_18 = l_Lean_Meta_smartUnfoldingReduce_x3f_go(x_17, x_4, x_5, x_6, x_7, x_8); -return x_18; +x_17 = 0; +x_18 = l_Lean_Expr_betaRev(x_16, x_3, x_17); +x_19 = l_Lean_Meta_smartUnfoldingReduce_x3f_go(x_18, x_4, x_5, x_6, x_7, x_8); +return x_19; } } } diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index c264ec013f..d4107e5489 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -832,7 +832,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarConte LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_MetavarContext_exprDependsOn___spec__11___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_localDeclDependsOn___spec__35___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*); +lean_object* l_Lean_Expr_betaRev(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_MetavarContext_hasAssignableLevelMVar(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__14(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateExprMVars___spec__34___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -14400,14 +14400,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14451,14 +14451,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14502,14 +14502,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14700,14 +14700,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14751,14 +14751,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14802,14 +14802,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14853,14 +14853,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14904,14 +14904,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -14955,14 +14955,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -15006,14 +15006,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -15057,14 +15057,14 @@ return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_dec(x_8); x_23 = l_Array_reverse___rarg(x_2); -x_24 = l_Lean_Expr_betaRev(x_9, x_23); +x_24 = 0; +x_25 = l_Lean_Expr_betaRev(x_9, x_23, x_24); lean_dec(x_23); -lean_dec(x_9); -x_25 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_24, x_7); -return x_25; +x_26 = l_Lean_MetavarContext_instantiateExprMVars___rarg(x_3, x_4, x_5, x_6, x_25, x_7); +return x_26; } } } @@ -15609,7 +15609,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(984u); +x_3 = lean_unsigned_to_nat(997u); 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); @@ -15691,7 +15691,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(975u); +x_3 = lean_unsigned_to_nat(988u); 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); @@ -15776,7 +15776,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(1034u); +x_3 = lean_unsigned_to_nat(1047u); 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); @@ -15882,7 +15882,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(1020u); +x_3 = lean_unsigned_to_nat(1033u); 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); @@ -15988,7 +15988,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(1043u); +x_3 = lean_unsigned_to_nat(1056u); 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); @@ -16121,7 +16121,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(1001u); +x_3 = lean_unsigned_to_nat(1014u); 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); @@ -16206,7 +16206,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(1006u); +x_3 = lean_unsigned_to_nat(1019u); 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); @@ -21741,1617 +21741,1579 @@ return x_44; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_1); x_45 = l_Array_reverse___rarg(x_3); -x_46 = l_Lean_Expr_betaRev(x_27, x_45); +x_46 = 0; +x_47 = l_Lean_Expr_betaRev(x_27, x_45, x_46); lean_dec(x_45); -lean_dec(x_27); -x_47 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_46, x_5, x_6, x_28); -return x_47; +x_48 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_47, x_5, x_6, x_28); +return x_48; } } } else { -uint8_t x_48; +uint8_t x_49; lean_dec(x_3); lean_dec(x_1); -x_48 = !lean_is_exclusive(x_9); -if (x_48 == 0) +x_49 = !lean_is_exclusive(x_9); +if (x_49 == 0) { return x_9; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_9, 0); -x_50 = lean_ctor_get(x_9, 1); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_9, 0); +x_51 = lean_ctor_get(x_9, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); lean_dec(x_9); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; } } } case 1: { -uint8_t x_52; lean_object* x_53; +uint8_t x_53; lean_object* x_54; lean_dec(x_4); -x_52 = l_Lean_Expr_isMVar(x_2); -x_53 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_53) == 0) +x_53 = l_Lean_Expr_isMVar(x_2); +x_54 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_54) == 0) { -if (x_52 == 0) +if (x_53 == 0) { -lean_object* x_54; lean_object* x_55; lean_object* x_56; size_t x_57; size_t x_58; lean_object* x_59; -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); +lean_object* x_55; lean_object* x_56; lean_object* x_57; size_t x_58; size_t x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_54, 0); lean_inc(x_55); -lean_dec(x_53); -x_56 = lean_array_get_size(x_3); -x_57 = lean_usize_of_nat(x_56); -lean_dec(x_56); -x_58 = 0; -x_59 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__8___rarg(x_1, x_57, x_58, x_3, x_5, x_6, x_55); -lean_dec(x_1); -if (lean_obj_tag(x_59) == 0) -{ -uint8_t x_60; -x_60 = !lean_is_exclusive(x_59); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; -x_61 = lean_ctor_get(x_59, 0); -x_62 = l_Lean_mkAppN(x_54, x_61); -lean_ctor_set(x_59, 0, x_62); -return x_59; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_59, 0); -x_64 = lean_ctor_get(x_59, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_59); -x_65 = l_Lean_mkAppN(x_54, x_63); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -return x_66; -} -} -else -{ -uint8_t x_67; +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); lean_dec(x_54); -x_67 = !lean_is_exclusive(x_59); -if (x_67 == 0) +x_57 = lean_array_get_size(x_3); +x_58 = lean_usize_of_nat(x_57); +lean_dec(x_57); +x_59 = 0; +x_60 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__8___rarg(x_1, x_58, x_59, x_3, x_5, x_6, x_56); +lean_dec(x_1); +if (lean_obj_tag(x_60) == 0) { -return x_59; +uint8_t x_61; +x_61 = !lean_is_exclusive(x_60); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; +x_62 = lean_ctor_get(x_60, 0); +x_63 = l_Lean_mkAppN(x_55, x_62); +lean_ctor_set(x_60, 0, x_63); +return x_60; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_59, 0); -x_69 = lean_ctor_get(x_59, 1); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_60, 0); +x_65 = lean_ctor_get(x_60, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_60); +x_66 = l_Lean_mkAppN(x_55, x_64); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_65); +return x_67; +} +} +else +{ +uint8_t x_68; +lean_dec(x_55); +x_68 = !lean_is_exclusive(x_60); +if (x_68 == 0) +{ +return x_60; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_60, 0); +x_70 = lean_ctor_get(x_60, 1); +lean_inc(x_70); lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_59); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; +lean_dec(x_60); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } } else { -lean_object* x_71; lean_object* x_72; uint8_t x_73; -x_71 = lean_ctor_get(x_53, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_53, 1); +lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_72 = lean_ctor_get(x_54, 0); lean_inc(x_72); -lean_dec(x_53); -x_73 = l_Lean_Expr_isLambda(x_71); -if (x_73 == 0) +x_73 = lean_ctor_get(x_54, 1); +lean_inc(x_73); +lean_dec(x_54); +x_74 = l_Lean_Expr_isLambda(x_72); +if (x_74 == 0) { -lean_object* x_74; size_t x_75; size_t x_76; lean_object* x_77; -x_74 = lean_array_get_size(x_3); -x_75 = lean_usize_of_nat(x_74); -lean_dec(x_74); -x_76 = 0; -x_77 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__9___rarg(x_1, x_75, x_76, x_3, x_5, x_6, x_72); +lean_object* x_75; size_t x_76; size_t x_77; lean_object* x_78; +x_75 = lean_array_get_size(x_3); +x_76 = lean_usize_of_nat(x_75); +lean_dec(x_75); +x_77 = 0; +x_78 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__9___rarg(x_1, x_76, x_77, x_3, x_5, x_6, x_73); lean_dec(x_1); -if (lean_obj_tag(x_77) == 0) +if (lean_obj_tag(x_78) == 0) { -uint8_t x_78; -x_78 = !lean_is_exclusive(x_77); -if (x_78 == 0) +uint8_t x_79; +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) { -lean_object* x_79; lean_object* x_80; -x_79 = lean_ctor_get(x_77, 0); -x_80 = l_Lean_mkAppN(x_71, x_79); -lean_ctor_set(x_77, 0, x_80); -return x_77; +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_78, 0); +x_81 = l_Lean_mkAppN(x_72, x_80); +lean_ctor_set(x_78, 0, x_81); +return x_78; } else { -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_81 = lean_ctor_get(x_77, 0); -x_82 = lean_ctor_get(x_77, 1); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_82 = lean_ctor_get(x_78, 0); +x_83 = lean_ctor_get(x_78, 1); +lean_inc(x_83); lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_77); -x_83 = l_Lean_mkAppN(x_71, x_81); -x_84 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_82); -return x_84; +lean_dec(x_78); +x_84 = l_Lean_mkAppN(x_72, x_82); +x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; } } else { -uint8_t x_85; -lean_dec(x_71); -x_85 = !lean_is_exclusive(x_77); -if (x_85 == 0) +uint8_t x_86; +lean_dec(x_72); +x_86 = !lean_is_exclusive(x_78); +if (x_86 == 0) { -return x_77; +return x_78; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_77, 0); -x_87 = lean_ctor_get(x_77, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_78, 0); +x_88 = lean_ctor_get(x_78, 1); +lean_inc(x_88); lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_77); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_dec(x_78); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; } } } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_dec(x_1); -x_89 = l_Array_reverse___rarg(x_3); -x_90 = l_Lean_Expr_betaRev(x_71, x_89); -lean_dec(x_89); -lean_dec(x_71); -x_91 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_90, x_5, x_6, x_72); -return x_91; +x_90 = l_Array_reverse___rarg(x_3); +x_91 = 0; +x_92 = l_Lean_Expr_betaRev(x_72, x_90, x_91); +lean_dec(x_90); +x_93 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_92, x_5, x_6, x_73); +return x_93; } } } else { -uint8_t x_92; +uint8_t x_94; lean_dec(x_3); lean_dec(x_1); -x_92 = !lean_is_exclusive(x_53); -if (x_92 == 0) +x_94 = !lean_is_exclusive(x_54); +if (x_94 == 0) { -return x_53; +return x_54; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_53, 0); -x_94 = lean_ctor_get(x_53, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_53); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_54, 0); +x_96 = lean_ctor_get(x_54, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_54); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; } } } case 2: { -lean_object* x_96; uint8_t x_97; lean_object* x_98; +lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_dec(x_4); -x_96 = lean_ctor_get(x_2, 0); -lean_inc(x_96); -x_97 = l_Lean_Expr_isMVar(x_2); -x_98 = lean_st_ref_get(x_6, x_7); -if (lean_obj_tag(x_98) == 0) +x_98 = lean_ctor_get(x_2, 0); +lean_inc(x_98); +x_99 = l_Lean_Expr_isMVar(x_2); +x_100 = lean_st_ref_get(x_6, x_7); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_101 = l_Lean_MetavarContext_getDelayedAssignment_x3f(x_99, x_96); -if (lean_obj_tag(x_101) == 0) +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_103 = l_Lean_MetavarContext_getDelayedAssignment_x3f(x_101, x_98); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_102; -x_102 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_100); -if (lean_obj_tag(x_102) == 0) +lean_object* x_104; +x_104 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_102); +if (lean_obj_tag(x_104) == 0) { -if (x_97 == 0) +if (x_99 == 0) { -lean_object* x_103; lean_object* x_104; lean_object* x_105; size_t x_106; size_t x_107; lean_object* x_108; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -lean_dec(x_102); -x_105 = lean_array_get_size(x_3); -x_106 = lean_usize_of_nat(x_105); +lean_object* x_105; lean_object* x_106; lean_object* x_107; size_t x_108; size_t x_109; lean_object* x_110; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = lean_array_get_size(x_3); +x_108 = lean_usize_of_nat(x_107); +lean_dec(x_107); +x_109 = 0; +x_110 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__10___rarg(x_1, x_108, x_109, x_3, x_5, x_6, x_106); +lean_dec(x_1); +if (lean_obj_tag(x_110) == 0) +{ +uint8_t x_111; +x_111 = !lean_is_exclusive(x_110); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_110, 0); +x_113 = l_Lean_mkAppN(x_105, x_112); +lean_ctor_set(x_110, 0, x_113); +return x_110; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_110, 0); +x_115 = lean_ctor_get(x_110, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_110); +x_116 = l_Lean_mkAppN(x_105, x_114); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} +else +{ +uint8_t x_118; lean_dec(x_105); -x_107 = 0; -x_108 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__10___rarg(x_1, x_106, x_107, x_3, x_5, x_6, x_104); -lean_dec(x_1); -if (lean_obj_tag(x_108) == 0) +x_118 = !lean_is_exclusive(x_110); +if (x_118 == 0) { -uint8_t x_109; -x_109 = !lean_is_exclusive(x_108); -if (x_109 == 0) -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_108, 0); -x_111 = l_Lean_mkAppN(x_103, x_110); -lean_ctor_set(x_108, 0, x_111); -return x_108; +return x_110; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_108, 0); -x_113 = lean_ctor_get(x_108, 1); -lean_inc(x_113); -lean_inc(x_112); -lean_dec(x_108); -x_114 = l_Lean_mkAppN(x_103, x_112); -x_115 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_113); -return x_115; -} -} -else -{ -uint8_t x_116; -lean_dec(x_103); -x_116 = !lean_is_exclusive(x_108); -if (x_116 == 0) -{ -return x_108; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_108, 0); -x_118 = lean_ctor_get(x_108, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_108); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_117); -lean_ctor_set(x_119, 1, x_118); -return x_119; -} -} -} -else -{ -lean_object* x_120; lean_object* x_121; uint8_t x_122; -x_120 = lean_ctor_get(x_102, 0); +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_110, 0); +x_120 = lean_ctor_get(x_110, 1); lean_inc(x_120); -x_121 = lean_ctor_get(x_102, 1); -lean_inc(x_121); -lean_dec(x_102); -x_122 = l_Lean_Expr_isLambda(x_120); -if (x_122 == 0) +lean_inc(x_119); +lean_dec(x_110); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; +} +} +} +else { -lean_object* x_123; size_t x_124; size_t x_125; lean_object* x_126; -x_123 = lean_array_get_size(x_3); -x_124 = lean_usize_of_nat(x_123); -lean_dec(x_123); -x_125 = 0; -x_126 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__11___rarg(x_1, x_124, x_125, x_3, x_5, x_6, x_121); +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = lean_ctor_get(x_104, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_104, 1); +lean_inc(x_123); +lean_dec(x_104); +x_124 = l_Lean_Expr_isLambda(x_122); +if (x_124 == 0) +{ +lean_object* x_125; size_t x_126; size_t x_127; lean_object* x_128; +x_125 = lean_array_get_size(x_3); +x_126 = lean_usize_of_nat(x_125); +lean_dec(x_125); +x_127 = 0; +x_128 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__11___rarg(x_1, x_126, x_127, x_3, x_5, x_6, x_123); lean_dec(x_1); -if (lean_obj_tag(x_126) == 0) +if (lean_obj_tag(x_128) == 0) { -uint8_t x_127; -x_127 = !lean_is_exclusive(x_126); -if (x_127 == 0) +uint8_t x_129; +x_129 = !lean_is_exclusive(x_128); +if (x_129 == 0) { -lean_object* x_128; lean_object* x_129; -x_128 = lean_ctor_get(x_126, 0); -x_129 = l_Lean_mkAppN(x_120, x_128); -lean_ctor_set(x_126, 0, x_129); -return x_126; +lean_object* x_130; lean_object* x_131; +x_130 = lean_ctor_get(x_128, 0); +x_131 = l_Lean_mkAppN(x_122, x_130); +lean_ctor_set(x_128, 0, x_131); +return x_128; } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_130 = lean_ctor_get(x_126, 0); -x_131 = lean_ctor_get(x_126, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_126); -x_132 = l_Lean_mkAppN(x_120, x_130); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_131); -return x_133; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_132 = lean_ctor_get(x_128, 0); +x_133 = lean_ctor_get(x_128, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_128); +x_134 = l_Lean_mkAppN(x_122, x_132); +x_135 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_133); +return x_135; } } else { -uint8_t x_134; -lean_dec(x_120); -x_134 = !lean_is_exclusive(x_126); -if (x_134 == 0) +uint8_t x_136; +lean_dec(x_122); +x_136 = !lean_is_exclusive(x_128); +if (x_136 == 0) { -return x_126; +return x_128; } else { -lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_135 = lean_ctor_get(x_126, 0); -x_136 = lean_ctor_get(x_126, 1); -lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_126); -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; +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_128, 0); +x_138 = lean_ctor_get(x_128, 1); +lean_inc(x_138); +lean_inc(x_137); +lean_dec(x_128); +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 { -lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_dec(x_1); -x_138 = l_Array_reverse___rarg(x_3); -x_139 = l_Lean_Expr_betaRev(x_120, x_138); -lean_dec(x_138); -lean_dec(x_120); -x_140 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_139, x_5, x_6, x_121); -return x_140; +x_140 = l_Array_reverse___rarg(x_3); +x_141 = 0; +x_142 = l_Lean_Expr_betaRev(x_122, x_140, x_141); +lean_dec(x_140); +x_143 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_142, x_5, x_6, x_123); +return x_143; } } } else { -uint8_t x_141; +uint8_t x_144; lean_dec(x_3); lean_dec(x_1); -x_141 = !lean_is_exclusive(x_102); -if (x_141 == 0) +x_144 = !lean_is_exclusive(x_104); +if (x_144 == 0) { -return x_102; +return x_104; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_102, 0); -x_143 = lean_ctor_get(x_102, 1); -lean_inc(x_143); -lean_inc(x_142); -lean_dec(x_102); -x_144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -return x_144; -} -} -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; -x_145 = lean_ctor_get(x_101, 0); -lean_inc(x_145); -lean_dec(x_101); -x_146 = lean_ctor_get(x_145, 1); +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_104, 0); +x_146 = lean_ctor_get(x_104, 1); lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 2); -lean_inc(x_147); -lean_dec(x_145); -x_148 = lean_array_get_size(x_3); -x_149 = lean_array_get_size(x_146); -x_150 = lean_nat_dec_lt(x_148, x_149); -if (x_150 == 0) +lean_inc(x_145); +lean_dec(x_104); +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +return x_147; +} +} +} +else { -lean_object* x_151; -x_151 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_147, x_5, x_6, x_100); -if (lean_obj_tag(x_151) == 0) -{ -lean_object* x_152; lean_object* x_153; uint8_t x_154; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec(x_151); -x_154 = l_Lean_Expr_hasExprMVar(x_152); -if (x_154 == 0) -{ -size_t x_155; size_t x_156; lean_object* x_157; -lean_dec(x_2); -x_155 = lean_usize_of_nat(x_148); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; uint8_t x_153; +x_148 = lean_ctor_get(x_103, 0); +lean_inc(x_148); +lean_dec(x_103); +x_149 = lean_ctor_get(x_148, 1); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 2); +lean_inc(x_150); lean_dec(x_148); -x_156 = 0; -x_157 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__12___rarg(x_1, x_155, x_156, x_3, x_5, x_6, x_153); +x_151 = lean_array_get_size(x_3); +x_152 = lean_array_get_size(x_149); +x_153 = lean_nat_dec_lt(x_151, x_152); +if (x_153 == 0) +{ +lean_object* x_154; +x_154 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_150, x_5, x_6, x_102); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; lean_object* x_156; uint8_t x_157; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_157 = l_Lean_Expr_hasExprMVar(x_155); +if (x_157 == 0) +{ +size_t x_158; size_t x_159; lean_object* x_160; +lean_dec(x_2); +x_158 = lean_usize_of_nat(x_151); +lean_dec(x_151); +x_159 = 0; +x_160 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__12___rarg(x_1, x_158, x_159, x_3, x_5, x_6, x_156); lean_dec(x_1); -if (lean_obj_tag(x_157) == 0) +if (lean_obj_tag(x_160) == 0) { -uint8_t x_158; -x_158 = !lean_is_exclusive(x_157); -if (x_158 == 0) +uint8_t x_161; +x_161 = !lean_is_exclusive(x_160); +if (x_161 == 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; -x_159 = lean_ctor_get(x_157, 0); -x_160 = lean_expr_abstract(x_152, x_146); -lean_dec(x_146); -lean_dec(x_152); -x_161 = lean_unsigned_to_nat(0u); -x_162 = lean_expr_instantiate_rev_range(x_160, x_161, x_149, x_159); -lean_dec(x_160); -x_163 = lean_array_get_size(x_159); -x_164 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_163, x_159, x_149, x_162); -lean_dec(x_159); +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_162 = lean_ctor_get(x_160, 0); +x_163 = lean_expr_abstract(x_155, x_149); +lean_dec(x_149); +lean_dec(x_155); +x_164 = lean_unsigned_to_nat(0u); +x_165 = lean_expr_instantiate_rev_range(x_163, x_164, x_152, x_162); lean_dec(x_163); -lean_ctor_set(x_157, 0, x_164); -return x_157; +x_166 = lean_array_get_size(x_162); +x_167 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_166, x_162, x_152, x_165); +lean_dec(x_162); +lean_dec(x_166); +lean_ctor_set(x_160, 0, x_167); +return x_160; } else { -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; -x_165 = lean_ctor_get(x_157, 0); -x_166 = lean_ctor_get(x_157, 1); -lean_inc(x_166); -lean_inc(x_165); -lean_dec(x_157); -x_167 = lean_expr_abstract(x_152, x_146); -lean_dec(x_146); -lean_dec(x_152); -x_168 = lean_unsigned_to_nat(0u); -x_169 = lean_expr_instantiate_rev_range(x_167, x_168, x_149, x_165); -lean_dec(x_167); -x_170 = lean_array_get_size(x_165); -x_171 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_170, x_165, x_149, x_169); -lean_dec(x_165); +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; +x_168 = lean_ctor_get(x_160, 0); +x_169 = lean_ctor_get(x_160, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_160); +x_170 = lean_expr_abstract(x_155, x_149); +lean_dec(x_149); +lean_dec(x_155); +x_171 = lean_unsigned_to_nat(0u); +x_172 = lean_expr_instantiate_rev_range(x_170, x_171, x_152, x_168); lean_dec(x_170); -x_172 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_166); -return x_172; +x_173 = lean_array_get_size(x_168); +x_174 = l___private_Lean_Expr_0__Lean_mkAppRangeAux(x_173, x_168, x_152, x_172); +lean_dec(x_168); +lean_dec(x_173); +x_175 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_175, 0, x_174); +lean_ctor_set(x_175, 1, x_169); +return x_175; } } else { -uint8_t x_173; +uint8_t x_176; +lean_dec(x_155); lean_dec(x_152); lean_dec(x_149); -lean_dec(x_146); -x_173 = !lean_is_exclusive(x_157); -if (x_173 == 0) +x_176 = !lean_is_exclusive(x_160); +if (x_176 == 0) { -return x_157; +return x_160; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_157, 0); -x_175 = lean_ctor_get(x_157, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_157); -x_176 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -return x_176; +lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_177 = lean_ctor_get(x_160, 0); +x_178 = lean_ctor_get(x_160, 1); +lean_inc(x_178); +lean_inc(x_177); +lean_dec(x_160); +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 { -size_t x_177; size_t x_178; lean_object* x_179; +size_t x_180; size_t x_181; lean_object* x_182; +lean_dec(x_155); lean_dec(x_152); lean_dec(x_149); -lean_dec(x_146); -x_177 = lean_usize_of_nat(x_148); -lean_dec(x_148); -x_178 = 0; -x_179 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__13___rarg(x_1, x_177, x_178, x_3, x_5, x_6, x_153); -lean_dec(x_1); -if (lean_obj_tag(x_179) == 0) -{ -uint8_t x_180; -x_180 = !lean_is_exclusive(x_179); -if (x_180 == 0) -{ -lean_object* x_181; lean_object* x_182; -x_181 = lean_ctor_get(x_179, 0); -x_182 = l_Lean_mkAppN(x_2, x_181); -lean_ctor_set(x_179, 0, x_182); -return x_179; -} -else -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_183 = lean_ctor_get(x_179, 0); -x_184 = lean_ctor_get(x_179, 1); -lean_inc(x_184); -lean_inc(x_183); -lean_dec(x_179); -x_185 = l_Lean_mkAppN(x_2, x_183); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_184); -return x_186; -} -} -else -{ -uint8_t x_187; -lean_dec(x_2); -x_187 = !lean_is_exclusive(x_179); -if (x_187 == 0) -{ -return x_179; -} -else -{ -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_179, 0); -x_189 = lean_ctor_get(x_179, 1); -lean_inc(x_189); -lean_inc(x_188); -lean_dec(x_179); -x_190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_190, 0, x_188); -lean_ctor_set(x_190, 1, x_189); -return x_190; -} -} -} -} -else -{ -uint8_t x_191; -lean_dec(x_149); -lean_dec(x_148); -lean_dec(x_146); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_191 = !lean_is_exclusive(x_151); -if (x_191 == 0) -{ -return x_151; -} -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_192 = lean_ctor_get(x_151, 0); -x_193 = lean_ctor_get(x_151, 1); -lean_inc(x_193); -lean_inc(x_192); +x_180 = lean_usize_of_nat(x_151); lean_dec(x_151); -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_193); -return x_194; -} -} -} -else -{ -size_t x_195; size_t x_196; lean_object* x_197; -lean_dec(x_149); -lean_dec(x_147); -lean_dec(x_146); -x_195 = lean_usize_of_nat(x_148); -lean_dec(x_148); -x_196 = 0; -x_197 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__14___rarg(x_1, x_195, x_196, x_3, x_5, x_6, x_100); +x_181 = 0; +x_182 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__13___rarg(x_1, x_180, x_181, x_3, x_5, x_6, x_156); lean_dec(x_1); -if (lean_obj_tag(x_197) == 0) +if (lean_obj_tag(x_182) == 0) { -uint8_t x_198; -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) +uint8_t x_183; +x_183 = !lean_is_exclusive(x_182); +if (x_183 == 0) { -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_197, 0); -x_200 = l_Lean_mkAppN(x_2, x_199); -lean_ctor_set(x_197, 0, x_200); -return x_197; +lean_object* x_184; lean_object* x_185; +x_184 = lean_ctor_get(x_182, 0); +x_185 = l_Lean_mkAppN(x_2, x_184); +lean_ctor_set(x_182, 0, x_185); +return x_182; } else { -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_201 = lean_ctor_get(x_197, 0); -x_202 = lean_ctor_get(x_197, 1); -lean_inc(x_202); -lean_inc(x_201); -lean_dec(x_197); -x_203 = l_Lean_mkAppN(x_2, x_201); -x_204 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -return x_204; +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_186 = lean_ctor_get(x_182, 0); +x_187 = lean_ctor_get(x_182, 1); +lean_inc(x_187); +lean_inc(x_186); +lean_dec(x_182); +x_188 = l_Lean_mkAppN(x_2, x_186); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +return x_189; } } else { -uint8_t x_205; +uint8_t x_190; lean_dec(x_2); -x_205 = !lean_is_exclusive(x_197); -if (x_205 == 0) +x_190 = !lean_is_exclusive(x_182); +if (x_190 == 0) { -return x_197; +return x_182; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_197, 0); -x_207 = lean_ctor_get(x_197, 1); -lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_197); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_206); -lean_ctor_set(x_208, 1, x_207); -return x_208; -} +lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_191 = lean_ctor_get(x_182, 0); +x_192 = lean_ctor_get(x_182, 1); +lean_inc(x_192); +lean_inc(x_191); +lean_dec(x_182); +x_193 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_193, 0, x_191); +lean_ctor_set(x_193, 1, x_192); +return x_193; } } } } else { -uint8_t x_209; -lean_dec(x_96); +uint8_t x_194; +lean_dec(x_152); +lean_dec(x_151); +lean_dec(x_149); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_209 = !lean_is_exclusive(x_98); -if (x_209 == 0) +x_194 = !lean_is_exclusive(x_154); +if (x_194 == 0) { -return x_98; +return x_154; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_98, 0); -x_211 = lean_ctor_get(x_98, 1); -lean_inc(x_211); +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_154, 0); +x_196 = lean_ctor_get(x_154, 1); +lean_inc(x_196); +lean_inc(x_195); +lean_dec(x_154); +x_197 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_197, 0, x_195); +lean_ctor_set(x_197, 1, x_196); +return x_197; +} +} +} +else +{ +size_t x_198; size_t x_199; lean_object* x_200; +lean_dec(x_152); +lean_dec(x_150); +lean_dec(x_149); +x_198 = lean_usize_of_nat(x_151); +lean_dec(x_151); +x_199 = 0; +x_200 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__14___rarg(x_1, x_198, x_199, x_3, x_5, x_6, x_102); +lean_dec(x_1); +if (lean_obj_tag(x_200) == 0) +{ +uint8_t x_201; +x_201 = !lean_is_exclusive(x_200); +if (x_201 == 0) +{ +lean_object* x_202; lean_object* x_203; +x_202 = lean_ctor_get(x_200, 0); +x_203 = l_Lean_mkAppN(x_2, x_202); +lean_ctor_set(x_200, 0, x_203); +return x_200; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_204 = lean_ctor_get(x_200, 0); +x_205 = lean_ctor_get(x_200, 1); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_200); +x_206 = l_Lean_mkAppN(x_2, x_204); +x_207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_205); +return x_207; +} +} +else +{ +uint8_t x_208; +lean_dec(x_2); +x_208 = !lean_is_exclusive(x_200); +if (x_208 == 0) +{ +return x_200; +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_209 = lean_ctor_get(x_200, 0); +x_210 = lean_ctor_get(x_200, 1); lean_inc(x_210); +lean_inc(x_209); +lean_dec(x_200); +x_211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_211, 0, x_209); +lean_ctor_set(x_211, 1, x_210); +return x_211; +} +} +} +} +} +else +{ +uint8_t x_212; lean_dec(x_98); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -return x_212; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_212 = !lean_is_exclusive(x_100); +if (x_212 == 0) +{ +return x_100; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_100, 0); +x_214 = lean_ctor_get(x_100, 1); +lean_inc(x_214); +lean_inc(x_213); +lean_dec(x_100); +x_215 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_215, 0, x_213); +lean_ctor_set(x_215, 1, x_214); +return x_215; } } } case 3: { -uint8_t x_213; lean_object* x_214; +uint8_t x_216; lean_object* x_217; lean_dec(x_4); -x_213 = l_Lean_Expr_isMVar(x_2); -x_214 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_214) == 0) +x_216 = l_Lean_Expr_isMVar(x_2); +x_217 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_217) == 0) { -if (x_213 == 0) +if (x_216 == 0) { -lean_object* x_215; lean_object* x_216; lean_object* x_217; size_t x_218; size_t x_219; lean_object* x_220; -x_215 = lean_ctor_get(x_214, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_214, 1); -lean_inc(x_216); -lean_dec(x_214); -x_217 = lean_array_get_size(x_3); -x_218 = lean_usize_of_nat(x_217); +lean_object* x_218; lean_object* x_219; lean_object* x_220; size_t x_221; size_t x_222; lean_object* x_223; +x_218 = lean_ctor_get(x_217, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); lean_dec(x_217); -x_219 = 0; -x_220 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__15___rarg(x_1, x_218, x_219, x_3, x_5, x_6, x_216); +x_220 = lean_array_get_size(x_3); +x_221 = lean_usize_of_nat(x_220); +lean_dec(x_220); +x_222 = 0; +x_223 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__15___rarg(x_1, x_221, x_222, x_3, x_5, x_6, x_219); lean_dec(x_1); -if (lean_obj_tag(x_220) == 0) +if (lean_obj_tag(x_223) == 0) { -uint8_t x_221; -x_221 = !lean_is_exclusive(x_220); -if (x_221 == 0) +uint8_t x_224; +x_224 = !lean_is_exclusive(x_223); +if (x_224 == 0) { -lean_object* x_222; lean_object* x_223; -x_222 = lean_ctor_get(x_220, 0); -x_223 = l_Lean_mkAppN(x_215, x_222); -lean_ctor_set(x_220, 0, x_223); -return x_220; +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_223, 0); +x_226 = l_Lean_mkAppN(x_218, x_225); +lean_ctor_set(x_223, 0, x_226); +return x_223; } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_224 = lean_ctor_get(x_220, 0); -x_225 = lean_ctor_get(x_220, 1); -lean_inc(x_225); -lean_inc(x_224); -lean_dec(x_220); -x_226 = l_Lean_mkAppN(x_215, x_224); -x_227 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_225); -return x_227; +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_227 = lean_ctor_get(x_223, 0); +x_228 = lean_ctor_get(x_223, 1); +lean_inc(x_228); +lean_inc(x_227); +lean_dec(x_223); +x_229 = l_Lean_mkAppN(x_218, x_227); +x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_228); +return x_230; } } else { -uint8_t x_228; -lean_dec(x_215); -x_228 = !lean_is_exclusive(x_220); -if (x_228 == 0) +uint8_t x_231; +lean_dec(x_218); +x_231 = !lean_is_exclusive(x_223); +if (x_231 == 0) { -return x_220; +return x_223; } else { -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_220, 0); -x_230 = lean_ctor_get(x_220, 1); -lean_inc(x_230); -lean_inc(x_229); -lean_dec(x_220); -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_229); -lean_ctor_set(x_231, 1, x_230); -return x_231; -} -} -} -else -{ -lean_object* x_232; lean_object* x_233; uint8_t x_234; -x_232 = lean_ctor_get(x_214, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_214, 1); +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = lean_ctor_get(x_223, 0); +x_233 = lean_ctor_get(x_223, 1); lean_inc(x_233); -lean_dec(x_214); -x_234 = l_Lean_Expr_isLambda(x_232); -if (x_234 == 0) +lean_inc(x_232); +lean_dec(x_223); +x_234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +return x_234; +} +} +} +else { -lean_object* x_235; size_t x_236; size_t x_237; lean_object* x_238; -x_235 = lean_array_get_size(x_3); -x_236 = lean_usize_of_nat(x_235); -lean_dec(x_235); -x_237 = 0; -x_238 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__16___rarg(x_1, x_236, x_237, x_3, x_5, x_6, x_233); +lean_object* x_235; lean_object* x_236; uint8_t x_237; +x_235 = lean_ctor_get(x_217, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_217, 1); +lean_inc(x_236); +lean_dec(x_217); +x_237 = l_Lean_Expr_isLambda(x_235); +if (x_237 == 0) +{ +lean_object* x_238; size_t x_239; size_t x_240; lean_object* x_241; +x_238 = lean_array_get_size(x_3); +x_239 = lean_usize_of_nat(x_238); +lean_dec(x_238); +x_240 = 0; +x_241 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__16___rarg(x_1, x_239, x_240, x_3, x_5, x_6, x_236); lean_dec(x_1); -if (lean_obj_tag(x_238) == 0) +if (lean_obj_tag(x_241) == 0) { -uint8_t x_239; -x_239 = !lean_is_exclusive(x_238); -if (x_239 == 0) +uint8_t x_242; +x_242 = !lean_is_exclusive(x_241); +if (x_242 == 0) { -lean_object* x_240; lean_object* x_241; -x_240 = lean_ctor_get(x_238, 0); -x_241 = l_Lean_mkAppN(x_232, x_240); -lean_ctor_set(x_238, 0, x_241); -return x_238; +lean_object* x_243; lean_object* x_244; +x_243 = lean_ctor_get(x_241, 0); +x_244 = l_Lean_mkAppN(x_235, x_243); +lean_ctor_set(x_241, 0, x_244); +return x_241; } else { -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_242 = lean_ctor_get(x_238, 0); -x_243 = lean_ctor_get(x_238, 1); -lean_inc(x_243); -lean_inc(x_242); -lean_dec(x_238); -x_244 = l_Lean_mkAppN(x_232, x_242); -x_245 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_245, 0, x_244); -lean_ctor_set(x_245, 1, x_243); -return x_245; +lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; +x_245 = lean_ctor_get(x_241, 0); +x_246 = lean_ctor_get(x_241, 1); +lean_inc(x_246); +lean_inc(x_245); +lean_dec(x_241); +x_247 = l_Lean_mkAppN(x_235, x_245); +x_248 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_246); +return x_248; } } else { -uint8_t x_246; -lean_dec(x_232); -x_246 = !lean_is_exclusive(x_238); -if (x_246 == 0) +uint8_t x_249; +lean_dec(x_235); +x_249 = !lean_is_exclusive(x_241); +if (x_249 == 0) { -return x_238; -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_247 = lean_ctor_get(x_238, 0); -x_248 = lean_ctor_get(x_238, 1); -lean_inc(x_248); -lean_inc(x_247); -lean_dec(x_238); -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_247); -lean_ctor_set(x_249, 1, x_248); -return x_249; -} -} +return x_241; } else { lean_object* x_250; lean_object* x_251; lean_object* x_252; -lean_dec(x_1); -x_250 = l_Array_reverse___rarg(x_3); -x_251 = l_Lean_Expr_betaRev(x_232, x_250); -lean_dec(x_250); -lean_dec(x_232); -x_252 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_251, x_5, x_6, x_233); +x_250 = lean_ctor_get(x_241, 0); +x_251 = lean_ctor_get(x_241, 1); +lean_inc(x_251); +lean_inc(x_250); +lean_dec(x_241); +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_251); return x_252; } } } else { -uint8_t x_253; -lean_dec(x_3); +lean_object* x_253; uint8_t x_254; lean_object* x_255; lean_object* x_256; lean_dec(x_1); -x_253 = !lean_is_exclusive(x_214); -if (x_253 == 0) -{ -return x_214; +x_253 = l_Array_reverse___rarg(x_3); +x_254 = 0; +x_255 = l_Lean_Expr_betaRev(x_235, x_253, x_254); +lean_dec(x_253); +x_256 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_255, x_5, x_6, x_236); +return x_256; +} +} } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_214, 0); -x_255 = lean_ctor_get(x_214, 1); -lean_inc(x_255); -lean_inc(x_254); -lean_dec(x_214); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_254); -lean_ctor_set(x_256, 1, x_255); -return x_256; +uint8_t x_257; +lean_dec(x_3); +lean_dec(x_1); +x_257 = !lean_is_exclusive(x_217); +if (x_257 == 0) +{ +return x_217; +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; +x_258 = lean_ctor_get(x_217, 0); +x_259 = lean_ctor_get(x_217, 1); +lean_inc(x_259); +lean_inc(x_258); +lean_dec(x_217); +x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_260, 0, x_258); +lean_ctor_set(x_260, 1, x_259); +return x_260; } } } case 4: { -uint8_t x_257; lean_object* x_258; +uint8_t x_261; lean_object* x_262; lean_dec(x_4); -x_257 = l_Lean_Expr_isMVar(x_2); -x_258 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_258) == 0) +x_261 = l_Lean_Expr_isMVar(x_2); +x_262 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_262) == 0) { -if (x_257 == 0) +if (x_261 == 0) { -lean_object* x_259; lean_object* x_260; lean_object* x_261; size_t x_262; size_t x_263; lean_object* x_264; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -lean_dec(x_258); -x_261 = lean_array_get_size(x_3); -x_262 = lean_usize_of_nat(x_261); -lean_dec(x_261); -x_263 = 0; -x_264 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__17___rarg(x_1, x_262, x_263, x_3, x_5, x_6, x_260); +lean_object* x_263; lean_object* x_264; lean_object* x_265; size_t x_266; size_t x_267; lean_object* x_268; +x_263 = lean_ctor_get(x_262, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_262, 1); +lean_inc(x_264); +lean_dec(x_262); +x_265 = lean_array_get_size(x_3); +x_266 = lean_usize_of_nat(x_265); +lean_dec(x_265); +x_267 = 0; +x_268 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__17___rarg(x_1, x_266, x_267, x_3, x_5, x_6, x_264); lean_dec(x_1); -if (lean_obj_tag(x_264) == 0) +if (lean_obj_tag(x_268) == 0) { -uint8_t x_265; -x_265 = !lean_is_exclusive(x_264); -if (x_265 == 0) +uint8_t x_269; +x_269 = !lean_is_exclusive(x_268); +if (x_269 == 0) { -lean_object* x_266; lean_object* x_267; -x_266 = lean_ctor_get(x_264, 0); -x_267 = l_Lean_mkAppN(x_259, x_266); -lean_ctor_set(x_264, 0, x_267); -return x_264; +lean_object* x_270; lean_object* x_271; +x_270 = lean_ctor_get(x_268, 0); +x_271 = l_Lean_mkAppN(x_263, x_270); +lean_ctor_set(x_268, 0, x_271); +return x_268; } else { -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_268 = lean_ctor_get(x_264, 0); -x_269 = lean_ctor_get(x_264, 1); -lean_inc(x_269); -lean_inc(x_268); -lean_dec(x_264); -x_270 = l_Lean_mkAppN(x_259, x_268); -x_271 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_271, 0, x_270); -lean_ctor_set(x_271, 1, x_269); -return x_271; -} -} -else -{ -uint8_t x_272; -lean_dec(x_259); -x_272 = !lean_is_exclusive(x_264); -if (x_272 == 0) -{ -return x_264; -} -else -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; -x_273 = lean_ctor_get(x_264, 0); -x_274 = lean_ctor_get(x_264, 1); -lean_inc(x_274); +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_272 = lean_ctor_get(x_268, 0); +x_273 = lean_ctor_get(x_268, 1); lean_inc(x_273); -lean_dec(x_264); -x_275 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_275, 0, x_273); -lean_ctor_set(x_275, 1, x_274); +lean_inc(x_272); +lean_dec(x_268); +x_274 = l_Lean_mkAppN(x_263, x_272); +x_275 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_275, 0, x_274); +lean_ctor_set(x_275, 1, x_273); return x_275; } } +else +{ +uint8_t x_276; +lean_dec(x_263); +x_276 = !lean_is_exclusive(x_268); +if (x_276 == 0) +{ +return x_268; } else { -lean_object* x_276; lean_object* x_277; uint8_t x_278; -x_276 = lean_ctor_get(x_258, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_258, 1); +lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_277 = lean_ctor_get(x_268, 0); +x_278 = lean_ctor_get(x_268, 1); +lean_inc(x_278); lean_inc(x_277); -lean_dec(x_258); -x_278 = l_Lean_Expr_isLambda(x_276); -if (x_278 == 0) +lean_dec(x_268); +x_279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_279, 0, x_277); +lean_ctor_set(x_279, 1, x_278); +return x_279; +} +} +} +else { -lean_object* x_279; size_t x_280; size_t x_281; lean_object* x_282; -x_279 = lean_array_get_size(x_3); -x_280 = lean_usize_of_nat(x_279); -lean_dec(x_279); -x_281 = 0; -x_282 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__18___rarg(x_1, x_280, x_281, x_3, x_5, x_6, x_277); +lean_object* x_280; lean_object* x_281; uint8_t x_282; +x_280 = lean_ctor_get(x_262, 0); +lean_inc(x_280); +x_281 = lean_ctor_get(x_262, 1); +lean_inc(x_281); +lean_dec(x_262); +x_282 = l_Lean_Expr_isLambda(x_280); +if (x_282 == 0) +{ +lean_object* x_283; size_t x_284; size_t x_285; lean_object* x_286; +x_283 = lean_array_get_size(x_3); +x_284 = lean_usize_of_nat(x_283); +lean_dec(x_283); +x_285 = 0; +x_286 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__18___rarg(x_1, x_284, x_285, x_3, x_5, x_6, x_281); lean_dec(x_1); -if (lean_obj_tag(x_282) == 0) +if (lean_obj_tag(x_286) == 0) { -uint8_t x_283; -x_283 = !lean_is_exclusive(x_282); -if (x_283 == 0) +uint8_t x_287; +x_287 = !lean_is_exclusive(x_286); +if (x_287 == 0) { -lean_object* x_284; lean_object* x_285; -x_284 = lean_ctor_get(x_282, 0); -x_285 = l_Lean_mkAppN(x_276, x_284); -lean_ctor_set(x_282, 0, x_285); -return x_282; +lean_object* x_288; lean_object* x_289; +x_288 = lean_ctor_get(x_286, 0); +x_289 = l_Lean_mkAppN(x_280, x_288); +lean_ctor_set(x_286, 0, x_289); +return x_286; } else { -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_286 = lean_ctor_get(x_282, 0); -x_287 = lean_ctor_get(x_282, 1); -lean_inc(x_287); -lean_inc(x_286); -lean_dec(x_282); -x_288 = l_Lean_mkAppN(x_276, x_286); -x_289 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_287); -return x_289; -} -} -else -{ -uint8_t x_290; -lean_dec(x_276); -x_290 = !lean_is_exclusive(x_282); -if (x_290 == 0) -{ -return x_282; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_ctor_get(x_282, 0); -x_292 = lean_ctor_get(x_282, 1); -lean_inc(x_292); +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_290 = lean_ctor_get(x_286, 0); +x_291 = lean_ctor_get(x_286, 1); lean_inc(x_291); -lean_dec(x_282); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); +lean_inc(x_290); +lean_dec(x_286); +x_292 = l_Lean_mkAppN(x_280, x_290); +x_293 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_291); return x_293; } } +else +{ +uint8_t x_294; +lean_dec(x_280); +x_294 = !lean_is_exclusive(x_286); +if (x_294 == 0) +{ +return x_286; } else { -lean_object* x_294; lean_object* x_295; lean_object* x_296; +lean_object* x_295; lean_object* x_296; lean_object* x_297; +x_295 = lean_ctor_get(x_286, 0); +x_296 = lean_ctor_get(x_286, 1); +lean_inc(x_296); +lean_inc(x_295); +lean_dec(x_286); +x_297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_297, 0, x_295); +lean_ctor_set(x_297, 1, x_296); +return x_297; +} +} +} +else +{ +lean_object* x_298; uint8_t x_299; lean_object* x_300; lean_object* x_301; lean_dec(x_1); -x_294 = l_Array_reverse___rarg(x_3); -x_295 = l_Lean_Expr_betaRev(x_276, x_294); -lean_dec(x_294); -lean_dec(x_276); -x_296 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_295, x_5, x_6, x_277); -return x_296; +x_298 = l_Array_reverse___rarg(x_3); +x_299 = 0; +x_300 = l_Lean_Expr_betaRev(x_280, x_298, x_299); +lean_dec(x_298); +x_301 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_300, x_5, x_6, x_281); +return x_301; } } } else { -uint8_t x_297; +uint8_t x_302; lean_dec(x_3); lean_dec(x_1); -x_297 = !lean_is_exclusive(x_258); -if (x_297 == 0) +x_302 = !lean_is_exclusive(x_262); +if (x_302 == 0) { -return x_258; +return x_262; } else { -lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_298 = lean_ctor_get(x_258, 0); -x_299 = lean_ctor_get(x_258, 1); -lean_inc(x_299); -lean_inc(x_298); -lean_dec(x_258); -x_300 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_300, 0, x_298); -lean_ctor_set(x_300, 1, x_299); -return x_300; +lean_object* x_303; lean_object* x_304; lean_object* x_305; +x_303 = lean_ctor_get(x_262, 0); +x_304 = lean_ctor_get(x_262, 1); +lean_inc(x_304); +lean_inc(x_303); +lean_dec(x_262); +x_305 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_305, 0, x_303); +lean_ctor_set(x_305, 1, x_304); +return x_305; } } } case 5: { -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_301 = lean_ctor_get(x_2, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_2, 1); -lean_inc(x_302); +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_306 = lean_ctor_get(x_2, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_2, 1); +lean_inc(x_307); lean_dec(x_2); -x_303 = lean_array_set(x_3, x_4, x_302); -x_304 = lean_unsigned_to_nat(1u); -x_305 = lean_nat_sub(x_4, x_304); +x_308 = lean_array_set(x_3, x_4, x_307); +x_309 = lean_unsigned_to_nat(1u); +x_310 = lean_nat_sub(x_4, x_309); lean_dec(x_4); -x_2 = x_301; -x_3 = x_303; -x_4 = x_305; +x_2 = x_306; +x_3 = x_308; +x_4 = x_310; goto _start; } case 6: { -uint8_t x_307; lean_object* x_308; +uint8_t x_312; lean_object* x_313; lean_dec(x_4); -x_307 = l_Lean_Expr_isMVar(x_2); -x_308 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_308) == 0) +x_312 = l_Lean_Expr_isMVar(x_2); +x_313 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_313) == 0) { -if (x_307 == 0) +if (x_312 == 0) { -lean_object* x_309; lean_object* x_310; lean_object* x_311; size_t x_312; size_t x_313; lean_object* x_314; -x_309 = lean_ctor_get(x_308, 0); -lean_inc(x_309); -x_310 = lean_ctor_get(x_308, 1); -lean_inc(x_310); -lean_dec(x_308); -x_311 = lean_array_get_size(x_3); -x_312 = lean_usize_of_nat(x_311); -lean_dec(x_311); -x_313 = 0; -x_314 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__21___rarg(x_1, x_312, x_313, x_3, x_5, x_6, x_310); +lean_object* x_314; lean_object* x_315; lean_object* x_316; size_t x_317; size_t x_318; lean_object* x_319; +x_314 = lean_ctor_get(x_313, 0); +lean_inc(x_314); +x_315 = lean_ctor_get(x_313, 1); +lean_inc(x_315); +lean_dec(x_313); +x_316 = lean_array_get_size(x_3); +x_317 = lean_usize_of_nat(x_316); +lean_dec(x_316); +x_318 = 0; +x_319 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__21___rarg(x_1, x_317, x_318, x_3, x_5, x_6, x_315); lean_dec(x_1); -if (lean_obj_tag(x_314) == 0) +if (lean_obj_tag(x_319) == 0) { -uint8_t x_315; -x_315 = !lean_is_exclusive(x_314); -if (x_315 == 0) +uint8_t x_320; +x_320 = !lean_is_exclusive(x_319); +if (x_320 == 0) { -lean_object* x_316; lean_object* x_317; -x_316 = lean_ctor_get(x_314, 0); -x_317 = l_Lean_mkAppN(x_309, x_316); -lean_ctor_set(x_314, 0, x_317); -return x_314; +lean_object* x_321; lean_object* x_322; +x_321 = lean_ctor_get(x_319, 0); +x_322 = l_Lean_mkAppN(x_314, x_321); +lean_ctor_set(x_319, 0, x_322); +return x_319; } else { -lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_318 = lean_ctor_get(x_314, 0); -x_319 = lean_ctor_get(x_314, 1); -lean_inc(x_319); -lean_inc(x_318); -lean_dec(x_314); -x_320 = l_Lean_mkAppN(x_309, x_318); -x_321 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_319); -return x_321; -} -} -else -{ -uint8_t x_322; -lean_dec(x_309); -x_322 = !lean_is_exclusive(x_314); -if (x_322 == 0) -{ -return x_314; -} -else -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; -x_323 = lean_ctor_get(x_314, 0); -x_324 = lean_ctor_get(x_314, 1); +lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; +x_323 = lean_ctor_get(x_319, 0); +x_324 = lean_ctor_get(x_319, 1); lean_inc(x_324); lean_inc(x_323); +lean_dec(x_319); +x_325 = l_Lean_mkAppN(x_314, x_323); +x_326 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_326, 0, x_325); +lean_ctor_set(x_326, 1, x_324); +return x_326; +} +} +else +{ +uint8_t x_327; lean_dec(x_314); -x_325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_325, 0, x_323); -lean_ctor_set(x_325, 1, x_324); -return x_325; +x_327 = !lean_is_exclusive(x_319); +if (x_327 == 0) +{ +return x_319; +} +else +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; +x_328 = lean_ctor_get(x_319, 0); +x_329 = lean_ctor_get(x_319, 1); +lean_inc(x_329); +lean_inc(x_328); +lean_dec(x_319); +x_330 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_330, 0, x_328); +lean_ctor_set(x_330, 1, x_329); +return x_330; } } } else { -lean_object* x_326; lean_object* x_327; uint8_t x_328; -x_326 = lean_ctor_get(x_308, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_308, 1); -lean_inc(x_327); -lean_dec(x_308); -x_328 = l_Lean_Expr_isLambda(x_326); -if (x_328 == 0) -{ -lean_object* x_329; size_t x_330; size_t x_331; lean_object* x_332; -x_329 = lean_array_get_size(x_3); -x_330 = lean_usize_of_nat(x_329); -lean_dec(x_329); -x_331 = 0; -x_332 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__22___rarg(x_1, x_330, x_331, x_3, x_5, x_6, x_327); -lean_dec(x_1); -if (lean_obj_tag(x_332) == 0) -{ -uint8_t x_333; -x_333 = !lean_is_exclusive(x_332); +lean_object* x_331; lean_object* x_332; uint8_t x_333; +x_331 = lean_ctor_get(x_313, 0); +lean_inc(x_331); +x_332 = lean_ctor_get(x_313, 1); +lean_inc(x_332); +lean_dec(x_313); +x_333 = l_Lean_Expr_isLambda(x_331); if (x_333 == 0) { -lean_object* x_334; lean_object* x_335; -x_334 = lean_ctor_get(x_332, 0); -x_335 = l_Lean_mkAppN(x_326, x_334); -lean_ctor_set(x_332, 0, x_335); -return x_332; +lean_object* x_334; size_t x_335; size_t x_336; lean_object* x_337; +x_334 = lean_array_get_size(x_3); +x_335 = lean_usize_of_nat(x_334); +lean_dec(x_334); +x_336 = 0; +x_337 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__22___rarg(x_1, x_335, x_336, x_3, x_5, x_6, x_332); +lean_dec(x_1); +if (lean_obj_tag(x_337) == 0) +{ +uint8_t x_338; +x_338 = !lean_is_exclusive(x_337); +if (x_338 == 0) +{ +lean_object* x_339; lean_object* x_340; +x_339 = lean_ctor_get(x_337, 0); +x_340 = l_Lean_mkAppN(x_331, x_339); +lean_ctor_set(x_337, 0, x_340); +return x_337; } else { -lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; -x_336 = lean_ctor_get(x_332, 0); -x_337 = lean_ctor_get(x_332, 1); -lean_inc(x_337); -lean_inc(x_336); -lean_dec(x_332); -x_338 = l_Lean_mkAppN(x_326, x_336); -x_339 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_339, 0, x_338); -lean_ctor_set(x_339, 1, x_337); -return x_339; -} -} -else -{ -uint8_t x_340; -lean_dec(x_326); -x_340 = !lean_is_exclusive(x_332); -if (x_340 == 0) -{ -return x_332; -} -else -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; -x_341 = lean_ctor_get(x_332, 0); -x_342 = lean_ctor_get(x_332, 1); +lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; +x_341 = lean_ctor_get(x_337, 0); +x_342 = lean_ctor_get(x_337, 1); lean_inc(x_342); lean_inc(x_341); -lean_dec(x_332); -x_343 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_343, 0, x_341); -lean_ctor_set(x_343, 1, x_342); -return x_343; +lean_dec(x_337); +x_343 = l_Lean_mkAppN(x_331, x_341); +x_344 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_344, 0, x_343); +lean_ctor_set(x_344, 1, x_342); +return x_344; +} +} +else +{ +uint8_t x_345; +lean_dec(x_331); +x_345 = !lean_is_exclusive(x_337); +if (x_345 == 0) +{ +return x_337; +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_346 = lean_ctor_get(x_337, 0); +x_347 = lean_ctor_get(x_337, 1); +lean_inc(x_347); +lean_inc(x_346); +lean_dec(x_337); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_346); +lean_ctor_set(x_348, 1, x_347); +return x_348; } } } else { -lean_object* x_344; lean_object* x_345; lean_object* x_346; +lean_object* x_349; uint8_t x_350; lean_object* x_351; lean_object* x_352; lean_dec(x_1); -x_344 = l_Array_reverse___rarg(x_3); -x_345 = l_Lean_Expr_betaRev(x_326, x_344); -lean_dec(x_344); -lean_dec(x_326); -x_346 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_345, x_5, x_6, x_327); -return x_346; +x_349 = l_Array_reverse___rarg(x_3); +x_350 = 0; +x_351 = l_Lean_Expr_betaRev(x_331, x_349, x_350); +lean_dec(x_349); +x_352 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_351, x_5, x_6, x_332); +return x_352; } } } else { -uint8_t x_347; +uint8_t x_353; lean_dec(x_3); lean_dec(x_1); -x_347 = !lean_is_exclusive(x_308); -if (x_347 == 0) +x_353 = !lean_is_exclusive(x_313); +if (x_353 == 0) { -return x_308; +return x_313; } else { -lean_object* x_348; lean_object* x_349; lean_object* x_350; -x_348 = lean_ctor_get(x_308, 0); -x_349 = lean_ctor_get(x_308, 1); -lean_inc(x_349); -lean_inc(x_348); -lean_dec(x_308); -x_350 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_350, 0, x_348); -lean_ctor_set(x_350, 1, x_349); -return x_350; +lean_object* x_354; lean_object* x_355; lean_object* x_356; +x_354 = lean_ctor_get(x_313, 0); +x_355 = lean_ctor_get(x_313, 1); +lean_inc(x_355); +lean_inc(x_354); +lean_dec(x_313); +x_356 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_356, 0, x_354); +lean_ctor_set(x_356, 1, x_355); +return x_356; } } } case 7: { -uint8_t x_351; lean_object* x_352; +uint8_t x_357; lean_object* x_358; lean_dec(x_4); -x_351 = l_Lean_Expr_isMVar(x_2); -x_352 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_352) == 0) -{ -if (x_351 == 0) -{ -lean_object* x_353; lean_object* x_354; lean_object* x_355; size_t x_356; size_t x_357; lean_object* x_358; -x_353 = lean_ctor_get(x_352, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_352, 1); -lean_inc(x_354); -lean_dec(x_352); -x_355 = lean_array_get_size(x_3); -x_356 = lean_usize_of_nat(x_355); -lean_dec(x_355); -x_357 = 0; -x_358 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__23___rarg(x_1, x_356, x_357, x_3, x_5, x_6, x_354); -lean_dec(x_1); +x_357 = l_Lean_Expr_isMVar(x_2); +x_358 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); if (lean_obj_tag(x_358) == 0) { -uint8_t x_359; -x_359 = !lean_is_exclusive(x_358); -if (x_359 == 0) +if (x_357 == 0) { -lean_object* x_360; lean_object* x_361; -x_360 = lean_ctor_get(x_358, 0); -x_361 = l_Lean_mkAppN(x_353, x_360); -lean_ctor_set(x_358, 0, x_361); -return x_358; -} -else -{ -lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_362 = lean_ctor_get(x_358, 0); -x_363 = lean_ctor_get(x_358, 1); -lean_inc(x_363); -lean_inc(x_362); +lean_object* x_359; lean_object* x_360; lean_object* x_361; size_t x_362; size_t x_363; lean_object* x_364; +x_359 = lean_ctor_get(x_358, 0); +lean_inc(x_359); +x_360 = lean_ctor_get(x_358, 1); +lean_inc(x_360); lean_dec(x_358); -x_364 = l_Lean_mkAppN(x_353, x_362); -x_365 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_365, 0, x_364); -lean_ctor_set(x_365, 1, x_363); -return x_365; -} +x_361 = lean_array_get_size(x_3); +x_362 = lean_usize_of_nat(x_361); +lean_dec(x_361); +x_363 = 0; +x_364 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__23___rarg(x_1, x_362, x_363, x_3, x_5, x_6, x_360); +lean_dec(x_1); +if (lean_obj_tag(x_364) == 0) +{ +uint8_t x_365; +x_365 = !lean_is_exclusive(x_364); +if (x_365 == 0) +{ +lean_object* x_366; lean_object* x_367; +x_366 = lean_ctor_get(x_364, 0); +x_367 = l_Lean_mkAppN(x_359, x_366); +lean_ctor_set(x_364, 0, x_367); +return x_364; } else { -uint8_t x_366; -lean_dec(x_353); -x_366 = !lean_is_exclusive(x_358); -if (x_366 == 0) -{ -return x_358; -} -else -{ -lean_object* x_367; lean_object* x_368; lean_object* x_369; -x_367 = lean_ctor_get(x_358, 0); -x_368 = lean_ctor_get(x_358, 1); +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +x_368 = lean_ctor_get(x_364, 0); +x_369 = lean_ctor_get(x_364, 1); +lean_inc(x_369); lean_inc(x_368); -lean_inc(x_367); -lean_dec(x_358); -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_367); -lean_ctor_set(x_369, 1, x_368); -return x_369; -} +lean_dec(x_364); +x_370 = l_Lean_mkAppN(x_359, x_368); +x_371 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_371, 0, x_370); +lean_ctor_set(x_371, 1, x_369); +return x_371; } } else { -lean_object* x_370; lean_object* x_371; uint8_t x_372; -x_370 = lean_ctor_get(x_352, 0); -lean_inc(x_370); -x_371 = lean_ctor_get(x_352, 1); -lean_inc(x_371); -lean_dec(x_352); -x_372 = l_Lean_Expr_isLambda(x_370); +uint8_t x_372; +lean_dec(x_359); +x_372 = !lean_is_exclusive(x_364); if (x_372 == 0) { -lean_object* x_373; size_t x_374; size_t x_375; lean_object* x_376; -x_373 = lean_array_get_size(x_3); -x_374 = lean_usize_of_nat(x_373); -lean_dec(x_373); -x_375 = 0; -x_376 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__24___rarg(x_1, x_374, x_375, x_3, x_5, x_6, x_371); +return x_364; +} +else +{ +lean_object* x_373; lean_object* x_374; lean_object* x_375; +x_373 = lean_ctor_get(x_364, 0); +x_374 = lean_ctor_get(x_364, 1); +lean_inc(x_374); +lean_inc(x_373); +lean_dec(x_364); +x_375 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_375, 0, x_373); +lean_ctor_set(x_375, 1, x_374); +return x_375; +} +} +} +else +{ +lean_object* x_376; lean_object* x_377; uint8_t x_378; +x_376 = lean_ctor_get(x_358, 0); +lean_inc(x_376); +x_377 = lean_ctor_get(x_358, 1); +lean_inc(x_377); +lean_dec(x_358); +x_378 = l_Lean_Expr_isLambda(x_376); +if (x_378 == 0) +{ +lean_object* x_379; size_t x_380; size_t x_381; lean_object* x_382; +x_379 = lean_array_get_size(x_3); +x_380 = lean_usize_of_nat(x_379); +lean_dec(x_379); +x_381 = 0; +x_382 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__24___rarg(x_1, x_380, x_381, x_3, x_5, x_6, x_377); lean_dec(x_1); -if (lean_obj_tag(x_376) == 0) +if (lean_obj_tag(x_382) == 0) { -uint8_t x_377; -x_377 = !lean_is_exclusive(x_376); -if (x_377 == 0) +uint8_t x_383; +x_383 = !lean_is_exclusive(x_382); +if (x_383 == 0) { -lean_object* x_378; lean_object* x_379; -x_378 = lean_ctor_get(x_376, 0); -x_379 = l_Lean_mkAppN(x_370, x_378); -lean_ctor_set(x_376, 0, x_379); -return x_376; +lean_object* x_384; lean_object* x_385; +x_384 = lean_ctor_get(x_382, 0); +x_385 = l_Lean_mkAppN(x_376, x_384); +lean_ctor_set(x_382, 0, x_385); +return x_382; } else { -lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; -x_380 = lean_ctor_get(x_376, 0); -x_381 = lean_ctor_get(x_376, 1); -lean_inc(x_381); -lean_inc(x_380); -lean_dec(x_376); -x_382 = l_Lean_mkAppN(x_370, x_380); -x_383 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_383, 0, x_382); -lean_ctor_set(x_383, 1, x_381); -return x_383; -} -} -else -{ -uint8_t x_384; -lean_dec(x_370); -x_384 = !lean_is_exclusive(x_376); -if (x_384 == 0) -{ -return x_376; -} -else -{ -lean_object* x_385; lean_object* x_386; lean_object* x_387; -x_385 = lean_ctor_get(x_376, 0); -x_386 = lean_ctor_get(x_376, 1); +lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +x_386 = lean_ctor_get(x_382, 0); +x_387 = lean_ctor_get(x_382, 1); +lean_inc(x_387); lean_inc(x_386); -lean_inc(x_385); +lean_dec(x_382); +x_388 = l_Lean_mkAppN(x_376, x_386); +x_389 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_389, 0, x_388); +lean_ctor_set(x_389, 1, x_387); +return x_389; +} +} +else +{ +uint8_t x_390; lean_dec(x_376); -x_387 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_387, 0, x_385); -lean_ctor_set(x_387, 1, x_386); -return x_387; +x_390 = !lean_is_exclusive(x_382); +if (x_390 == 0) +{ +return x_382; +} +else +{ +lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_391 = lean_ctor_get(x_382, 0); +x_392 = lean_ctor_get(x_382, 1); +lean_inc(x_392); +lean_inc(x_391); +lean_dec(x_382); +x_393 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_393, 0, x_391); +lean_ctor_set(x_393, 1, x_392); +return x_393; } } } else { -lean_object* x_388; lean_object* x_389; lean_object* x_390; +lean_object* x_394; uint8_t x_395; lean_object* x_396; lean_object* x_397; lean_dec(x_1); -x_388 = l_Array_reverse___rarg(x_3); -x_389 = l_Lean_Expr_betaRev(x_370, x_388); -lean_dec(x_388); -lean_dec(x_370); -x_390 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_389, x_5, x_6, x_371); -return x_390; +x_394 = l_Array_reverse___rarg(x_3); +x_395 = 0; +x_396 = l_Lean_Expr_betaRev(x_376, x_394, x_395); +lean_dec(x_394); +x_397 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_396, x_5, x_6, x_377); +return x_397; } } } else { -uint8_t x_391; +uint8_t x_398; lean_dec(x_3); lean_dec(x_1); -x_391 = !lean_is_exclusive(x_352); -if (x_391 == 0) +x_398 = !lean_is_exclusive(x_358); +if (x_398 == 0) { -return x_352; +return x_358; } else { -lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_392 = lean_ctor_get(x_352, 0); -x_393 = lean_ctor_get(x_352, 1); -lean_inc(x_393); -lean_inc(x_392); -lean_dec(x_352); -x_394 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_394, 0, x_392); -lean_ctor_set(x_394, 1, x_393); -return x_394; +lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_399 = lean_ctor_get(x_358, 0); +x_400 = lean_ctor_get(x_358, 1); +lean_inc(x_400); +lean_inc(x_399); +lean_dec(x_358); +x_401 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_401, 0, x_399); +lean_ctor_set(x_401, 1, x_400); +return x_401; } } } case 8: { -uint8_t x_395; lean_object* x_396; +uint8_t x_402; lean_object* x_403; lean_dec(x_4); -x_395 = l_Lean_Expr_isMVar(x_2); -x_396 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_396) == 0) +x_402 = l_Lean_Expr_isMVar(x_2); +x_403 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_403) == 0) { -if (x_395 == 0) +if (x_402 == 0) { -lean_object* x_397; lean_object* x_398; lean_object* x_399; size_t x_400; size_t x_401; lean_object* x_402; -x_397 = lean_ctor_get(x_396, 0); -lean_inc(x_397); -x_398 = lean_ctor_get(x_396, 1); -lean_inc(x_398); -lean_dec(x_396); -x_399 = lean_array_get_size(x_3); -x_400 = lean_usize_of_nat(x_399); -lean_dec(x_399); -x_401 = 0; -x_402 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__25___rarg(x_1, x_400, x_401, x_3, x_5, x_6, x_398); +lean_object* x_404; lean_object* x_405; lean_object* x_406; size_t x_407; size_t x_408; lean_object* x_409; +x_404 = lean_ctor_get(x_403, 0); +lean_inc(x_404); +x_405 = lean_ctor_get(x_403, 1); +lean_inc(x_405); +lean_dec(x_403); +x_406 = lean_array_get_size(x_3); +x_407 = lean_usize_of_nat(x_406); +lean_dec(x_406); +x_408 = 0; +x_409 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__25___rarg(x_1, x_407, x_408, x_3, x_5, x_6, x_405); lean_dec(x_1); -if (lean_obj_tag(x_402) == 0) -{ -uint8_t x_403; -x_403 = !lean_is_exclusive(x_402); -if (x_403 == 0) -{ -lean_object* x_404; lean_object* x_405; -x_404 = lean_ctor_get(x_402, 0); -x_405 = l_Lean_mkAppN(x_397, x_404); -lean_ctor_set(x_402, 0, x_405); -return x_402; -} -else -{ -lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; -x_406 = lean_ctor_get(x_402, 0); -x_407 = lean_ctor_get(x_402, 1); -lean_inc(x_407); -lean_inc(x_406); -lean_dec(x_402); -x_408 = l_Lean_mkAppN(x_397, x_406); -x_409 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_409, 0, x_408); -lean_ctor_set(x_409, 1, x_407); -return x_409; -} -} -else +if (lean_obj_tag(x_409) == 0) { uint8_t x_410; -lean_dec(x_397); -x_410 = !lean_is_exclusive(x_402); +x_410 = !lean_is_exclusive(x_409); if (x_410 == 0) { -return x_402; +lean_object* x_411; lean_object* x_412; +x_411 = lean_ctor_get(x_409, 0); +x_412 = l_Lean_mkAppN(x_404, x_411); +lean_ctor_set(x_409, 0, x_412); +return x_409; } else { -lean_object* x_411; lean_object* x_412; lean_object* x_413; -x_411 = lean_ctor_get(x_402, 0); -x_412 = lean_ctor_get(x_402, 1); -lean_inc(x_412); -lean_inc(x_411); -lean_dec(x_402); -x_413 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_413, 0, x_411); -lean_ctor_set(x_413, 1, x_412); -return x_413; -} -} -} -else -{ -lean_object* x_414; lean_object* x_415; uint8_t x_416; -x_414 = lean_ctor_get(x_396, 0); +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_413 = lean_ctor_get(x_409, 0); +x_414 = lean_ctor_get(x_409, 1); lean_inc(x_414); -x_415 = lean_ctor_get(x_396, 1); -lean_inc(x_415); -lean_dec(x_396); -x_416 = l_Lean_Expr_isLambda(x_414); -if (x_416 == 0) +lean_inc(x_413); +lean_dec(x_409); +x_415 = l_Lean_mkAppN(x_404, x_413); +x_416 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_416, 0, x_415); +lean_ctor_set(x_416, 1, x_414); +return x_416; +} +} +else { -lean_object* x_417; size_t x_418; size_t x_419; lean_object* x_420; -x_417 = lean_array_get_size(x_3); -x_418 = lean_usize_of_nat(x_417); -lean_dec(x_417); -x_419 = 0; -x_420 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__26___rarg(x_1, x_418, x_419, x_3, x_5, x_6, x_415); -lean_dec(x_1); -if (lean_obj_tag(x_420) == 0) +uint8_t x_417; +lean_dec(x_404); +x_417 = !lean_is_exclusive(x_409); +if (x_417 == 0) { -uint8_t x_421; -x_421 = !lean_is_exclusive(x_420); -if (x_421 == 0) +return x_409; +} +else { -lean_object* x_422; lean_object* x_423; -x_422 = lean_ctor_get(x_420, 0); -x_423 = l_Lean_mkAppN(x_414, x_422); -lean_ctor_set(x_420, 0, x_423); +lean_object* x_418; lean_object* x_419; lean_object* x_420; +x_418 = lean_ctor_get(x_409, 0); +x_419 = lean_ctor_get(x_409, 1); +lean_inc(x_419); +lean_inc(x_418); +lean_dec(x_409); +x_420 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_419); return x_420; } +} +} else { -lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; -x_424 = lean_ctor_get(x_420, 0); -x_425 = lean_ctor_get(x_420, 1); -lean_inc(x_425); -lean_inc(x_424); -lean_dec(x_420); -x_426 = l_Lean_mkAppN(x_414, x_424); -x_427 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_427, 0, x_426); -lean_ctor_set(x_427, 1, x_425); -return x_427; -} -} -else +lean_object* x_421; lean_object* x_422; uint8_t x_423; +x_421 = lean_ctor_get(x_403, 0); +lean_inc(x_421); +x_422 = lean_ctor_get(x_403, 1); +lean_inc(x_422); +lean_dec(x_403); +x_423 = l_Lean_Expr_isLambda(x_421); +if (x_423 == 0) +{ +lean_object* x_424; size_t x_425; size_t x_426; lean_object* x_427; +x_424 = lean_array_get_size(x_3); +x_425 = lean_usize_of_nat(x_424); +lean_dec(x_424); +x_426 = 0; +x_427 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__26___rarg(x_1, x_425, x_426, x_3, x_5, x_6, x_422); +lean_dec(x_1); +if (lean_obj_tag(x_427) == 0) { uint8_t x_428; -lean_dec(x_414); -x_428 = !lean_is_exclusive(x_420); +x_428 = !lean_is_exclusive(x_427); if (x_428 == 0) { -return x_420; +lean_object* x_429; lean_object* x_430; +x_429 = lean_ctor_get(x_427, 0); +x_430 = l_Lean_mkAppN(x_421, x_429); +lean_ctor_set(x_427, 0, x_430); +return x_427; } else { -lean_object* x_429; lean_object* x_430; lean_object* x_431; -x_429 = lean_ctor_get(x_420, 0); -x_430 = lean_ctor_get(x_420, 1); -lean_inc(x_430); -lean_inc(x_429); -lean_dec(x_420); -x_431 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_431, 0, x_429); -lean_ctor_set(x_431, 1, x_430); -return x_431; -} -} -} -else -{ -lean_object* x_432; lean_object* x_433; lean_object* x_434; -lean_dec(x_1); -x_432 = l_Array_reverse___rarg(x_3); -x_433 = l_Lean_Expr_betaRev(x_414, x_432); -lean_dec(x_432); -lean_dec(x_414); -x_434 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_433, x_5, x_6, x_415); +lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_431 = lean_ctor_get(x_427, 0); +x_432 = lean_ctor_get(x_427, 1); +lean_inc(x_432); +lean_inc(x_431); +lean_dec(x_427); +x_433 = l_Lean_mkAppN(x_421, x_431); +x_434 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_434, 0, x_433); +lean_ctor_set(x_434, 1, x_432); return x_434; } } -} else { uint8_t x_435; -lean_dec(x_3); -lean_dec(x_1); -x_435 = !lean_is_exclusive(x_396); +lean_dec(x_421); +x_435 = !lean_is_exclusive(x_427); if (x_435 == 0) { -return x_396; +return x_427; } else { lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_436 = lean_ctor_get(x_396, 0); -x_437 = lean_ctor_get(x_396, 1); +x_436 = lean_ctor_get(x_427, 0); +x_437 = lean_ctor_get(x_427, 1); lean_inc(x_437); lean_inc(x_436); -lean_dec(x_396); +lean_dec(x_427); x_438 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_438, 0, x_436); lean_ctor_set(x_438, 1, x_437); @@ -23359,543 +23321,581 @@ return x_438; } } } -case 9: +else { -uint8_t x_439; lean_object* x_440; -lean_dec(x_4); -x_439 = l_Lean_Expr_isMVar(x_2); -x_440 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_440) == 0) -{ -if (x_439 == 0) -{ -lean_object* x_441; lean_object* x_442; lean_object* x_443; size_t x_444; size_t x_445; lean_object* x_446; -x_441 = lean_ctor_get(x_440, 0); -lean_inc(x_441); -x_442 = lean_ctor_get(x_440, 1); -lean_inc(x_442); -lean_dec(x_440); -x_443 = lean_array_get_size(x_3); -x_444 = lean_usize_of_nat(x_443); -lean_dec(x_443); -x_445 = 0; -x_446 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__27___rarg(x_1, x_444, x_445, x_3, x_5, x_6, x_442); +lean_object* x_439; uint8_t x_440; lean_object* x_441; lean_object* x_442; lean_dec(x_1); -if (lean_obj_tag(x_446) == 0) -{ -uint8_t x_447; -x_447 = !lean_is_exclusive(x_446); -if (x_447 == 0) -{ -lean_object* x_448; lean_object* x_449; -x_448 = lean_ctor_get(x_446, 0); -x_449 = l_Lean_mkAppN(x_441, x_448); -lean_ctor_set(x_446, 0, x_449); -return x_446; -} -else -{ -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; -x_450 = lean_ctor_get(x_446, 0); -x_451 = lean_ctor_get(x_446, 1); -lean_inc(x_451); -lean_inc(x_450); -lean_dec(x_446); -x_452 = l_Lean_mkAppN(x_441, x_450); -x_453 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_453, 0, x_452); -lean_ctor_set(x_453, 1, x_451); -return x_453; -} -} -else -{ -uint8_t x_454; -lean_dec(x_441); -x_454 = !lean_is_exclusive(x_446); -if (x_454 == 0) -{ -return x_446; -} -else -{ -lean_object* x_455; lean_object* x_456; lean_object* x_457; -x_455 = lean_ctor_get(x_446, 0); -x_456 = lean_ctor_get(x_446, 1); -lean_inc(x_456); -lean_inc(x_455); -lean_dec(x_446); -x_457 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_457, 0, x_455); -lean_ctor_set(x_457, 1, x_456); -return x_457; +x_439 = l_Array_reverse___rarg(x_3); +x_440 = 0; +x_441 = l_Lean_Expr_betaRev(x_421, x_439, x_440); +lean_dec(x_439); +x_442 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_441, x_5, x_6, x_422); +return x_442; } } } else { -lean_object* x_458; lean_object* x_459; uint8_t x_460; -x_458 = lean_ctor_get(x_440, 0); -lean_inc(x_458); -x_459 = lean_ctor_get(x_440, 1); -lean_inc(x_459); -lean_dec(x_440); -x_460 = l_Lean_Expr_isLambda(x_458); -if (x_460 == 0) -{ -lean_object* x_461; size_t x_462; size_t x_463; lean_object* x_464; -x_461 = lean_array_get_size(x_3); -x_462 = lean_usize_of_nat(x_461); -lean_dec(x_461); -x_463 = 0; -x_464 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__28___rarg(x_1, x_462, x_463, x_3, x_5, x_6, x_459); -lean_dec(x_1); -if (lean_obj_tag(x_464) == 0) -{ -uint8_t x_465; -x_465 = !lean_is_exclusive(x_464); -if (x_465 == 0) -{ -lean_object* x_466; lean_object* x_467; -x_466 = lean_ctor_get(x_464, 0); -x_467 = l_Lean_mkAppN(x_458, x_466); -lean_ctor_set(x_464, 0, x_467); -return x_464; -} -else -{ -lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; -x_468 = lean_ctor_get(x_464, 0); -x_469 = lean_ctor_get(x_464, 1); -lean_inc(x_469); -lean_inc(x_468); -lean_dec(x_464); -x_470 = l_Lean_mkAppN(x_458, x_468); -x_471 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_471, 0, x_470); -lean_ctor_set(x_471, 1, x_469); -return x_471; -} -} -else -{ -uint8_t x_472; -lean_dec(x_458); -x_472 = !lean_is_exclusive(x_464); -if (x_472 == 0) -{ -return x_464; -} -else -{ -lean_object* x_473; lean_object* x_474; lean_object* x_475; -x_473 = lean_ctor_get(x_464, 0); -x_474 = lean_ctor_get(x_464, 1); -lean_inc(x_474); -lean_inc(x_473); -lean_dec(x_464); -x_475 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_475, 0, x_473); -lean_ctor_set(x_475, 1, x_474); -return x_475; -} -} -} -else -{ -lean_object* x_476; lean_object* x_477; lean_object* x_478; -lean_dec(x_1); -x_476 = l_Array_reverse___rarg(x_3); -x_477 = l_Lean_Expr_betaRev(x_458, x_476); -lean_dec(x_476); -lean_dec(x_458); -x_478 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_477, x_5, x_6, x_459); -return x_478; -} -} -} -else -{ -uint8_t x_479; +uint8_t x_443; lean_dec(x_3); lean_dec(x_1); -x_479 = !lean_is_exclusive(x_440); -if (x_479 == 0) +x_443 = !lean_is_exclusive(x_403); +if (x_443 == 0) { -return x_440; +return x_403; } else { -lean_object* x_480; lean_object* x_481; lean_object* x_482; -x_480 = lean_ctor_get(x_440, 0); -x_481 = lean_ctor_get(x_440, 1); +lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_444 = lean_ctor_get(x_403, 0); +x_445 = lean_ctor_get(x_403, 1); +lean_inc(x_445); +lean_inc(x_444); +lean_dec(x_403); +x_446 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_446, 0, x_444); +lean_ctor_set(x_446, 1, x_445); +return x_446; +} +} +} +case 9: +{ +uint8_t x_447; lean_object* x_448; +lean_dec(x_4); +x_447 = l_Lean_Expr_isMVar(x_2); +x_448 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_448) == 0) +{ +if (x_447 == 0) +{ +lean_object* x_449; lean_object* x_450; lean_object* x_451; size_t x_452; size_t x_453; lean_object* x_454; +x_449 = lean_ctor_get(x_448, 0); +lean_inc(x_449); +x_450 = lean_ctor_get(x_448, 1); +lean_inc(x_450); +lean_dec(x_448); +x_451 = lean_array_get_size(x_3); +x_452 = lean_usize_of_nat(x_451); +lean_dec(x_451); +x_453 = 0; +x_454 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__27___rarg(x_1, x_452, x_453, x_3, x_5, x_6, x_450); +lean_dec(x_1); +if (lean_obj_tag(x_454) == 0) +{ +uint8_t x_455; +x_455 = !lean_is_exclusive(x_454); +if (x_455 == 0) +{ +lean_object* x_456; lean_object* x_457; +x_456 = lean_ctor_get(x_454, 0); +x_457 = l_Lean_mkAppN(x_449, x_456); +lean_ctor_set(x_454, 0, x_457); +return x_454; +} +else +{ +lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; +x_458 = lean_ctor_get(x_454, 0); +x_459 = lean_ctor_get(x_454, 1); +lean_inc(x_459); +lean_inc(x_458); +lean_dec(x_454); +x_460 = l_Lean_mkAppN(x_449, x_458); +x_461 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_461, 0, x_460); +lean_ctor_set(x_461, 1, x_459); +return x_461; +} +} +else +{ +uint8_t x_462; +lean_dec(x_449); +x_462 = !lean_is_exclusive(x_454); +if (x_462 == 0) +{ +return x_454; +} +else +{ +lean_object* x_463; lean_object* x_464; lean_object* x_465; +x_463 = lean_ctor_get(x_454, 0); +x_464 = lean_ctor_get(x_454, 1); +lean_inc(x_464); +lean_inc(x_463); +lean_dec(x_454); +x_465 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_465, 0, x_463); +lean_ctor_set(x_465, 1, x_464); +return x_465; +} +} +} +else +{ +lean_object* x_466; lean_object* x_467; uint8_t x_468; +x_466 = lean_ctor_get(x_448, 0); +lean_inc(x_466); +x_467 = lean_ctor_get(x_448, 1); +lean_inc(x_467); +lean_dec(x_448); +x_468 = l_Lean_Expr_isLambda(x_466); +if (x_468 == 0) +{ +lean_object* x_469; size_t x_470; size_t x_471; lean_object* x_472; +x_469 = lean_array_get_size(x_3); +x_470 = lean_usize_of_nat(x_469); +lean_dec(x_469); +x_471 = 0; +x_472 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__28___rarg(x_1, x_470, x_471, x_3, x_5, x_6, x_467); +lean_dec(x_1); +if (lean_obj_tag(x_472) == 0) +{ +uint8_t x_473; +x_473 = !lean_is_exclusive(x_472); +if (x_473 == 0) +{ +lean_object* x_474; lean_object* x_475; +x_474 = lean_ctor_get(x_472, 0); +x_475 = l_Lean_mkAppN(x_466, x_474); +lean_ctor_set(x_472, 0, x_475); +return x_472; +} +else +{ +lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +x_476 = lean_ctor_get(x_472, 0); +x_477 = lean_ctor_get(x_472, 1); +lean_inc(x_477); +lean_inc(x_476); +lean_dec(x_472); +x_478 = l_Lean_mkAppN(x_466, x_476); +x_479 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_479, 0, x_478); +lean_ctor_set(x_479, 1, x_477); +return x_479; +} +} +else +{ +uint8_t x_480; +lean_dec(x_466); +x_480 = !lean_is_exclusive(x_472); +if (x_480 == 0) +{ +return x_472; +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; +x_481 = lean_ctor_get(x_472, 0); +x_482 = lean_ctor_get(x_472, 1); +lean_inc(x_482); lean_inc(x_481); -lean_inc(x_480); -lean_dec(x_440); -x_482 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_482, 0, x_480); -lean_ctor_set(x_482, 1, x_481); -return x_482; +lean_dec(x_472); +x_483 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_483, 0, x_481); +lean_ctor_set(x_483, 1, x_482); +return x_483; +} +} +} +else +{ +lean_object* x_484; uint8_t x_485; lean_object* x_486; lean_object* x_487; +lean_dec(x_1); +x_484 = l_Array_reverse___rarg(x_3); +x_485 = 0; +x_486 = l_Lean_Expr_betaRev(x_466, x_484, x_485); +lean_dec(x_484); +x_487 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_486, x_5, x_6, x_467); +return x_487; +} +} +} +else +{ +uint8_t x_488; +lean_dec(x_3); +lean_dec(x_1); +x_488 = !lean_is_exclusive(x_448); +if (x_488 == 0) +{ +return x_448; +} +else +{ +lean_object* x_489; lean_object* x_490; lean_object* x_491; +x_489 = lean_ctor_get(x_448, 0); +x_490 = lean_ctor_get(x_448, 1); +lean_inc(x_490); +lean_inc(x_489); +lean_dec(x_448); +x_491 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_491, 0, x_489); +lean_ctor_set(x_491, 1, x_490); +return x_491; } } } case 10: { -uint8_t x_483; lean_object* x_484; +uint8_t x_492; lean_object* x_493; lean_dec(x_4); -x_483 = l_Lean_Expr_isMVar(x_2); -x_484 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_484) == 0) +x_492 = l_Lean_Expr_isMVar(x_2); +x_493 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_493) == 0) { -if (x_483 == 0) +if (x_492 == 0) { -lean_object* x_485; lean_object* x_486; lean_object* x_487; size_t x_488; size_t x_489; lean_object* x_490; -x_485 = lean_ctor_get(x_484, 0); -lean_inc(x_485); -x_486 = lean_ctor_get(x_484, 1); -lean_inc(x_486); -lean_dec(x_484); -x_487 = lean_array_get_size(x_3); -x_488 = lean_usize_of_nat(x_487); -lean_dec(x_487); -x_489 = 0; -x_490 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__29___rarg(x_1, x_488, x_489, x_3, x_5, x_6, x_486); -lean_dec(x_1); -if (lean_obj_tag(x_490) == 0) -{ -uint8_t x_491; -x_491 = !lean_is_exclusive(x_490); -if (x_491 == 0) -{ -lean_object* x_492; lean_object* x_493; -x_492 = lean_ctor_get(x_490, 0); -x_493 = l_Lean_mkAppN(x_485, x_492); -lean_ctor_set(x_490, 0, x_493); -return x_490; -} -else -{ -lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; -x_494 = lean_ctor_get(x_490, 0); -x_495 = lean_ctor_get(x_490, 1); -lean_inc(x_495); +lean_object* x_494; lean_object* x_495; lean_object* x_496; size_t x_497; size_t x_498; lean_object* x_499; +x_494 = lean_ctor_get(x_493, 0); lean_inc(x_494); -lean_dec(x_490); -x_496 = l_Lean_mkAppN(x_485, x_494); -x_497 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_497, 0, x_496); -lean_ctor_set(x_497, 1, x_495); -return x_497; -} +x_495 = lean_ctor_get(x_493, 1); +lean_inc(x_495); +lean_dec(x_493); +x_496 = lean_array_get_size(x_3); +x_497 = lean_usize_of_nat(x_496); +lean_dec(x_496); +x_498 = 0; +x_499 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__29___rarg(x_1, x_497, x_498, x_3, x_5, x_6, x_495); +lean_dec(x_1); +if (lean_obj_tag(x_499) == 0) +{ +uint8_t x_500; +x_500 = !lean_is_exclusive(x_499); +if (x_500 == 0) +{ +lean_object* x_501; lean_object* x_502; +x_501 = lean_ctor_get(x_499, 0); +x_502 = l_Lean_mkAppN(x_494, x_501); +lean_ctor_set(x_499, 0, x_502); +return x_499; } else { -uint8_t x_498; -lean_dec(x_485); -x_498 = !lean_is_exclusive(x_490); -if (x_498 == 0) -{ -return x_490; -} -else -{ -lean_object* x_499; lean_object* x_500; lean_object* x_501; -x_499 = lean_ctor_get(x_490, 0); -x_500 = lean_ctor_get(x_490, 1); -lean_inc(x_500); -lean_inc(x_499); -lean_dec(x_490); -x_501 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_501, 0, x_499); -lean_ctor_set(x_501, 1, x_500); -return x_501; -} -} -} -else -{ -lean_object* x_502; lean_object* x_503; uint8_t x_504; -x_502 = lean_ctor_get(x_484, 0); -lean_inc(x_502); -x_503 = lean_ctor_get(x_484, 1); +lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; +x_503 = lean_ctor_get(x_499, 0); +x_504 = lean_ctor_get(x_499, 1); +lean_inc(x_504); lean_inc(x_503); -lean_dec(x_484); -x_504 = l_Lean_Expr_isLambda(x_502); -if (x_504 == 0) -{ -lean_object* x_505; size_t x_506; size_t x_507; lean_object* x_508; -x_505 = lean_array_get_size(x_3); -x_506 = lean_usize_of_nat(x_505); -lean_dec(x_505); -x_507 = 0; -x_508 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__30___rarg(x_1, x_506, x_507, x_3, x_5, x_6, x_503); -lean_dec(x_1); -if (lean_obj_tag(x_508) == 0) -{ -uint8_t x_509; -x_509 = !lean_is_exclusive(x_508); -if (x_509 == 0) -{ -lean_object* x_510; lean_object* x_511; -x_510 = lean_ctor_get(x_508, 0); -x_511 = l_Lean_mkAppN(x_502, x_510); -lean_ctor_set(x_508, 0, x_511); -return x_508; +lean_dec(x_499); +x_505 = l_Lean_mkAppN(x_494, x_503); +x_506 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_506, 0, x_505); +lean_ctor_set(x_506, 1, x_504); +return x_506; +} } else { -lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; -x_512 = lean_ctor_get(x_508, 0); -x_513 = lean_ctor_get(x_508, 1); -lean_inc(x_513); +uint8_t x_507; +lean_dec(x_494); +x_507 = !lean_is_exclusive(x_499); +if (x_507 == 0) +{ +return x_499; +} +else +{ +lean_object* x_508; lean_object* x_509; lean_object* x_510; +x_508 = lean_ctor_get(x_499, 0); +x_509 = lean_ctor_get(x_499, 1); +lean_inc(x_509); +lean_inc(x_508); +lean_dec(x_499); +x_510 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_510, 0, x_508); +lean_ctor_set(x_510, 1, x_509); +return x_510; +} +} +} +else +{ +lean_object* x_511; lean_object* x_512; uint8_t x_513; +x_511 = lean_ctor_get(x_493, 0); +lean_inc(x_511); +x_512 = lean_ctor_get(x_493, 1); lean_inc(x_512); -lean_dec(x_508); -x_514 = l_Lean_mkAppN(x_502, x_512); -x_515 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_515, 0, x_514); -lean_ctor_set(x_515, 1, x_513); -return x_515; -} -} -else +lean_dec(x_493); +x_513 = l_Lean_Expr_isLambda(x_511); +if (x_513 == 0) { -uint8_t x_516; -lean_dec(x_502); -x_516 = !lean_is_exclusive(x_508); -if (x_516 == 0) -{ -return x_508; -} -else -{ -lean_object* x_517; lean_object* x_518; lean_object* x_519; -x_517 = lean_ctor_get(x_508, 0); -x_518 = lean_ctor_get(x_508, 1); -lean_inc(x_518); -lean_inc(x_517); -lean_dec(x_508); -x_519 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_519, 0, x_517); -lean_ctor_set(x_519, 1, x_518); -return x_519; -} -} -} -else -{ -lean_object* x_520; lean_object* x_521; lean_object* x_522; +lean_object* x_514; size_t x_515; size_t x_516; lean_object* x_517; +x_514 = lean_array_get_size(x_3); +x_515 = lean_usize_of_nat(x_514); +lean_dec(x_514); +x_516 = 0; +x_517 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__30___rarg(x_1, x_515, x_516, x_3, x_5, x_6, x_512); lean_dec(x_1); -x_520 = l_Array_reverse___rarg(x_3); -x_521 = l_Lean_Expr_betaRev(x_502, x_520); -lean_dec(x_520); -lean_dec(x_502); -x_522 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_521, x_5, x_6, x_503); -return x_522; +if (lean_obj_tag(x_517) == 0) +{ +uint8_t x_518; +x_518 = !lean_is_exclusive(x_517); +if (x_518 == 0) +{ +lean_object* x_519; lean_object* x_520; +x_519 = lean_ctor_get(x_517, 0); +x_520 = l_Lean_mkAppN(x_511, x_519); +lean_ctor_set(x_517, 0, x_520); +return x_517; +} +else +{ +lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; +x_521 = lean_ctor_get(x_517, 0); +x_522 = lean_ctor_get(x_517, 1); +lean_inc(x_522); +lean_inc(x_521); +lean_dec(x_517); +x_523 = l_Lean_mkAppN(x_511, x_521); +x_524 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_524, 0, x_523); +lean_ctor_set(x_524, 1, x_522); +return x_524; +} +} +else +{ +uint8_t x_525; +lean_dec(x_511); +x_525 = !lean_is_exclusive(x_517); +if (x_525 == 0) +{ +return x_517; +} +else +{ +lean_object* x_526; lean_object* x_527; lean_object* x_528; +x_526 = lean_ctor_get(x_517, 0); +x_527 = lean_ctor_get(x_517, 1); +lean_inc(x_527); +lean_inc(x_526); +lean_dec(x_517); +x_528 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_528, 0, x_526); +lean_ctor_set(x_528, 1, x_527); +return x_528; } } } else { -uint8_t x_523; +lean_object* x_529; uint8_t x_530; lean_object* x_531; lean_object* x_532; +lean_dec(x_1); +x_529 = l_Array_reverse___rarg(x_3); +x_530 = 0; +x_531 = l_Lean_Expr_betaRev(x_511, x_529, x_530); +lean_dec(x_529); +x_532 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_531, x_5, x_6, x_512); +return x_532; +} +} +} +else +{ +uint8_t x_533; lean_dec(x_3); lean_dec(x_1); -x_523 = !lean_is_exclusive(x_484); -if (x_523 == 0) +x_533 = !lean_is_exclusive(x_493); +if (x_533 == 0) { -return x_484; +return x_493; } else { -lean_object* x_524; lean_object* x_525; lean_object* x_526; -x_524 = lean_ctor_get(x_484, 0); -x_525 = lean_ctor_get(x_484, 1); -lean_inc(x_525); -lean_inc(x_524); -lean_dec(x_484); -x_526 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_526, 0, x_524); -lean_ctor_set(x_526, 1, x_525); -return x_526; +lean_object* x_534; lean_object* x_535; lean_object* x_536; +x_534 = lean_ctor_get(x_493, 0); +x_535 = lean_ctor_get(x_493, 1); +lean_inc(x_535); +lean_inc(x_534); +lean_dec(x_493); +x_536 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_536, 0, x_534); +lean_ctor_set(x_536, 1, x_535); +return x_536; } } } default: { -uint8_t x_527; lean_object* x_528; +uint8_t x_537; lean_object* x_538; lean_dec(x_4); -x_527 = l_Lean_Expr_isMVar(x_2); -x_528 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); -if (lean_obj_tag(x_528) == 0) +x_537 = l_Lean_Expr_isMVar(x_2); +x_538 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_2, x_5, x_6, x_7); +if (lean_obj_tag(x_538) == 0) { -if (x_527 == 0) +if (x_537 == 0) { -lean_object* x_529; lean_object* x_530; lean_object* x_531; size_t x_532; size_t x_533; lean_object* x_534; -x_529 = lean_ctor_get(x_528, 0); -lean_inc(x_529); -x_530 = lean_ctor_get(x_528, 1); -lean_inc(x_530); -lean_dec(x_528); -x_531 = lean_array_get_size(x_3); -x_532 = lean_usize_of_nat(x_531); -lean_dec(x_531); -x_533 = 0; -x_534 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__31___rarg(x_1, x_532, x_533, x_3, x_5, x_6, x_530); -lean_dec(x_1); -if (lean_obj_tag(x_534) == 0) -{ -uint8_t x_535; -x_535 = !lean_is_exclusive(x_534); -if (x_535 == 0) -{ -lean_object* x_536; lean_object* x_537; -x_536 = lean_ctor_get(x_534, 0); -x_537 = l_Lean_mkAppN(x_529, x_536); -lean_ctor_set(x_534, 0, x_537); -return x_534; -} -else -{ -lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; -x_538 = lean_ctor_get(x_534, 0); -x_539 = lean_ctor_get(x_534, 1); +lean_object* x_539; lean_object* x_540; lean_object* x_541; size_t x_542; size_t x_543; lean_object* x_544; +x_539 = lean_ctor_get(x_538, 0); lean_inc(x_539); -lean_inc(x_538); -lean_dec(x_534); -x_540 = l_Lean_mkAppN(x_529, x_538); -x_541 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_541, 0, x_540); -lean_ctor_set(x_541, 1, x_539); -return x_541; -} -} -else -{ -uint8_t x_542; -lean_dec(x_529); -x_542 = !lean_is_exclusive(x_534); -if (x_542 == 0) -{ -return x_534; -} -else -{ -lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_543 = lean_ctor_get(x_534, 0); -x_544 = lean_ctor_get(x_534, 1); -lean_inc(x_544); -lean_inc(x_543); -lean_dec(x_534); -x_545 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_545, 0, x_543); -lean_ctor_set(x_545, 1, x_544); -return x_545; -} -} -} -else -{ -lean_object* x_546; lean_object* x_547; uint8_t x_548; -x_546 = lean_ctor_get(x_528, 0); -lean_inc(x_546); -x_547 = lean_ctor_get(x_528, 1); -lean_inc(x_547); -lean_dec(x_528); -x_548 = l_Lean_Expr_isLambda(x_546); -if (x_548 == 0) -{ -lean_object* x_549; size_t x_550; size_t x_551; lean_object* x_552; -x_549 = lean_array_get_size(x_3); -x_550 = lean_usize_of_nat(x_549); -lean_dec(x_549); -x_551 = 0; -x_552 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__32___rarg(x_1, x_550, x_551, x_3, x_5, x_6, x_547); +x_540 = lean_ctor_get(x_538, 1); +lean_inc(x_540); +lean_dec(x_538); +x_541 = lean_array_get_size(x_3); +x_542 = lean_usize_of_nat(x_541); +lean_dec(x_541); +x_543 = 0; +x_544 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__31___rarg(x_1, x_542, x_543, x_3, x_5, x_6, x_540); lean_dec(x_1); -if (lean_obj_tag(x_552) == 0) +if (lean_obj_tag(x_544) == 0) { -uint8_t x_553; -x_553 = !lean_is_exclusive(x_552); -if (x_553 == 0) +uint8_t x_545; +x_545 = !lean_is_exclusive(x_544); +if (x_545 == 0) { -lean_object* x_554; lean_object* x_555; -x_554 = lean_ctor_get(x_552, 0); -x_555 = l_Lean_mkAppN(x_546, x_554); -lean_ctor_set(x_552, 0, x_555); -return x_552; +lean_object* x_546; lean_object* x_547; +x_546 = lean_ctor_get(x_544, 0); +x_547 = l_Lean_mkAppN(x_539, x_546); +lean_ctor_set(x_544, 0, x_547); +return x_544; } else { -lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; -x_556 = lean_ctor_get(x_552, 0); -x_557 = lean_ctor_get(x_552, 1); -lean_inc(x_557); +lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; +x_548 = lean_ctor_get(x_544, 0); +x_549 = lean_ctor_get(x_544, 1); +lean_inc(x_549); +lean_inc(x_548); +lean_dec(x_544); +x_550 = l_Lean_mkAppN(x_539, x_548); +x_551 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_551, 0, x_550); +lean_ctor_set(x_551, 1, x_549); +return x_551; +} +} +else +{ +uint8_t x_552; +lean_dec(x_539); +x_552 = !lean_is_exclusive(x_544); +if (x_552 == 0) +{ +return x_544; +} +else +{ +lean_object* x_553; lean_object* x_554; lean_object* x_555; +x_553 = lean_ctor_get(x_544, 0); +x_554 = lean_ctor_get(x_544, 1); +lean_inc(x_554); +lean_inc(x_553); +lean_dec(x_544); +x_555 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_555, 0, x_553); +lean_ctor_set(x_555, 1, x_554); +return x_555; +} +} +} +else +{ +lean_object* x_556; lean_object* x_557; uint8_t x_558; +x_556 = lean_ctor_get(x_538, 0); lean_inc(x_556); -lean_dec(x_552); -x_558 = l_Lean_mkAppN(x_546, x_556); -x_559 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_559, 0, x_558); -lean_ctor_set(x_559, 1, x_557); -return x_559; -} -} -else +x_557 = lean_ctor_get(x_538, 1); +lean_inc(x_557); +lean_dec(x_538); +x_558 = l_Lean_Expr_isLambda(x_556); +if (x_558 == 0) { -uint8_t x_560; -lean_dec(x_546); -x_560 = !lean_is_exclusive(x_552); -if (x_560 == 0) -{ -return x_552; -} -else -{ -lean_object* x_561; lean_object* x_562; lean_object* x_563; -x_561 = lean_ctor_get(x_552, 0); -x_562 = lean_ctor_get(x_552, 1); -lean_inc(x_562); -lean_inc(x_561); -lean_dec(x_552); -x_563 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_563, 0, x_561); -lean_ctor_set(x_563, 1, x_562); -return x_563; -} -} -} -else -{ -lean_object* x_564; lean_object* x_565; lean_object* x_566; +lean_object* x_559; size_t x_560; size_t x_561; lean_object* x_562; +x_559 = lean_array_get_size(x_3); +x_560 = lean_usize_of_nat(x_559); +lean_dec(x_559); +x_561 = 0; +x_562 = l_Array_mapMUnsafe_map___at_Lean_MetavarContext_instantiateMVars___spec__32___rarg(x_1, x_560, x_561, x_3, x_5, x_6, x_557); lean_dec(x_1); -x_564 = l_Array_reverse___rarg(x_3); -x_565 = l_Lean_Expr_betaRev(x_546, x_564); -lean_dec(x_564); -lean_dec(x_546); -x_566 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_565, x_5, x_6, x_547); -return x_566; +if (lean_obj_tag(x_562) == 0) +{ +uint8_t x_563; +x_563 = !lean_is_exclusive(x_562); +if (x_563 == 0) +{ +lean_object* x_564; lean_object* x_565; +x_564 = lean_ctor_get(x_562, 0); +x_565 = l_Lean_mkAppN(x_556, x_564); +lean_ctor_set(x_562, 0, x_565); +return x_562; +} +else +{ +lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; +x_566 = lean_ctor_get(x_562, 0); +x_567 = lean_ctor_get(x_562, 1); +lean_inc(x_567); +lean_inc(x_566); +lean_dec(x_562); +x_568 = l_Lean_mkAppN(x_556, x_566); +x_569 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_569, 0, x_568); +lean_ctor_set(x_569, 1, x_567); +return x_569; +} +} +else +{ +uint8_t x_570; +lean_dec(x_556); +x_570 = !lean_is_exclusive(x_562); +if (x_570 == 0) +{ +return x_562; +} +else +{ +lean_object* x_571; lean_object* x_572; lean_object* x_573; +x_571 = lean_ctor_get(x_562, 0); +x_572 = lean_ctor_get(x_562, 1); +lean_inc(x_572); +lean_inc(x_571); +lean_dec(x_562); +x_573 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_573, 0, x_571); +lean_ctor_set(x_573, 1, x_572); +return x_573; } } } else { -uint8_t x_567; +lean_object* x_574; uint8_t x_575; lean_object* x_576; lean_object* x_577; +lean_dec(x_1); +x_574 = l_Array_reverse___rarg(x_3); +x_575 = 0; +x_576 = l_Lean_Expr_betaRev(x_556, x_574, x_575); +lean_dec(x_574); +x_577 = l_Lean_MetavarContext_instantiateExprMVars___at_Lean_MetavarContext_instantiateMVars___spec__2___rarg(x_576, x_5, x_6, x_557); +return x_577; +} +} +} +else +{ +uint8_t x_578; lean_dec(x_3); lean_dec(x_1); -x_567 = !lean_is_exclusive(x_528); -if (x_567 == 0) +x_578 = !lean_is_exclusive(x_538); +if (x_578 == 0) { -return x_528; +return x_538; } else { -lean_object* x_568; lean_object* x_569; lean_object* x_570; -x_568 = lean_ctor_get(x_528, 0); -x_569 = lean_ctor_get(x_528, 1); -lean_inc(x_569); -lean_inc(x_568); -lean_dec(x_528); -x_570 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_570, 0, x_568); -lean_ctor_set(x_570, 1, x_569); -return x_570; +lean_object* x_579; lean_object* x_580; lean_object* x_581; +x_579 = lean_ctor_get(x_538, 0); +x_580 = lean_ctor_get(x_538, 1); +lean_inc(x_580); +lean_inc(x_579); +lean_dec(x_538); +x_581 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_581, 0, x_579); +lean_ctor_set(x_581, 1, x_580); +return x_581; } } } @@ -49014,41 +49014,41 @@ lean_inc(x_1); x_71 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__3(x_1, x_69, x_70, x_3, x_4, x_5); if (lean_obj_tag(x_71) == 0) { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; x_72 = lean_ctor_get(x_71, 0); lean_inc(x_72); x_73 = lean_ctor_get(x_71, 1); lean_inc(x_73); lean_dec(x_71); x_74 = l_Array_reverse___rarg(x_72); -x_75 = l_Lean_Expr_betaRev(x_65, x_74); +x_75 = 0; +x_76 = l_Lean_Expr_betaRev(x_65, x_74, x_75); lean_dec(x_74); -lean_dec(x_65); -x_76 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elim(x_1, x_75, x_4, x_73); -return x_76; +x_77 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elim(x_1, x_76, x_4, x_73); +return x_77; } else { -uint8_t x_77; +uint8_t x_78; lean_dec(x_65); lean_dec(x_1); -x_77 = !lean_is_exclusive(x_71); -if (x_77 == 0) +x_78 = !lean_is_exclusive(x_71); +if (x_78 == 0) { return x_71; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_71, 0); -x_79 = lean_ctor_get(x_71, 1); +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_71, 0); +x_80 = lean_ctor_get(x_71, 1); +lean_inc(x_80); lean_inc(x_79); -lean_inc(x_78); lean_dec(x_71); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; } } } @@ -49056,847 +49056,847 @@ return x_80; } case 3: { -lean_object* x_81; +lean_object* x_82; lean_inc(x_1); -x_81 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_81) == 0) +x_82 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_82; lean_object* x_83; lean_object* x_84; size_t x_85; size_t x_86; lean_object* x_87; -x_82 = lean_ctor_get(x_81, 0); -lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); +lean_object* x_83; lean_object* x_84; lean_object* x_85; size_t x_86; size_t x_87; lean_object* x_88; +x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); -lean_dec(x_81); -x_84 = lean_array_get_size(x_3); -x_85 = lean_usize_of_nat(x_84); -lean_dec(x_84); -x_86 = 0; -x_87 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(x_1, x_85, x_86, x_3, x_4, x_83); -if (lean_obj_tag(x_87) == 0) -{ -uint8_t x_88; -x_88 = !lean_is_exclusive(x_87); -if (x_88 == 0) -{ -lean_object* x_89; lean_object* x_90; -x_89 = lean_ctor_get(x_87, 0); -x_90 = l_Lean_mkAppN(x_82, x_89); -lean_ctor_set(x_87, 0, x_90); -return x_87; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_91 = lean_ctor_get(x_87, 0); -x_92 = lean_ctor_get(x_87, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_87); -x_93 = l_Lean_mkAppN(x_82, x_91); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -} -else -{ -uint8_t x_95; +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); lean_dec(x_82); -x_95 = !lean_is_exclusive(x_87); -if (x_95 == 0) +x_85 = lean_array_get_size(x_3); +x_86 = lean_usize_of_nat(x_85); +lean_dec(x_85); +x_87 = 0; +x_88 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__4(x_1, x_86, x_87, x_3, x_4, x_84); +if (lean_obj_tag(x_88) == 0) { -return x_87; +uint8_t x_89; +x_89 = !lean_is_exclusive(x_88); +if (x_89 == 0) +{ +lean_object* x_90; lean_object* x_91; +x_90 = lean_ctor_get(x_88, 0); +x_91 = l_Lean_mkAppN(x_83, x_90); +lean_ctor_set(x_88, 0, x_91); +return x_88; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_87, 0); -x_97 = lean_ctor_get(x_87, 1); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_92 = lean_ctor_get(x_88, 0); +x_93 = lean_ctor_get(x_88, 1); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_88); +x_94 = l_Lean_mkAppN(x_83, x_92); +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_93); +return x_95; +} +} +else +{ +uint8_t x_96; +lean_dec(x_83); +x_96 = !lean_is_exclusive(x_88); +if (x_96 == 0) +{ +return x_88; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_88, 0); +x_98 = lean_ctor_get(x_88, 1); +lean_inc(x_98); lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_87); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -return x_98; +lean_dec(x_88); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; } } } else { -uint8_t x_99; +uint8_t x_100; lean_dec(x_3); lean_dec(x_1); -x_99 = !lean_is_exclusive(x_81); -if (x_99 == 0) +x_100 = !lean_is_exclusive(x_82); +if (x_100 == 0) { -return x_81; +return x_82; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_ctor_get(x_81, 0); -x_101 = lean_ctor_get(x_81, 1); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_82, 0); +x_102 = lean_ctor_get(x_82, 1); +lean_inc(x_102); lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_81); -x_102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -return x_102; +lean_dec(x_82); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +return x_103; } } } case 4: { -lean_object* x_103; +lean_object* x_104; lean_inc(x_1); -x_103 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_103) == 0) +x_104 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; size_t x_107; size_t x_108; lean_object* x_109; -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_103, 1); +lean_object* x_105; lean_object* x_106; lean_object* x_107; size_t x_108; size_t x_109; lean_object* x_110; +x_105 = lean_ctor_get(x_104, 0); lean_inc(x_105); -lean_dec(x_103); -x_106 = lean_array_get_size(x_3); -x_107 = lean_usize_of_nat(x_106); -lean_dec(x_106); -x_108 = 0; -x_109 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(x_1, x_107, x_108, x_3, x_4, x_105); -if (lean_obj_tag(x_109) == 0) -{ -uint8_t x_110; -x_110 = !lean_is_exclusive(x_109); -if (x_110 == 0) -{ -lean_object* x_111; lean_object* x_112; -x_111 = lean_ctor_get(x_109, 0); -x_112 = l_Lean_mkAppN(x_104, x_111); -lean_ctor_set(x_109, 0, x_112); -return x_109; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_109, 0); -x_114 = lean_ctor_get(x_109, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_109); -x_115 = l_Lean_mkAppN(x_104, x_113); -x_116 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_114); -return x_116; -} -} -else -{ -uint8_t x_117; +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); lean_dec(x_104); -x_117 = !lean_is_exclusive(x_109); -if (x_117 == 0) +x_107 = lean_array_get_size(x_3); +x_108 = lean_usize_of_nat(x_107); +lean_dec(x_107); +x_109 = 0; +x_110 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(x_1, x_108, x_109, x_3, x_4, x_106); +if (lean_obj_tag(x_110) == 0) { -return x_109; +uint8_t x_111; +x_111 = !lean_is_exclusive(x_110); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_110, 0); +x_113 = l_Lean_mkAppN(x_105, x_112); +lean_ctor_set(x_110, 0, x_113); +return x_110; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_109, 0); -x_119 = lean_ctor_get(x_109, 1); +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_110, 0); +x_115 = lean_ctor_get(x_110, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_110); +x_116 = l_Lean_mkAppN(x_105, x_114); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +} +else +{ +uint8_t x_118; +lean_dec(x_105); +x_118 = !lean_is_exclusive(x_110); +if (x_118 == 0) +{ +return x_110; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_110, 0); +x_120 = lean_ctor_get(x_110, 1); +lean_inc(x_120); lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_109); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +lean_dec(x_110); +x_121 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_121, 0, x_119); +lean_ctor_set(x_121, 1, x_120); +return x_121; } } } else { -uint8_t x_121; +uint8_t x_122; lean_dec(x_3); lean_dec(x_1); -x_121 = !lean_is_exclusive(x_103); -if (x_121 == 0) +x_122 = !lean_is_exclusive(x_104); +if (x_122 == 0) { -return x_103; +return x_104; } else { -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_103, 0); -x_123 = lean_ctor_get(x_103, 1); +lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_123 = lean_ctor_get(x_104, 0); +x_124 = lean_ctor_get(x_104, 1); +lean_inc(x_124); lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_103); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; +lean_dec(x_104); +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; } } } case 5: { -lean_object* x_125; +lean_object* x_126; lean_inc(x_1); -x_125 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_125) == 0) +x_126 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_126) == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; size_t x_129; size_t x_130; lean_object* x_131; -x_126 = lean_ctor_get(x_125, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_125, 1); +lean_object* x_127; lean_object* x_128; lean_object* x_129; size_t x_130; size_t x_131; lean_object* x_132; +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_125); -x_128 = lean_array_get_size(x_3); -x_129 = lean_usize_of_nat(x_128); -lean_dec(x_128); -x_130 = 0; -x_131 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__6(x_1, x_129, x_130, x_3, x_4, x_127); -if (lean_obj_tag(x_131) == 0) -{ -uint8_t x_132; -x_132 = !lean_is_exclusive(x_131); -if (x_132 == 0) -{ -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_131, 0); -x_134 = l_Lean_mkAppN(x_126, x_133); -lean_ctor_set(x_131, 0, x_134); -return x_131; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_135 = lean_ctor_get(x_131, 0); -x_136 = lean_ctor_get(x_131, 1); -lean_inc(x_136); -lean_inc(x_135); -lean_dec(x_131); -x_137 = l_Lean_mkAppN(x_126, x_135); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_136); -return x_138; -} -} -else -{ -uint8_t x_139; +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); lean_dec(x_126); -x_139 = !lean_is_exclusive(x_131); -if (x_139 == 0) +x_129 = lean_array_get_size(x_3); +x_130 = lean_usize_of_nat(x_129); +lean_dec(x_129); +x_131 = 0; +x_132 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__6(x_1, x_130, x_131, x_3, x_4, x_128); +if (lean_obj_tag(x_132) == 0) { -return x_131; +uint8_t x_133; +x_133 = !lean_is_exclusive(x_132); +if (x_133 == 0) +{ +lean_object* x_134; lean_object* x_135; +x_134 = lean_ctor_get(x_132, 0); +x_135 = l_Lean_mkAppN(x_127, x_134); +lean_ctor_set(x_132, 0, x_135); +return x_132; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_131, 0); -x_141 = lean_ctor_get(x_131, 1); +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_136 = lean_ctor_get(x_132, 0); +x_137 = lean_ctor_get(x_132, 1); +lean_inc(x_137); +lean_inc(x_136); +lean_dec(x_132); +x_138 = l_Lean_mkAppN(x_127, x_136); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_137); +return x_139; +} +} +else +{ +uint8_t x_140; +lean_dec(x_127); +x_140 = !lean_is_exclusive(x_132); +if (x_140 == 0) +{ +return x_132; +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_132, 0); +x_142 = lean_ctor_get(x_132, 1); +lean_inc(x_142); lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_131); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; +lean_dec(x_132); +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_141); +lean_ctor_set(x_143, 1, x_142); +return x_143; } } } else { -uint8_t x_143; +uint8_t x_144; lean_dec(x_3); lean_dec(x_1); -x_143 = !lean_is_exclusive(x_125); -if (x_143 == 0) +x_144 = !lean_is_exclusive(x_126); +if (x_144 == 0) { -return x_125; +return x_126; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_125, 0); -x_145 = lean_ctor_get(x_125, 1); +lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_145 = lean_ctor_get(x_126, 0); +x_146 = lean_ctor_get(x_126, 1); +lean_inc(x_146); lean_inc(x_145); -lean_inc(x_144); -lean_dec(x_125); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; +lean_dec(x_126); +x_147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_147, 0, x_145); +lean_ctor_set(x_147, 1, x_146); +return x_147; } } } case 6: { -lean_object* x_147; +lean_object* x_148; lean_inc(x_1); -x_147 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_147) == 0) +x_148 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_148) == 0) { -lean_object* x_148; lean_object* x_149; lean_object* x_150; size_t x_151; size_t x_152; lean_object* x_153; -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_ctor_get(x_147, 1); +lean_object* x_149; lean_object* x_150; lean_object* x_151; size_t x_152; size_t x_153; lean_object* x_154; +x_149 = lean_ctor_get(x_148, 0); lean_inc(x_149); -lean_dec(x_147); -x_150 = lean_array_get_size(x_3); -x_151 = lean_usize_of_nat(x_150); -lean_dec(x_150); -x_152 = 0; -x_153 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__7(x_1, x_151, x_152, x_3, x_4, x_149); -if (lean_obj_tag(x_153) == 0) -{ -uint8_t x_154; -x_154 = !lean_is_exclusive(x_153); -if (x_154 == 0) -{ -lean_object* x_155; lean_object* x_156; -x_155 = lean_ctor_get(x_153, 0); -x_156 = l_Lean_mkAppN(x_148, x_155); -lean_ctor_set(x_153, 0, x_156); -return x_153; -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -x_157 = lean_ctor_get(x_153, 0); -x_158 = lean_ctor_get(x_153, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_153); -x_159 = l_Lean_mkAppN(x_148, x_157); -x_160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_158); -return x_160; -} -} -else -{ -uint8_t x_161; +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); lean_dec(x_148); -x_161 = !lean_is_exclusive(x_153); -if (x_161 == 0) +x_151 = lean_array_get_size(x_3); +x_152 = lean_usize_of_nat(x_151); +lean_dec(x_151); +x_153 = 0; +x_154 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__7(x_1, x_152, x_153, x_3, x_4, x_150); +if (lean_obj_tag(x_154) == 0) { -return x_153; +uint8_t x_155; +x_155 = !lean_is_exclusive(x_154); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; +x_156 = lean_ctor_get(x_154, 0); +x_157 = l_Lean_mkAppN(x_149, x_156); +lean_ctor_set(x_154, 0, x_157); +return x_154; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_162 = lean_ctor_get(x_153, 0); -x_163 = lean_ctor_get(x_153, 1); +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_158 = lean_ctor_get(x_154, 0); +x_159 = lean_ctor_get(x_154, 1); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_154); +x_160 = l_Lean_mkAppN(x_149, x_158); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_159); +return x_161; +} +} +else +{ +uint8_t x_162; +lean_dec(x_149); +x_162 = !lean_is_exclusive(x_154); +if (x_162 == 0) +{ +return x_154; +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_154, 0); +x_164 = lean_ctor_get(x_154, 1); +lean_inc(x_164); lean_inc(x_163); -lean_inc(x_162); -lean_dec(x_153); -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set(x_164, 1, x_163); -return x_164; +lean_dec(x_154); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +return x_165; } } } else { -uint8_t x_165; +uint8_t x_166; lean_dec(x_3); lean_dec(x_1); -x_165 = !lean_is_exclusive(x_147); -if (x_165 == 0) +x_166 = !lean_is_exclusive(x_148); +if (x_166 == 0) { -return x_147; +return x_148; } else { -lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_166 = lean_ctor_get(x_147, 0); -x_167 = lean_ctor_get(x_147, 1); +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_148, 0); +x_168 = lean_ctor_get(x_148, 1); +lean_inc(x_168); lean_inc(x_167); -lean_inc(x_166); -lean_dec(x_147); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_166); -lean_ctor_set(x_168, 1, x_167); -return x_168; +lean_dec(x_148); +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; } } } case 7: { -lean_object* x_169; +lean_object* x_170; lean_inc(x_1); -x_169 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_169) == 0) +x_170 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_170) == 0) { -lean_object* x_170; lean_object* x_171; lean_object* x_172; size_t x_173; size_t x_174; lean_object* x_175; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); +lean_object* x_171; lean_object* x_172; lean_object* x_173; size_t x_174; size_t x_175; lean_object* x_176; +x_171 = lean_ctor_get(x_170, 0); lean_inc(x_171); -lean_dec(x_169); -x_172 = lean_array_get_size(x_3); -x_173 = lean_usize_of_nat(x_172); -lean_dec(x_172); -x_174 = 0; -x_175 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__8(x_1, x_173, x_174, x_3, x_4, x_171); -if (lean_obj_tag(x_175) == 0) -{ -uint8_t x_176; -x_176 = !lean_is_exclusive(x_175); -if (x_176 == 0) -{ -lean_object* x_177; lean_object* x_178; -x_177 = lean_ctor_get(x_175, 0); -x_178 = l_Lean_mkAppN(x_170, x_177); -lean_ctor_set(x_175, 0, x_178); -return x_175; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_179 = lean_ctor_get(x_175, 0); -x_180 = lean_ctor_get(x_175, 1); -lean_inc(x_180); -lean_inc(x_179); -lean_dec(x_175); -x_181 = l_Lean_mkAppN(x_170, x_179); -x_182 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_180); -return x_182; -} -} -else -{ -uint8_t x_183; +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); lean_dec(x_170); -x_183 = !lean_is_exclusive(x_175); -if (x_183 == 0) +x_173 = lean_array_get_size(x_3); +x_174 = lean_usize_of_nat(x_173); +lean_dec(x_173); +x_175 = 0; +x_176 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__8(x_1, x_174, x_175, x_3, x_4, x_172); +if (lean_obj_tag(x_176) == 0) { -return x_175; +uint8_t x_177; +x_177 = !lean_is_exclusive(x_176); +if (x_177 == 0) +{ +lean_object* x_178; lean_object* x_179; +x_178 = lean_ctor_get(x_176, 0); +x_179 = l_Lean_mkAppN(x_171, x_178); +lean_ctor_set(x_176, 0, x_179); +return x_176; } else { -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_175, 0); -x_185 = lean_ctor_get(x_175, 1); +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_180 = lean_ctor_get(x_176, 0); +x_181 = lean_ctor_get(x_176, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_176); +x_182 = l_Lean_mkAppN(x_171, x_180); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_181); +return x_183; +} +} +else +{ +uint8_t x_184; +lean_dec(x_171); +x_184 = !lean_is_exclusive(x_176); +if (x_184 == 0) +{ +return x_176; +} +else +{ +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_176, 0); +x_186 = lean_ctor_get(x_176, 1); +lean_inc(x_186); lean_inc(x_185); -lean_inc(x_184); -lean_dec(x_175); -x_186 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; +lean_dec(x_176); +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; } } } else { -uint8_t x_187; +uint8_t x_188; lean_dec(x_3); lean_dec(x_1); -x_187 = !lean_is_exclusive(x_169); -if (x_187 == 0) +x_188 = !lean_is_exclusive(x_170); +if (x_188 == 0) { -return x_169; +return x_170; } else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_188 = lean_ctor_get(x_169, 0); -x_189 = lean_ctor_get(x_169, 1); +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_170, 0); +x_190 = lean_ctor_get(x_170, 1); +lean_inc(x_190); lean_inc(x_189); -lean_inc(x_188); -lean_dec(x_169); -x_190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_190, 0, x_188); -lean_ctor_set(x_190, 1, x_189); -return x_190; +lean_dec(x_170); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; } } } case 8: { -lean_object* x_191; +lean_object* x_192; lean_inc(x_1); -x_191 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_191) == 0) +x_192 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_192) == 0) { -lean_object* x_192; lean_object* x_193; lean_object* x_194; size_t x_195; size_t x_196; lean_object* x_197; -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); +lean_object* x_193; lean_object* x_194; lean_object* x_195; size_t x_196; size_t x_197; lean_object* x_198; +x_193 = lean_ctor_get(x_192, 0); lean_inc(x_193); -lean_dec(x_191); -x_194 = lean_array_get_size(x_3); -x_195 = lean_usize_of_nat(x_194); -lean_dec(x_194); -x_196 = 0; -x_197 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__9(x_1, x_195, x_196, x_3, x_4, x_193); -if (lean_obj_tag(x_197) == 0) -{ -uint8_t x_198; -x_198 = !lean_is_exclusive(x_197); -if (x_198 == 0) -{ -lean_object* x_199; lean_object* x_200; -x_199 = lean_ctor_get(x_197, 0); -x_200 = l_Lean_mkAppN(x_192, x_199); -lean_ctor_set(x_197, 0, x_200); -return x_197; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_201 = lean_ctor_get(x_197, 0); -x_202 = lean_ctor_get(x_197, 1); -lean_inc(x_202); -lean_inc(x_201); -lean_dec(x_197); -x_203 = l_Lean_mkAppN(x_192, x_201); -x_204 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -return x_204; -} -} -else -{ -uint8_t x_205; +x_194 = lean_ctor_get(x_192, 1); +lean_inc(x_194); lean_dec(x_192); -x_205 = !lean_is_exclusive(x_197); -if (x_205 == 0) +x_195 = lean_array_get_size(x_3); +x_196 = lean_usize_of_nat(x_195); +lean_dec(x_195); +x_197 = 0; +x_198 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__9(x_1, x_196, x_197, x_3, x_4, x_194); +if (lean_obj_tag(x_198) == 0) { -return x_197; +uint8_t x_199; +x_199 = !lean_is_exclusive(x_198); +if (x_199 == 0) +{ +lean_object* x_200; lean_object* x_201; +x_200 = lean_ctor_get(x_198, 0); +x_201 = l_Lean_mkAppN(x_193, x_200); +lean_ctor_set(x_198, 0, x_201); +return x_198; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_197, 0); -x_207 = lean_ctor_get(x_197, 1); +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_202 = lean_ctor_get(x_198, 0); +x_203 = lean_ctor_get(x_198, 1); +lean_inc(x_203); +lean_inc(x_202); +lean_dec(x_198); +x_204 = l_Lean_mkAppN(x_193, x_202); +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_203); +return x_205; +} +} +else +{ +uint8_t x_206; +lean_dec(x_193); +x_206 = !lean_is_exclusive(x_198); +if (x_206 == 0) +{ +return x_198; +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_198, 0); +x_208 = lean_ctor_get(x_198, 1); +lean_inc(x_208); lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_197); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_206); -lean_ctor_set(x_208, 1, x_207); -return x_208; +lean_dec(x_198); +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_208); +return x_209; } } } else { -uint8_t x_209; +uint8_t x_210; lean_dec(x_3); lean_dec(x_1); -x_209 = !lean_is_exclusive(x_191); -if (x_209 == 0) +x_210 = !lean_is_exclusive(x_192); +if (x_210 == 0) { -return x_191; +return x_192; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_210 = lean_ctor_get(x_191, 0); -x_211 = lean_ctor_get(x_191, 1); +lean_object* x_211; lean_object* x_212; lean_object* x_213; +x_211 = lean_ctor_get(x_192, 0); +x_212 = lean_ctor_get(x_192, 1); +lean_inc(x_212); lean_inc(x_211); -lean_inc(x_210); -lean_dec(x_191); -x_212 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -return x_212; +lean_dec(x_192); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_211); +lean_ctor_set(x_213, 1, x_212); +return x_213; } } } case 9: { -lean_object* x_213; +lean_object* x_214; lean_inc(x_1); -x_213 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_213) == 0) +x_214 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_214; lean_object* x_215; lean_object* x_216; size_t x_217; size_t x_218; lean_object* x_219; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); +lean_object* x_215; lean_object* x_216; lean_object* x_217; size_t x_218; size_t x_219; lean_object* x_220; +x_215 = lean_ctor_get(x_214, 0); lean_inc(x_215); -lean_dec(x_213); -x_216 = lean_array_get_size(x_3); -x_217 = lean_usize_of_nat(x_216); -lean_dec(x_216); -x_218 = 0; -x_219 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__10(x_1, x_217, x_218, x_3, x_4, x_215); -if (lean_obj_tag(x_219) == 0) -{ -uint8_t x_220; -x_220 = !lean_is_exclusive(x_219); -if (x_220 == 0) -{ -lean_object* x_221; lean_object* x_222; -x_221 = lean_ctor_get(x_219, 0); -x_222 = l_Lean_mkAppN(x_214, x_221); -lean_ctor_set(x_219, 0, x_222); -return x_219; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_223 = lean_ctor_get(x_219, 0); -x_224 = lean_ctor_get(x_219, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_219); -x_225 = l_Lean_mkAppN(x_214, x_223); -x_226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_224); -return x_226; -} -} -else -{ -uint8_t x_227; +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); lean_dec(x_214); -x_227 = !lean_is_exclusive(x_219); -if (x_227 == 0) +x_217 = lean_array_get_size(x_3); +x_218 = lean_usize_of_nat(x_217); +lean_dec(x_217); +x_219 = 0; +x_220 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__10(x_1, x_218, x_219, x_3, x_4, x_216); +if (lean_obj_tag(x_220) == 0) { -return x_219; +uint8_t x_221; +x_221 = !lean_is_exclusive(x_220); +if (x_221 == 0) +{ +lean_object* x_222; lean_object* x_223; +x_222 = lean_ctor_get(x_220, 0); +x_223 = l_Lean_mkAppN(x_215, x_222); +lean_ctor_set(x_220, 0, x_223); +return x_220; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_228 = lean_ctor_get(x_219, 0); -x_229 = lean_ctor_get(x_219, 1); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_224 = lean_ctor_get(x_220, 0); +x_225 = lean_ctor_get(x_220, 1); +lean_inc(x_225); +lean_inc(x_224); +lean_dec(x_220); +x_226 = l_Lean_mkAppN(x_215, x_224); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_225); +return x_227; +} +} +else +{ +uint8_t x_228; +lean_dec(x_215); +x_228 = !lean_is_exclusive(x_220); +if (x_228 == 0) +{ +return x_220; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_220, 0); +x_230 = lean_ctor_get(x_220, 1); +lean_inc(x_230); lean_inc(x_229); -lean_inc(x_228); -lean_dec(x_219); -x_230 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_230, 0, x_228); -lean_ctor_set(x_230, 1, x_229); -return x_230; +lean_dec(x_220); +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_229); +lean_ctor_set(x_231, 1, x_230); +return x_231; } } } else { -uint8_t x_231; +uint8_t x_232; lean_dec(x_3); lean_dec(x_1); -x_231 = !lean_is_exclusive(x_213); -if (x_231 == 0) +x_232 = !lean_is_exclusive(x_214); +if (x_232 == 0) { -return x_213; +return x_214; } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_232 = lean_ctor_get(x_213, 0); -x_233 = lean_ctor_get(x_213, 1); +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_214, 0); +x_234 = lean_ctor_get(x_214, 1); +lean_inc(x_234); lean_inc(x_233); -lean_inc(x_232); -lean_dec(x_213); -x_234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -return x_234; +lean_dec(x_214); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +return x_235; } } } case 10: { -lean_object* x_235; +lean_object* x_236; lean_inc(x_1); -x_235 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_235) == 0) +x_236 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_236) == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; size_t x_239; size_t x_240; lean_object* x_241; -x_236 = lean_ctor_get(x_235, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_235, 1); +lean_object* x_237; lean_object* x_238; lean_object* x_239; size_t x_240; size_t x_241; lean_object* x_242; +x_237 = lean_ctor_get(x_236, 0); lean_inc(x_237); -lean_dec(x_235); -x_238 = lean_array_get_size(x_3); -x_239 = lean_usize_of_nat(x_238); -lean_dec(x_238); -x_240 = 0; -x_241 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__11(x_1, x_239, x_240, x_3, x_4, x_237); -if (lean_obj_tag(x_241) == 0) -{ -uint8_t x_242; -x_242 = !lean_is_exclusive(x_241); -if (x_242 == 0) -{ -lean_object* x_243; lean_object* x_244; -x_243 = lean_ctor_get(x_241, 0); -x_244 = l_Lean_mkAppN(x_236, x_243); -lean_ctor_set(x_241, 0, x_244); -return x_241; -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_245 = lean_ctor_get(x_241, 0); -x_246 = lean_ctor_get(x_241, 1); -lean_inc(x_246); -lean_inc(x_245); -lean_dec(x_241); -x_247 = l_Lean_mkAppN(x_236, x_245); -x_248 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_248, 0, x_247); -lean_ctor_set(x_248, 1, x_246); -return x_248; -} -} -else -{ -uint8_t x_249; +x_238 = lean_ctor_get(x_236, 1); +lean_inc(x_238); lean_dec(x_236); -x_249 = !lean_is_exclusive(x_241); -if (x_249 == 0) +x_239 = lean_array_get_size(x_3); +x_240 = lean_usize_of_nat(x_239); +lean_dec(x_239); +x_241 = 0; +x_242 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__11(x_1, x_240, x_241, x_3, x_4, x_238); +if (lean_obj_tag(x_242) == 0) { -return x_241; +uint8_t x_243; +x_243 = !lean_is_exclusive(x_242); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_242, 0); +x_245 = l_Lean_mkAppN(x_237, x_244); +lean_ctor_set(x_242, 0, x_245); +return x_242; } else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_241, 0); -x_251 = lean_ctor_get(x_241, 1); +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_246 = lean_ctor_get(x_242, 0); +x_247 = lean_ctor_get(x_242, 1); +lean_inc(x_247); +lean_inc(x_246); +lean_dec(x_242); +x_248 = l_Lean_mkAppN(x_237, x_246); +x_249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_249, 0, x_248); +lean_ctor_set(x_249, 1, x_247); +return x_249; +} +} +else +{ +uint8_t x_250; +lean_dec(x_237); +x_250 = !lean_is_exclusive(x_242); +if (x_250 == 0) +{ +return x_242; +} +else +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_251 = lean_ctor_get(x_242, 0); +x_252 = lean_ctor_get(x_242, 1); +lean_inc(x_252); lean_inc(x_251); -lean_inc(x_250); -lean_dec(x_241); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_250); -lean_ctor_set(x_252, 1, x_251); -return x_252; +lean_dec(x_242); +x_253 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_253, 0, x_251); +lean_ctor_set(x_253, 1, x_252); +return x_253; } } } else { -uint8_t x_253; +uint8_t x_254; lean_dec(x_3); lean_dec(x_1); -x_253 = !lean_is_exclusive(x_235); -if (x_253 == 0) +x_254 = !lean_is_exclusive(x_236); +if (x_254 == 0) { -return x_235; +return x_236; } else { -lean_object* x_254; lean_object* x_255; lean_object* x_256; -x_254 = lean_ctor_get(x_235, 0); -x_255 = lean_ctor_get(x_235, 1); +lean_object* x_255; lean_object* x_256; lean_object* x_257; +x_255 = lean_ctor_get(x_236, 0); +x_256 = lean_ctor_get(x_236, 1); +lean_inc(x_256); lean_inc(x_255); -lean_inc(x_254); -lean_dec(x_235); -x_256 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_256, 0, x_254); -lean_ctor_set(x_256, 1, x_255); -return x_256; +lean_dec(x_236); +x_257 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_257, 0, x_255); +lean_ctor_set(x_257, 1, x_256); +return x_257; } } } default: { -lean_object* x_257; +lean_object* x_258; lean_inc(x_1); -x_257 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); -if (lean_obj_tag(x_257) == 0) +x_258 = l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit(x_1, x_2, x_4, x_5); +if (lean_obj_tag(x_258) == 0) { -lean_object* x_258; lean_object* x_259; lean_object* x_260; size_t x_261; size_t x_262; lean_object* x_263; -x_258 = lean_ctor_get(x_257, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_257, 1); +lean_object* x_259; lean_object* x_260; lean_object* x_261; size_t x_262; size_t x_263; lean_object* x_264; +x_259 = lean_ctor_get(x_258, 0); lean_inc(x_259); -lean_dec(x_257); -x_260 = lean_array_get_size(x_3); -x_261 = lean_usize_of_nat(x_260); -lean_dec(x_260); -x_262 = 0; -x_263 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__12(x_1, x_261, x_262, x_3, x_4, x_259); -if (lean_obj_tag(x_263) == 0) -{ -uint8_t x_264; -x_264 = !lean_is_exclusive(x_263); -if (x_264 == 0) -{ -lean_object* x_265; lean_object* x_266; -x_265 = lean_ctor_get(x_263, 0); -x_266 = l_Lean_mkAppN(x_258, x_265); -lean_ctor_set(x_263, 0, x_266); -return x_263; -} -else -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_267 = lean_ctor_get(x_263, 0); -x_268 = lean_ctor_get(x_263, 1); -lean_inc(x_268); -lean_inc(x_267); -lean_dec(x_263); -x_269 = l_Lean_mkAppN(x_258, x_267); -x_270 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_270, 0, x_269); -lean_ctor_set(x_270, 1, x_268); -return x_270; -} -} -else -{ -uint8_t x_271; +x_260 = lean_ctor_get(x_258, 1); +lean_inc(x_260); lean_dec(x_258); -x_271 = !lean_is_exclusive(x_263); -if (x_271 == 0) +x_261 = lean_array_get_size(x_3); +x_262 = lean_usize_of_nat(x_261); +lean_dec(x_261); +x_263 = 0; +x_264 = l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__12(x_1, x_262, x_263, x_3, x_4, x_260); +if (lean_obj_tag(x_264) == 0) { -return x_263; +uint8_t x_265; +x_265 = !lean_is_exclusive(x_264); +if (x_265 == 0) +{ +lean_object* x_266; lean_object* x_267; +x_266 = lean_ctor_get(x_264, 0); +x_267 = l_Lean_mkAppN(x_259, x_266); +lean_ctor_set(x_264, 0, x_267); +return x_264; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_272 = lean_ctor_get(x_263, 0); -x_273 = lean_ctor_get(x_263, 1); +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_268 = lean_ctor_get(x_264, 0); +x_269 = lean_ctor_get(x_264, 1); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_264); +x_270 = l_Lean_mkAppN(x_259, x_268); +x_271 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_271, 0, x_270); +lean_ctor_set(x_271, 1, x_269); +return x_271; +} +} +else +{ +uint8_t x_272; +lean_dec(x_259); +x_272 = !lean_is_exclusive(x_264); +if (x_272 == 0) +{ +return x_264; +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_264, 0); +x_274 = lean_ctor_get(x_264, 1); +lean_inc(x_274); lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_263); -x_274 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_274, 0, x_272); -lean_ctor_set(x_274, 1, x_273); -return x_274; +lean_dec(x_264); +x_275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_275, 0, x_273); +lean_ctor_set(x_275, 1, x_274); +return x_275; } } } else { -uint8_t x_275; +uint8_t x_276; lean_dec(x_3); lean_dec(x_1); -x_275 = !lean_is_exclusive(x_257); -if (x_275 == 0) +x_276 = !lean_is_exclusive(x_258); +if (x_276 == 0) { -return x_257; +return x_258; } else { -lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_276 = lean_ctor_get(x_257, 0); -x_277 = lean_ctor_get(x_257, 1); +lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_277 = lean_ctor_get(x_258, 0); +x_278 = lean_ctor_get(x_258, 1); +lean_inc(x_278); lean_inc(x_277); -lean_inc(x_276); -lean_dec(x_257); -x_278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_278, 0, x_276); -lean_ctor_set(x_278, 1, x_277); -return x_278; +lean_dec(x_258); +x_279 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_279, 0, x_277); +lean_ctor_set(x_279, 1, x_278); +return x_279; } } } diff --git a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c index 41ae001e92..f65143ce5d 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Delaborator/Builtins.c @@ -46,7 +46,6 @@ extern lean_object* l_Lean_PrettyPrinter_Delaborator_delabFailureId; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabMData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPPLetVarTypes___boxed(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___closed__1; -lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_PrettyPrinter_Delaborator_delabForall___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLetFun___lambda__1___closed__10; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNameMkNum___closed__3; @@ -804,7 +803,6 @@ lean_object* l_Lean_getPPMatch___boxed(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabLetE___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda__1___closed__2; static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__3___closed__4; -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__6(lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___lambda__5___closed__3; LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withAppFn___at_Lean_PrettyPrinter_Delaborator_delabAppExplicit___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfScientific___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -994,7 +992,6 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_PrettyPrinter_Delaborator_withMDataOp LEAN_EXPORT lean_object* l_Lean_Meta_forallBoundedTelescope___at_Lean_PrettyPrinter_Delaborator_getParamKinds_forallTelescopeArgs___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppMatch___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_isConstructorApp_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); static lean_object* l_Lean_PrettyPrinter_Delaborator_delabForall___lambda__1___closed__2; static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabOfScientific___closed__2; @@ -13191,71 +13188,6 @@ return x_66; } } } -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___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) { -_start: -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescopeReducing___at_Lean_PrettyPrinter_Delaborator_getParamKinds_forallTelescopeArgs___spec__1___rarg___lambda__1), 10, 3); -lean_closure_set(x_10, 0, x_2); -lean_closure_set(x_10, 1, x_3); -lean_closure_set(x_10, 2, x_4); -x_11 = lean_box(0); -x_12 = 0; -x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(x_12, x_11, x_1, x_10, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) -{ -return x_13; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_13, 0); -x_20 = lean_ctor_get(x_13, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_13); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__6(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__6___rarg), 9, 0); -return x_2; -} -} LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___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: { @@ -13315,7 +13247,7 @@ lean_inc(x_18); lean_dec(x_16); x_19 = lean_alloc_closure((void*)(l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___lambda__1), 10, 1); lean_closure_set(x_19, 0, x_1); -x_20 = l_Lean_Meta_forallTelescope___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__6___rarg(x_17, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_18); +x_20 = l_Lean_Meta_forallTelescopeReducing___at_Lean_PrettyPrinter_Delaborator_getParamKinds_forallTelescopeArgs___spec__1___rarg(x_17, x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_18); return x_20; } else @@ -13386,7 +13318,7 @@ lean_inc(x_35); lean_dec(x_33); x_36 = lean_alloc_closure((void*)(l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___lambda__1), 10, 1); lean_closure_set(x_36, 0, x_1); -x_37 = l_Lean_Meta_forallTelescope___at___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns___spec__6___rarg(x_34, x_36, x_31, x_3, x_4, x_5, x_6, x_7, x_35); +x_37 = l_Lean_Meta_forallTelescopeReducing___at_Lean_PrettyPrinter_Delaborator_getParamKinds_forallTelescopeArgs___spec__1___rarg(x_34, x_36, x_31, x_3, x_4, x_5, x_6, x_7, x_35); return x_37; } else @@ -17736,7 +17668,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_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabLetFun___lambda__1___closed__1; -x_3 = lean_unsigned_to_nat(434u); +x_3 = lean_unsigned_to_nat(435u); x_4 = lean_unsigned_to_nat(37u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -23941,7 +23873,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_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabLetE___closed__1; -x_3 = lean_unsigned_to_nat(592u); +x_3 = lean_unsigned_to_nat(593u); x_4 = lean_unsigned_to_nat(38u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -24695,7 +24627,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_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabLit___closed__1; -x_3 = lean_unsigned_to_nat(605u); +x_3 = lean_unsigned_to_nat(606u); x_4 = lean_unsigned_to_nat(31u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -26087,7 +26019,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_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabProj___closed__1; -x_3 = lean_unsigned_to_nat(644u); +x_3 = lean_unsigned_to_nat(645u); x_4 = lean_unsigned_to_nat(38u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -29694,7 +29626,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_PrettyPrinter_Delaborator_delabFVar___closed__1; x_2 = l_Lean_PrettyPrinter_Delaborator_delabDoElems___closed__5; -x_3 = lean_unsigned_to_nat(738u); +x_3 = lean_unsigned_to_nat(739u); x_4 = lean_unsigned_to_nat(40u); x_5 = l_Lean_PrettyPrinter_Delaborator_delabFVar___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/Server/FileWorker/RequestHandling.c b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c index 6cf5d2e6ee..49a35537c9 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c +++ b/stage0/stdlib/Lean/Server/FileWorker/RequestHandling.c @@ -14,41 +14,40 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__23___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__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*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1(size_t, size_t, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__12; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1___boxed(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__2; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__1; LEAN_EXPORT uint8_t l___private_Lean_Server_FileWorker_RequestHandling_0__Lean_Server_FileWorker_beqGoToKind____x40_Lean_Server_FileWorker_RequestHandling___hyg_365_(uint8_t, uint8_t); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensRange(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__11(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__11; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__6; lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__1(lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_fromJsonTextDocumentPositionParams____x40_Lean_Data_Lsp_Basic___hyg_1966_(lean_object*); extern lean_object* l_Lean_nullKind; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_getInteractiveGoals___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__11; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__6(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__12; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); @@ -56,21 +55,21 @@ static lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__2___clos uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__1; lean_object* lean_io_error_to_string(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___closed__1; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonHoverParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1785_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__7; lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainGoalParams____x40_Lean_Data_Lsp_Extra___hyg_482_(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___closed__7; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__3(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_noConfusionExt; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___closed__1; extern lean_object* l_Std_Format_defWidth; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__2; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__7; static lean_object* l_Lean_Server_FileWorker_handleHover___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__3; @@ -79,212 +78,204 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumen LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__11(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__13___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__8; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__10; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___closed__1; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__3___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_GoToKind_toCtorIdx___boxed(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__26___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_GoToKind_noConfusion___rarg___lambda__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__11; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__1; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__1; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__1; lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Completion_find_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__12; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__2___closed__1; lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__2(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__8(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_declRangeExt; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__12(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__23___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__1; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__19; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__4; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___closed__2; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_infoTree(lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonPlainTermGoalParams____x40_Lean_Data_Lsp_Extra___hyg_697_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__2(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__19; lean_object* lean_string_append(lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Server_FileWorker_handleDocumentSymbol___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_addToken___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withPPInaccessibleNames___at_Lean_Server_FileWorker_getInteractiveGoals___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__8; lean_object* l_Lean_FileMap_lspPosToUtf8Pos(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__8(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__11; lean_object* l_IO_sleep(uint32_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_instBEqGoToKind; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__17(size_t, size_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2___closed__1; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__9; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___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_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441_(lean_object*); lean_object* l_List_join___rarg(lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__3; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__12(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__2(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___boxed(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___closed__3; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__16; LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___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_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_FileMap_utf8PosToLspPos(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__26___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__2(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__16; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__20(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainTermGoal____x40_Lean_Data_Lsp_Extra___hyg_860_(lean_object*); lean_object* l_Lean_Elab_InfoTree_deepestNodes___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__31(lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Lsp_ModuleRefs_addRef___spec__1(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__2(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_InteractiveGoal_pretty(lean_object*); lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__5; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__2(lean_object*, size_t, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__24; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Except_map___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonHover____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1689_(lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_fromJsonWaitForDiagnosticsParams____x40_Lean_Data_Lsp_Extra___hyg_24_(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__31(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___closed__6; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__24; lean_object* l_Lean_Elab_InfoTree_goalsAt_x3f(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_InfoTree_findInfo_x3f(lean_object*, lean_object*); lean_object* l_Lean_Server_Snapshots_parseAhead(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__1; static lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_String_Range_contains(lean_object*, lean_object*); lean_object* l_Lean_Json_compress(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__2; static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Basic_0__Lean_Lsp_toJsonLocationLink____x40_Lean_Data_Lsp_Basic___hyg_1011_(lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Lsp_instToJsonDocumentSymbol_go___spec__3(size_t, size_t, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_SemanticTokenType_toNat(uint8_t); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__20(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__9___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14(lean_object*, lean_object*, lean_object*); lean_object* lean_io_realpath(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__25(lean_object*); lean_object* l_String_Range_toLspRange(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__5(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__10; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__9(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__2(lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonSemanticTokens____x40_Lean_Data_Lsp_LanguageFeatures___hyg_3714_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__1___boxed(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___boxed(lean_object*); lean_object* l_Std_PersistentHashMap_insert___at_Lean_Server_registerLspRequestHandler___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_InteractiveTermGoal_toInteractiveGoal(lean_object*); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__13(size_t, size_t, lean_object*); lean_object* l_Lean_Elab_InfoTree_termGoalAt_x3f(lean_object*, lean_object*); lean_object* l_IO_AsyncList_waitAll___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__2___closed__3; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__2; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightKeyword(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDefinition___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull___rarg___closed__1; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonSemanticTokensRangeParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_3575_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__1(lean_object*); lean_object* lean_task_map(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__10; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_GoToKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___closed__3; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleDefinition___lambda__10(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__20; LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__1; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___closed__1; lean_object* l_Lean_Syntax_getId(lean_object*); extern lean_object* l_Lean_Server_requestHandlers; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__9(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__1; lean_object* lean_format_pretty(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__1(lean_object*); lean_object* l_Lean_Server_RequestM_bindTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_GoToKind_noConfusion(lean_object*); lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__10; static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_PersistentHashMap_contains___at_Lean_Server_registerLspRequestHandler___spec__6(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__20; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__1(lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__12; lean_object* l_Lean_SearchPath_findWithExt(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -293,19 +284,17 @@ static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymb lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonSemanticTokensParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_3492_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainGoal(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_mapTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__25(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__5(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__2___closed__1; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__26(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_Extra_0__Lean_Lsp_toJsonPlainGoal____x40_Lean_Data_Lsp_Extra___hyg_646_(lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2671_(lean_object*); @@ -313,54 +302,53 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambd lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonDocumentHighlight____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2623_(lean_object*); lean_object* lean_local_ctx_pop(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleCompletion___closed__1; -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__13(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedSyntax; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__7___closed__1; lean_object* l_Lean_Elab_Info_stx(lean_object*); lean_object* l_Lean_Elab_Info_toElabInfo_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__2; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__14; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__6___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__9; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonCompletionParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1576_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__28(lean_object*); extern lean_object* l_Task_Priority_default; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__14; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_GoToKind_toCtorIdx(uint8_t); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__26(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_range_x3f(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__2(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__1; lean_object* l_Lean_isRec___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isBlackListed___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__3(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__28(lean_object*); static lean_object* l_Lean_Server_FileWorker_handleCompletion___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__15; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__3; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleCompletion___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___closed__1; uint8_t l_Char_isAlpha(uint32_t); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__5; lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_toJsonCompletionList____x40_Lean_Data_Lsp_LanguageFeatures___hyg_1525_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___closed__1; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__9___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__7; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNodeOf(lean_object*, lean_object*, lean_object*); @@ -370,77 +358,81 @@ lean_object* l_List_drop___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightId___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleCompletion___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__14; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___closed__3; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__18; lean_object* l_Lean_Syntax_getPos_x3f(lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__13___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_AsyncList_updateFinishedPrefix___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover(lean_object*, lean_object*, lean_object*); uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__15; lean_object* l_String_intercalate(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__2(lean_object*); lean_object* l_List_redLength___rarg(lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__6___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__20___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__20___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__2(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___closed__1; lean_object* l_Std_RBNode_find___at_Lean_findDeclarationRanges_x3f___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__10; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__2; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__15; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__1; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__3; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__10___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_EditableDocument_allSnaps(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokensFull___boxed(lean_object*); lean_object* l_IO_AsyncList_finishedPrefix___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_ModuleRefs_findAt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__7; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition(uint8_t, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__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_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__16___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__1; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__7; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__3; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__17___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__9; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Info_tailPos_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArgs(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_instBEqGoToKind___closed__1; lean_object* l_Lean_Syntax_getRange_x3f(lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight___spec__2___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__5; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__4; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__14(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__2(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__18; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__5; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__16; uint8_t lean_is_aux_recursor(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; lean_object* l_Lean_Meta_withPPInaccessibleNamesImp___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__22; extern lean_object* l_Lean_instInhabitedDeclarationRanges; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Server_RequestError_fileChanged; static lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__2___closed__1; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__12___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__22; lean_object* l_Lean_Elab_Info_fmtHover_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_mkObj(lean_object*); lean_object* l_Lean_Elab_InfoTree_hoverableInfoAt_x3f(lean_object*, lean_object*); @@ -448,60 +440,58 @@ lean_object* lean_nat_shiftl(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_highlightKeyword___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_contains___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__1(lean_object*, lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_getPrefix(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__2(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__2(lean_object*); lean_object* l_Lean_Server_Snapshots_Snapshot_endPos(lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_addToken(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__4; LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Server_FileWorker_handleDocumentSymbol___spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__2; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__16___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_GoToKind_noConfusion___rarg___closed__1; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___closed__2; extern lean_object* l_Lean_instInhabitedName; static lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___closed__2; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__1; lean_object* l_Lean_Expr_constName_x3f(lean_object*); lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__4; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2(lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_GoToKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__8; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__17___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_String_instInhabitedRange; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Option_map___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveGoals___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__7; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__17; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2(lean_object*); lean_object* l_Lean_Environment_allImportedModuleNames(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_noHighlightKinds; lean_object* l_Lean_Server_RequestM_withWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__17; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__1(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__13; lean_object* l_Lean_Syntax_getTailPos_x3f(lean_object*, uint8_t); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__9; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__6; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__3___closed__6; -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__1; LEAN_EXPORT lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_contains___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___closed__1; @@ -515,98 +505,108 @@ LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens(lean_obje LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__9; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___lambda__1___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__15(lean_object*); lean_object* l_List_getLast_x21___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleHover___lambda__1(lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handlePlainGoal___spec__1(size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens_highlightId___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__8; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_noHighlightKinds___closed__6; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainTermGoal___lambda__1(lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__17(size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_asTask___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens___lambda__2___closed__1; lean_object* l_Lean_Elab_Info_pos_x3f(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__15(lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__2; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__2; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__21; +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__16(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__1; static lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___closed__4; LEAN_EXPORT uint8_t l_Lean_Server_FileWorker_handleSemanticTokens___lambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___closed__1; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__21; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__8; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__23(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics_waitLoop___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__4; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__22(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__19(lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__6(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__8; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__2; lean_object* l_Lean_Elab_Info_lctx(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__23; static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__11; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Server_FileWorker_handleSemanticTokens_go___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__13; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___closed__3; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__6; lean_object* l_Lean_Elab_ContextInfo_runMetaM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__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_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__23; LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_getInteractiveTermGoal(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__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_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__6___closed__5; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__2; -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_RequestHandling_0__Lean_Server_FileWorker_beqGoToKind____x40_Lean_Server_FileWorker_RequestHandling___hyg_365____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleSemanticTokens_go___closed__1; +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__13; LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Server_FileWorker_handleDocumentSymbol___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___closed__1; static lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___closed__1; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__6(lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1___lambda__1___closed__1; extern lean_object* l_Lean_builtinDeclRanges; static lean_object* l_Lean_Server_FileWorker_handleHover___lambda__2___closed__3; -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__23(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withPPInaccessibleNames___at_Lean_Server_FileWorker_getInteractiveGoals___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_FileWorker_handleSemanticTokens___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_toDocumentSymbols___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Lsp_DocumentUri_ofPath(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__16(lean_object*, lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_GoToKind_noConfusion___rarg___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__2(lean_object*); lean_object* l_Lean_Syntax_reprint(lean_object*); -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_mapM___at_Lean_Server_FileWorker_getInteractiveGoals___spec__3___closed__5; -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__22(lean_object*); lean_object* l_Lean_Server_RequestM_readDoc(lean_object*, lean_object*); lean_object* l_List_getLastD___rarg(lean_object*, lean_object*); static lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__2___lambda__1___closed__1; -static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__2; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__12___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__19(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Widget_goalToInteractive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_handleDocumentHighlight_highlightReturn_x3f___lambda__1(lean_object*, lean_object*); lean_object* l_panic___at_Lean_Elab_InfoTree_smallestInfo_x3f___spec__1(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentHighlightParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_2486_(lean_object*); +static lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__2; static lean_object* l_Lean_Server_FileWorker_handlePlainGoal___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Server_FileWorker_handleCompletion___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -15536,7 +15536,7 @@ lean_dec(x_1); return x_4; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1() { +static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1() { _start: { lean_object* x_1; @@ -15544,7 +15544,7 @@ x_1 = lean_mk_string("Cannot parse request params: "); return x_1; } } -static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2() { +static lean_object* _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2() { _start: { lean_object* x_1; @@ -15552,7 +15552,7 @@ x_1 = lean_mk_string("\n"); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2(lean_object* x_1) { _start: { lean_object* x_2; @@ -15566,10 +15566,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -15589,10 +15589,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -15629,7 +15629,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -15654,11 +15654,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -15708,7 +15708,7 @@ return x_11; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -15717,38 +15717,38 @@ x_2 = l_Lean_Json_mkObj(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___closed__1; +x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___closed__1; return x_2; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__3(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__3(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -15767,7 +15767,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -15781,7 +15781,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -15839,7 +15839,7 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -15847,28 +15847,28 @@ x_1 = l_Lean_Server_requestHandlers; return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__2; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__2; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -15894,7 +15894,7 @@ return x_17; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1() { _start: { lean_object* x_1; @@ -15902,7 +15902,7 @@ x_1 = lean_mk_string("Failed to register LSP request handler for '"); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2() { _start: { lean_object* x_1; @@ -15910,12 +15910,12 @@ x_1 = lean_mk_string("': already registered"); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5(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; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -15930,17 +15930,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -15963,17 +15963,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -15985,7 +15985,7 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1() { _start: { lean_object* x_1; @@ -15993,7 +15993,7 @@ x_1 = lean_mk_string("': only possible during initialization"); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -16012,10 +16012,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -16029,10 +16029,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -16049,12 +16049,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__5(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__5(lean_object* x_1) { _start: { lean_object* x_2; @@ -16068,10 +16068,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -16091,10 +16091,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -16131,7 +16131,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16156,11 +16156,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__5(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__5(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -16210,7 +16210,7 @@ return x_11; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -16218,22 +16218,22 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_LanguageFeatures_0__L return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__5(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__6(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__5(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__6(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -16252,7 +16252,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -16266,7 +16266,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -16324,28 +16324,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -16371,12 +16371,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -16391,17 +16391,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -16424,17 +16424,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -16446,7 +16446,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -16465,10 +16465,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -16482,10 +16482,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -16502,12 +16502,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__4(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__4(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__8(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__8(lean_object* x_1) { _start: { lean_object* x_2; @@ -16521,10 +16521,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -16544,10 +16544,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -16584,7 +16584,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16609,11 +16609,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__8(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__8(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -16663,7 +16663,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16683,30 +16683,30 @@ return x_4; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__8(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__9(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__8(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__9(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -16725,7 +16725,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -16739,7 +16739,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -16797,28 +16797,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -16844,12 +16844,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__5(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; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -16864,17 +16864,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -16897,17 +16897,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -16919,7 +16919,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -16938,10 +16938,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -16955,10 +16955,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -16975,12 +16975,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__11(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__11(lean_object* x_1) { _start: { lean_object* x_2; @@ -16994,10 +16994,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -17017,10 +17017,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -17057,7 +17057,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__12(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17082,7 +17082,7 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__13(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__13(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -17107,11 +17107,11 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__11(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__11(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -17161,7 +17161,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; @@ -17169,36 +17169,36 @@ x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__13(x_3, x_4, x_1); +x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__13(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__11(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__12(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__11(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__12(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -17217,7 +17217,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -17231,7 +17231,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -17289,28 +17289,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -17336,12 +17336,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__5(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; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -17356,17 +17356,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -17389,17 +17389,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -17411,7 +17411,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -17430,10 +17430,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -17447,10 +17447,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -17467,12 +17467,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__15(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__15(lean_object* x_1) { _start: { lean_object* x_2; @@ -17486,10 +17486,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -17509,10 +17509,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -17549,7 +17549,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__16(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17574,7 +17574,7 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__17(size_t x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__17(size_t x_1, size_t x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -17599,11 +17599,11 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__15(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__15(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -17653,7 +17653,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; @@ -17661,36 +17661,36 @@ x_2 = lean_array_get_size(x_1); x_3 = lean_usize_of_nat(x_2); lean_dec(x_2); x_4 = 0; -x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__17(x_3, x_4, x_1); +x_5 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__17(x_3, x_4, x_1); x_6 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_6, 0, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__15(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__16(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__15(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__16(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -17709,7 +17709,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -17723,7 +17723,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -17781,28 +17781,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -17828,12 +17828,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__5(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; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -17848,17 +17848,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -17881,17 +17881,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -17903,7 +17903,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -17922,10 +17922,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -17939,10 +17939,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -17959,12 +17959,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__19(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__19(lean_object* x_1) { _start: { lean_object* x_2; @@ -17978,10 +17978,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -18001,10 +18001,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -18041,7 +18041,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__20(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18066,11 +18066,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__19(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__19(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -18111,7 +18111,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__2(lean_object* x_1) { _start: { lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5; lean_object* x_6; @@ -18125,30 +18125,30 @@ lean_ctor_set(x_6, 0, x_5); return x_6; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__19(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__20(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__19(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__20(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -18167,7 +18167,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -18181,7 +18181,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -18239,28 +18239,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -18286,12 +18286,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__5(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; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -18306,17 +18306,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -18339,17 +18339,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -18361,7 +18361,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -18380,10 +18380,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -18397,10 +18397,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -18417,12 +18417,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__22(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__22(lean_object* x_1) { _start: { lean_object* x_2; @@ -18436,10 +18436,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -18459,10 +18459,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -18499,7 +18499,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18524,11 +18524,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__22(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__22(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -18569,7 +18569,7 @@ return x_8; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -18577,22 +18577,22 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Data_Lsp_LanguageFeatures_0__L return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__22(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__23(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__22(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__23(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -18611,7 +18611,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -18625,7 +18625,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -18683,28 +18683,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -18730,12 +18730,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -18750,17 +18750,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -18783,17 +18783,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -18805,7 +18805,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -18824,10 +18824,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -18841,10 +18841,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -18861,12 +18861,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__4(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__4(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__25(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__25(lean_object* x_1) { _start: { lean_object* x_2; @@ -18880,10 +18880,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -18903,10 +18903,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -18943,7 +18943,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__26(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -18968,11 +18968,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__25(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__25(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -19022,12 +19022,12 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__25(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__26(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__25(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__26(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -19046,7 +19046,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -19060,7 +19060,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -19118,28 +19118,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__2), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__2), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -19165,12 +19165,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -19185,17 +19185,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -19218,17 +19218,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -19240,7 +19240,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -19259,10 +19259,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -19276,10 +19276,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -19296,12 +19296,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__4(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__4(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__28(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__28(lean_object* x_1) { _start: { lean_object* x_2; @@ -19315,10 +19315,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -19338,10 +19338,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -19378,7 +19378,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19403,11 +19403,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__28(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__28(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -19457,7 +19457,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19477,30 +19477,30 @@ return x_4; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__28(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__28(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -19519,7 +19519,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -19533,7 +19533,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -19591,28 +19591,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -19638,12 +19638,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__5(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; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -19658,17 +19658,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -19691,17 +19691,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -19713,7 +19713,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -19732,10 +19732,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -19749,10 +19749,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -19769,12 +19769,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__31(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__31(lean_object* x_1) { _start: { lean_object* x_2; @@ -19788,10 +19788,10 @@ if (x_3 == 0) lean_object* 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; uint8_t x_13; lean_object* x_14; x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Json_compress(x_1); -x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_6 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_7 = lean_string_append(x_6, x_5); lean_dec(x_5); -x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_8 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_9 = lean_string_append(x_7, x_8); x_10 = lean_string_append(x_9, x_4); lean_dec(x_4); @@ -19811,10 +19811,10 @@ x_15 = lean_ctor_get(x_2, 0); lean_inc(x_15); lean_dec(x_2); x_16 = l_Lean_Json_compress(x_1); -x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1; +x_17 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1; x_18 = lean_string_append(x_17, x_16); lean_dec(x_16); -x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2; +x_19 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2; x_20 = lean_string_append(x_18, x_19); x_21 = lean_string_append(x_20, x_15); lean_dec(x_15); @@ -19851,7 +19851,7 @@ return x_29; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19876,11 +19876,11 @@ return x_7; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__1(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__31(x_1); +x_2 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__31(x_1); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; @@ -19930,7 +19930,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -19950,30 +19950,30 @@ return x_4; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__2), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__2), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__1; +x_1 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__1; x_2 = lean_alloc_closure((void*)(l_Except_map___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__31(x_2); -x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32(x_5, x_3, x_4); +x_5 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__31(x_2); +x_6 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32(x_5, x_3, x_4); lean_dec(x_5); if (lean_obj_tag(x_6) == 0) { @@ -19992,7 +19992,7 @@ if (x_10 == 0) { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = lean_ctor_get(x_9, 0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__2; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__2; x_13 = l_Task_Priority_default; x_14 = lean_task_map(x_12, x_11, x_13); lean_ctor_set(x_9, 0, x_14); @@ -20006,7 +20006,7 @@ x_16 = lean_ctor_get(x_9, 1); lean_inc(x_16); lean_inc(x_15); lean_dec(x_9); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__2; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__2; x_18 = l_Task_Priority_default; x_19 = lean_task_map(x_17, x_15, x_18); x_20 = lean_alloc_ctor(0, 2, 0); @@ -20064,28 +20064,28 @@ return x_28; } } } -static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__1), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3), 4, 1); +x_5 = lean_alloc_closure((void*)(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_6 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_7 = lean_st_ref_take(x_6, x_4); 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_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___closed__1; +x_10 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___closed__1; x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_5); @@ -20111,12 +20111,12 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__5(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; uint8_t x_7; lean_dec(x_3); -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1; +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1; x_6 = lean_st_ref_get(x_5, x_4); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) @@ -20131,17 +20131,17 @@ if (x_10 == 0) lean_object* x_11; lean_object* x_12; lean_free_object(x_6); x_11 = lean_box(0); -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4(x_1, x_2, x_11, x_9); +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4(x_1, x_2, x_11, x_9); return x_12; } else { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_1); -x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_13 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_14 = lean_string_append(x_13, x_2); lean_dec(x_2); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_16 = lean_string_append(x_14, x_15); x_17 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_17, 0, x_16); @@ -20164,17 +20164,17 @@ if (x_20 == 0) { lean_object* x_21; lean_object* x_22; x_21 = lean_box(0); -x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4(x_1, x_2, x_21, x_19); +x_22 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4(x_1, x_2, x_21, x_19); 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_dec(x_1); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_2); lean_dec(x_2); -x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2; +x_25 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2; x_26 = lean_string_append(x_24, x_25); x_27 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_27, 0, x_26); @@ -20186,7 +20186,7 @@ return x_28; } } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; uint8_t x_6; @@ -20205,10 +20205,10 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_8 = lean_ctor_get(x_4, 0); lean_dec(x_8); -x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_9 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_10 = lean_string_append(x_9, x_1); lean_dec(x_1); -x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_11 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_12 = lean_string_append(x_10, x_11); x_13 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -20222,10 +20222,10 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); lean_dec(x_4); -x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1; +x_15 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1; x_16 = lean_string_append(x_15, x_1); lean_dec(x_1); -x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1; +x_17 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1; x_18 = lean_string_append(x_16, x_17); x_19 = lean_alloc_ctor(18, 1, 0); lean_ctor_set(x_19, 0, x_18); @@ -20242,12 +20242,12 @@ x_21 = lean_ctor_get(x_4, 1); lean_inc(x_21); lean_dec(x_4); x_22 = lean_box(0); -x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__5(x_2, x_1, x_22, x_21); +x_23 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__5(x_2, x_1, x_22, x_21); return x_23; } } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__1() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__1() { _start: { lean_object* x_1; @@ -20255,7 +20255,7 @@ x_1 = lean_mk_string("textDocument/waitForDiagnostics"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__2() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__2() { _start: { lean_object* x_1; @@ -20263,7 +20263,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleWaitForDiagnosti return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__3() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__3() { _start: { lean_object* x_1; @@ -20271,7 +20271,7 @@ x_1 = lean_mk_string("textDocument/completion"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__4() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__4() { _start: { lean_object* x_1; @@ -20279,7 +20279,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleCompletion), 3, return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__5() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__5() { _start: { lean_object* x_1; @@ -20287,7 +20287,7 @@ x_1 = lean_mk_string("textDocument/hover"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__6() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__6() { _start: { lean_object* x_1; @@ -20295,7 +20295,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleHover), 3, 0); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__7() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__7() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -20306,7 +20306,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__8() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__8() { _start: { lean_object* x_1; @@ -20314,7 +20314,7 @@ x_1 = lean_mk_string("textDocument/declaration"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__9() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__9() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -20325,7 +20325,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__10() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__10() { _start: { lean_object* x_1; @@ -20333,7 +20333,7 @@ x_1 = lean_mk_string("textDocument/definition"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__11() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__11() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; @@ -20344,7 +20344,7 @@ lean_closure_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__12() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__12() { _start: { lean_object* x_1; @@ -20352,7 +20352,7 @@ x_1 = lean_mk_string("textDocument/typeDefinition"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__13() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__13() { _start: { lean_object* x_1; @@ -20360,7 +20360,7 @@ x_1 = lean_mk_string("textDocument/documentHighlight"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__14() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__14() { _start: { lean_object* x_1; @@ -20368,7 +20368,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentHighligh return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__15() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__15() { _start: { lean_object* x_1; @@ -20376,7 +20376,7 @@ x_1 = lean_mk_string("textDocument/documentSymbol"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__16() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__16() { _start: { lean_object* x_1; @@ -20384,7 +20384,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleDocumentSymbol__ return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__17() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__17() { _start: { lean_object* x_1; @@ -20392,7 +20392,7 @@ x_1 = lean_mk_string("textDocument/semanticTokens/full"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__18() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__18() { _start: { lean_object* x_1; @@ -20400,7 +20400,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokensFu return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__19() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__19() { _start: { lean_object* x_1; @@ -20408,7 +20408,7 @@ x_1 = lean_mk_string("textDocument/semanticTokens/range"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__20() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__20() { _start: { lean_object* x_1; @@ -20416,7 +20416,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handleSemanticTokensRa return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__21() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__21() { _start: { lean_object* x_1; @@ -20424,7 +20424,7 @@ x_1 = lean_mk_string("$/lean/plainGoal"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__22() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__22() { _start: { lean_object* x_1; @@ -20432,7 +20432,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainGoal), 3, 0 return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__23() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__23() { _start: { lean_object* x_1; @@ -20440,7 +20440,7 @@ x_1 = lean_mk_string("$/lean/plainTermGoal"); return x_1; } } -static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__24() { +static lean_object* _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__24() { _start: { lean_object* x_1; @@ -20448,112 +20448,112 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Server_FileWorker_handlePlainTermGoal), return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__1; -x_3 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__2; -x_4 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1(x_2, x_3, x_1); +x_2 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__1; +x_3 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__2; +x_4 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); lean_dec(x_4); -x_6 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__3; -x_7 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__4; -x_8 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4(x_6, x_7, x_5); +x_6 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__3; +x_7 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__4; +x_8 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4(x_6, x_7, x_5); if (lean_obj_tag(x_8) == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; x_9 = lean_ctor_get(x_8, 1); lean_inc(x_9); lean_dec(x_8); -x_10 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__5; -x_11 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__6; -x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7(x_10, x_11, x_9); +x_10 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__5; +x_11 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__6; +x_12 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7(x_10, x_11, x_9); if (lean_obj_tag(x_12) == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__8; -x_15 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__7; -x_16 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10(x_14, x_15, x_13); +x_14 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__8; +x_15 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__7; +x_16 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10(x_14, x_15, x_13); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__10; -x_19 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__9; -x_20 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10(x_18, x_19, x_17); +x_18 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__10; +x_19 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__9; +x_20 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10(x_18, x_19, x_17); if (lean_obj_tag(x_20) == 0) { lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__12; -x_23 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__11; -x_24 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10(x_22, x_23, x_21); +x_22 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__12; +x_23 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__11; +x_24 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10(x_22, x_23, x_21); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); -x_26 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__13; -x_27 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__14; -x_28 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14(x_26, x_27, x_25); +x_26 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__13; +x_27 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__14; +x_28 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14(x_26, x_27, x_25); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; x_29 = lean_ctor_get(x_28, 1); lean_inc(x_29); lean_dec(x_28); -x_30 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__15; -x_31 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__16; -x_32 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18(x_30, x_31, x_29); +x_30 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__15; +x_31 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__16; +x_32 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18(x_30, x_31, x_29); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec(x_32); -x_34 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__17; -x_35 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__18; -x_36 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21(x_34, x_35, x_33); +x_34 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__17; +x_35 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__18; +x_36 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21(x_34, x_35, x_33); if (lean_obj_tag(x_36) == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); lean_dec(x_36); -x_38 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__19; -x_39 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__20; -x_40 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24(x_38, x_39, x_37); +x_38 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__19; +x_39 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__20; +x_40 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24(x_38, x_39, x_37); if (lean_obj_tag(x_40) == 0) { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__21; -x_43 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__22; -x_44 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27(x_42, x_43, x_41); +x_42 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__21; +x_43 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__22; +x_44 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27(x_42, x_43, x_41); if (lean_obj_tag(x_44) == 0) { lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; x_45 = lean_ctor_get(x_44, 1); lean_inc(x_45); lean_dec(x_44); -x_46 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__23; -x_47 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__24; -x_48 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30(x_46, x_47, x_45); +x_46 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__23; +x_47 = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__24; +x_48 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30(x_46, x_47, x_45); return x_48; } else @@ -20810,83 +20810,83 @@ return x_92; } } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__3(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2(x_1); +x_2 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2(x_1); lean_dec(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__6(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__6(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__9(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__9(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__12(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__12(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__13___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; @@ -20894,30 +20894,30 @@ 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_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__13(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__13(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__16___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__16(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__16(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__17___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; @@ -20925,110 +20925,110 @@ 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_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__17(x_4, x_5, x_3); +x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__17(x_4, x_5, x_3); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__20(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__20(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__23(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__23(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__26___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__26(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__26(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32(x_1, x_2, x_3); +x_4 = l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4(x_1, x_2, x_3, x_4); +x_5 = l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -21276,125 +21276,125 @@ l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__2 = _ini lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___lambda__3___closed__2); l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1 = _init_l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleWaitForDiagnostics___closed__1); -l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__1); -l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2(); -lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__2___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__4___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___lambda__5___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__1___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__4___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__7___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__10___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__14___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__18___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__2___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__21___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__24___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__27___lambda__4___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__1); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__3___closed__2); -l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__30___lambda__4___closed__1); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__1 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__1); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__2 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__2(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__2); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__3 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__3(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__3); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__4 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__4(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__4); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__5 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__5(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__5); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__6 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__6(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__6); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__7 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__7(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__7); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__8 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__8(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__8); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__9 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__9(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__9); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__10 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__10(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__10); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__11 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__11(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__11); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__12 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__12(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__12); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__13 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__13(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__13); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__14 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__14(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__14); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__15 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__15(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__15); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__16 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__16(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__16); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__17 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__17(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__17); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__18 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__18(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__18); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__19 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__19(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__19); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__20 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__20(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__20); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__21 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__21(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__21); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__22 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__22(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__22); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__23 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__23(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__23); -l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__24 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__24(); -lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____closed__24); -res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438_(lean_io_mk_world()); +l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__1); +l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2 = _init_l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2(); +lean_mark_persistent(l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__2___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__4___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___lambda__5___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__1___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__4___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__7___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__10___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__14___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__18___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__2___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__21___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__24___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__27___lambda__4___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__1); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__2 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__3___closed__2); +l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___closed__1 = _init_l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Server_registerLspRequestHandler___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__30___lambda__4___closed__1); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__1 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__1); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__2 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__2(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__2); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__3 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__3(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__3); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__4 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__4(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__4); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__5 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__5(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__5); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__6 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__6(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__6); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__7 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__7(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__7); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__8 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__8(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__8); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__9 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__9(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__9); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__10 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__10(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__10); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__11 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__11(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__11); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__12 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__12(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__12); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__13 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__13(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__13); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__14 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__14(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__14); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__15 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__15(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__15); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__16 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__16(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__16); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__17 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__17(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__17); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__18 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__18(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__18); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__19 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__19(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__19); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__20 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__20(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__20); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__21 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__21(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__21); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__22 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__22(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__22); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__23 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__23(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__23); +l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__24 = _init_l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__24(); +lean_mark_persistent(l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____closed__24); +res = l_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441_(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/Server/FileWorker/WidgetRequests.c b/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c index 20c208c740..14e03fedfd 100644 --- a/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c +++ b/stage0/stdlib/Lean/Server/FileWorker/WidgetRequests.c @@ -22,7 +22,6 @@ LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_i LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_MsgToInteractive_instRpcEncodingMsgToInteractiveRpcEncodingPacket___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_858____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_fromJsonGetInteractiveDiagnosticsParams____x40_Lean_Server_FileWorker_WidgetRequests___hyg_916_(lean_object*); -lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); static lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instFromJsonRpcEncodingPacket___closed__1; static lean_object* l___private_Lean_Server_FileWorker_WidgetRequests_0__Lean_Widget_Lean_Widget_InfoPopup_toJsonRpcEncodingPacket____x40_Lean_Server_FileWorker_WidgetRequests___hyg_432____closed__6; @@ -133,6 +132,7 @@ LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_i LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_858____spec__3___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Widget_getInteractiveDiagnostics___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_612____spec__1___lambda__3(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__31(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_245____spec__1___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -144,7 +144,6 @@ lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Data_Lsp_Basic_0__L LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_858____spec__1___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_245____spec__1___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_getLast_x3f___rarg(lean_object*); -lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__31(lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___spec__8(lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_1143____spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instToJsonRpcEncodingPacket; @@ -211,7 +210,6 @@ LEAN_EXPORT lean_object* l_Lean_Widget_instInhabitedInfoPopup; static lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__1___closed__1; lean_object* l_Lean_Json_getObjValAs_x3f___at___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_CodeToken_fromJsonRpcEncodingPacket____x40_Lean_Widget_InteractiveCode___hyg_178____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___spec__20(lean_object*); -lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_getInteractiveDiagnostics___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_MsgToInteractive_instRpcEncodingMsgToInteractiveRpcEncodingPacket___lambda__5___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_858____spec__1___lambda__3(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); @@ -239,7 +237,6 @@ LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfo LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___spec__9___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_decodeUnsafe____x40_Lean_Widget_InteractiveCode___hyg_5____at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_612____spec__4(size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_instToJsonGetInteractiveDiagnosticsParams; -lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__28(lean_object*); extern lean_object* l_Task_Priority_default; static lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___lambda__10___closed__1; static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_858____closed__4; @@ -248,6 +245,7 @@ size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_Widget_msgToInteractive(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Widget_InteractiveCode_0__Lean_Widget_Lean_Widget_InfoWithCtx_decodeUnsafe____x40_Lean_Widget_InteractiveCode___hyg_5____at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_612____spec__4___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___lambda__15(lean_object*, lean_object*, lean_object*, size_t); +lean_object* l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__28(lean_object*); lean_object* l_Lean_Elab_Info_docString_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_245____closed__2; LEAN_EXPORT lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___lambda__2(lean_object*); @@ -347,6 +345,7 @@ static lean_object* l_Lean_Server_WithRpcRef_decodeUnsafeAs___at_Lean_Widget_ini LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___spec__15___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Widget_TaggedText_0__Lean_Widget_toJsonTaggedText____x40_Lean_Widget_TaggedText___hyg_577____at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_245____spec__16___closed__2; static lean_object* l_Lean_Widget_Lean_Widget_InfoPopup_instToJsonRpcEncodingPacket___closed__1; +lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Server_FileWorker_instMonadRpcSession___spec__1(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___spec__3(lean_object*); lean_object* lean_io_initializing(lean_object*); @@ -363,6 +362,7 @@ LEAN_EXPORT lean_object* l_ExceptT_bindCont___at_Lean_Widget_Lean_Widget_InfoPop LEAN_EXPORT lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_612____lambda__5(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_245____spec__1___closed__1; static lean_object* l_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_245____closed__5; +lean_object* l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_RequestM_asTask___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Widget_TaggedText_mapM___at_Lean_Widget_Lean_Widget_InfoPopup_instRpcEncodingInfoPopupRpcEncodingPacket___spec__16___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -8127,8 +8127,8 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); lean_dec(x_7); -x_11 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__28(x_3); -x_12 = lean_alloc_closure((void*)(l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__29___boxed), 3, 1); +x_11 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__28(x_3); +x_12 = lean_alloc_closure((void*)(l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__29___boxed), 3, 1); lean_closure_set(x_12, 0, x_11); lean_inc(x_10); x_13 = lean_alloc_closure((void*)(l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_858____spec__1___lambda__1___boxed), 4, 1); @@ -8482,8 +8482,8 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean x_10 = lean_ctor_get(x_7, 0); lean_inc(x_10); lean_dec(x_7); -x_11 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__31(x_3); -x_12 = lean_alloc_closure((void*)(l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8438____spec__32___boxed), 3, 1); +x_11 = l_Lean_Server_parseRequestParams___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__31(x_3); +x_12 = lean_alloc_closure((void*)(l_liftExcept___at_Lean_Server_FileWorker_initFn____x40_Lean_Server_FileWorker_RequestHandling___hyg_8441____spec__32___boxed), 3, 1); lean_closure_set(x_12, 0, x_11); lean_inc(x_10); x_13 = lean_alloc_closure((void*)(l_Lean_Server_registerRpcCallHandler___at_Lean_Widget_initFn____x40_Lean_Server_FileWorker_WidgetRequests___hyg_858____spec__1___lambda__1___boxed), 4, 1);