diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index 464bc3f9e5..827535fff0 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -742,43 +742,6 @@ def isMonadApp (type : Expr) : TermElabM Bool := do let some (m, _) ← isTypeApp? type | pure false return (← isMonad? m) |>.isSome -/-- - Try to coerce `a : α` into `m β` by first coercing `a : α` into ‵β`, and then using `pure`. - The method is only applied if `α` is not monadic (e.g., `Nat → IO Unit`), and the head symbol - of the resulting type is not a metavariable (e.g., `?m Unit` or `Bool → ?m Nat`). - - The main limitation of the approach above is polymorphic code. As usual, coercions and polymorphism - do not interact well. In the example above, the lift is successfully applied to `true`, `false` and `!y` - since none of them is polymorphic - ``` - def f (x : Bool) : IO Bool := do - let y ← if x == 0 then IO.println "hello"; true else false; - !y - ``` - On the other hand, the following fails since `+` is polymorphic - ``` - def f (x : Bool) : IO Nat := do - IO.prinln x - x + x -- Error: failed to synthesize `Add (IO Nat)` - ``` --/ -private def tryPureCoe? (errorMsgHeader? : Option String) (m β α a : Expr) : TermElabM (Option Expr) := - commitWhenSome? do - let doIt : TermElabM (Option Expr) := do - try - let aNew ← tryCoe errorMsgHeader? β α a none - let aNew ← mkPure m aNew - pure (some aNew) - catch _ => - pure none - forallTelescope α fun _ α => do - if (← isMonadApp α) then - pure none - else if !α.getAppFn.isMVar then - doIt - else - pure none - /- Try coercions and monad lifts to make sure `e` has type `expectedType`. @@ -787,13 +750,6 @@ Otherwise, we just use the basic `tryCoe`. Extensions for monads. -Given an expected type of the form `n β`, if `eType` is of the form `α`, but not `m α` - -1 - Try to coerce ‵α` into ‵β`, and use `pure` to lift it to `n α`. - It only works if `n` implements `Pure` - -If `eType` is of the form `m α`. We use the following approaches. - 1- Try to unify `n` and `m`. If it succeeds, then we use ``` coeM {m : Type u → Type v} {α β : Type u} [∀ a, CoeT α a β] [Monad m] (x : m α) : m β @@ -853,14 +809,7 @@ private def tryLiftAndCoe (errorMsgHeader? : Option String) (expectedType : Expr let tryCoeSimple : TermElabM Expr := tryCoe errorMsgHeader? expectedType eType e f? let some (n, β) ← isTypeApp? expectedType | tryCoeSimple - let tryPureCoeAndSimple : TermElabM Expr := do - if autoLift.get (← getOptions) then - match (← tryPureCoe? errorMsgHeader? n β eType e) with - | some eNew => pure eNew - | none => tryCoeSimple - else - tryCoeSimple - let some (m, α) ← isTypeApp? eType | tryPureCoeAndSimple + let some (m, α) ← isTypeApp? eType | tryCoeSimple if (← isDefEq m n) then let some monadInst ← isMonad? n | tryCoeSimple try expandCoe (← mkAppOptM ``Lean.Internal.coeM #[m, α, β, none, monadInst, e]) catch _ => throwMismatch @@ -887,13 +836,8 @@ private def tryLiftAndCoe (errorMsgHeader? : Option String) (expectedType : Expr unless (← isDefEq expectedType eNewType) do throwMismatch return eNew -- approach 3 worked catch _ => - /- - If `m` is not a monad, then we try to use `tryPureCoe?` and then `tryCoe?`. - Otherwise, we just try `tryCoe?`. - -/ - match (← isMonad? m) with - | none => tryPureCoeAndSimple - | some _ => tryCoeSimple + /- If `m` is not a monad, then we try to use `tryCoe?`. -/ + tryCoeSimple else tryCoeSimple diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c index 5e9136329a..04ebb7cbc1 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Main.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Main.c @@ -16,11 +16,11 @@ extern "C" { lean_object* l_Lean_Elab_WF_TerminationBy_markAsUsed(lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_contains___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__13___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___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_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___closed__5; size_t lean_usize_add(size_t, size_t); lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(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_Elab_addPreDefinitions___spec__7___boxed(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_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_addPreDefinitions___spec__7___closed__1; static lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -32,6 +32,7 @@ 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*); 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_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*); @@ -47,9 +48,8 @@ uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); 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___boxed(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__6; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__23___boxed(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__1___closed__6; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18(lean_object*, lean_object*, lean_object*, size_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* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef___closed__2; @@ -64,7 +64,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___ 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_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; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__2; 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*); @@ -76,13 +75,17 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_ static lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__23___closed__1; lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__16(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_addPreDefinitions___spec__18___lambda__4___closed__6; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1; static lean_object* l_Lean_Elab_addPreDefinitions___closed__11; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__15___boxed(lean_object*, lean_object*, lean_object*); 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*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4; +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_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__5; @@ -90,6 +93,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_p 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*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t 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*); @@ -107,11 +111,13 @@ lean_object* l_Lean_Elab_addAndCompileUnsafe(lean_object*, uint8_t, lean_object* size_t lean_uint64_to_usize(uint64_t); 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_1823_(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; 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*); @@ -130,14 +136,15 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefi 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_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*); +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*); static lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_getMVarsAtPreDef___closed__3; -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___closed__1; 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*); static lean_object* l_Lean_Elab_addPreDefinitions___closed__10; @@ -149,7 +156,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___ LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__18___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashMapImp___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___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_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__27___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -159,10 +165,12 @@ static lean_object* l_Lean_Elab_throwAbortCommand___at___private_Lean_Elab_PreDe static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__16___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__2(lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__5; uint64_t l_Lean_Name_hash(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___lambda__2___boxed__const__1; lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_synthesizeSyntheticMVars_loop___spec__1(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_Main_0__Lean_Elab_collectMVarsAtPreDef(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___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_st_mk_ref(lean_object*, lean_object*); lean_object* l_instMonadControlReaderT___lambda__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__19(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -173,7 +181,6 @@ lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__16___closed__3; LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_updateLowLinkOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__18(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__5; extern lean_object* l_Lean_Elab_instInhabitedPreDefinition; lean_object* l_Lean_Elab_WF_TerminationHint_find_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC_add___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__22(lean_object*, lean_object*, lean_object*, lean_object*); @@ -182,7 +189,6 @@ lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean lean_object* lean_array_to_list(lean_object*, lean_object*); uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_liftMacroM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_collectMVars(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__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -203,6 +209,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitio static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__13; LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__9; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__3; 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*); @@ -222,11 +229,11 @@ 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___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*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26(lean_object*, size_t, size_t, lean_object*); lean_object* lean_environment_main_module(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4___lambda__1___boxed(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__1___lambda__2___closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__23(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instMonadControlT___rarg(lean_object*, lean_object*); @@ -243,6 +250,7 @@ static lean_object* l_Lean_Elab_addPreDefinitions___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__8___boxed(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_321____spec__1(lean_object*, lean_object*); lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_getAntiquotationIds___spec__1(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___lambda__2___closed__3; lean_object* lean_nat_mul(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__1; lean_object* l_Lean_Elab_WF_TerminationHint_ensureAllUsed(lean_object*, lean_object*, lean_object*); @@ -251,9 +259,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_c LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__14(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__15(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*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Std_AssocList_replace___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__17(lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__2; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); @@ -263,7 +270,6 @@ LEAN_EXPORT lean_object* l_Lean_SCC_scc___at___private_Lean_Elab_PreDefinition_M lean_object* lean_panic_fn(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__4___closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4___lambda__4___boxed(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__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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_addPreDefinitions___spec__11___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__23(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); @@ -284,15 +290,15 @@ static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinitio 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*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___lambda__5(lean_object*, 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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__27(lean_object*, size_t, size_t, lean_object*); 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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_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*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___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_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_isNonRecursive___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addPreDefinitions___spec__3(size_t, size_t, size_t, lean_object*); @@ -300,17 +306,15 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_addPreDefinitions___sp LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__16(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_Std_mkHashMap___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__24(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__4(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__8___rarg___closed__1; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_addPreDefinitions___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setMCtx(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__26___closed__3; static lean_object* l_Lean_Elab_addPreDefinitions___closed__2; LEAN_EXPORT lean_object* l___private_Lean_Util_SCC_0__Lean_SCC_addSCC_add___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__22___boxed(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__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_Array_mapMUnsafe_map___at_Lean_Elab_WF_registerEqnsInfo___spec__1(size_t, size_t, lean_object*); @@ -321,7 +325,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_TerminationHints_decreasingBy_x3f___default lean_object* l_instMonadControlT__1___rarg(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1; LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__20(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__1___lambda__2___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_addPreDefinitions___spec__17(lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_addPreDefinitions___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*); @@ -363,7 +366,80 @@ x_1 = l_Lean_Elab_instInhabitedTerminationHints___closed__1; return x_1; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_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_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_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_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg), 9, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20; @@ -388,7 +464,7 @@ x_20 = l___private_Lean_Elab_PreDefinition_Basic_0__Lean_Elab_addNonRecAux(x_17, return x_20; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -396,16 +472,16 @@ x_1 = lean_mk_string("inhabitant for "); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__3() { _start: { lean_object* x_1; @@ -413,16 +489,16 @@ x_1 = lean_mk_string(""); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; @@ -487,7 +563,7 @@ if (x_17 == 0) lean_object* x_19; lean_object* x_20; lean_dec(x_3); x_19 = lean_box(0); -x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(x_1, x_13, x_2, x_15, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_18); +x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1(x_1, x_13, x_2, x_15, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_18); lean_dec(x_1); return x_20; } @@ -497,11 +573,11 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean lean_inc(x_13); x_21 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_21, 0, x_13); -x_22 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2; +x_22 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___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_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; +x_24 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___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); @@ -511,7 +587,7 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(x_1, x_13, x_2, x_15, x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__1(x_1, x_13, x_2, x_15, x_27, x_6, x_7, x_8, x_9, x_10, x_11, x_28); lean_dec(x_27); lean_dec(x_1); return x_29; @@ -552,7 +628,7 @@ return x_45; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -562,18 +638,18 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_ctor_get(x_1, 4); lean_inc(x_11); lean_inc(x_11); -x_12 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2), 12, 3); +x_12 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2), 12, 3); lean_closure_set(x_12, 0, x_1); lean_closure_set(x_12, 1, x_11); lean_closure_set(x_12, 2, x_2); -x_13 = l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1___rarg(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_13 = l_Lean_Meta_forallTelescope___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___rarg(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -583,7 +659,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; x_15 = lean_ctor_get(x_13, 0); lean_dec(x_15); -x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___closed__1; +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; lean_ctor_set(x_13, 0, x_16); return x_13; } @@ -593,7 +669,7 @@ 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); -x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___closed__1; +x_18 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1; x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); @@ -624,7 +700,7 @@ return x_23; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__1() { _start: { lean_object* x_1; @@ -632,17 +708,17 @@ x_1 = lean_mk_string("Elab"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__1; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__3() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__3() { _start: { lean_object* x_1; @@ -650,17 +726,17 @@ x_1 = lean_mk_string("definition"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__2; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__3; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__2; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__5() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__5() { _start: { lean_object* x_1; @@ -668,16 +744,16 @@ x_1 = lean_mk_string("processing "); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__6() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__5; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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) { _start: { uint8_t x_12; @@ -701,7 +777,7 @@ else lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_dec(x_4); x_14 = lean_array_uget(x_1, x_3); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4; +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4; x_63 = lean_st_ref_get(x_10, x_11); x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); @@ -751,7 +827,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(x_14, x_15, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_19 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3(x_14, x_15, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_17); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; @@ -846,11 +922,11 @@ x_36 = lean_ctor_get(x_14, 3); lean_inc(x_36); x_37 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_37, 0, x_36); -x_38 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__6; +x_38 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__6; x_39 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_39, 0, x_38); lean_ctor_set(x_39, 1, x_37); -x_40 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; +x_40 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4; x_41 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_41, 0, x_39); lean_ctor_set(x_41, 1, x_40); @@ -866,7 +942,7 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -x_45 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(x_14, x_15, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_44); +x_45 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3(x_14, x_15, x_43, x_5, x_6, x_7, x_8, x_9, x_10, x_44); lean_dec(x_43); if (lean_obj_tag(x_45) == 0) { @@ -974,7 +1050,7 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_1, x_10, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_1, x_10, x_11, x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; @@ -1015,26 +1091,26 @@ return x_19; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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, x_12); lean_dec(x_5); lean_dec(x_1); return x_13; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___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_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___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_3); return x_11; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___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_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -1042,7 +1118,7 @@ x_12 = lean_unbox_usize(x_2); lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); -x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_1); return x_14; } @@ -3596,7 +3672,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefiniti _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4; x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -3713,7 +3789,7 @@ x_22 = lean_ctor_get(x_14, 3); lean_inc(x_22); x_23 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_23, 0, x_22); -x_24 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; +x_24 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4; x_25 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); @@ -5096,7 +5172,7 @@ x_33 = l_Lean_indentExpr(x_15); x_34 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_34, 0, x_32); lean_ctor_set(x_34, 1, x_33); -x_35 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; +x_35 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___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); @@ -5342,7 +5418,7 @@ lean_ctor_set(x_12, 1, x_11); x_13 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_2); -x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___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); @@ -6837,7 +6913,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefiniti _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4; x_2 = l_Array_forInUnsafe_loop___at_Lean_Elab_addPreDefinitions___spec__18___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -7022,7 +7098,7 @@ x_46 = lean_box(0); x_47 = l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(x_45, x_46); x_48 = l_Lean_MessageData_ofList(x_47); lean_dec(x_47); -x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4; +x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4; x_50 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); @@ -8494,28 +8570,28 @@ l_Lean_Elab_instInhabitedTerminationHints___closed__1 = _init_l_Lean_Elab_instIn lean_mark_persistent(l_Lean_Elab_instInhabitedTerminationHints___closed__1); l_Lean_Elab_instInhabitedTerminationHints = _init_l_Lean_Elab_instInhabitedTerminationHints(); lean_mark_persistent(l_Lean_Elab_instInhabitedTerminationHints); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__1); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__2); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__3); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__2___closed__4); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___lambda__3___closed__1); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__1); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__2); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__3(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__3); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__4); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__5 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__5(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__5); -l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__6 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__6(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__1___closed__6); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__2___closed__4); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___lambda__3___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__4); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__5 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__5(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__5); +l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__6 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__6(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_addAndCompilePartial___spec__2___closed__6); l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7___closed__1 = _init_l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7___closed__1(); lean_mark_persistent(l___private_Lean_Util_SCC_0__Lean_SCC_getDataOf___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__7___closed__1); l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__23___closed__1 = _init_l___private_Lean_Util_SCC_0__Lean_SCC_resetOnStack___at___private_Lean_Elab_PreDefinition_Main_0__Lean_Elab_partitionPreDefs___spec__23___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 47d25b5c73..9d92b4b194 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -36,7 +36,6 @@ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe__ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__1; static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__9; -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___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___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__4; static lean_object* l_Lean_Elab_Term_tryPostponeIfHasMVars___closed__1; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -52,7 +51,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_exceptionT size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l_List_forM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedState___closed__6; -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*); static lean_object* l_Lean_Elab_Term_instMonadBacktrackSavedStateTermElabM___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux___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_Elab_Term_evalExpr___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -85,7 +83,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLevelNames___rarg___boxed(lean_obje LEAN_EXPORT lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___at_Lean_Elab_Term_resolveName_process___spec__1___closed__2; lean_object* l_Lean_mkSort(lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__2; static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__17; lean_object* l_List_foldl___at_Lean_Elab_addMacroStack___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLetRecsToLift___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -225,6 +222,7 @@ LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Elab_Term_isLetRecAuxMVar___s LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTypeAscription___boxed(lean_object*); lean_object* l_Std_PersistentArray_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___at_Lean_Elab_Term_expandDeclId___spec__10(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_12010____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_State_messages___default; LEAN_EXPORT lean_object* l_Lean_Elab_throwAbortCommand___at_Lean_Elab_Term_ensureNoUnassignedMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutErrToSorry(lean_object*); @@ -292,7 +290,6 @@ static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_addAutoBoundImp LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___spec__1(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___lambda__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___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_EXPORT lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); extern lean_object* l_Lean_Meta_instInhabitedPostponedEntry; @@ -318,6 +315,7 @@ static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__2; static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLevelNames___rarg(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_elabUsingElabFnsAux(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_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__2; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwMVarError___rarg(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__3; @@ -347,7 +345,6 @@ static lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__2; static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___spec__15___closed__1; LEAN_EXPORT lean_object* l_Std_PersistentArray_forIn___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___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_EXPORT lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); @@ -400,7 +397,6 @@ 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_15350____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*); @@ -628,7 +624,6 @@ static lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_T LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerSyntheticMVarWithCurrRef___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_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__4; lean_object* l_Nat_repr(lean_object*); -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___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_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at_Lean_ppExpr___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -644,7 +639,7 @@ lean_object* l_Lean_Meta_getDelayedAssignment_x3f(lean_object*, lean_object*, le lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5477_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_5454_(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010_(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkAuxName___at_Lean_Elab_Term_mkAuxName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_setElabConfig(lean_object*); static lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__14; @@ -790,7 +785,6 @@ static lean_object* l_Lean_Elab_Term_resolveName_process___closed__1; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__1___closed__1; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__13; -lean_object* l_Lean_Meta_mkPure(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*); static lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21___closed__1; static lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Term_expandDeclId___spec__5___closed__1; @@ -811,7 +805,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__3(lean_object*, lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_Context_autoBoundImplicit___default; -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___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_Term_registerMVarErrorImplicitArgInfo___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_Term_throwTypeMismatchError(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); @@ -942,11 +935,11 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAnd static lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addDotCompletionInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_resetMessageLog___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSomeContext___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__1; LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Elab_Term_evalExpr___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* l_Lean_mkPrivateName(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_SavedState_restore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -993,11 +986,11 @@ static lean_object* l_Lean_Elab_Term_instInhabitedSavedState___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_registerMVarErrorCustomInfo(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_isTypeApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instToStringLVal___closed__2; -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instInhabitedMVarErrorKind___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_autoBoundImplicits___default; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__2; static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_Term_liftLevelM___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_instMonadTermElabM___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1057,7 +1050,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName_x27(lean_object*, lean_obj static lean_object* l_Lean_Elab_throwPostpone___at_Lean_Elab_Term_tryPostpone___spec__1___rarg___closed__1; static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Context_currMacroScope___default; @@ -1178,8 +1170,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_15350_(lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090_(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*); @@ -1228,8 +1219,8 @@ static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__5; static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__3___closed__3; uint8_t l_List_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_instInhabitedSavedState; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__1; static lean_object* l_Lean_Elab_Term_instMonadQuotationTermElabM___closed__3; +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__3; static lean_object* l_Lean_Elab_Term_mkFreshBinderName___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_hasNoImplicitLambdaAnnotation___boxed(lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__1; @@ -1331,7 +1322,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkFreshBinderName___rarg___lambda__2(l LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Term_0__Lean_Elab_Term_throwStuckAtUniverseCnstr___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_EXPORT lean_object* l_Lean_Elab_Term_resolveName_process(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_expandDeclId___closed__2; lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*); @@ -21490,782 +21480,6 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_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_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_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_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___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_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1___rarg), 9, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_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, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, 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); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_12 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; uint8_t x_15; lean_object* x_16; uint8_t x_17; -x_14 = lean_ctor_get(x_12, 1); -lean_inc(x_14); -lean_dec(x_12); -x_15 = 0; -x_16 = l_Lean_Elab_Term_SavedState_restore(x_10, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_14); -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_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -x_19 = lean_box(0); -lean_ctor_set(x_16, 0, x_19); -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -else -{ -uint8_t x_23; -lean_dec(x_10); -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_23 = !lean_is_exclusive(x_12); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -x_24 = lean_ctor_get(x_12, 0); -lean_dec(x_24); -x_25 = !lean_is_exclusive(x_13); -if (x_25 == 0) -{ -return x_12; -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_13, 0); -lean_inc(x_26); -lean_dec(x_13); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_12, 0, x_27); -return x_12; -} -} -else -{ -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_12, 1); -lean_inc(x_28); -lean_dec(x_12); -x_29 = lean_ctor_get(x_13, 0); -lean_inc(x_29); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - x_30 = x_13; -} else { - lean_dec_ref(x_13); - x_30 = lean_box(0); -} -if (lean_is_scalar(x_30)) { - x_31 = lean_alloc_ctor(1, 1, 0); -} else { - x_31 = x_30; -} -lean_ctor_set(x_31, 0, x_29); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_28); -return x_32; -} -} -} -else -{ -lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; uint8_t x_37; -x_33 = lean_ctor_get(x_12, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_12, 1); -lean_inc(x_34); -lean_dec(x_12); -x_35 = 0; -x_36 = l_Lean_Elab_Term_SavedState_restore(x_10, x_35, x_2, x_3, x_4, x_5, x_6, x_7, 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_2); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set_tag(x_36, 1); -lean_ctor_set(x_36, 0, x_33); -return x_36; -} -else -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_33); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___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_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_8); -x_16 = l_Lean_Elab_Term_isMonadApp(x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -uint8_t x_19; -x_19 = !lean_is_exclusive(x_16); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_20 = lean_ctor_get(x_16, 1); -x_21 = lean_ctor_get(x_16, 0); -lean_dec(x_21); -x_22 = l_Lean_Expr_getAppFn(x_8); -lean_dec(x_8); -x_23 = l_Lean_Expr_isMVar(x_22); -lean_dec(x_22); -if (x_23 == 0) -{ -lean_object* x_24; -lean_free_object(x_16); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_5); -x_24 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_20); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_Meta_mkPure(x_6, x_25, x_11, x_12, x_13, x_14, x_26); -if (lean_obj_tag(x_27) == 0) -{ -uint8_t x_28; -lean_dec(x_5); -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 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_30, 0, 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 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, 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; -x_35 = !lean_is_exclusive(x_27); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_27, 0); -lean_dec(x_36); -lean_ctor_set_tag(x_27, 0); -lean_ctor_set(x_27, 0, x_5); -return x_27; -} -else -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_27, 1); -lean_inc(x_37); -lean_dec(x_27); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_5); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_6); -x_39 = !lean_is_exclusive(x_24); -if (x_39 == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_24, 0); -lean_dec(x_40); -lean_ctor_set_tag(x_24, 0); -lean_ctor_set(x_24, 0, x_5); -return x_24; -} -else -{ -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_24, 1); -lean_inc(x_41); -lean_dec(x_24); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_5); -lean_ctor_set(x_42, 1, x_41); -return x_42; -} -} -} -else -{ -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -lean_ctor_set(x_16, 0, x_5); -return x_16; -} -} -else -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = lean_ctor_get(x_16, 1); -lean_inc(x_43); -lean_dec(x_16); -x_44 = l_Lean_Expr_getAppFn(x_8); -lean_dec(x_8); -x_45 = l_Lean_Expr_isMVar(x_44); -lean_dec(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_5); -x_46 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_11, x_12, x_13, x_14, x_43); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -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 = l_Lean_Meta_mkPure(x_6, x_47, x_11, x_12, x_13, x_14, x_48); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_5); -x_50 = lean_ctor_get(x_49, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_52 = x_49; -} else { - lean_dec_ref(x_49); - x_52 = lean_box(0); -} -x_53 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_53, 0, x_50); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 2, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_51); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_49, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - x_56 = x_49; -} else { - lean_dec_ref(x_49); - x_56 = lean_box(0); -} -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(0, 2, 0); -} else { - x_57 = x_56; - lean_ctor_set_tag(x_57, 0); -} -lean_ctor_set(x_57, 0, x_5); -lean_ctor_set(x_57, 1, x_55); -return x_57; -} -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_6); -x_58 = lean_ctor_get(x_46, 1); -lean_inc(x_58); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_59 = x_46; -} else { - lean_dec_ref(x_46); - x_59 = lean_box(0); -} -if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(0, 2, 0); -} else { - x_60 = x_59; - lean_ctor_set_tag(x_60, 0); -} -lean_ctor_set(x_60, 0, x_5); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} -} -else -{ -lean_object* x_61; -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_5); -lean_ctor_set(x_61, 1, x_43); -return x_61; -} -} -} -else -{ -uint8_t x_62; -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_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_62 = !lean_is_exclusive(x_16); -if (x_62 == 0) -{ -lean_object* x_63; -x_63 = lean_ctor_get(x_16, 0); -lean_dec(x_63); -lean_ctor_set(x_16, 0, x_5); -return x_16; -} -else -{ -lean_object* x_64; lean_object* x_65; -x_64 = lean_ctor_get(x_16, 1); -lean_inc(x_64); -lean_dec(x_16); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_5); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -else -{ -uint8_t x_66; -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_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_66 = !lean_is_exclusive(x_16); -if (x_66 == 0) -{ -return x_16; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_16, 0); -x_68 = lean_ctor_get(x_16, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_16); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_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_inc(x_4); -x_14 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___lambda__1___boxed), 15, 6); -lean_closure_set(x_14, 0, x_1); -lean_closure_set(x_14, 1, x_3); -lean_closure_set(x_14, 2, x_4); -lean_closure_set(x_14, 3, x_5); -lean_closure_set(x_14, 4, x_6); -lean_closure_set(x_14, 5, x_2); -x_15 = l_Lean_Elab_Term_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -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_18 = l_Lean_Meta_forallTelescope___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__1___rarg(x_4, x_14, x_7, x_8, x_9, x_10, x_11, x_12, 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; uint8_t x_21; lean_object* x_22; uint8_t x_23; -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); -lean_dec(x_18); -x_21 = 0; -x_22 = l_Lean_Elab_Term_SavedState_restore(x_16, x_21, x_7, x_8, x_9, x_10, x_11, x_12, x_20); -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_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -x_27 = lean_box(0); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -else -{ -uint8_t x_29; -lean_dec(x_16); -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_29 = !lean_is_exclusive(x_18); -if (x_29 == 0) -{ -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_18, 0); -lean_dec(x_30); -x_31 = !lean_is_exclusive(x_19); -if (x_31 == 0) -{ -return x_18; -} -else -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_19, 0); -lean_inc(x_32); -lean_dec(x_19); -x_33 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_18, 0, x_33); -return x_18; -} -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_18, 1); -lean_inc(x_34); -lean_dec(x_18); -x_35 = lean_ctor_get(x_19, 0); -lean_inc(x_35); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - x_36 = x_19; -} else { - lean_dec_ref(x_19); - x_36 = lean_box(0); -} -if (lean_is_scalar(x_36)) { - x_37 = lean_alloc_ctor(1, 1, 0); -} else { - x_37 = x_36; -} -lean_ctor_set(x_37, 0, 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_34); -return x_38; -} -} -} -else -{ -lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; uint8_t x_43; -x_39 = lean_ctor_get(x_18, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_18, 1); -lean_inc(x_40); -lean_dec(x_18); -x_41 = 0; -x_42 = l_Lean_Elab_Term_SavedState_restore(x_16, x_41, x_7, x_8, x_9, x_10, x_11, x_12, x_40); -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_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) -{ -lean_object* x_44; -x_44 = lean_ctor_get(x_42, 0); -lean_dec(x_44); -lean_ctor_set_tag(x_42, 1); -lean_ctor_set(x_42, 0, x_39); -return x_42; -} -else -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_39); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_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, lean_object* x_10, lean_object* x_11, lean_object* x_12) { -_start: -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_box(0); -x_14 = l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3(x_1, x_2, x_3, x_4, x_5, x_13, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___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_Lean_commitWhenSome_x3f___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__2___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f___spec__3___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_7); -return x_16; -} -} LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___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: { @@ -22426,399 +21640,290 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_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_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_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_inc(x_9); -x_18 = l_Lean_Meta_instantiateMVars(x_2, x_8, x_9, x_10, x_11, x_12); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); +x_13 = l_Lean_Meta_instantiateMVars(x_2, x_8, x_9, x_10, x_11, x_12); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); +lean_dec(x_13); +lean_inc(x_9); +x_16 = l_Lean_Meta_instantiateMVars(x_3, x_8, x_9, x_10, x_11, 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_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_19 = l_Lean_Elab_Term_isTypeApp_x3f(x_14, x_6, x_7, x_8, x_9, x_10, x_11, 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); -lean_dec(x_18); -lean_inc(x_9); -x_21 = l_Lean_Meta_instantiateMVars(x_3, x_8, x_9, x_10, x_11, x_20); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_19); -x_24 = l_Lean_Elab_Term_isTypeApp_x3f(x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_23); -if (lean_obj_tag(x_24) == 0) +if (lean_obj_tag(x_20) == 0) { -lean_object* x_25; -x_25 = lean_ctor_get(x_24, 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); +x_22 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_21); +return x_22; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_20, 0); +x_25 = lean_ctor_get(x_19, 1); lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 1); +lean_dec(x_19); +x_26 = lean_ctor_get(x_24, 0); lean_inc(x_26); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); lean_dec(x_24); -x_27 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_26); -return x_27; -} -else +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_17); +x_28 = l_Lean_Elab_Term_isTypeApp_x3f(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_25); +if (lean_obj_tag(x_28) == 0) { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_25); -if (x_28 == 0) +lean_object* x_29; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +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; -x_29 = lean_ctor_get(x_25, 0); -x_30 = lean_ctor_get(x_24, 1); +lean_object* x_30; lean_object* x_31; +lean_dec(x_27); +lean_dec(x_26); +lean_free_object(x_20); +x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); -lean_dec(x_24); -x_31 = lean_ctor_get(x_29, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec(x_29); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_22); -x_33 = l_Lean_Elab_Term_isTypeApp_x3f(x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_30); -if (lean_obj_tag(x_33) == 0) +lean_dec(x_28); +x_31 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_30); +return x_31; +} +else { -lean_object* x_34; -x_34 = lean_ctor_get(x_33, 0); +uint8_t x_32; +x_32 = !lean_is_exclusive(x_29); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get(x_29, 0); +x_34 = lean_ctor_get(x_28, 1); lean_inc(x_34); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_free_object(x_25); -x_35 = lean_ctor_get(x_33, 1); +lean_dec(x_28); +x_35 = lean_ctor_get(x_33, 0); lean_inc(x_35); -lean_dec(x_33); -x_36 = lean_ctor_get(x_10, 0); +x_36 = lean_ctor_get(x_33, 1); lean_inc(x_36); -x_37 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; -x_38 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_36, x_37); -lean_dec(x_36); -if (x_38 == 0) -{ -lean_object* x_39; -lean_dec(x_32); -lean_dec(x_31); -x_39 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_35); -return x_39; -} -else -{ -lean_object* x_40; -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_4); -lean_inc(x_22); -lean_inc(x_1); -x_40 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_31, x_32, x_22, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_35); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_42); -return x_43; -} -else -{ -uint8_t x_44; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_40); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_40, 0); -lean_dec(x_45); -x_46 = lean_ctor_get(x_41, 0); -lean_inc(x_46); -lean_dec(x_41); -lean_ctor_set(x_40, 0, x_46); -return x_40; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_40, 1); -lean_inc(x_47); -lean_dec(x_40); -x_48 = lean_ctor_get(x_41, 0); -lean_inc(x_48); -lean_dec(x_41); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_47); -return x_49; -} -} -} -else -{ -uint8_t x_50; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_50 = !lean_is_exclusive(x_40); -if (x_50 == 0) -{ -return x_40; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_40, 0); -x_52 = lean_ctor_get(x_40, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_40); -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; -x_54 = !lean_is_exclusive(x_34); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_55 = lean_ctor_get(x_34, 0); -x_56 = lean_ctor_get(x_33, 1); -lean_inc(x_56); lean_dec(x_33); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_55, 1); -lean_inc(x_58); -lean_dec(x_55); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_31); -lean_inc(x_57); -x_59 = l_Lean_Meta_isExprDefEq(x_57, x_31, x_8, x_9, x_10, x_11, x_56); -if (lean_obj_tag(x_59) == 0) +lean_inc(x_26); +lean_inc(x_35); +x_37 = l_Lean_Meta_isExprDefEq(x_35, x_26, x_8, x_9, x_10, x_11, x_34); +if (lean_obj_tag(x_37) == 0) { -lean_object* x_60; uint8_t x_61; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_unbox(x_60); -lean_dec(x_60); -if (x_61 == 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_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -lean_free_object(x_34); -lean_free_object(x_25); -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -lean_dec(x_59); -x_63 = lean_ctor_get(x_10, 0); -lean_inc(x_63); -x_64 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; -x_65 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_63, x_64); -lean_dec(x_63); -if (x_65 == 0) +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +lean_free_object(x_29); +lean_free_object(x_20); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_ctor_get(x_10, 0); +lean_inc(x_41); +x_42 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; +x_43 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_41, x_42); +lean_dec(x_41); +if (x_43 == 0) { -lean_object* x_66; -lean_dec(x_58); -lean_dec(x_57); -lean_dec(x_32); -lean_dec(x_31); -x_66 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_62); -return x_66; +lean_object* x_44; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_44 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_40); +return x_44; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_115; lean_object* x_116; -x_67 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; -lean_inc(x_57); -x_68 = lean_array_push(x_67, x_57); -lean_inc(x_31); -x_69 = lean_array_push(x_68, x_31); -x_115 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__3; +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_59; lean_object* x_60; +x_45 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; +lean_inc(x_35); +x_46 = lean_array_push(x_45, x_35); +lean_inc(x_26); +x_47 = lean_array_push(x_46, x_26); +x_59 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__3; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_116 = l_Lean_Meta_mkAppM(x_115, x_69, x_8, x_9, x_10, x_11, x_62); -if (lean_obj_tag(x_116) == 0) +x_60 = l_Lean_Meta_mkAppM(x_59, x_47, x_8, x_9, x_10, x_11, x_40); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +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_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_6); -x_119 = l_Lean_Elab_Term_synthesizeInst(x_117, x_6, x_7, x_8, x_9, x_10, x_11, x_118); -if (lean_obj_tag(x_119) == 0) +x_63 = l_Lean_Elab_Term_synthesizeInst(x_61, x_6, x_7, x_8, x_9, x_10, x_11, x_62); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -lean_dec(x_119); +lean_object* x_64; lean_object* x_65; lean_object* x_66; +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); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_58); -x_122 = l_Lean_Meta_getDecLevel(x_58, x_8, x_9, x_10, x_11, x_121); -if (lean_obj_tag(x_122) == 0) +lean_inc(x_36); +x_66 = l_Lean_Meta_getDecLevel(x_36, x_8, x_9, x_10, x_11, x_65); +if (lean_obj_tag(x_66) == 0) { -lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_123 = lean_ctor_get(x_122, 0); -lean_inc(x_123); -x_124 = lean_ctor_get(x_122, 1); -lean_inc(x_124); -lean_dec(x_122); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_22); -x_125 = l_Lean_Meta_getDecLevel(x_22, x_8, x_9, x_10, x_11, x_124); -if (lean_obj_tag(x_125) == 0) +lean_inc(x_17); +x_69 = l_Lean_Meta_getDecLevel(x_17, x_8, x_9, x_10, x_11, x_68); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -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); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_19); -x_128 = l_Lean_Meta_getDecLevel(x_19, x_8, x_9, x_10, x_11, x_127); -if (lean_obj_tag(x_128) == 0) +lean_inc(x_14); +x_72 = l_Lean_Meta_getDecLevel(x_14, x_8, x_9, x_10, x_11, x_71); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -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 = lean_box(0); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_131); -x_133 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_133, 0, x_126); -lean_ctor_set(x_133, 1, x_132); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_123); -lean_ctor_set(x_134, 1, x_133); -x_135 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; -lean_inc(x_134); -x_136 = l_Lean_mkConst(x_135, x_134); -x_137 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; -lean_inc(x_57); -x_138 = lean_array_push(x_137, x_57); -lean_inc(x_31); -x_139 = lean_array_push(x_138, x_31); -lean_inc(x_120); -x_140 = lean_array_push(x_139, x_120); -lean_inc(x_58); -x_141 = lean_array_push(x_140, x_58); +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; +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_70); +lean_ctor_set(x_77, 1, x_76); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_67); +lean_ctor_set(x_78, 1, x_77); +x_79 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; +lean_inc(x_78); +x_80 = l_Lean_mkConst(x_79, x_78); +x_81 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; +lean_inc(x_35); +x_82 = lean_array_push(x_81, x_35); +lean_inc(x_26); +x_83 = lean_array_push(x_82, x_26); +lean_inc(x_64); +x_84 = lean_array_push(x_83, x_64); +lean_inc(x_36); +x_85 = lean_array_push(x_84, x_36); lean_inc(x_4); -x_142 = lean_array_push(x_141, x_4); -x_143 = l_Lean_mkAppN(x_136, x_142); +x_86 = lean_array_push(x_85, x_4); +x_87 = l_Lean_mkAppN(x_80, x_86); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_143); -x_144 = lean_infer_type(x_143, x_8, x_9, x_10, x_11, x_130); -if (lean_obj_tag(x_144) == 0) +lean_inc(x_87); +x_88 = lean_infer_type(x_87, x_8, x_9, x_10, x_11, x_74); +if (lean_obj_tag(x_88) == 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); +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_19); -x_147 = l_Lean_Meta_isExprDefEq(x_19, x_145, x_8, x_9, x_10, x_11, x_146); -if (lean_obj_tag(x_147) == 0) +lean_inc(x_14); +x_91 = l_Lean_Meta_isExprDefEq(x_14, x_89, x_8, x_9, x_10, x_11, x_90); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_148; uint8_t x_149; -x_148 = lean_ctor_get(x_147, 0); -lean_inc(x_148); -x_149 = lean_unbox(x_148); -lean_dec(x_148); -if (x_149 == 0) +lean_object* x_92; uint8_t x_93; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_unbox(x_92); +lean_dec(x_92); +if (x_93 == 0) { -lean_object* x_150; lean_object* x_151; lean_object* x_152; -lean_dec(x_143); -x_150 = lean_ctor_get(x_147, 1); -lean_inc(x_150); -lean_dec(x_147); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_87); +x_94 = lean_ctor_get(x_91, 1); +lean_inc(x_94); +lean_dec(x_91); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_31); -x_151 = l_Lean_Meta_isMonad_x3f(x_31, x_8, x_9, x_10, x_11, x_150); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -if (lean_obj_tag(x_152) == 0) +lean_inc(x_26); +x_95 = l_Lean_Meta_isMonad_x3f(x_26, x_8, x_9, x_10, x_11, x_94); +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_153; lean_object* x_154; -lean_dec(x_134); -lean_dec(x_120); -lean_dec(x_58); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec(x_151); +lean_object* x_97; lean_object* x_98; +lean_dec(x_78); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -22827,18 +21932,15 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_22); -lean_inc(x_19); +lean_inc(x_17); +lean_inc(x_14); lean_inc(x_1); -x_154 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_153); -if (lean_obj_tag(x_154) == 0) +x_98 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_97); +if (lean_obj_tag(x_98) == 0) { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_57); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_22); -lean_dec(x_19); +uint8_t x_99; +lean_dec(x_17); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22848,135 +21950,580 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -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 = lean_box(0); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_155); -lean_ctor_set(x_158, 1, x_157); -x_13 = x_158; -x_14 = x_156; -goto block_17; +x_99 = !lean_is_exclusive(x_98); +if (x_99 == 0) +{ +return x_98; } else { -lean_object* x_159; -x_159 = lean_ctor_get(x_154, 1); -lean_inc(x_159); -lean_dec(x_154); -x_70 = x_159; -goto block_114; +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_98, 0); +x_101 = lean_ctor_get(x_98, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_98); +x_102 = lean_alloc_ctor(0, 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_160; lean_object* x_161; lean_object* x_162; -x_160 = lean_ctor_get(x_151, 1); -lean_inc(x_160); -lean_dec(x_151); -x_161 = lean_ctor_get(x_152, 0); -lean_inc(x_161); -lean_dec(x_152); +lean_object* x_103; +x_103 = lean_ctor_get(x_98, 1); +lean_inc(x_103); +lean_dec(x_98); +x_48 = x_103; +goto block_58; +} +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_95, 1); +lean_inc(x_104); +lean_dec(x_95); +x_105 = lean_ctor_get(x_96, 0); +lean_inc(x_105); +lean_dec(x_96); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_58); -x_162 = l_Lean_Meta_getLevel(x_58, x_8, x_9, x_10, x_11, x_160); -if (lean_obj_tag(x_162) == 0) +lean_inc(x_36); +x_106 = l_Lean_Meta_getLevel(x_36, x_8, x_9, x_10, x_11, x_104); +if (lean_obj_tag(x_106) == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -lean_dec(x_162); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_32); -x_165 = l_Lean_Meta_getLevel(x_32, x_8, x_9, x_10, x_11, x_164); -if (lean_obj_tag(x_165) == 0) +lean_inc(x_27); +x_109 = l_Lean_Meta_getLevel(x_27, x_8, x_9, x_10, x_11, x_108); +if (lean_obj_tag(x_109) == 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; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_166); -lean_ctor_set(x_168, 1, x_131); -x_169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_169, 0, x_163); -lean_ctor_set(x_169, 1, x_168); -x_170 = l_Lean_Elab_Term_mkCoe___closed__2; -x_171 = l_Lean_mkConst(x_170, x_169); -x_172 = l_Lean_Elab_Term_mkCoe___closed__3; -lean_inc(x_58); -x_173 = lean_array_push(x_172, x_58); -x_174 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__8; -x_175 = lean_array_push(x_173, x_174); -lean_inc(x_32); -x_176 = lean_array_push(x_175, x_32); -x_177 = l_Lean_mkAppN(x_171, x_176); -x_178 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; -x_179 = 0; -lean_inc(x_58); -x_180 = l_Lean_mkForall(x_178, x_179, x_58, x_177); +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_75); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_107); +lean_ctor_set(x_113, 1, x_112); +x_114 = l_Lean_Elab_Term_mkCoe___closed__2; +x_115 = l_Lean_mkConst(x_114, x_113); +x_116 = l_Lean_Elab_Term_mkCoe___closed__3; +lean_inc(x_36); +x_117 = lean_array_push(x_116, x_36); +x_118 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__8; +x_119 = lean_array_push(x_117, x_118); +lean_inc(x_27); +x_120 = lean_array_push(x_119, x_27); +x_121 = l_Lean_mkAppN(x_115, x_120); +x_122 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; +x_123 = 0; +lean_inc(x_36); +x_124 = l_Lean_mkForall(x_122, x_123, x_36, x_121); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_6); -x_181 = l_Lean_Elab_Term_synthesizeInst(x_180, x_6, x_7, x_8, x_9, x_10, x_11, x_167); -if (lean_obj_tag(x_181) == 0) +x_125 = l_Lean_Elab_Term_synthesizeInst(x_124, x_6, x_7, x_8, x_9, x_10, x_11, x_111); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_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 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; +x_129 = l_Lean_mkConst(x_128, x_78); +x_130 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__13; +x_131 = lean_array_push(x_130, x_35); +x_132 = lean_array_push(x_131, x_26); +x_133 = lean_array_push(x_132, x_36); +x_134 = lean_array_push(x_133, x_27); +x_135 = lean_array_push(x_134, x_64); +x_136 = lean_array_push(x_135, x_126); +x_137 = lean_array_push(x_136, x_105); +lean_inc(x_4); +x_138 = lean_array_push(x_137, x_4); +x_139 = l_Lean_mkAppN(x_129, x_138); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_140 = l_Lean_Meta_expandCoe(x_139, x_8, x_9, x_10, x_11, x_127); +if (lean_obj_tag(x_140) == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec(x_140); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_141); +x_143 = lean_infer_type(x_141, x_8, x_9, x_10, x_11, x_142); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; +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); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_146 = l_Lean_Meta_isExprDefEq(x_14, x_144, x_8, x_9, x_10, x_11, x_145); +if (lean_obj_tag(x_146) == 0) +{ +lean_object* x_147; uint8_t x_148; +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +x_148 = lean_unbox(x_147); +lean_dec(x_147); +if (x_148 == 0) +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_141); +x_149 = lean_ctor_get(x_146, 1); +lean_inc(x_149); +lean_dec(x_146); +x_150 = lean_box(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); +lean_inc(x_4); +lean_inc(x_17); +lean_inc(x_14); +lean_inc(x_1); +x_151 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_150, x_6, x_7, x_8, x_9, x_10, x_11, x_149); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec(x_151); +x_48 = x_152; +goto block_58; +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_153 = lean_ctor_get(x_146, 1); +lean_inc(x_153); +lean_dec(x_146); +x_154 = lean_box(0); +x_155 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(x_141, x_154, x_6, x_7, x_8, x_9, x_10, x_11, x_153); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_156 = !lean_is_exclusive(x_155); +if (x_156 == 0) +{ +lean_object* x_157; lean_object* x_158; +x_157 = lean_ctor_get(x_155, 0); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +lean_dec(x_157); +lean_ctor_set(x_155, 0, x_158); +return x_155; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_159 = lean_ctor_get(x_155, 0); +x_160 = lean_ctor_get(x_155, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_155); +x_161 = lean_ctor_get(x_159, 0); +lean_inc(x_161); +lean_dec(x_159); +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_160); +return x_162; +} +} +} +else +{ +lean_object* x_163; +lean_dec(x_141); +x_163 = lean_ctor_get(x_146, 1); +lean_inc(x_163); +lean_dec(x_146); +x_48 = x_163; +goto block_58; +} +} +else +{ +lean_object* x_164; +lean_dec(x_141); +x_164 = lean_ctor_get(x_143, 1); +lean_inc(x_164); +lean_dec(x_143); +x_48 = x_164; +goto block_58; +} +} +else +{ +lean_object* x_165; +x_165 = lean_ctor_get(x_140, 1); +lean_inc(x_165); +lean_dec(x_140); +x_48 = x_165; +goto block_58; +} +} +else +{ +lean_object* x_166; +lean_dec(x_105); +lean_dec(x_78); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_166 = lean_ctor_get(x_125, 1); +lean_inc(x_166); +lean_dec(x_125); +x_48 = x_166; +goto block_58; +} +} +else +{ +lean_object* x_167; +lean_dec(x_107); +lean_dec(x_105); +lean_dec(x_78); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_167 = lean_ctor_get(x_109, 1); +lean_inc(x_167); +lean_dec(x_109); +x_48 = x_167; +goto block_58; +} +} +else +{ +lean_object* x_168; +lean_dec(x_105); +lean_dec(x_78); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_168 = lean_ctor_get(x_106, 1); +lean_inc(x_168); +lean_dec(x_106); +x_48 = x_168; +goto block_58; +} +} +} +else +{ +uint8_t x_169; +lean_dec(x_78); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +x_169 = !lean_is_exclusive(x_91); +if (x_169 == 0) +{ +lean_object* x_170; +x_170 = lean_ctor_get(x_91, 0); +lean_dec(x_170); +lean_ctor_set(x_91, 0, x_87); +return x_91; +} +else +{ +lean_object* x_171; lean_object* x_172; +x_171 = lean_ctor_get(x_91, 1); +lean_inc(x_171); +lean_dec(x_91); +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_87); +lean_ctor_set(x_172, 1, x_171); +return x_172; +} +} +} +else +{ +lean_object* x_173; +lean_dec(x_87); +lean_dec(x_78); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_173 = lean_ctor_get(x_91, 1); +lean_inc(x_173); +lean_dec(x_91); +x_48 = x_173; +goto block_58; +} +} +else +{ +lean_object* x_174; +lean_dec(x_87); +lean_dec(x_78); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_174 = lean_ctor_get(x_88, 1); +lean_inc(x_174); +lean_dec(x_88); +x_48 = x_174; +goto block_58; +} +} +else +{ +lean_object* x_175; +lean_dec(x_70); +lean_dec(x_67); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_175 = lean_ctor_get(x_72, 1); +lean_inc(x_175); +lean_dec(x_72); +x_48 = x_175; +goto block_58; +} +} +else +{ +lean_object* x_176; +lean_dec(x_67); +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_176 = lean_ctor_get(x_69, 1); +lean_inc(x_176); +lean_dec(x_69); +x_48 = x_176; +goto block_58; +} +} +else +{ +lean_object* x_177; +lean_dec(x_64); +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_177 = lean_ctor_get(x_66, 1); +lean_inc(x_177); +lean_dec(x_66); +x_48 = x_177; +goto block_58; +} +} +else +{ +lean_object* x_178; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_178 = lean_ctor_get(x_63, 1); +lean_inc(x_178); +lean_dec(x_63); +x_48 = x_178; +goto block_58; +} +} +else +{ +lean_object* x_179; +lean_dec(x_36); +lean_dec(x_35); +lean_dec(x_27); +lean_dec(x_26); +x_179 = lean_ctor_get(x_60, 1); +lean_inc(x_179); +lean_dec(x_60); +x_48 = x_179; +goto block_58; +} +block_58: +{ +lean_object* x_49; +x_49 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_48); +if (lean_obj_tag(x_49) == 0) +{ +uint8_t x_50; +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) +{ +return x_49; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_ctor_get(x_49, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_49); +x_53 = lean_alloc_ctor(0, 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; +x_54 = !lean_is_exclusive(x_49); +if (x_54 == 0) +{ +return x_49; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_49, 0); +x_56 = lean_ctor_get(x_49, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_49); +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_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_37, 1); +lean_inc(x_180); +lean_dec(x_37); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_181 = l_Lean_Meta_isMonad_x3f(x_26, x_8, x_9, x_10, x_11, x_180); x_182 = lean_ctor_get(x_181, 0); lean_inc(x_182); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; +lean_dec(x_36); +lean_dec(x_35); +lean_free_object(x_29); +lean_dec(x_27); +lean_free_object(x_20); x_183 = lean_ctor_get(x_181, 1); lean_inc(x_183); lean_dec(x_181); -x_184 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; -x_185 = l_Lean_mkConst(x_184, x_134); -x_186 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__13; -lean_inc(x_57); -x_187 = lean_array_push(x_186, x_57); -lean_inc(x_31); -x_188 = lean_array_push(x_187, x_31); -x_189 = lean_array_push(x_188, x_58); -lean_inc(x_32); -x_190 = lean_array_push(x_189, x_32); -x_191 = lean_array_push(x_190, x_120); -x_192 = lean_array_push(x_191, x_182); -x_193 = lean_array_push(x_192, x_161); -lean_inc(x_4); -x_194 = lean_array_push(x_193, x_4); -x_195 = l_Lean_mkAppN(x_185, x_194); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_196 = l_Lean_Meta_expandCoe(x_195, x_8, x_9, x_10, x_11, x_183); -if (lean_obj_tag(x_196) == 0) +x_184 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_183); +return x_184; +} +else { -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -lean_dec(x_196); +lean_object* x_185; uint8_t x_186; +x_185 = lean_ctor_get(x_181, 1); +lean_inc(x_185); +lean_dec(x_181); +x_186 = !lean_is_exclusive(x_182); +if (x_186 == 0) +{ +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; +x_187 = lean_ctor_get(x_182, 0); +lean_ctor_set(x_182, 0, x_35); +lean_ctor_set(x_29, 0, x_36); +lean_ctor_set(x_20, 0, x_27); +x_188 = lean_box(0); +x_189 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_189, 0, x_187); +lean_inc(x_4); +x_190 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_190, 0, x_4); +x_191 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; +x_192 = lean_array_push(x_191, x_182); +x_193 = lean_array_push(x_192, x_29); +x_194 = lean_array_push(x_193, x_20); +x_195 = lean_array_push(x_194, x_188); +x_196 = lean_array_push(x_195, x_189); +x_197 = lean_array_push(x_196, x_190); +x_198 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_197); -x_199 = lean_infer_type(x_197, x_8, x_9, x_10, x_11, x_198); +x_199 = l_Lean_Meta_mkAppOptM(x_198, x_197, x_8, x_9, x_10, x_11, x_185); if (lean_obj_tag(x_199) == 0) { lean_object* x_200; lean_object* x_201; lean_object* x_202; @@ -22989,23 +22536,369 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_19); -x_202 = l_Lean_Meta_isExprDefEq(x_19, x_200, x_8, x_9, x_10, x_11, x_201); +x_202 = l_Lean_Meta_expandCoe(x_200, x_8, x_9, x_10, x_11, x_201); if (lean_obj_tag(x_202) == 0) { -lean_object* x_203; uint8_t x_204; -x_203 = lean_ctor_get(x_202, 0); -lean_inc(x_203); -x_204 = lean_unbox(x_203); -lean_dec(x_203); -if (x_204 == 0) +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +return x_202; +} +else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; -lean_dec(x_197); -x_205 = lean_ctor_get(x_202, 1); -lean_inc(x_205); +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_202, 1); +lean_inc(x_203); lean_dec(x_202); -x_206 = lean_box(0); +x_204 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_188, x_6, x_7, x_8, x_9, x_10, x_11, x_203); +return x_204; +} +} +else +{ +lean_object* x_205; lean_object* x_206; +x_205 = lean_ctor_get(x_199, 1); +lean_inc(x_205); +lean_dec(x_199); +x_206 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_188, x_6, x_7, x_8, x_9, x_10, x_11, x_205); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_207 = lean_ctor_get(x_182, 0); +lean_inc(x_207); +lean_dec(x_182); +x_208 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_208, 0, x_35); +lean_ctor_set(x_29, 0, x_36); +lean_ctor_set(x_20, 0, x_27); +x_209 = lean_box(0); +x_210 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_210, 0, x_207); +lean_inc(x_4); +x_211 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_211, 0, x_4); +x_212 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; +x_213 = lean_array_push(x_212, x_208); +x_214 = lean_array_push(x_213, x_29); +x_215 = lean_array_push(x_214, x_20); +x_216 = lean_array_push(x_215, x_209); +x_217 = lean_array_push(x_216, x_210); +x_218 = lean_array_push(x_217, x_211); +x_219 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_220 = l_Lean_Meta_mkAppOptM(x_219, x_218, x_8, x_9, x_10, x_11, x_185); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_223 = l_Lean_Meta_expandCoe(x_221, x_8, x_9, x_10, x_11, x_222); +if (lean_obj_tag(x_223) == 0) +{ +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +return x_223; +} +else +{ +lean_object* x_224; lean_object* x_225; +x_224 = lean_ctor_get(x_223, 1); +lean_inc(x_224); +lean_dec(x_223); +x_225 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_209, x_6, x_7, x_8, x_9, x_10, x_11, x_224); +return x_225; +} +} +else +{ +lean_object* x_226; lean_object* x_227; +x_226 = lean_ctor_get(x_220, 1); +lean_inc(x_226); +lean_dec(x_220); +x_227 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_209, x_6, x_7, x_8, x_9, x_10, x_11, x_226); +return x_227; +} +} +} +} +} +else +{ +uint8_t x_228; +lean_dec(x_36); +lean_dec(x_35); +lean_free_object(x_29); +lean_dec(x_27); +lean_dec(x_26); +lean_free_object(x_20); +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +x_228 = !lean_is_exclusive(x_37); +if (x_228 == 0) +{ +return x_37; +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_37, 0); +x_230 = lean_ctor_get(x_37, 1); +lean_inc(x_230); +lean_inc(x_229); +lean_dec(x_37); +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; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_232 = lean_ctor_get(x_29, 0); +lean_inc(x_232); +lean_dec(x_29); +x_233 = lean_ctor_get(x_28, 1); +lean_inc(x_233); +lean_dec(x_28); +x_234 = lean_ctor_get(x_232, 0); +lean_inc(x_234); +x_235 = lean_ctor_get(x_232, 1); +lean_inc(x_235); +lean_dec(x_232); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_26); +lean_inc(x_234); +x_236 = l_Lean_Meta_isExprDefEq(x_234, x_26, x_8, x_9, x_10, x_11, x_233); +if (lean_obj_tag(x_236) == 0) +{ +lean_object* x_237; uint8_t x_238; +x_237 = lean_ctor_get(x_236, 0); +lean_inc(x_237); +x_238 = lean_unbox(x_237); +lean_dec(x_237); +if (x_238 == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; +lean_free_object(x_20); +x_239 = lean_ctor_get(x_236, 1); +lean_inc(x_239); +lean_dec(x_236); +x_240 = lean_ctor_get(x_10, 0); +lean_inc(x_240); +x_241 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; +x_242 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_240, x_241); +lean_dec(x_240); +if (x_242 == 0) +{ +lean_object* x_243; +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_243 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_239); +return x_243; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_258; lean_object* x_259; +x_244 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; +lean_inc(x_234); +x_245 = lean_array_push(x_244, x_234); +lean_inc(x_26); +x_246 = lean_array_push(x_245, x_26); +x_258 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__3; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_259 = l_Lean_Meta_mkAppM(x_258, x_246, x_8, x_9, x_10, x_11, x_239); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_259, 1); +lean_inc(x_261); +lean_dec(x_259); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_262 = l_Lean_Elab_Term_synthesizeInst(x_260, x_6, x_7, x_8, x_9, x_10, x_11, x_261); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +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); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_235); +x_265 = l_Lean_Meta_getDecLevel(x_235, x_8, x_9, x_10, x_11, x_264); +if (lean_obj_tag(x_265) == 0) +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_265, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_265, 1); +lean_inc(x_267); +lean_dec(x_265); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_17); +x_268 = l_Lean_Meta_getDecLevel(x_17, x_8, x_9, x_10, x_11, x_267); +if (lean_obj_tag(x_268) == 0) +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_269 = lean_ctor_get(x_268, 0); +lean_inc(x_269); +x_270 = lean_ctor_get(x_268, 1); +lean_inc(x_270); +lean_dec(x_268); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_271 = l_Lean_Meta_getDecLevel(x_14, x_8, x_9, x_10, x_11, x_270); +if (lean_obj_tag(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_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; +x_272 = lean_ctor_get(x_271, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_271, 1); +lean_inc(x_273); +lean_dec(x_271); +x_274 = lean_box(0); +x_275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_275, 0, x_272); +lean_ctor_set(x_275, 1, x_274); +x_276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_276, 0, x_269); +lean_ctor_set(x_276, 1, x_275); +x_277 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_277, 0, x_266); +lean_ctor_set(x_277, 1, x_276); +x_278 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; +lean_inc(x_277); +x_279 = l_Lean_mkConst(x_278, x_277); +x_280 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; +lean_inc(x_234); +x_281 = lean_array_push(x_280, x_234); +lean_inc(x_26); +x_282 = lean_array_push(x_281, x_26); +lean_inc(x_263); +x_283 = lean_array_push(x_282, x_263); +lean_inc(x_235); +x_284 = lean_array_push(x_283, x_235); +lean_inc(x_4); +x_285 = lean_array_push(x_284, x_4); +x_286 = l_Lean_mkAppN(x_279, x_285); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_286); +x_287 = lean_infer_type(x_286, x_8, x_9, x_10, x_11, x_273); +if (lean_obj_tag(x_287) == 0) +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_288 = lean_ctor_get(x_287, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_287, 1); +lean_inc(x_289); +lean_dec(x_287); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_290 = l_Lean_Meta_isExprDefEq(x_14, x_288, x_8, x_9, x_10, x_11, x_289); +if (lean_obj_tag(x_290) == 0) +{ +lean_object* x_291; uint8_t x_292; +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +x_292 = lean_unbox(x_291); +lean_dec(x_291); +if (x_292 == 0) +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; +lean_dec(x_286); +x_293 = lean_ctor_get(x_290, 1); +lean_inc(x_293); +lean_dec(x_290); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_26); +x_294 = l_Lean_Meta_isMonad_x3f(x_26, x_8, x_9, x_10, x_11, x_293); +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +if (lean_obj_tag(x_295) == 0) +{ +lean_object* x_296; lean_object* x_297; +lean_dec(x_277); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_296 = lean_ctor_get(x_294, 1); +lean_inc(x_296); +lean_dec(x_294); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -23014,135 +22907,15 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_22); -lean_inc(x_19); +lean_inc(x_17); +lean_inc(x_14); lean_inc(x_1); -x_207 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_206, x_6, x_7, x_8, x_9, x_10, x_11, x_205); -x_208 = lean_ctor_get(x_207, 1); -lean_inc(x_208); -lean_dec(x_207); -x_70 = x_208; -goto block_114; -} -else +x_297 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_296); +if (lean_obj_tag(x_297) == 0) { -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_57); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_209 = lean_ctor_get(x_202, 1); -lean_inc(x_209); -lean_dec(x_202); -x_210 = lean_box(0); -x_211 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(x_197, x_210, x_6, x_7, x_8, x_9, x_10, x_11, x_209); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -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_13 = x_212; -x_14 = x_213; -goto block_17; -} -} -else -{ -lean_object* x_214; -lean_dec(x_197); -x_214 = lean_ctor_get(x_202, 1); -lean_inc(x_214); -lean_dec(x_202); -x_70 = x_214; -goto block_114; -} -} -else -{ -lean_object* x_215; -lean_dec(x_197); -x_215 = lean_ctor_get(x_199, 1); -lean_inc(x_215); -lean_dec(x_199); -x_70 = x_215; -goto block_114; -} -} -else -{ -lean_object* x_216; -x_216 = lean_ctor_get(x_196, 1); -lean_inc(x_216); -lean_dec(x_196); -x_70 = x_216; -goto block_114; -} -} -else -{ -lean_object* x_217; -lean_dec(x_161); -lean_dec(x_134); -lean_dec(x_120); -lean_dec(x_58); -x_217 = lean_ctor_get(x_181, 1); -lean_inc(x_217); -lean_dec(x_181); -x_70 = x_217; -goto block_114; -} -} -else -{ -lean_object* x_218; -lean_dec(x_163); -lean_dec(x_161); -lean_dec(x_134); -lean_dec(x_120); -lean_dec(x_58); -x_218 = lean_ctor_get(x_165, 1); -lean_inc(x_218); -lean_dec(x_165); -x_70 = x_218; -goto block_114; -} -} -else -{ -lean_object* x_219; -lean_dec(x_161); -lean_dec(x_134); -lean_dec(x_120); -lean_dec(x_58); -x_219 = lean_ctor_get(x_162, 1); -lean_inc(x_219); -lean_dec(x_162); -x_70 = x_219; -goto block_114; -} -} -} -else -{ -lean_object* x_220; lean_object* x_221; lean_object* x_222; -lean_dec(x_134); -lean_dec(x_120); -lean_dec(x_58); -lean_dec(x_57); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_22); -lean_dec(x_19); +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_17); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23152,238 +22925,327 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_220 = lean_ctor_get(x_147, 1); -lean_inc(x_220); -lean_dec(x_147); -x_221 = lean_box(0); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_143); -lean_ctor_set(x_222, 1, x_221); -x_13 = x_222; -x_14 = x_220; -goto block_17; +x_298 = lean_ctor_get(x_297, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_297, 1); +lean_inc(x_299); +if (lean_is_exclusive(x_297)) { + lean_ctor_release(x_297, 0); + lean_ctor_release(x_297, 1); + x_300 = x_297; +} else { + lean_dec_ref(x_297); + x_300 = lean_box(0); +} +if (lean_is_scalar(x_300)) { + x_301 = lean_alloc_ctor(0, 2, 0); +} else { + x_301 = x_300; +} +lean_ctor_set(x_301, 0, x_298); +lean_ctor_set(x_301, 1, x_299); +return x_301; +} +else +{ +lean_object* x_302; +x_302 = lean_ctor_get(x_297, 1); +lean_inc(x_302); +lean_dec(x_297); +x_247 = x_302; +goto block_257; } } else { -lean_object* x_223; -lean_dec(x_143); -lean_dec(x_134); -lean_dec(x_120); -lean_dec(x_58); -x_223 = lean_ctor_get(x_147, 1); -lean_inc(x_223); -lean_dec(x_147); -x_70 = x_223; -goto block_114; -} -} -else -{ -lean_object* x_224; -lean_dec(x_143); -lean_dec(x_134); -lean_dec(x_120); -lean_dec(x_58); -x_224 = lean_ctor_get(x_144, 1); -lean_inc(x_224); -lean_dec(x_144); -x_70 = x_224; -goto block_114; -} -} -else -{ -lean_object* x_225; -lean_dec(x_126); -lean_dec(x_123); -lean_dec(x_120); -lean_dec(x_58); -x_225 = lean_ctor_get(x_128, 1); -lean_inc(x_225); -lean_dec(x_128); -x_70 = x_225; -goto block_114; -} -} -else -{ -lean_object* x_226; -lean_dec(x_123); -lean_dec(x_120); -lean_dec(x_58); -x_226 = lean_ctor_get(x_125, 1); -lean_inc(x_226); -lean_dec(x_125); -x_70 = x_226; -goto block_114; -} -} -else -{ -lean_object* x_227; -lean_dec(x_120); -lean_dec(x_58); -x_227 = lean_ctor_get(x_122, 1); -lean_inc(x_227); -lean_dec(x_122); -x_70 = x_227; -goto block_114; -} -} -else -{ -lean_object* x_228; -lean_dec(x_58); -x_228 = lean_ctor_get(x_119, 1); -lean_inc(x_228); -lean_dec(x_119); -x_70 = x_228; -goto block_114; -} -} -else -{ -lean_object* x_229; -lean_dec(x_58); -x_229 = lean_ctor_get(x_116, 1); -lean_inc(x_229); -lean_dec(x_116); -x_70 = x_229; -goto block_114; -} -block_114: -{ -lean_object* x_71; lean_object* x_72; +lean_object* x_303; lean_object* x_304; lean_object* x_305; +x_303 = lean_ctor_get(x_294, 1); +lean_inc(x_303); +lean_dec(x_294); +x_304 = lean_ctor_get(x_295, 0); +lean_inc(x_304); +lean_dec(x_295); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_71 = l_Lean_Meta_isMonad_x3f(x_57, x_8, x_9, x_10, x_11, x_70); -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -if (lean_obj_tag(x_72) == 0) +lean_inc(x_235); +x_305 = l_Lean_Meta_getLevel(x_235, x_8, x_9, x_10, x_11, x_303); +if (lean_obj_tag(x_305) == 0) { -if (x_65 == 0) +lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_306 = lean_ctor_get(x_305, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_305, 1); +lean_inc(x_307); +lean_dec(x_305); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_27); +x_308 = l_Lean_Meta_getLevel(x_27, x_8, x_9, x_10, x_11, x_307); +if (lean_obj_tag(x_308) == 0) { -lean_object* x_73; lean_object* x_74; -lean_dec(x_32); -lean_dec(x_31); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_74 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_73); -if (lean_obj_tag(x_74) == 0) +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; uint8_t x_322; lean_object* x_323; lean_object* x_324; +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_311, 0, x_309); +lean_ctor_set(x_311, 1, x_274); +x_312 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_312, 0, x_306); +lean_ctor_set(x_312, 1, x_311); +x_313 = l_Lean_Elab_Term_mkCoe___closed__2; +x_314 = l_Lean_mkConst(x_313, x_312); +x_315 = l_Lean_Elab_Term_mkCoe___closed__3; +lean_inc(x_235); +x_316 = lean_array_push(x_315, x_235); +x_317 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__8; +x_318 = lean_array_push(x_316, x_317); +lean_inc(x_27); +x_319 = lean_array_push(x_318, x_27); +x_320 = l_Lean_mkAppN(x_314, x_319); +x_321 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; +x_322 = 0; +lean_inc(x_235); +x_323 = l_Lean_mkForall(x_321, x_322, x_235, x_320); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_324 = l_Lean_Elab_Term_synthesizeInst(x_323, x_6, x_7, x_8, x_9, x_10, x_11, x_310); +if (lean_obj_tag(x_324) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -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); -x_77 = lean_box(0); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_75); -lean_ctor_set(x_78, 1, x_77); -x_13 = x_78; -x_14 = x_76; -goto block_17; -} -else +lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_325 = lean_ctor_get(x_324, 0); +lean_inc(x_325); +x_326 = lean_ctor_get(x_324, 1); +lean_inc(x_326); +lean_dec(x_324); +x_327 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; +x_328 = l_Lean_mkConst(x_327, x_277); +x_329 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__13; +x_330 = lean_array_push(x_329, x_234); +x_331 = lean_array_push(x_330, x_26); +x_332 = lean_array_push(x_331, x_235); +x_333 = lean_array_push(x_332, x_27); +x_334 = lean_array_push(x_333, x_263); +x_335 = lean_array_push(x_334, x_325); +x_336 = lean_array_push(x_335, x_304); +lean_inc(x_4); +x_337 = lean_array_push(x_336, x_4); +x_338 = l_Lean_mkAppN(x_328, x_337); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_339 = l_Lean_Meta_expandCoe(x_338, x_8, x_9, x_10, x_11, x_326); +if (lean_obj_tag(x_339) == 0) { -uint8_t x_79; -x_79 = !lean_is_exclusive(x_74); -if (x_79 == 0) +lean_object* x_340; lean_object* x_341; lean_object* x_342; +x_340 = lean_ctor_get(x_339, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_339, 1); +lean_inc(x_341); +lean_dec(x_339); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_340); +x_342 = lean_infer_type(x_340, x_8, x_9, x_10, x_11, x_341); +if (lean_obj_tag(x_342) == 0) { -return x_74; -} -else +lean_object* x_343; lean_object* x_344; lean_object* x_345; +x_343 = lean_ctor_get(x_342, 0); +lean_inc(x_343); +x_344 = lean_ctor_get(x_342, 1); +lean_inc(x_344); +lean_dec(x_342); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_345 = l_Lean_Meta_isExprDefEq(x_14, x_343, x_8, x_9, x_10, x_11, x_344); +if (lean_obj_tag(x_345) == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_80 = lean_ctor_get(x_74, 0); -x_81 = lean_ctor_get(x_74, 1); -lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_74); -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_346; uint8_t x_347; +x_346 = lean_ctor_get(x_345, 0); +lean_inc(x_346); +x_347 = lean_unbox(x_346); +lean_dec(x_346); +if (x_347 == 0) { -lean_object* x_83; lean_object* x_84; -x_83 = lean_ctor_get(x_71, 1); -lean_inc(x_83); -lean_dec(x_71); +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; +lean_dec(x_340); +x_348 = lean_ctor_get(x_345, 1); +lean_inc(x_348); +lean_dec(x_345); +x_349 = lean_box(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); lean_inc(x_4); -lean_inc(x_22); +lean_inc(x_17); +lean_inc(x_14); lean_inc(x_1); -x_84 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_31, x_32, x_22, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_83); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_86); -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); -lean_dec(x_87); -x_90 = lean_box(0); -x_91 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_91, 0, x_88); -lean_ctor_set(x_91, 1, x_90); -x_13 = x_91; -x_14 = x_89; -goto block_17; +x_350 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_349, x_6, x_7, x_8, x_9, x_10, x_11, x_348); +x_351 = lean_ctor_get(x_350, 1); +lean_inc(x_351); +lean_dec(x_350); +x_247 = x_351; +goto block_257; } else { -uint8_t x_92; -x_92 = !lean_is_exclusive(x_87); -if (x_92 == 0) -{ -return x_87; +lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; +lean_dec(x_17); +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_352 = lean_ctor_get(x_345, 1); +lean_inc(x_352); +lean_dec(x_345); +x_353 = lean_box(0); +x_354 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(x_340, x_353, x_6, x_7, x_8, x_9, x_10, x_11, x_352); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_355 = lean_ctor_get(x_354, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_354, 1); +lean_inc(x_356); +if (lean_is_exclusive(x_354)) { + lean_ctor_release(x_354, 0); + lean_ctor_release(x_354, 1); + x_357 = x_354; +} else { + lean_dec_ref(x_354); + x_357 = lean_box(0); +} +x_358 = lean_ctor_get(x_355, 0); +lean_inc(x_358); +lean_dec(x_355); +if (lean_is_scalar(x_357)) { + x_359 = lean_alloc_ctor(0, 2, 0); +} else { + x_359 = x_357; +} +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_356); +return x_359; +} } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_87, 0); -x_94 = lean_ctor_get(x_87, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_87); -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_360; +lean_dec(x_340); +x_360 = lean_ctor_get(x_345, 1); +lean_inc(x_360); +lean_dec(x_345); +x_247 = x_360; +goto block_257; +} +} +else +{ +lean_object* x_361; +lean_dec(x_340); +x_361 = lean_ctor_get(x_342, 1); +lean_inc(x_361); +lean_dec(x_342); +x_247 = x_361; +goto block_257; +} +} +else +{ +lean_object* x_362; +x_362 = lean_ctor_get(x_339, 1); +lean_inc(x_362); +lean_dec(x_339); +x_247 = x_362; +goto block_257; +} +} +else +{ +lean_object* x_363; +lean_dec(x_304); +lean_dec(x_277); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_363 = lean_ctor_get(x_324, 1); +lean_inc(x_363); +lean_dec(x_324); +x_247 = x_363; +goto block_257; +} +} +else +{ +lean_object* x_364; +lean_dec(x_306); +lean_dec(x_304); +lean_dec(x_277); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_364 = lean_ctor_get(x_308, 1); +lean_inc(x_364); +lean_dec(x_308); +x_247 = x_364; +goto block_257; +} +} +else +{ +lean_object* x_365; +lean_dec(x_304); +lean_dec(x_277); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_365 = lean_ctor_get(x_305, 1); +lean_inc(x_365); +lean_dec(x_305); +x_247 = x_365; +goto block_257; } } } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_22); -lean_dec(x_19); +lean_object* x_366; lean_object* x_367; lean_object* x_368; +lean_dec(x_277); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_17); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23393,560 +23255,276 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_96 = lean_ctor_get(x_84, 1); -lean_inc(x_96); -lean_dec(x_84); -x_97 = lean_ctor_get(x_85, 0); -lean_inc(x_97); -lean_dec(x_85); -x_98 = lean_box(0); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -x_13 = x_99; -x_14 = x_96; -goto block_17; +x_366 = lean_ctor_get(x_290, 1); +lean_inc(x_366); +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_367 = x_290; +} else { + lean_dec_ref(x_290); + x_367 = lean_box(0); +} +if (lean_is_scalar(x_367)) { + x_368 = lean_alloc_ctor(0, 2, 0); +} else { + x_368 = x_367; +} +lean_ctor_set(x_368, 0, x_286); +lean_ctor_set(x_368, 1, x_366); +return x_368; } } else { -uint8_t x_100; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_100 = !lean_is_exclusive(x_84); -if (x_100 == 0) -{ -return x_84; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_84, 0); -x_102 = lean_ctor_get(x_84, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_84); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; -} -} +lean_object* x_369; +lean_dec(x_286); +lean_dec(x_277); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_369 = lean_ctor_get(x_290, 1); +lean_inc(x_369); +lean_dec(x_290); +x_247 = x_369; +goto block_257; } } else { -lean_object* x_104; lean_object* x_105; -lean_dec(x_72); -lean_dec(x_32); -lean_dec(x_31); -x_104 = lean_ctor_get(x_71, 1); -lean_inc(x_104); -lean_dec(x_71); -x_105 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_104); -if (lean_obj_tag(x_105) == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -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); -x_108 = lean_box(0); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_108); -x_13 = x_109; -x_14 = x_107; -goto block_17; -} -else -{ -uint8_t x_110; -x_110 = !lean_is_exclusive(x_105); -if (x_110 == 0) -{ -return x_105; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_105, 0); -x_112 = lean_ctor_get(x_105, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_105); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; -} -} -} -} +lean_object* x_370; +lean_dec(x_286); +lean_dec(x_277); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_370 = lean_ctor_get(x_287, 1); +lean_inc(x_370); +lean_dec(x_287); +x_247 = x_370; +goto block_257; } } else { -lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_230 = lean_ctor_get(x_59, 1); -lean_inc(x_230); -lean_dec(x_59); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_231 = l_Lean_Meta_isMonad_x3f(x_31, x_8, x_9, x_10, x_11, x_230); -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -if (lean_obj_tag(x_232) == 0) -{ -lean_object* x_233; lean_object* x_234; -lean_dec(x_58); -lean_dec(x_57); -lean_free_object(x_34); -lean_dec(x_32); -lean_free_object(x_25); -x_233 = lean_ctor_get(x_231, 1); -lean_inc(x_233); -lean_dec(x_231); -x_234 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_233); -return x_234; +lean_object* x_371; +lean_dec(x_269); +lean_dec(x_266); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_371 = lean_ctor_get(x_271, 1); +lean_inc(x_371); +lean_dec(x_271); +x_247 = x_371; +goto block_257; +} } else { -lean_object* x_235; uint8_t x_236; -x_235 = lean_ctor_get(x_231, 1); -lean_inc(x_235); -lean_dec(x_231); -x_236 = !lean_is_exclusive(x_232); -if (x_236 == 0) +lean_object* x_372; +lean_dec(x_266); +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_372 = lean_ctor_get(x_268, 1); +lean_inc(x_372); +lean_dec(x_268); +x_247 = x_372; +goto block_257; +} +} +else { -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_237 = lean_ctor_get(x_232, 0); -lean_ctor_set(x_232, 0, x_57); -lean_ctor_set(x_34, 0, x_58); -lean_ctor_set(x_25, 0, x_32); -x_238 = lean_box(0); -x_239 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_239, 0, x_237); -lean_inc(x_4); -x_240 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_240, 0, x_4); -x_241 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; -x_242 = lean_array_push(x_241, x_232); -x_243 = lean_array_push(x_242, x_34); -x_244 = lean_array_push(x_243, x_25); -x_245 = lean_array_push(x_244, x_238); -x_246 = lean_array_push(x_245, x_239); -x_247 = lean_array_push(x_246, x_240); -x_248 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_249 = l_Lean_Meta_mkAppOptM(x_248, x_247, x_8, x_9, x_10, x_11, x_235); -if (lean_obj_tag(x_249) == 0) +lean_object* x_373; +lean_dec(x_263); +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_373 = lean_ctor_get(x_265, 1); +lean_inc(x_373); +lean_dec(x_265); +x_247 = x_373; +goto block_257; +} +} +else { -lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_250 = lean_ctor_get(x_249, 0); +lean_object* x_374; +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_374 = lean_ctor_get(x_262, 1); +lean_inc(x_374); +lean_dec(x_262); +x_247 = x_374; +goto block_257; +} +} +else +{ +lean_object* x_375; +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +x_375 = lean_ctor_get(x_259, 1); +lean_inc(x_375); +lean_dec(x_259); +x_247 = x_375; +goto block_257; +} +block_257: +{ +lean_object* x_248; +x_248 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_247); +if (lean_obj_tag(x_248) == 0) +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_249 = lean_ctor_get(x_248, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_248, 1); lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -lean_dec(x_249); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_252 = l_Lean_Meta_expandCoe(x_250, x_8, x_9, x_10, x_11, x_251); -if (lean_obj_tag(x_252) == 0) -{ -lean_dec(x_22); -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_4); -lean_dec(x_1); +if (lean_is_exclusive(x_248)) { + lean_ctor_release(x_248, 0); + lean_ctor_release(x_248, 1); + x_251 = x_248; +} else { + lean_dec_ref(x_248); + x_251 = lean_box(0); +} +if (lean_is_scalar(x_251)) { + x_252 = lean_alloc_ctor(0, 2, 0); +} else { + x_252 = x_251; +} +lean_ctor_set(x_252, 0, x_249); +lean_ctor_set(x_252, 1, x_250); return x_252; } else { -lean_object* x_253; lean_object* x_254; -x_253 = lean_ctor_get(x_252, 1); +lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_253 = lean_ctor_get(x_248, 0); lean_inc(x_253); -lean_dec(x_252); -x_254 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_238, x_6, x_7, x_8, x_9, x_10, x_11, x_253); -return x_254; +x_254 = lean_ctor_get(x_248, 1); +lean_inc(x_254); +if (lean_is_exclusive(x_248)) { + lean_ctor_release(x_248, 0); + lean_ctor_release(x_248, 1); + x_255 = x_248; +} else { + lean_dec_ref(x_248); + x_255 = lean_box(0); } +if (lean_is_scalar(x_255)) { + x_256 = lean_alloc_ctor(1, 2, 0); +} else { + x_256 = x_255; } -else -{ -lean_object* x_255; lean_object* x_256; -x_255 = lean_ctor_get(x_249, 1); -lean_inc(x_255); -lean_dec(x_249); -x_256 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_238, x_6, x_7, x_8, x_9, x_10, x_11, x_255); +lean_ctor_set(x_256, 0, x_253); +lean_ctor_set(x_256, 1, x_254); return x_256; } } -else -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_257 = lean_ctor_get(x_232, 0); -lean_inc(x_257); -lean_dec(x_232); -x_258 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_258, 0, x_57); -lean_ctor_set(x_34, 0, x_58); -lean_ctor_set(x_25, 0, x_32); -x_259 = lean_box(0); -x_260 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_260, 0, x_257); -lean_inc(x_4); -x_261 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_261, 0, x_4); -x_262 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; -x_263 = lean_array_push(x_262, x_258); -x_264 = lean_array_push(x_263, x_34); -x_265 = lean_array_push(x_264, x_25); -x_266 = lean_array_push(x_265, x_259); -x_267 = lean_array_push(x_266, x_260); -x_268 = lean_array_push(x_267, x_261); -x_269 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_270 = l_Lean_Meta_mkAppOptM(x_269, x_268, x_8, x_9, x_10, x_11, x_235); -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); -x_273 = l_Lean_Meta_expandCoe(x_271, x_8, x_9, x_10, x_11, x_272); -if (lean_obj_tag(x_273) == 0) -{ -lean_dec(x_22); -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_4); -lean_dec(x_1); -return x_273; -} -else -{ -lean_object* x_274; lean_object* x_275; -x_274 = lean_ctor_get(x_273, 1); -lean_inc(x_274); -lean_dec(x_273); -x_275 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_259, x_6, x_7, x_8, x_9, x_10, x_11, x_274); -return x_275; } } else { -lean_object* x_276; lean_object* x_277; -x_276 = lean_ctor_get(x_270, 1); -lean_inc(x_276); -lean_dec(x_270); -x_277 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_259, x_6, x_7, x_8, x_9, x_10, x_11, x_276); -return x_277; -} -} -} -} -} -else -{ -uint8_t x_278; -lean_dec(x_58); -lean_dec(x_57); -lean_free_object(x_34); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_25); -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_278 = !lean_is_exclusive(x_59); -if (x_278 == 0) -{ -return x_59; -} -else -{ -lean_object* x_279; lean_object* x_280; lean_object* x_281; -x_279 = lean_ctor_get(x_59, 0); -x_280 = lean_ctor_get(x_59, 1); -lean_inc(x_280); -lean_inc(x_279); -lean_dec(x_59); -x_281 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_281, 0, x_279); -lean_ctor_set(x_281, 1, x_280); -return x_281; -} -} -} -else -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_282 = lean_ctor_get(x_34, 0); -lean_inc(x_282); -lean_dec(x_34); -x_283 = lean_ctor_get(x_33, 1); -lean_inc(x_283); -lean_dec(x_33); -x_284 = lean_ctor_get(x_282, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_282, 1); -lean_inc(x_285); -lean_dec(x_282); +lean_object* x_376; lean_object* x_377; lean_object* x_378; +x_376 = lean_ctor_get(x_236, 1); +lean_inc(x_376); +lean_dec(x_236); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_31); -lean_inc(x_284); -x_286 = l_Lean_Meta_isExprDefEq(x_284, x_31, x_8, x_9, x_10, x_11, x_283); -if (lean_obj_tag(x_286) == 0) +x_377 = l_Lean_Meta_isMonad_x3f(x_26, x_8, x_9, x_10, x_11, x_376); +x_378 = lean_ctor_get(x_377, 0); +lean_inc(x_378); +if (lean_obj_tag(x_378) == 0) { -lean_object* x_287; uint8_t x_288; -x_287 = lean_ctor_get(x_286, 0); -lean_inc(x_287); -x_288 = lean_unbox(x_287); -lean_dec(x_287); -if (x_288 == 0) -{ -lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; -lean_free_object(x_25); -x_289 = lean_ctor_get(x_286, 1); -lean_inc(x_289); -lean_dec(x_286); -x_290 = lean_ctor_get(x_10, 0); -lean_inc(x_290); -x_291 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; -x_292 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_290, x_291); -lean_dec(x_290); -if (x_292 == 0) -{ -lean_object* x_293; -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_32); -lean_dec(x_31); -x_293 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_289); -return x_293; -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_342; lean_object* x_343; -x_294 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; -lean_inc(x_284); -x_295 = lean_array_push(x_294, x_284); -lean_inc(x_31); -x_296 = lean_array_push(x_295, x_31); -x_342 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__3; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_343 = l_Lean_Meta_mkAppM(x_342, x_296, x_8, x_9, x_10, x_11, x_289); -if (lean_obj_tag(x_343) == 0) -{ -lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_344 = lean_ctor_get(x_343, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_343, 1); -lean_inc(x_345); -lean_dec(x_343); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -x_346 = l_Lean_Elab_Term_synthesizeInst(x_344, x_6, x_7, x_8, x_9, x_10, x_11, x_345); -if (lean_obj_tag(x_346) == 0) -{ -lean_object* x_347; lean_object* x_348; lean_object* x_349; -x_347 = lean_ctor_get(x_346, 0); -lean_inc(x_347); -x_348 = lean_ctor_get(x_346, 1); -lean_inc(x_348); -lean_dec(x_346); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_285); -x_349 = l_Lean_Meta_getDecLevel(x_285, x_8, x_9, x_10, x_11, x_348); -if (lean_obj_tag(x_349) == 0) -{ -lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_350 = lean_ctor_get(x_349, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_349, 1); -lean_inc(x_351); -lean_dec(x_349); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_22); -x_352 = l_Lean_Meta_getDecLevel(x_22, x_8, x_9, x_10, x_11, x_351); -if (lean_obj_tag(x_352) == 0) -{ -lean_object* x_353; lean_object* x_354; lean_object* x_355; -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); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_19); -x_355 = l_Lean_Meta_getDecLevel(x_19, x_8, x_9, x_10, x_11, x_354); -if (lean_obj_tag(x_355) == 0) -{ -lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; -x_356 = lean_ctor_get(x_355, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_355, 1); -lean_inc(x_357); -lean_dec(x_355); -x_358 = lean_box(0); -x_359 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_359, 0, x_356); -lean_ctor_set(x_359, 1, x_358); -x_360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_360, 0, x_353); -lean_ctor_set(x_360, 1, x_359); -x_361 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_361, 0, x_350); -lean_ctor_set(x_361, 1, x_360); -x_362 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; -lean_inc(x_361); -x_363 = l_Lean_mkConst(x_362, x_361); -x_364 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; -lean_inc(x_284); -x_365 = lean_array_push(x_364, x_284); -lean_inc(x_31); -x_366 = lean_array_push(x_365, x_31); -lean_inc(x_347); -x_367 = lean_array_push(x_366, x_347); -lean_inc(x_285); -x_368 = lean_array_push(x_367, x_285); -lean_inc(x_4); -x_369 = lean_array_push(x_368, x_4); -x_370 = l_Lean_mkAppN(x_363, x_369); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_370); -x_371 = lean_infer_type(x_370, x_8, x_9, x_10, x_11, x_357); -if (lean_obj_tag(x_371) == 0) -{ -lean_object* x_372; lean_object* x_373; lean_object* x_374; -x_372 = lean_ctor_get(x_371, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_371, 1); -lean_inc(x_373); -lean_dec(x_371); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_19); -x_374 = l_Lean_Meta_isExprDefEq(x_19, x_372, x_8, x_9, x_10, x_11, x_373); -if (lean_obj_tag(x_374) == 0) -{ -lean_object* x_375; uint8_t x_376; -x_375 = lean_ctor_get(x_374, 0); -lean_inc(x_375); -x_376 = lean_unbox(x_375); -lean_dec(x_375); -if (x_376 == 0) -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; -lean_dec(x_370); -x_377 = lean_ctor_get(x_374, 1); -lean_inc(x_377); -lean_dec(x_374); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_31); -x_378 = l_Lean_Meta_isMonad_x3f(x_31, x_8, x_9, x_10, x_11, x_377); -x_379 = lean_ctor_get(x_378, 0); +lean_object* x_379; lean_object* x_380; +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_free_object(x_20); +x_379 = lean_ctor_get(x_377, 1); lean_inc(x_379); -if (lean_obj_tag(x_379) == 0) +lean_dec(x_377); +x_380 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_379); +return x_380; +} +else { -lean_object* x_380; lean_object* x_381; -lean_dec(x_361); -lean_dec(x_347); -lean_dec(x_285); -x_380 = lean_ctor_get(x_378, 1); -lean_inc(x_380); -lean_dec(x_378); +lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_381 = lean_ctor_get(x_377, 1); +lean_inc(x_381); +lean_dec(x_377); +x_382 = lean_ctor_get(x_378, 0); +lean_inc(x_382); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + x_383 = x_378; +} else { + lean_dec_ref(x_378); + x_383 = lean_box(0); +} +if (lean_is_scalar(x_383)) { + x_384 = lean_alloc_ctor(1, 1, 0); +} else { + x_384 = x_383; +} +lean_ctor_set(x_384, 0, x_234); +x_385 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_385, 0, x_235); +lean_ctor_set(x_20, 0, x_27); +x_386 = lean_box(0); +x_387 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_387, 0, x_382); +lean_inc(x_4); +x_388 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_388, 0, x_4); +x_389 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; +x_390 = lean_array_push(x_389, x_384); +x_391 = lean_array_push(x_390, x_385); +x_392 = lean_array_push(x_391, x_20); +x_393 = lean_array_push(x_392, x_386); +x_394 = lean_array_push(x_393, x_387); +x_395 = lean_array_push(x_394, x_388); +x_396 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; 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_4); -lean_inc(x_22); -lean_inc(x_19); -lean_inc(x_1); -x_381 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_380); -if (lean_obj_tag(x_381) == 0) +x_397 = l_Lean_Meta_mkAppOptM(x_396, x_395, x_8, x_9, x_10, x_11, x_381); +if (lean_obj_tag(x_397) == 0) { -lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; -lean_dec(x_284); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_22); -lean_dec(x_19); +lean_object* x_398; lean_object* x_399; lean_object* x_400; +x_398 = lean_ctor_get(x_397, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_397, 1); +lean_inc(x_399); +lean_dec(x_397); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_400 = l_Lean_Meta_expandCoe(x_398, x_8, x_9, x_10, x_11, x_399); +if (lean_obj_tag(x_400) == 0) +{ +lean_dec(x_17); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -23956,164 +23534,359 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_382 = lean_ctor_get(x_381, 0); -lean_inc(x_382); -x_383 = lean_ctor_get(x_381, 1); -lean_inc(x_383); -lean_dec(x_381); -x_384 = lean_box(0); -x_385 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_385, 0, x_382); -lean_ctor_set(x_385, 1, x_384); -x_13 = x_385; -x_14 = x_383; -goto block_17; +return x_400; } else { -lean_object* x_386; -x_386 = lean_ctor_get(x_381, 1); -lean_inc(x_386); -lean_dec(x_381); -x_297 = x_386; -goto block_341; +lean_object* x_401; lean_object* x_402; +x_401 = lean_ctor_get(x_400, 1); +lean_inc(x_401); +lean_dec(x_400); +x_402 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_386, x_6, x_7, x_8, x_9, x_10, x_11, x_401); +return x_402; } } else { -lean_object* x_387; lean_object* x_388; lean_object* x_389; -x_387 = lean_ctor_get(x_378, 1); -lean_inc(x_387); -lean_dec(x_378); -x_388 = lean_ctor_get(x_379, 0); -lean_inc(x_388); -lean_dec(x_379); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_285); -x_389 = l_Lean_Meta_getLevel(x_285, x_8, x_9, x_10, x_11, x_387); -if (lean_obj_tag(x_389) == 0) +lean_object* x_403; lean_object* x_404; +x_403 = lean_ctor_get(x_397, 1); +lean_inc(x_403); +lean_dec(x_397); +x_404 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_386, x_6, x_7, x_8, x_9, x_10, x_11, x_403); +return x_404; +} +} +} +} +else { -lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_390 = lean_ctor_get(x_389, 0); -lean_inc(x_390); -x_391 = lean_ctor_get(x_389, 1); -lean_inc(x_391); -lean_dec(x_389); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_32); -x_392 = l_Lean_Meta_getLevel(x_32, x_8, x_9, x_10, x_11, x_391); -if (lean_obj_tag(x_392) == 0) +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; +lean_dec(x_235); +lean_dec(x_234); +lean_dec(x_27); +lean_dec(x_26); +lean_free_object(x_20); +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +x_405 = lean_ctor_get(x_236, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_236, 1); +lean_inc(x_406); +if (lean_is_exclusive(x_236)) { + lean_ctor_release(x_236, 0); + lean_ctor_release(x_236, 1); + x_407 = x_236; +} else { + lean_dec_ref(x_236); + x_407 = lean_box(0); +} +if (lean_is_scalar(x_407)) { + x_408 = lean_alloc_ctor(1, 2, 0); +} else { + x_408 = x_407; +} +lean_ctor_set(x_408, 0, x_405); +lean_ctor_set(x_408, 1, x_406); +return x_408; +} +} +} +} +else { -lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; lean_object* x_407; lean_object* x_408; -x_393 = lean_ctor_get(x_392, 0); -lean_inc(x_393); -x_394 = lean_ctor_get(x_392, 1); -lean_inc(x_394); -lean_dec(x_392); -x_395 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_395, 0, x_393); -lean_ctor_set(x_395, 1, x_358); -x_396 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_396, 0, x_390); -lean_ctor_set(x_396, 1, x_395); -x_397 = l_Lean_Elab_Term_mkCoe___closed__2; -x_398 = l_Lean_mkConst(x_397, x_396); -x_399 = l_Lean_Elab_Term_mkCoe___closed__3; -lean_inc(x_285); -x_400 = lean_array_push(x_399, x_285); -x_401 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__8; -x_402 = lean_array_push(x_400, x_401); -lean_inc(x_32); -x_403 = lean_array_push(x_402, x_32); -x_404 = l_Lean_mkAppN(x_398, x_403); -x_405 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; -x_406 = 0; -lean_inc(x_285); -x_407 = l_Lean_mkForall(x_405, x_406, x_285, x_404); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -x_408 = l_Lean_Elab_Term_synthesizeInst(x_407, x_6, x_7, x_8, x_9, x_10, x_11, x_394); -if (lean_obj_tag(x_408) == 0) +uint8_t x_409; +lean_dec(x_27); +lean_dec(x_26); +lean_free_object(x_20); +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +x_409 = !lean_is_exclusive(x_28); +if (x_409 == 0) { -lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; -x_409 = lean_ctor_get(x_408, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_408, 1); +return x_28; +} +else +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_410 = lean_ctor_get(x_28, 0); +x_411 = lean_ctor_get(x_28, 1); +lean_inc(x_411); lean_inc(x_410); -lean_dec(x_408); -x_411 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; -x_412 = l_Lean_mkConst(x_411, x_361); -x_413 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__13; -lean_inc(x_284); -x_414 = lean_array_push(x_413, x_284); -lean_inc(x_31); -x_415 = lean_array_push(x_414, x_31); -x_416 = lean_array_push(x_415, x_285); -lean_inc(x_32); -x_417 = lean_array_push(x_416, x_32); -x_418 = lean_array_push(x_417, x_347); -x_419 = lean_array_push(x_418, x_409); -x_420 = lean_array_push(x_419, x_388); -lean_inc(x_4); -x_421 = lean_array_push(x_420, x_4); -x_422 = l_Lean_mkAppN(x_412, x_421); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_423 = l_Lean_Meta_expandCoe(x_422, x_8, x_9, x_10, x_11, x_410); -if (lean_obj_tag(x_423) == 0) +lean_dec(x_28); +x_412 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_412, 0, x_410); +lean_ctor_set(x_412, 1, x_411); +return x_412; +} +} +} +else { -lean_object* x_424; lean_object* x_425; lean_object* x_426; -x_424 = lean_ctor_get(x_423, 0); -lean_inc(x_424); -x_425 = lean_ctor_get(x_423, 1); -lean_inc(x_425); -lean_dec(x_423); +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; +x_413 = lean_ctor_get(x_20, 0); +lean_inc(x_413); +lean_dec(x_20); +x_414 = lean_ctor_get(x_19, 1); +lean_inc(x_414); +lean_dec(x_19); +x_415 = lean_ctor_get(x_413, 0); +lean_inc(x_415); +x_416 = lean_ctor_get(x_413, 1); +lean_inc(x_416); +lean_dec(x_413); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); +lean_inc(x_17); +x_417 = l_Lean_Elab_Term_isTypeApp_x3f(x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_414); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; +x_418 = lean_ctor_get(x_417, 0); +lean_inc(x_418); +if (lean_obj_tag(x_418) == 0) +{ +lean_object* x_419; lean_object* x_420; +lean_dec(x_416); +lean_dec(x_415); +x_419 = lean_ctor_get(x_417, 1); +lean_inc(x_419); +lean_dec(x_417); +x_420 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_419); +return x_420; +} +else +{ +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; +x_421 = lean_ctor_get(x_418, 0); +lean_inc(x_421); +if (lean_is_exclusive(x_418)) { + lean_ctor_release(x_418, 0); + x_422 = x_418; +} else { + lean_dec_ref(x_418); + x_422 = lean_box(0); +} +x_423 = lean_ctor_get(x_417, 1); +lean_inc(x_423); +lean_dec(x_417); +x_424 = lean_ctor_get(x_421, 0); lean_inc(x_424); -x_426 = lean_infer_type(x_424, x_8, x_9, x_10, x_11, x_425); +x_425 = lean_ctor_get(x_421, 1); +lean_inc(x_425); +lean_dec(x_421); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_415); +lean_inc(x_424); +x_426 = l_Lean_Meta_isExprDefEq(x_424, x_415, x_8, x_9, x_10, x_11, x_423); if (lean_obj_tag(x_426) == 0) { -lean_object* x_427; lean_object* x_428; lean_object* x_429; +lean_object* x_427; uint8_t x_428; x_427 = lean_ctor_get(x_426, 0); lean_inc(x_427); -x_428 = lean_ctor_get(x_426, 1); -lean_inc(x_428); +x_428 = lean_unbox(x_427); +lean_dec(x_427); +if (x_428 == 0) +{ +lean_object* x_429; lean_object* x_430; lean_object* x_431; uint8_t x_432; +lean_dec(x_422); +x_429 = lean_ctor_get(x_426, 1); +lean_inc(x_429); lean_dec(x_426); +x_430 = lean_ctor_get(x_10, 0); +lean_inc(x_430); +x_431 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; +x_432 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_430, x_431); +lean_dec(x_430); +if (x_432 == 0) +{ +lean_object* x_433; +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_433 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_429); +return x_433; +} +else +{ +lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_448; lean_object* x_449; +x_434 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; +lean_inc(x_424); +x_435 = lean_array_push(x_434, x_424); +lean_inc(x_415); +x_436 = lean_array_push(x_435, x_415); +x_448 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__3; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_19); -x_429 = l_Lean_Meta_isExprDefEq(x_19, x_427, x_8, x_9, x_10, x_11, x_428); -if (lean_obj_tag(x_429) == 0) +x_449 = l_Lean_Meta_mkAppM(x_448, x_436, x_8, x_9, x_10, x_11, x_429); +if (lean_obj_tag(x_449) == 0) { -lean_object* x_430; uint8_t x_431; -x_430 = lean_ctor_get(x_429, 0); -lean_inc(x_430); -x_431 = lean_unbox(x_430); -lean_dec(x_430); -if (x_431 == 0) +lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_450 = lean_ctor_get(x_449, 0); +lean_inc(x_450); +x_451 = lean_ctor_get(x_449, 1); +lean_inc(x_451); +lean_dec(x_449); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_452 = l_Lean_Elab_Term_synthesizeInst(x_450, x_6, x_7, x_8, x_9, x_10, x_11, x_451); +if (lean_obj_tag(x_452) == 0) { -lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; +lean_object* x_453; lean_object* x_454; lean_object* x_455; +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); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_425); +x_455 = l_Lean_Meta_getDecLevel(x_425, x_8, x_9, x_10, x_11, x_454); +if (lean_obj_tag(x_455) == 0) +{ +lean_object* x_456; lean_object* x_457; lean_object* x_458; +x_456 = lean_ctor_get(x_455, 0); +lean_inc(x_456); +x_457 = lean_ctor_get(x_455, 1); +lean_inc(x_457); +lean_dec(x_455); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_17); +x_458 = l_Lean_Meta_getDecLevel(x_17, x_8, x_9, x_10, x_11, x_457); +if (lean_obj_tag(x_458) == 0) +{ +lean_object* x_459; lean_object* x_460; lean_object* x_461; +x_459 = lean_ctor_get(x_458, 0); +lean_inc(x_459); +x_460 = lean_ctor_get(x_458, 1); +lean_inc(x_460); +lean_dec(x_458); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_461 = l_Lean_Meta_getDecLevel(x_14, x_8, x_9, x_10, x_11, x_460); +if (lean_obj_tag(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_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; +x_462 = lean_ctor_get(x_461, 0); +lean_inc(x_462); +x_463 = lean_ctor_get(x_461, 1); +lean_inc(x_463); +lean_dec(x_461); +x_464 = lean_box(0); +x_465 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_465, 0, x_462); +lean_ctor_set(x_465, 1, x_464); +x_466 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_466, 0, x_459); +lean_ctor_set(x_466, 1, x_465); +x_467 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_456); +lean_ctor_set(x_467, 1, x_466); +x_468 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; +lean_inc(x_467); +x_469 = l_Lean_mkConst(x_468, x_467); +x_470 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; +lean_inc(x_424); +x_471 = lean_array_push(x_470, x_424); +lean_inc(x_415); +x_472 = lean_array_push(x_471, x_415); +lean_inc(x_453); +x_473 = lean_array_push(x_472, x_453); +lean_inc(x_425); +x_474 = lean_array_push(x_473, x_425); +lean_inc(x_4); +x_475 = lean_array_push(x_474, x_4); +x_476 = l_Lean_mkAppN(x_469, x_475); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_476); +x_477 = lean_infer_type(x_476, x_8, x_9, x_10, x_11, x_463); +if (lean_obj_tag(x_477) == 0) +{ +lean_object* x_478; lean_object* x_479; lean_object* x_480; +x_478 = lean_ctor_get(x_477, 0); +lean_inc(x_478); +x_479 = lean_ctor_get(x_477, 1); +lean_inc(x_479); +lean_dec(x_477); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_480 = l_Lean_Meta_isExprDefEq(x_14, x_478, x_8, x_9, x_10, x_11, x_479); +if (lean_obj_tag(x_480) == 0) +{ +lean_object* x_481; uint8_t x_482; +x_481 = lean_ctor_get(x_480, 0); +lean_inc(x_481); +x_482 = lean_unbox(x_481); +lean_dec(x_481); +if (x_482 == 0) +{ +lean_object* x_483; lean_object* x_484; lean_object* x_485; +lean_dec(x_476); +x_483 = lean_ctor_get(x_480, 1); +lean_inc(x_483); +lean_dec(x_480); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_415); +x_484 = l_Lean_Meta_isMonad_x3f(x_415, x_8, x_9, x_10, x_11, x_483); +x_485 = lean_ctor_get(x_484, 0); +lean_inc(x_485); +if (lean_obj_tag(x_485) == 0) +{ +lean_object* x_486; lean_object* x_487; +lean_dec(x_467); +lean_dec(x_453); +lean_dec(x_425); lean_dec(x_424); -x_432 = lean_ctor_get(x_429, 1); -lean_inc(x_432); -lean_dec(x_429); -x_433 = lean_box(0); +lean_dec(x_416); +lean_dec(x_415); +x_486 = lean_ctor_get(x_484, 1); +lean_inc(x_486); +lean_dec(x_484); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -24122,951 +23895,612 @@ lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); -lean_inc(x_22); -lean_inc(x_19); +lean_inc(x_17); +lean_inc(x_14); lean_inc(x_1); -x_434 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_433, x_6, x_7, x_8, x_9, x_10, x_11, x_432); -x_435 = lean_ctor_get(x_434, 1); -lean_inc(x_435); -lean_dec(x_434); -x_297 = x_435; -goto block_341; -} -else +x_487 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_486); +if (lean_obj_tag(x_487) == 0) { -lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; -lean_dec(x_284); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_436 = lean_ctor_get(x_429, 1); -lean_inc(x_436); -lean_dec(x_429); -x_437 = lean_box(0); -x_438 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(x_424, x_437, x_6, x_7, x_8, x_9, x_10, x_11, x_436); +lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +x_488 = lean_ctor_get(x_487, 0); +lean_inc(x_488); +x_489 = lean_ctor_get(x_487, 1); +lean_inc(x_489); +if (lean_is_exclusive(x_487)) { + lean_ctor_release(x_487, 0); + lean_ctor_release(x_487, 1); + x_490 = x_487; +} else { + lean_dec_ref(x_487); + x_490 = lean_box(0); +} +if (lean_is_scalar(x_490)) { + x_491 = lean_alloc_ctor(0, 2, 0); +} else { + x_491 = x_490; +} +lean_ctor_set(x_491, 0, x_488); +lean_ctor_set(x_491, 1, x_489); +return x_491; +} +else +{ +lean_object* x_492; +x_492 = lean_ctor_get(x_487, 1); +lean_inc(x_492); +lean_dec(x_487); +x_437 = x_492; +goto block_447; +} +} +else +{ +lean_object* x_493; lean_object* x_494; lean_object* x_495; +x_493 = lean_ctor_get(x_484, 1); +lean_inc(x_493); +lean_dec(x_484); +x_494 = lean_ctor_get(x_485, 0); +lean_inc(x_494); +lean_dec(x_485); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_425); +x_495 = l_Lean_Meta_getLevel(x_425, x_8, x_9, x_10, x_11, x_493); +if (lean_obj_tag(x_495) == 0) +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; +x_496 = lean_ctor_get(x_495, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_495, 1); +lean_inc(x_497); +lean_dec(x_495); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_416); +x_498 = l_Lean_Meta_getLevel(x_416, x_8, x_9, x_10, x_11, x_497); +if (lean_obj_tag(x_498) == 0) +{ +lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; uint8_t x_512; lean_object* x_513; lean_object* x_514; +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_501 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_501, 0, x_499); +lean_ctor_set(x_501, 1, x_464); +x_502 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_502, 0, x_496); +lean_ctor_set(x_502, 1, x_501); +x_503 = l_Lean_Elab_Term_mkCoe___closed__2; +x_504 = l_Lean_mkConst(x_503, x_502); +x_505 = l_Lean_Elab_Term_mkCoe___closed__3; +lean_inc(x_425); +x_506 = lean_array_push(x_505, x_425); +x_507 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__8; +x_508 = lean_array_push(x_506, x_507); +lean_inc(x_416); +x_509 = lean_array_push(x_508, x_416); +x_510 = l_Lean_mkAppN(x_504, x_509); +x_511 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; +x_512 = 0; +lean_inc(x_425); +x_513 = l_Lean_mkForall(x_511, x_512, x_425, x_510); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_6); +x_514 = l_Lean_Elab_Term_synthesizeInst(x_513, x_6, x_7, x_8, x_9, x_10, x_11, x_500); +if (lean_obj_tag(x_514) == 0) +{ +lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_515 = lean_ctor_get(x_514, 0); +lean_inc(x_515); +x_516 = lean_ctor_get(x_514, 1); +lean_inc(x_516); +lean_dec(x_514); +x_517 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; +x_518 = l_Lean_mkConst(x_517, x_467); +x_519 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__13; +x_520 = lean_array_push(x_519, x_424); +x_521 = lean_array_push(x_520, x_415); +x_522 = lean_array_push(x_521, x_425); +x_523 = lean_array_push(x_522, x_416); +x_524 = lean_array_push(x_523, x_453); +x_525 = lean_array_push(x_524, x_515); +x_526 = lean_array_push(x_525, x_494); +lean_inc(x_4); +x_527 = lean_array_push(x_526, x_4); +x_528 = l_Lean_mkAppN(x_518, x_527); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_529 = l_Lean_Meta_expandCoe(x_528, x_8, x_9, x_10, x_11, x_516); +if (lean_obj_tag(x_529) == 0) +{ +lean_object* x_530; lean_object* x_531; lean_object* x_532; +x_530 = lean_ctor_get(x_529, 0); +lean_inc(x_530); +x_531 = lean_ctor_get(x_529, 1); +lean_inc(x_531); +lean_dec(x_529); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_530); +x_532 = lean_infer_type(x_530, x_8, x_9, x_10, x_11, x_531); +if (lean_obj_tag(x_532) == 0) +{ +lean_object* x_533; lean_object* x_534; lean_object* x_535; +x_533 = lean_ctor_get(x_532, 0); +lean_inc(x_533); +x_534 = lean_ctor_get(x_532, 1); +lean_inc(x_534); +lean_dec(x_532); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_14); +x_535 = l_Lean_Meta_isExprDefEq(x_14, x_533, x_8, x_9, x_10, x_11, x_534); +if (lean_obj_tag(x_535) == 0) +{ +lean_object* x_536; uint8_t x_537; +x_536 = lean_ctor_get(x_535, 0); +lean_inc(x_536); +x_537 = lean_unbox(x_536); +lean_dec(x_536); +if (x_537 == 0) +{ +lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; +lean_dec(x_530); +x_538 = lean_ctor_get(x_535, 1); +lean_inc(x_538); +lean_dec(x_535); +x_539 = lean_box(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); +lean_inc(x_4); +lean_inc(x_17); +lean_inc(x_14); +lean_inc(x_1); +x_540 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_539, x_6, x_7, x_8, x_9, x_10, x_11, x_538); +x_541 = lean_ctor_get(x_540, 1); +lean_inc(x_541); +lean_dec(x_540); +x_437 = x_541; +goto block_447; +} +else +{ +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_dec(x_17); +lean_dec(x_14); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_542 = lean_ctor_get(x_535, 1); +lean_inc(x_542); +lean_dec(x_535); +x_543 = lean_box(0); +x_544 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(x_530, x_543, x_6, x_7, x_8, x_9, x_10, x_11, x_542); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_545 = lean_ctor_get(x_544, 0); +lean_inc(x_545); +x_546 = lean_ctor_get(x_544, 1); +lean_inc(x_546); +if (lean_is_exclusive(x_544)) { + lean_ctor_release(x_544, 0); + lean_ctor_release(x_544, 1); + x_547 = x_544; +} else { + lean_dec_ref(x_544); + x_547 = lean_box(0); +} +x_548 = lean_ctor_get(x_545, 0); +lean_inc(x_548); +lean_dec(x_545); +if (lean_is_scalar(x_547)) { + x_549 = lean_alloc_ctor(0, 2, 0); +} else { + x_549 = x_547; +} +lean_ctor_set(x_549, 0, x_548); +lean_ctor_set(x_549, 1, x_546); +return x_549; +} +} +else +{ +lean_object* x_550; +lean_dec(x_530); +x_550 = lean_ctor_get(x_535, 1); +lean_inc(x_550); +lean_dec(x_535); +x_437 = x_550; +goto block_447; +} +} +else +{ +lean_object* x_551; +lean_dec(x_530); +x_551 = lean_ctor_get(x_532, 1); +lean_inc(x_551); +lean_dec(x_532); +x_437 = x_551; +goto block_447; +} +} +else +{ +lean_object* x_552; +x_552 = lean_ctor_get(x_529, 1); +lean_inc(x_552); +lean_dec(x_529); +x_437 = x_552; +goto block_447; +} +} +else +{ +lean_object* x_553; +lean_dec(x_494); +lean_dec(x_467); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_553 = lean_ctor_get(x_514, 1); +lean_inc(x_553); +lean_dec(x_514); +x_437 = x_553; +goto block_447; +} +} +else +{ +lean_object* x_554; +lean_dec(x_496); +lean_dec(x_494); +lean_dec(x_467); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_554 = lean_ctor_get(x_498, 1); +lean_inc(x_554); +lean_dec(x_498); +x_437 = x_554; +goto block_447; +} +} +else +{ +lean_object* x_555; +lean_dec(x_494); +lean_dec(x_467); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_555 = lean_ctor_get(x_495, 1); +lean_inc(x_555); +lean_dec(x_495); +x_437 = x_555; +goto block_447; +} +} +} +else +{ +lean_object* x_556; lean_object* x_557; lean_object* x_558; +lean_dec(x_467); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +x_556 = lean_ctor_get(x_480, 1); +lean_inc(x_556); +if (lean_is_exclusive(x_480)) { + lean_ctor_release(x_480, 0); + lean_ctor_release(x_480, 1); + x_557 = x_480; +} else { + lean_dec_ref(x_480); + x_557 = lean_box(0); +} +if (lean_is_scalar(x_557)) { + x_558 = lean_alloc_ctor(0, 2, 0); +} else { + x_558 = x_557; +} +lean_ctor_set(x_558, 0, x_476); +lean_ctor_set(x_558, 1, x_556); +return x_558; +} +} +else +{ +lean_object* x_559; +lean_dec(x_476); +lean_dec(x_467); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_559 = lean_ctor_get(x_480, 1); +lean_inc(x_559); +lean_dec(x_480); +x_437 = x_559; +goto block_447; +} +} +else +{ +lean_object* x_560; +lean_dec(x_476); +lean_dec(x_467); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_560 = lean_ctor_get(x_477, 1); +lean_inc(x_560); +lean_dec(x_477); +x_437 = x_560; +goto block_447; +} +} +else +{ +lean_object* x_561; +lean_dec(x_459); +lean_dec(x_456); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_561 = lean_ctor_get(x_461, 1); +lean_inc(x_561); +lean_dec(x_461); +x_437 = x_561; +goto block_447; +} +} +else +{ +lean_object* x_562; +lean_dec(x_456); +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_562 = lean_ctor_get(x_458, 1); +lean_inc(x_562); +lean_dec(x_458); +x_437 = x_562; +goto block_447; +} +} +else +{ +lean_object* x_563; +lean_dec(x_453); +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_563 = lean_ctor_get(x_455, 1); +lean_inc(x_563); +lean_dec(x_455); +x_437 = x_563; +goto block_447; +} +} +else +{ +lean_object* x_564; +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_564 = lean_ctor_get(x_452, 1); +lean_inc(x_564); +lean_dec(x_452); +x_437 = x_564; +goto block_447; +} +} +else +{ +lean_object* x_565; +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_416); +lean_dec(x_415); +x_565 = lean_ctor_get(x_449, 1); +lean_inc(x_565); +lean_dec(x_449); +x_437 = x_565; +goto block_447; +} +block_447: +{ +lean_object* x_438; +x_438 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_437); +if (lean_obj_tag(x_438) == 0) +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; x_439 = lean_ctor_get(x_438, 0); lean_inc(x_439); x_440 = lean_ctor_get(x_438, 1); lean_inc(x_440); -lean_dec(x_438); -x_13 = x_439; -x_14 = x_440; -goto block_17; +if (lean_is_exclusive(x_438)) { + lean_ctor_release(x_438, 0); + lean_ctor_release(x_438, 1); + x_441 = x_438; +} else { + lean_dec_ref(x_438); + x_441 = lean_box(0); } +if (lean_is_scalar(x_441)) { + x_442 = lean_alloc_ctor(0, 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; } else { -lean_object* x_441; -lean_dec(x_424); -x_441 = lean_ctor_get(x_429, 1); -lean_inc(x_441); -lean_dec(x_429); -x_297 = x_441; -goto block_341; -} -} -else -{ -lean_object* x_442; -lean_dec(x_424); -x_442 = lean_ctor_get(x_426, 1); -lean_inc(x_442); -lean_dec(x_426); -x_297 = x_442; -goto block_341; -} -} -else -{ -lean_object* x_443; -x_443 = lean_ctor_get(x_423, 1); +lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; +x_443 = lean_ctor_get(x_438, 0); lean_inc(x_443); -lean_dec(x_423); -x_297 = x_443; -goto block_341; -} -} -else -{ -lean_object* x_444; -lean_dec(x_388); -lean_dec(x_361); -lean_dec(x_347); -lean_dec(x_285); -x_444 = lean_ctor_get(x_408, 1); +x_444 = lean_ctor_get(x_438, 1); lean_inc(x_444); -lean_dec(x_408); -x_297 = x_444; -goto block_341; +if (lean_is_exclusive(x_438)) { + lean_ctor_release(x_438, 0); + lean_ctor_release(x_438, 1); + x_445 = x_438; +} else { + lean_dec_ref(x_438); + x_445 = lean_box(0); } +if (lean_is_scalar(x_445)) { + x_446 = lean_alloc_ctor(1, 2, 0); +} else { + x_446 = x_445; } -else -{ -lean_object* x_445; -lean_dec(x_390); -lean_dec(x_388); -lean_dec(x_361); -lean_dec(x_347); -lean_dec(x_285); -x_445 = lean_ctor_get(x_392, 1); -lean_inc(x_445); -lean_dec(x_392); -x_297 = x_445; -goto block_341; +lean_ctor_set(x_446, 0, x_443); +lean_ctor_set(x_446, 1, x_444); +return x_446; } } -else -{ -lean_object* x_446; -lean_dec(x_388); -lean_dec(x_361); -lean_dec(x_347); -lean_dec(x_285); -x_446 = lean_ctor_get(x_389, 1); -lean_inc(x_446); -lean_dec(x_389); -x_297 = x_446; -goto block_341; -} } } else { -lean_object* x_447; lean_object* x_448; lean_object* x_449; -lean_dec(x_361); -lean_dec(x_347); -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_32); -lean_dec(x_31); -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_447 = lean_ctor_get(x_374, 1); -lean_inc(x_447); -lean_dec(x_374); -x_448 = lean_box(0); -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_370); -lean_ctor_set(x_449, 1, x_448); -x_13 = x_449; -x_14 = x_447; -goto block_17; -} -} -else -{ -lean_object* x_450; -lean_dec(x_370); -lean_dec(x_361); -lean_dec(x_347); -lean_dec(x_285); -x_450 = lean_ctor_get(x_374, 1); -lean_inc(x_450); -lean_dec(x_374); -x_297 = x_450; -goto block_341; -} -} -else -{ -lean_object* x_451; -lean_dec(x_370); -lean_dec(x_361); -lean_dec(x_347); -lean_dec(x_285); -x_451 = lean_ctor_get(x_371, 1); -lean_inc(x_451); -lean_dec(x_371); -x_297 = x_451; -goto block_341; -} -} -else -{ -lean_object* x_452; -lean_dec(x_353); -lean_dec(x_350); -lean_dec(x_347); -lean_dec(x_285); -x_452 = lean_ctor_get(x_355, 1); -lean_inc(x_452); -lean_dec(x_355); -x_297 = x_452; -goto block_341; -} -} -else -{ -lean_object* x_453; -lean_dec(x_350); -lean_dec(x_347); -lean_dec(x_285); -x_453 = lean_ctor_get(x_352, 1); -lean_inc(x_453); -lean_dec(x_352); -x_297 = x_453; -goto block_341; -} -} -else -{ -lean_object* x_454; -lean_dec(x_347); -lean_dec(x_285); -x_454 = lean_ctor_get(x_349, 1); -lean_inc(x_454); -lean_dec(x_349); -x_297 = x_454; -goto block_341; -} -} -else -{ -lean_object* x_455; -lean_dec(x_285); -x_455 = lean_ctor_get(x_346, 1); -lean_inc(x_455); -lean_dec(x_346); -x_297 = x_455; -goto block_341; -} -} -else -{ -lean_object* x_456; -lean_dec(x_285); -x_456 = lean_ctor_get(x_343, 1); -lean_inc(x_456); -lean_dec(x_343); -x_297 = x_456; -goto block_341; -} -block_341: -{ -lean_object* x_298; lean_object* x_299; +lean_object* x_566; lean_object* x_567; lean_object* x_568; +x_566 = lean_ctor_get(x_426, 1); +lean_inc(x_566); +lean_dec(x_426); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_298 = l_Lean_Meta_isMonad_x3f(x_284, x_8, x_9, x_10, x_11, x_297); -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -if (lean_obj_tag(x_299) == 0) +x_567 = l_Lean_Meta_isMonad_x3f(x_415, x_8, x_9, x_10, x_11, x_566); +x_568 = lean_ctor_get(x_567, 0); +lean_inc(x_568); +if (lean_obj_tag(x_568) == 0) { -if (x_292 == 0) -{ -lean_object* x_300; lean_object* x_301; -lean_dec(x_32); -lean_dec(x_31); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -lean_dec(x_298); -x_301 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_300); -if (lean_obj_tag(x_301) == 0) -{ -lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_302 = lean_ctor_get(x_301, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec(x_301); -x_304 = lean_box(0); -x_305 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_305, 0, x_302); -lean_ctor_set(x_305, 1, x_304); -x_13 = x_305; -x_14 = x_303; -goto block_17; +lean_object* x_569; lean_object* x_570; +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_422); +lean_dec(x_416); +x_569 = lean_ctor_get(x_567, 1); +lean_inc(x_569); +lean_dec(x_567); +x_570 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_14, x_17, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_569); +return x_570; } else { -lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_306 = lean_ctor_get(x_301, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_301, 1); -lean_inc(x_307); -if (lean_is_exclusive(x_301)) { - lean_ctor_release(x_301, 0); - lean_ctor_release(x_301, 1); - x_308 = x_301; +lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; +x_571 = lean_ctor_get(x_567, 1); +lean_inc(x_571); +lean_dec(x_567); +x_572 = lean_ctor_get(x_568, 0); +lean_inc(x_572); +if (lean_is_exclusive(x_568)) { + lean_ctor_release(x_568, 0); + x_573 = x_568; } else { - lean_dec_ref(x_301); - x_308 = lean_box(0); + lean_dec_ref(x_568); + x_573 = lean_box(0); } -if (lean_is_scalar(x_308)) { - x_309 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_573)) { + x_574 = lean_alloc_ctor(1, 1, 0); } else { - x_309 = x_308; + x_574 = x_573; } -lean_ctor_set(x_309, 0, x_306); -lean_ctor_set(x_309, 1, x_307); -return x_309; +lean_ctor_set(x_574, 0, x_424); +if (lean_is_scalar(x_422)) { + x_575 = lean_alloc_ctor(1, 1, 0); +} else { + x_575 = x_422; } -} -else -{ -lean_object* x_310; lean_object* x_311; -x_310 = lean_ctor_get(x_298, 1); -lean_inc(x_310); -lean_dec(x_298); -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_ctor_set(x_575, 0, x_425); +x_576 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_576, 0, x_416); +x_577 = lean_box(0); +x_578 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_578, 0, x_572); lean_inc(x_4); -lean_inc(x_22); -lean_inc(x_1); -x_311 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_31, x_32, x_22, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_310); -if (lean_obj_tag(x_311) == 0) -{ -lean_object* x_312; -x_312 = lean_ctor_get(x_311, 0); -lean_inc(x_312); -if (lean_obj_tag(x_312) == 0) -{ -lean_object* x_313; lean_object* x_314; -x_313 = lean_ctor_get(x_311, 1); -lean_inc(x_313); -lean_dec(x_311); -x_314 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_313); -if (lean_obj_tag(x_314) == 0) -{ -lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -lean_dec(x_314); -x_317 = lean_box(0); -x_318 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_318, 0, x_315); -lean_ctor_set(x_318, 1, x_317); -x_13 = x_318; -x_14 = x_316; -goto block_17; -} -else -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; -x_319 = lean_ctor_get(x_314, 0); -lean_inc(x_319); -x_320 = lean_ctor_get(x_314, 1); -lean_inc(x_320); -if (lean_is_exclusive(x_314)) { - lean_ctor_release(x_314, 0); - lean_ctor_release(x_314, 1); - x_321 = x_314; -} else { - lean_dec_ref(x_314); - x_321 = lean_box(0); -} -if (lean_is_scalar(x_321)) { - x_322 = lean_alloc_ctor(1, 2, 0); -} else { - x_322 = x_321; -} -lean_ctor_set(x_322, 0, x_319); -lean_ctor_set(x_322, 1, x_320); -return x_322; -} -} -else -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_323 = lean_ctor_get(x_311, 1); -lean_inc(x_323); -lean_dec(x_311); -x_324 = lean_ctor_get(x_312, 0); -lean_inc(x_324); -lean_dec(x_312); -x_325 = lean_box(0); -x_326 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_326, 0, x_324); -lean_ctor_set(x_326, 1, x_325); -x_13 = x_326; -x_14 = x_323; -goto block_17; -} -} -else -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_327 = lean_ctor_get(x_311, 0); -lean_inc(x_327); -x_328 = lean_ctor_get(x_311, 1); -lean_inc(x_328); -if (lean_is_exclusive(x_311)) { - lean_ctor_release(x_311, 0); - lean_ctor_release(x_311, 1); - x_329 = x_311; -} else { - lean_dec_ref(x_311); - x_329 = lean_box(0); -} -if (lean_is_scalar(x_329)) { - x_330 = lean_alloc_ctor(1, 2, 0); -} else { - x_330 = x_329; -} -lean_ctor_set(x_330, 0, x_327); -lean_ctor_set(x_330, 1, x_328); -return x_330; -} -} -} -else -{ -lean_object* x_331; lean_object* x_332; -lean_dec(x_299); -lean_dec(x_32); -lean_dec(x_31); -x_331 = lean_ctor_get(x_298, 1); -lean_inc(x_331); -lean_dec(x_298); -x_332 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_331); -if (lean_obj_tag(x_332) == 0) -{ -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; -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_box(0); -x_336 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_336, 0, x_333); -lean_ctor_set(x_336, 1, x_335); -x_13 = x_336; -x_14 = x_334; -goto block_17; -} -else -{ -lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; -x_337 = lean_ctor_get(x_332, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_332, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_332)) { - lean_ctor_release(x_332, 0); - lean_ctor_release(x_332, 1); - x_339 = x_332; -} else { - lean_dec_ref(x_332); - x_339 = lean_box(0); -} -if (lean_is_scalar(x_339)) { - x_340 = lean_alloc_ctor(1, 2, 0); -} else { - x_340 = x_339; -} -lean_ctor_set(x_340, 0, x_337); -lean_ctor_set(x_340, 1, x_338); -return x_340; -} -} -} -} -} -else -{ -lean_object* x_457; lean_object* x_458; lean_object* x_459; -x_457 = lean_ctor_get(x_286, 1); -lean_inc(x_457); -lean_dec(x_286); +x_579 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_579, 0, x_4); +x_580 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; +x_581 = lean_array_push(x_580, x_574); +x_582 = lean_array_push(x_581, x_575); +x_583 = lean_array_push(x_582, x_576); +x_584 = lean_array_push(x_583, x_577); +x_585 = lean_array_push(x_584, x_578); +x_586 = lean_array_push(x_585, x_579); +x_587 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_458 = l_Lean_Meta_isMonad_x3f(x_31, x_8, x_9, x_10, x_11, x_457); -x_459 = lean_ctor_get(x_458, 0); -lean_inc(x_459); -if (lean_obj_tag(x_459) == 0) -{ -lean_object* x_460; lean_object* x_461; -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_32); -lean_free_object(x_25); -x_460 = lean_ctor_get(x_458, 1); -lean_inc(x_460); -lean_dec(x_458); -x_461 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_460); -return x_461; -} -else -{ -lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; -x_462 = lean_ctor_get(x_458, 1); -lean_inc(x_462); -lean_dec(x_458); -x_463 = lean_ctor_get(x_459, 0); -lean_inc(x_463); -if (lean_is_exclusive(x_459)) { - lean_ctor_release(x_459, 0); - x_464 = x_459; -} else { - lean_dec_ref(x_459); - x_464 = lean_box(0); -} -if (lean_is_scalar(x_464)) { - x_465 = lean_alloc_ctor(1, 1, 0); -} else { - x_465 = x_464; -} -lean_ctor_set(x_465, 0, x_284); -x_466 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_466, 0, x_285); -lean_ctor_set(x_25, 0, x_32); -x_467 = lean_box(0); -x_468 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_468, 0, x_463); -lean_inc(x_4); -x_469 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_469, 0, x_4); -x_470 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; -x_471 = lean_array_push(x_470, x_465); -x_472 = lean_array_push(x_471, x_466); -x_473 = lean_array_push(x_472, x_25); -x_474 = lean_array_push(x_473, x_467); -x_475 = lean_array_push(x_474, x_468); -x_476 = lean_array_push(x_475, x_469); -x_477 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_478 = l_Lean_Meta_mkAppOptM(x_477, x_476, x_8, x_9, x_10, x_11, x_462); -if (lean_obj_tag(x_478) == 0) -{ -lean_object* x_479; lean_object* x_480; lean_object* x_481; -x_479 = lean_ctor_get(x_478, 0); -lean_inc(x_479); -x_480 = lean_ctor_get(x_478, 1); -lean_inc(x_480); -lean_dec(x_478); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_481 = l_Lean_Meta_expandCoe(x_479, x_8, x_9, x_10, x_11, x_480); -if (lean_obj_tag(x_481) == 0) -{ -lean_dec(x_22); -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_4); -lean_dec(x_1); -return x_481; -} -else -{ -lean_object* x_482; lean_object* x_483; -x_482 = lean_ctor_get(x_481, 1); -lean_inc(x_482); -lean_dec(x_481); -x_483 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_467, x_6, x_7, x_8, x_9, x_10, x_11, x_482); -return x_483; -} -} -else -{ -lean_object* x_484; lean_object* x_485; -x_484 = lean_ctor_get(x_478, 1); -lean_inc(x_484); -lean_dec(x_478); -x_485 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_467, x_6, x_7, x_8, x_9, x_10, x_11, x_484); -return x_485; -} -} -} -} -else -{ -lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; -lean_dec(x_285); -lean_dec(x_284); -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_25); -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_486 = lean_ctor_get(x_286, 0); -lean_inc(x_486); -x_487 = lean_ctor_get(x_286, 1); -lean_inc(x_487); -if (lean_is_exclusive(x_286)) { - lean_ctor_release(x_286, 0); - lean_ctor_release(x_286, 1); - x_488 = x_286; -} else { - lean_dec_ref(x_286); - 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); -return x_489; -} -} -} -} -else -{ -uint8_t x_490; -lean_dec(x_32); -lean_dec(x_31); -lean_free_object(x_25); -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_490 = !lean_is_exclusive(x_33); -if (x_490 == 0) -{ -return x_33; -} -else -{ -lean_object* x_491; lean_object* x_492; lean_object* x_493; -x_491 = lean_ctor_get(x_33, 0); -x_492 = lean_ctor_get(x_33, 1); -lean_inc(x_492); -lean_inc(x_491); -lean_dec(x_33); -x_493 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_493, 0, x_491); -lean_ctor_set(x_493, 1, x_492); -return x_493; -} -} -} -else -{ -lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; -x_494 = lean_ctor_get(x_25, 0); -lean_inc(x_494); -lean_dec(x_25); -x_495 = lean_ctor_get(x_24, 1); -lean_inc(x_495); -lean_dec(x_24); -x_496 = lean_ctor_get(x_494, 0); -lean_inc(x_496); -x_497 = lean_ctor_get(x_494, 1); -lean_inc(x_497); -lean_dec(x_494); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_22); -x_498 = l_Lean_Elab_Term_isTypeApp_x3f(x_22, x_6, x_7, x_8, x_9, x_10, x_11, x_495); -if (lean_obj_tag(x_498) == 0) -{ -lean_object* x_499; -x_499 = lean_ctor_get(x_498, 0); -lean_inc(x_499); -if (lean_obj_tag(x_499) == 0) -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; -x_500 = lean_ctor_get(x_498, 1); -lean_inc(x_500); -lean_dec(x_498); -x_501 = lean_ctor_get(x_10, 0); -lean_inc(x_501); -x_502 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; -x_503 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_501, x_502); -lean_dec(x_501); -if (x_503 == 0) -{ -lean_object* x_504; -lean_dec(x_497); -lean_dec(x_496); -x_504 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_500); -return x_504; -} -else -{ -lean_object* x_505; -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_4); -lean_inc(x_22); -lean_inc(x_1); -x_505 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_496, x_497, x_22, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_500); -if (lean_obj_tag(x_505) == 0) -{ -lean_object* x_506; -x_506 = lean_ctor_get(x_505, 0); -lean_inc(x_506); -if (lean_obj_tag(x_506) == 0) -{ -lean_object* x_507; lean_object* x_508; -x_507 = lean_ctor_get(x_505, 1); -lean_inc(x_507); -lean_dec(x_505); -x_508 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_507); -return x_508; -} -else -{ -lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_509 = lean_ctor_get(x_505, 1); -lean_inc(x_509); -if (lean_is_exclusive(x_505)) { - lean_ctor_release(x_505, 0); - lean_ctor_release(x_505, 1); - x_510 = x_505; -} else { - lean_dec_ref(x_505); - x_510 = lean_box(0); -} -x_511 = lean_ctor_get(x_506, 0); -lean_inc(x_511); -lean_dec(x_506); -if (lean_is_scalar(x_510)) { - x_512 = lean_alloc_ctor(0, 2, 0); -} else { - x_512 = x_510; -} -lean_ctor_set(x_512, 0, x_511); -lean_ctor_set(x_512, 1, x_509); -return x_512; -} -} -else -{ -lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_513 = lean_ctor_get(x_505, 0); -lean_inc(x_513); -x_514 = lean_ctor_get(x_505, 1); -lean_inc(x_514); -if (lean_is_exclusive(x_505)) { - lean_ctor_release(x_505, 0); - lean_ctor_release(x_505, 1); - x_515 = x_505; -} else { - lean_dec_ref(x_505); - x_515 = lean_box(0); -} -if (lean_is_scalar(x_515)) { - x_516 = lean_alloc_ctor(1, 2, 0); -} else { - x_516 = x_515; -} -lean_ctor_set(x_516, 0, x_513); -lean_ctor_set(x_516, 1, x_514); -return x_516; -} -} -} -else -{ -lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; -x_517 = lean_ctor_get(x_499, 0); -lean_inc(x_517); -if (lean_is_exclusive(x_499)) { - lean_ctor_release(x_499, 0); - x_518 = x_499; -} else { - lean_dec_ref(x_499); - x_518 = lean_box(0); -} -x_519 = lean_ctor_get(x_498, 1); -lean_inc(x_519); -lean_dec(x_498); -x_520 = lean_ctor_get(x_517, 0); -lean_inc(x_520); -x_521 = lean_ctor_get(x_517, 1); -lean_inc(x_521); -lean_dec(x_517); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_496); -lean_inc(x_520); -x_522 = l_Lean_Meta_isExprDefEq(x_520, x_496, x_8, x_9, x_10, x_11, x_519); -if (lean_obj_tag(x_522) == 0) -{ -lean_object* x_523; uint8_t x_524; -x_523 = lean_ctor_get(x_522, 0); -lean_inc(x_523); -x_524 = lean_unbox(x_523); -lean_dec(x_523); -if (x_524 == 0) -{ -lean_object* x_525; lean_object* x_526; lean_object* x_527; uint8_t x_528; -lean_dec(x_518); -x_525 = lean_ctor_get(x_522, 1); -lean_inc(x_525); -lean_dec(x_522); -x_526 = lean_ctor_get(x_10, 0); -lean_inc(x_526); -x_527 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__1; -x_528 = l_Lean_Option_get___at_Lean_ppExpr___spec__1(x_526, x_527); -lean_dec(x_526); -if (x_528 == 0) -{ -lean_object* x_529; -lean_dec(x_521); -lean_dec(x_520); -lean_dec(x_497); -lean_dec(x_496); -x_529 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_525); -return x_529; -} -else -{ -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_578; lean_object* x_579; -x_530 = l_Lean_Elab_Term_mkExplicitBinder___closed__8; -lean_inc(x_520); -x_531 = lean_array_push(x_530, x_520); -lean_inc(x_496); -x_532 = lean_array_push(x_531, x_496); -x_578 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__3; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_579 = l_Lean_Meta_mkAppM(x_578, x_532, x_8, x_9, x_10, x_11, x_525); -if (lean_obj_tag(x_579) == 0) -{ -lean_object* x_580; lean_object* x_581; lean_object* x_582; -x_580 = lean_ctor_get(x_579, 0); -lean_inc(x_580); -x_581 = lean_ctor_get(x_579, 1); -lean_inc(x_581); -lean_dec(x_579); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -x_582 = l_Lean_Elab_Term_synthesizeInst(x_580, x_6, x_7, x_8, x_9, x_10, x_11, x_581); -if (lean_obj_tag(x_582) == 0) -{ -lean_object* x_583; lean_object* x_584; lean_object* x_585; -x_583 = lean_ctor_get(x_582, 0); -lean_inc(x_583); -x_584 = lean_ctor_get(x_582, 1); -lean_inc(x_584); -lean_dec(x_582); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_521); -x_585 = l_Lean_Meta_getDecLevel(x_521, x_8, x_9, x_10, x_11, x_584); -if (lean_obj_tag(x_585) == 0) -{ -lean_object* x_586; lean_object* x_587; lean_object* x_588; -x_586 = lean_ctor_get(x_585, 0); -lean_inc(x_586); -x_587 = lean_ctor_get(x_585, 1); -lean_inc(x_587); -lean_dec(x_585); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_22); -x_588 = l_Lean_Meta_getDecLevel(x_22, x_8, x_9, x_10, x_11, x_587); +x_588 = l_Lean_Meta_mkAppOptM(x_587, x_586, x_8, x_9, x_10, x_11, x_571); if (lean_obj_tag(x_588) == 0) { lean_object* x_589; lean_object* x_590; lean_object* x_591; @@ -25079,661 +24513,54 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_19); -x_591 = l_Lean_Meta_getDecLevel(x_19, x_8, x_9, x_10, x_11, x_590); +x_591 = l_Lean_Meta_expandCoe(x_589, x_8, x_9, x_10, x_11, x_590); if (lean_obj_tag(x_591) == 0) { -lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; -x_592 = lean_ctor_get(x_591, 0); +lean_dec(x_17); +lean_dec(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); +lean_dec(x_4); +lean_dec(x_1); +return x_591; +} +else +{ +lean_object* x_592; lean_object* x_593; +x_592 = lean_ctor_get(x_591, 1); lean_inc(x_592); -x_593 = lean_ctor_get(x_591, 1); -lean_inc(x_593); lean_dec(x_591); -x_594 = lean_box(0); -x_595 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_595, 0, x_592); -lean_ctor_set(x_595, 1, x_594); -x_596 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_596, 0, x_589); -lean_ctor_set(x_596, 1, x_595); -x_597 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_597, 0, x_586); -lean_ctor_set(x_597, 1, x_596); -x_598 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__5; -lean_inc(x_597); -x_599 = l_Lean_mkConst(x_598, x_597); -x_600 = l_Lean_Elab_Term_mkExplicitBinder___closed__13; -lean_inc(x_520); -x_601 = lean_array_push(x_600, x_520); -lean_inc(x_496); -x_602 = lean_array_push(x_601, x_496); -lean_inc(x_583); -x_603 = lean_array_push(x_602, x_583); -lean_inc(x_521); -x_604 = lean_array_push(x_603, x_521); -lean_inc(x_4); -x_605 = lean_array_push(x_604, x_4); -x_606 = l_Lean_mkAppN(x_599, x_605); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_606); -x_607 = lean_infer_type(x_606, x_8, x_9, x_10, x_11, x_593); -if (lean_obj_tag(x_607) == 0) -{ -lean_object* x_608; lean_object* x_609; lean_object* x_610; -x_608 = lean_ctor_get(x_607, 0); -lean_inc(x_608); -x_609 = lean_ctor_get(x_607, 1); -lean_inc(x_609); -lean_dec(x_607); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_19); -x_610 = l_Lean_Meta_isExprDefEq(x_19, x_608, x_8, x_9, x_10, x_11, x_609); -if (lean_obj_tag(x_610) == 0) -{ -lean_object* x_611; uint8_t x_612; -x_611 = lean_ctor_get(x_610, 0); -lean_inc(x_611); -x_612 = lean_unbox(x_611); -lean_dec(x_611); -if (x_612 == 0) -{ -lean_object* x_613; lean_object* x_614; lean_object* x_615; -lean_dec(x_606); -x_613 = lean_ctor_get(x_610, 1); -lean_inc(x_613); -lean_dec(x_610); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_496); -x_614 = l_Lean_Meta_isMonad_x3f(x_496, x_8, x_9, x_10, x_11, x_613); -x_615 = lean_ctor_get(x_614, 0); -lean_inc(x_615); -if (lean_obj_tag(x_615) == 0) -{ -lean_object* x_616; lean_object* x_617; -lean_dec(x_597); -lean_dec(x_583); -lean_dec(x_521); -x_616 = lean_ctor_get(x_614, 1); -lean_inc(x_616); -lean_dec(x_614); -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_4); -lean_inc(x_22); -lean_inc(x_19); -lean_inc(x_1); -x_617 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_616); -if (lean_obj_tag(x_617) == 0) -{ -lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; -lean_dec(x_520); -lean_dec(x_497); -lean_dec(x_496); -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_618 = lean_ctor_get(x_617, 0); -lean_inc(x_618); -x_619 = lean_ctor_get(x_617, 1); -lean_inc(x_619); -lean_dec(x_617); -x_620 = lean_box(0); -x_621 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_621, 0, x_618); -lean_ctor_set(x_621, 1, x_620); -x_13 = x_621; -x_14 = x_619; -goto block_17; -} -else -{ -lean_object* x_622; -x_622 = lean_ctor_get(x_617, 1); -lean_inc(x_622); -lean_dec(x_617); -x_533 = x_622; -goto block_577; +x_593 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_577, x_6, x_7, x_8, x_9, x_10, x_11, x_592); +return x_593; } } else { -lean_object* x_623; lean_object* x_624; lean_object* x_625; -x_623 = lean_ctor_get(x_614, 1); -lean_inc(x_623); -lean_dec(x_614); -x_624 = lean_ctor_get(x_615, 0); -lean_inc(x_624); -lean_dec(x_615); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_521); -x_625 = l_Lean_Meta_getLevel(x_521, x_8, x_9, x_10, x_11, x_623); -if (lean_obj_tag(x_625) == 0) -{ -lean_object* x_626; lean_object* x_627; lean_object* x_628; -x_626 = lean_ctor_get(x_625, 0); -lean_inc(x_626); -x_627 = lean_ctor_get(x_625, 1); -lean_inc(x_627); -lean_dec(x_625); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_497); -x_628 = l_Lean_Meta_getLevel(x_497, x_8, x_9, x_10, x_11, x_627); -if (lean_obj_tag(x_628) == 0) -{ -lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; uint8_t x_642; lean_object* x_643; lean_object* x_644; -x_629 = lean_ctor_get(x_628, 0); -lean_inc(x_629); -x_630 = lean_ctor_get(x_628, 1); -lean_inc(x_630); -lean_dec(x_628); -x_631 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_631, 0, x_629); -lean_ctor_set(x_631, 1, x_594); -x_632 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_632, 0, x_626); -lean_ctor_set(x_632, 1, x_631); -x_633 = l_Lean_Elab_Term_mkCoe___closed__2; -x_634 = l_Lean_mkConst(x_633, x_632); -x_635 = l_Lean_Elab_Term_mkCoe___closed__3; -lean_inc(x_521); -x_636 = lean_array_push(x_635, x_521); -x_637 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__8; -x_638 = lean_array_push(x_636, x_637); -lean_inc(x_497); -x_639 = lean_array_push(x_638, x_497); -x_640 = l_Lean_mkAppN(x_634, x_639); -x_641 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__7; -x_642 = 0; -lean_inc(x_521); -x_643 = l_Lean_mkForall(x_641, x_642, x_521, x_640); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_6); -x_644 = l_Lean_Elab_Term_synthesizeInst(x_643, x_6, x_7, x_8, x_9, x_10, x_11, x_630); -if (lean_obj_tag(x_644) == 0) -{ -lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; -x_645 = lean_ctor_get(x_644, 0); -lean_inc(x_645); -x_646 = lean_ctor_get(x_644, 1); -lean_inc(x_646); -lean_dec(x_644); -x_647 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__12; -x_648 = l_Lean_mkConst(x_647, x_597); -x_649 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__13; -lean_inc(x_520); -x_650 = lean_array_push(x_649, x_520); -lean_inc(x_496); -x_651 = lean_array_push(x_650, x_496); -x_652 = lean_array_push(x_651, x_521); -lean_inc(x_497); -x_653 = lean_array_push(x_652, x_497); -x_654 = lean_array_push(x_653, x_583); -x_655 = lean_array_push(x_654, x_645); -x_656 = lean_array_push(x_655, x_624); -lean_inc(x_4); -x_657 = lean_array_push(x_656, x_4); -x_658 = l_Lean_mkAppN(x_648, x_657); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_659 = l_Lean_Meta_expandCoe(x_658, x_8, x_9, x_10, x_11, x_646); -if (lean_obj_tag(x_659) == 0) -{ -lean_object* x_660; lean_object* x_661; lean_object* x_662; -x_660 = lean_ctor_get(x_659, 0); -lean_inc(x_660); -x_661 = lean_ctor_get(x_659, 1); -lean_inc(x_661); -lean_dec(x_659); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_660); -x_662 = lean_infer_type(x_660, x_8, x_9, x_10, x_11, x_661); -if (lean_obj_tag(x_662) == 0) -{ -lean_object* x_663; lean_object* x_664; lean_object* x_665; -x_663 = lean_ctor_get(x_662, 0); -lean_inc(x_663); -x_664 = lean_ctor_get(x_662, 1); -lean_inc(x_664); -lean_dec(x_662); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_19); -x_665 = l_Lean_Meta_isExprDefEq(x_19, x_663, x_8, x_9, x_10, x_11, x_664); -if (lean_obj_tag(x_665) == 0) -{ -lean_object* x_666; uint8_t x_667; -x_666 = lean_ctor_get(x_665, 0); -lean_inc(x_666); -x_667 = lean_unbox(x_666); -lean_dec(x_666); -if (x_667 == 0) -{ -lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; -lean_dec(x_660); -x_668 = lean_ctor_get(x_665, 1); -lean_inc(x_668); -lean_dec(x_665); -x_669 = lean_box(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); -lean_inc(x_4); -lean_inc(x_22); -lean_inc(x_19); -lean_inc(x_1); -x_670 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_669, x_6, x_7, x_8, x_9, x_10, x_11, x_668); -x_671 = lean_ctor_get(x_670, 1); -lean_inc(x_671); -lean_dec(x_670); -x_533 = x_671; -goto block_577; -} -else -{ -lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; -lean_dec(x_520); -lean_dec(x_497); -lean_dec(x_496); -lean_dec(x_22); -lean_dec(x_19); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_672 = lean_ctor_get(x_665, 1); -lean_inc(x_672); -lean_dec(x_665); -x_673 = lean_box(0); -x_674 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___lambda__1(x_660, x_673, x_6, x_7, x_8, x_9, x_10, x_11, x_672); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_675 = lean_ctor_get(x_674, 0); -lean_inc(x_675); -x_676 = lean_ctor_get(x_674, 1); -lean_inc(x_676); -lean_dec(x_674); -x_13 = x_675; -x_14 = x_676; -goto block_17; -} -} -else -{ -lean_object* x_677; -lean_dec(x_660); -x_677 = lean_ctor_get(x_665, 1); -lean_inc(x_677); -lean_dec(x_665); -x_533 = x_677; -goto block_577; -} -} -else -{ -lean_object* x_678; -lean_dec(x_660); -x_678 = lean_ctor_get(x_662, 1); -lean_inc(x_678); -lean_dec(x_662); -x_533 = x_678; -goto block_577; -} -} -else -{ -lean_object* x_679; -x_679 = lean_ctor_get(x_659, 1); -lean_inc(x_679); -lean_dec(x_659); -x_533 = x_679; -goto block_577; -} -} -else -{ -lean_object* x_680; -lean_dec(x_624); -lean_dec(x_597); -lean_dec(x_583); -lean_dec(x_521); -x_680 = lean_ctor_get(x_644, 1); -lean_inc(x_680); -lean_dec(x_644); -x_533 = x_680; -goto block_577; -} -} -else -{ -lean_object* x_681; -lean_dec(x_626); -lean_dec(x_624); -lean_dec(x_597); -lean_dec(x_583); -lean_dec(x_521); -x_681 = lean_ctor_get(x_628, 1); -lean_inc(x_681); -lean_dec(x_628); -x_533 = x_681; -goto block_577; -} -} -else -{ -lean_object* x_682; -lean_dec(x_624); -lean_dec(x_597); -lean_dec(x_583); -lean_dec(x_521); -x_682 = lean_ctor_get(x_625, 1); -lean_inc(x_682); -lean_dec(x_625); -x_533 = x_682; -goto block_577; -} -} -} -else -{ -lean_object* x_683; lean_object* x_684; lean_object* x_685; -lean_dec(x_597); -lean_dec(x_583); -lean_dec(x_521); -lean_dec(x_520); -lean_dec(x_497); -lean_dec(x_496); -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_683 = lean_ctor_get(x_610, 1); -lean_inc(x_683); -lean_dec(x_610); -x_684 = lean_box(0); -x_685 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_685, 0, x_606); -lean_ctor_set(x_685, 1, x_684); -x_13 = x_685; -x_14 = x_683; -goto block_17; -} -} -else -{ -lean_object* x_686; -lean_dec(x_606); -lean_dec(x_597); -lean_dec(x_583); -lean_dec(x_521); -x_686 = lean_ctor_get(x_610, 1); -lean_inc(x_686); -lean_dec(x_610); -x_533 = x_686; -goto block_577; -} -} -else -{ -lean_object* x_687; -lean_dec(x_606); -lean_dec(x_597); -lean_dec(x_583); -lean_dec(x_521); -x_687 = lean_ctor_get(x_607, 1); -lean_inc(x_687); -lean_dec(x_607); -x_533 = x_687; -goto block_577; -} -} -else -{ -lean_object* x_688; -lean_dec(x_589); -lean_dec(x_586); -lean_dec(x_583); -lean_dec(x_521); -x_688 = lean_ctor_get(x_591, 1); -lean_inc(x_688); -lean_dec(x_591); -x_533 = x_688; -goto block_577; -} -} -else -{ -lean_object* x_689; -lean_dec(x_586); -lean_dec(x_583); -lean_dec(x_521); -x_689 = lean_ctor_get(x_588, 1); -lean_inc(x_689); +lean_object* x_594; lean_object* x_595; +x_594 = lean_ctor_get(x_588, 1); +lean_inc(x_594); lean_dec(x_588); -x_533 = x_689; -goto block_577; +x_595 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_14, x_17, x_4, x_5, x_577, x_6, x_7, x_8, x_9, x_10, x_11, x_594); +return x_595; +} +} } } else { -lean_object* x_690; -lean_dec(x_583); -lean_dec(x_521); -x_690 = lean_ctor_get(x_585, 1); -lean_inc(x_690); -lean_dec(x_585); -x_533 = x_690; -goto block_577; -} -} -else -{ -lean_object* x_691; -lean_dec(x_521); -x_691 = lean_ctor_get(x_582, 1); -lean_inc(x_691); -lean_dec(x_582); -x_533 = x_691; -goto block_577; -} -} -else -{ -lean_object* x_692; -lean_dec(x_521); -x_692 = lean_ctor_get(x_579, 1); -lean_inc(x_692); -lean_dec(x_579); -x_533 = x_692; -goto block_577; -} -block_577: -{ -lean_object* x_534; lean_object* x_535; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_534 = l_Lean_Meta_isMonad_x3f(x_520, x_8, x_9, x_10, x_11, x_533); -x_535 = lean_ctor_get(x_534, 0); -lean_inc(x_535); -if (lean_obj_tag(x_535) == 0) -{ -if (x_528 == 0) -{ -lean_object* x_536; lean_object* x_537; -lean_dec(x_497); -lean_dec(x_496); -x_536 = lean_ctor_get(x_534, 1); -lean_inc(x_536); -lean_dec(x_534); -x_537 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_536); -if (lean_obj_tag(x_537) == 0) -{ -lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; -x_538 = lean_ctor_get(x_537, 0); -lean_inc(x_538); -x_539 = lean_ctor_get(x_537, 1); -lean_inc(x_539); -lean_dec(x_537); -x_540 = lean_box(0); -x_541 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_541, 0, x_538); -lean_ctor_set(x_541, 1, x_540); -x_13 = x_541; -x_14 = x_539; -goto block_17; -} -else -{ -lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_542 = lean_ctor_get(x_537, 0); -lean_inc(x_542); -x_543 = lean_ctor_get(x_537, 1); -lean_inc(x_543); -if (lean_is_exclusive(x_537)) { - lean_ctor_release(x_537, 0); - lean_ctor_release(x_537, 1); - x_544 = x_537; -} else { - lean_dec_ref(x_537); - x_544 = lean_box(0); -} -if (lean_is_scalar(x_544)) { - x_545 = lean_alloc_ctor(1, 2, 0); -} else { - x_545 = x_544; -} -lean_ctor_set(x_545, 0, x_542); -lean_ctor_set(x_545, 1, x_543); -return x_545; -} -} -else -{ -lean_object* x_546; lean_object* x_547; -x_546 = lean_ctor_get(x_534, 1); -lean_inc(x_546); -lean_dec(x_534); -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_4); -lean_inc(x_22); -lean_inc(x_1); -x_547 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryPureCoe_x3f(x_1, x_496, x_497, x_22, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_546); -if (lean_obj_tag(x_547) == 0) -{ -lean_object* x_548; -x_548 = lean_ctor_get(x_547, 0); -lean_inc(x_548); -if (lean_obj_tag(x_548) == 0) -{ -lean_object* x_549; lean_object* x_550; -x_549 = lean_ctor_get(x_547, 1); -lean_inc(x_549); -lean_dec(x_547); -x_550 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_549); -if (lean_obj_tag(x_550) == 0) -{ -lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; -x_551 = lean_ctor_get(x_550, 0); -lean_inc(x_551); -x_552 = lean_ctor_get(x_550, 1); -lean_inc(x_552); -lean_dec(x_550); -x_553 = lean_box(0); -x_554 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_554, 0, x_551); -lean_ctor_set(x_554, 1, x_553); -x_13 = x_554; -x_14 = x_552; -goto block_17; -} -else -{ -lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; -x_555 = lean_ctor_get(x_550, 0); -lean_inc(x_555); -x_556 = lean_ctor_get(x_550, 1); -lean_inc(x_556); -if (lean_is_exclusive(x_550)) { - lean_ctor_release(x_550, 0); - lean_ctor_release(x_550, 1); - x_557 = x_550; -} else { - lean_dec_ref(x_550); - x_557 = lean_box(0); -} -if (lean_is_scalar(x_557)) { - x_558 = lean_alloc_ctor(1, 2, 0); -} else { - x_558 = x_557; -} -lean_ctor_set(x_558, 0, x_555); -lean_ctor_set(x_558, 1, x_556); -return x_558; -} -} -else -{ -lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; -lean_dec(x_22); -lean_dec(x_19); +lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; +lean_dec(x_425); +lean_dec(x_424); +lean_dec(x_422); +lean_dec(x_416); +lean_dec(x_415); +lean_dec(x_17); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -25743,26 +24570,36 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_559 = lean_ctor_get(x_547, 1); -lean_inc(x_559); -lean_dec(x_547); -x_560 = lean_ctor_get(x_548, 0); -lean_inc(x_560); -lean_dec(x_548); -x_561 = lean_box(0); -x_562 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_562, 0, x_560); -lean_ctor_set(x_562, 1, x_561); -x_13 = x_562; -x_14 = x_559; -goto block_17; +x_596 = lean_ctor_get(x_426, 0); +lean_inc(x_596); +x_597 = lean_ctor_get(x_426, 1); +lean_inc(x_597); +if (lean_is_exclusive(x_426)) { + lean_ctor_release(x_426, 0); + lean_ctor_release(x_426, 1); + x_598 = x_426; +} else { + lean_dec_ref(x_426); + x_598 = lean_box(0); +} +if (lean_is_scalar(x_598)) { + x_599 = lean_alloc_ctor(1, 2, 0); +} else { + x_599 = x_598; +} +lean_ctor_set(x_599, 0, x_596); +lean_ctor_set(x_599, 1, x_597); +return x_599; +} } } else { -lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; -lean_dec(x_22); -lean_dec(x_19); +lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; +lean_dec(x_416); +lean_dec(x_415); +lean_dec(x_17); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -25772,174 +24609,35 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -x_563 = lean_ctor_get(x_547, 0); -lean_inc(x_563); -x_564 = lean_ctor_get(x_547, 1); -lean_inc(x_564); -if (lean_is_exclusive(x_547)) { - lean_ctor_release(x_547, 0); - lean_ctor_release(x_547, 1); - x_565 = x_547; +x_600 = lean_ctor_get(x_417, 0); +lean_inc(x_600); +x_601 = lean_ctor_get(x_417, 1); +lean_inc(x_601); +if (lean_is_exclusive(x_417)) { + lean_ctor_release(x_417, 0); + lean_ctor_release(x_417, 1); + x_602 = x_417; } else { - lean_dec_ref(x_547); - x_565 = lean_box(0); + lean_dec_ref(x_417); + x_602 = lean_box(0); } -if (lean_is_scalar(x_565)) { - x_566 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_602)) { + x_603 = lean_alloc_ctor(1, 2, 0); } else { - x_566 = x_565; -} -lean_ctor_set(x_566, 0, x_563); -lean_ctor_set(x_566, 1, x_564); -return x_566; -} -} -} -else -{ -lean_object* x_567; lean_object* x_568; -lean_dec(x_535); -lean_dec(x_497); -lean_dec(x_496); -x_567 = lean_ctor_get(x_534, 1); -lean_inc(x_567); -lean_dec(x_534); -x_568 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_567); -if (lean_obj_tag(x_568) == 0) -{ -lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; -x_569 = lean_ctor_get(x_568, 0); -lean_inc(x_569); -x_570 = lean_ctor_get(x_568, 1); -lean_inc(x_570); -lean_dec(x_568); -x_571 = lean_box(0); -x_572 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_572, 0, x_569); -lean_ctor_set(x_572, 1, x_571); -x_13 = x_572; -x_14 = x_570; -goto block_17; -} -else -{ -lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; -x_573 = lean_ctor_get(x_568, 0); -lean_inc(x_573); -x_574 = lean_ctor_get(x_568, 1); -lean_inc(x_574); -if (lean_is_exclusive(x_568)) { - lean_ctor_release(x_568, 0); - lean_ctor_release(x_568, 1); - x_575 = x_568; -} else { - lean_dec_ref(x_568); - x_575 = lean_box(0); -} -if (lean_is_scalar(x_575)) { - x_576 = lean_alloc_ctor(1, 2, 0); -} else { - x_576 = x_575; -} -lean_ctor_set(x_576, 0, x_573); -lean_ctor_set(x_576, 1, x_574); -return x_576; + x_603 = x_602; } +lean_ctor_set(x_603, 0, x_600); +lean_ctor_set(x_603, 1, x_601); +return x_603; } } } } else { -lean_object* x_693; lean_object* x_694; lean_object* x_695; -x_693 = lean_ctor_get(x_522, 1); -lean_inc(x_693); -lean_dec(x_522); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_694 = l_Lean_Meta_isMonad_x3f(x_496, x_8, x_9, x_10, x_11, x_693); -x_695 = lean_ctor_get(x_694, 0); -lean_inc(x_695); -if (lean_obj_tag(x_695) == 0) -{ -lean_object* x_696; lean_object* x_697; -lean_dec(x_521); -lean_dec(x_520); -lean_dec(x_518); -lean_dec(x_497); -x_696 = lean_ctor_get(x_694, 1); -lean_inc(x_696); -lean_dec(x_694); -x_697 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe(x_1, x_19, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_696); -return x_697; -} -else -{ -lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; -x_698 = lean_ctor_get(x_694, 1); -lean_inc(x_698); -lean_dec(x_694); -x_699 = lean_ctor_get(x_695, 0); -lean_inc(x_699); -if (lean_is_exclusive(x_695)) { - lean_ctor_release(x_695, 0); - x_700 = x_695; -} else { - lean_dec_ref(x_695); - x_700 = lean_box(0); -} -if (lean_is_scalar(x_700)) { - x_701 = lean_alloc_ctor(1, 1, 0); -} else { - x_701 = x_700; -} -lean_ctor_set(x_701, 0, x_520); -if (lean_is_scalar(x_518)) { - x_702 = lean_alloc_ctor(1, 1, 0); -} else { - x_702 = x_518; -} -lean_ctor_set(x_702, 0, x_521); -x_703 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_703, 0, x_497); -x_704 = lean_box(0); -x_705 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_705, 0, x_699); -lean_inc(x_4); -x_706 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_706, 0, x_4); -x_707 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__16; -x_708 = lean_array_push(x_707, x_701); -x_709 = lean_array_push(x_708, x_702); -x_710 = lean_array_push(x_709, x_703); -x_711 = lean_array_push(x_710, x_704); -x_712 = lean_array_push(x_711, x_705); -x_713 = lean_array_push(x_712, x_706); -x_714 = l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAndCoe___closed__15; -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_715 = l_Lean_Meta_mkAppOptM(x_714, x_713, x_8, x_9, x_10, x_11, x_698); -if (lean_obj_tag(x_715) == 0) -{ -lean_object* x_716; lean_object* x_717; lean_object* x_718; -x_716 = lean_ctor_get(x_715, 0); -lean_inc(x_716); -x_717 = lean_ctor_get(x_715, 1); -lean_inc(x_717); -lean_dec(x_715); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_718 = l_Lean_Meta_expandCoe(x_716, x_8, x_9, x_10, x_11, x_717); -if (lean_obj_tag(x_718) == 0) -{ -lean_dec(x_22); -lean_dec(x_19); +uint8_t x_604; +lean_dec(x_17); +lean_dec(x_14); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -25949,155 +24647,24 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); -return x_718; +x_604 = !lean_is_exclusive(x_19); +if (x_604 == 0) +{ +return x_19; } else { -lean_object* x_719; lean_object* x_720; -x_719 = lean_ctor_get(x_718, 1); -lean_inc(x_719); -lean_dec(x_718); -x_720 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_704, x_6, x_7, x_8, x_9, x_10, x_11, x_719); -return x_720; -} -} -else -{ -lean_object* x_721; lean_object* x_722; -x_721 = lean_ctor_get(x_715, 1); -lean_inc(x_721); -lean_dec(x_715); -x_722 = l_Lean_Elab_Term_throwTypeMismatchError___rarg(x_1, x_19, x_22, x_4, x_5, x_704, x_6, x_7, x_8, x_9, x_10, x_11, x_721); -return x_722; -} -} -} -} -else -{ -lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; -lean_dec(x_521); -lean_dec(x_520); -lean_dec(x_518); -lean_dec(x_497); -lean_dec(x_496); -lean_dec(x_22); +lean_object* x_605; lean_object* x_606; lean_object* x_607; +x_605 = lean_ctor_get(x_19, 0); +x_606 = lean_ctor_get(x_19, 1); +lean_inc(x_606); +lean_inc(x_605); 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_4); -lean_dec(x_1); -x_723 = lean_ctor_get(x_522, 0); -lean_inc(x_723); -x_724 = lean_ctor_get(x_522, 1); -lean_inc(x_724); -if (lean_is_exclusive(x_522)) { - lean_ctor_release(x_522, 0); - lean_ctor_release(x_522, 1); - x_725 = x_522; -} else { - lean_dec_ref(x_522); - x_725 = lean_box(0); +x_607 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_607, 0, x_605); +lean_ctor_set(x_607, 1, x_606); +return x_607; } -if (lean_is_scalar(x_725)) { - x_726 = lean_alloc_ctor(1, 2, 0); -} else { - x_726 = x_725; -} -lean_ctor_set(x_726, 0, x_723); -lean_ctor_set(x_726, 1, x_724); -return x_726; -} -} -} -else -{ -lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; -lean_dec(x_497); -lean_dec(x_496); -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_727 = lean_ctor_get(x_498, 0); -lean_inc(x_727); -x_728 = lean_ctor_get(x_498, 1); -lean_inc(x_728); -if (lean_is_exclusive(x_498)) { - lean_ctor_release(x_498, 0); - lean_ctor_release(x_498, 1); - x_729 = x_498; -} else { - lean_dec_ref(x_498); - x_729 = lean_box(0); -} -if (lean_is_scalar(x_729)) { - x_730 = lean_alloc_ctor(1, 2, 0); -} else { - x_730 = x_729; -} -lean_ctor_set(x_730, 0, x_727); -lean_ctor_set(x_730, 1, x_728); -return x_730; -} -} -} -} -else -{ -uint8_t x_731; -lean_dec(x_22); -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_4); -lean_dec(x_1); -x_731 = !lean_is_exclusive(x_24); -if (x_731 == 0) -{ -return x_24; -} -else -{ -lean_object* x_732; lean_object* x_733; lean_object* x_734; -x_732 = lean_ctor_get(x_24, 0); -x_733 = lean_ctor_get(x_24, 1); -lean_inc(x_733); -lean_inc(x_732); -lean_dec(x_24); -x_734 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_734, 0, x_732); -lean_ctor_set(x_734, 1, x_733); -return x_734; -} -} -block_17: -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_13, 0); -lean_inc(x_15); -lean_dec(x_13); -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; } } } @@ -40892,7 +39459,7 @@ lean_dec(x_3); return x_10; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__1() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__1() { _start: { lean_object* x_1; @@ -40900,21 +39467,21 @@ x_1 = lean_mk_string("letrec"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__2() { +static lean_object* _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__2() { _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_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__1; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__2; +x_2 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } @@ -41211,7 +39778,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_isLetRecAuxMVar(lean_object* x_1, lean _start: { lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__2; +x_9 = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__2; x_38 = lean_st_ref_get(x_7, x_8); x_39 = lean_ctor_get(x_38, 0); lean_inc(x_39); @@ -53233,7 +51800,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_15350____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -53243,7 +51810,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_15350____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__2() { _start: { lean_object* x_1; @@ -53251,17 +51818,17 @@ x_1 = lean_mk_string("debug"); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__3() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____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_15350____closed__2; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____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_15350_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -53273,7 +51840,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_15350____closed__1; +x_5 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__1; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -53281,7 +51848,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_15350____closed__3; +x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__3; x_9 = l_Lean_registerTraceClass(x_8, x_7); return x_9; } @@ -54113,11 +52680,11 @@ l_Lean_Elab_Term_mkAuxName___closed__1 = _init_l_Lean_Elab_Term_mkAuxName___clos lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__1); l_Lean_Elab_Term_mkAuxName___closed__2 = _init_l_Lean_Elab_Term_mkAuxName___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_mkAuxName___closed__2); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__1); -l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270____closed__2); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12270_(lean_io_mk_world()); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__1 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__1); +l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__2 = _init_l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010____closed__2); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Term___hyg_12010_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__1 = _init_l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__1(); @@ -54284,13 +52851,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_15350____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__2); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__3(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350____closed__3); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15350_(lean_io_mk_world()); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__2); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__3 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__3(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090____closed__3); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15090_(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));