diff --git a/stage0/src/Lean/Elab/Deriving/FromToJson.lean b/stage0/src/Lean/Elab/Deriving/FromToJson.lean index 3ddc46b5ef..98090af69f 100644 --- a/stage0/src/Lean/Elab/Deriving/FromToJson.lean +++ b/stage0/src/Lean/Elab/Deriving/FromToJson.lean @@ -28,7 +28,7 @@ def mkToJsonInstanceHandler (declNames : Array Name) : CommandElabM Bool := do let fields := getStructureFieldsFlattened (← getEnv) declNames[0] (includeSubobjectFields := false) let fields : Array Syntax ← fields.mapM fun field => do let (isOptField, nm) := mkJsonField field - if isOptField then ``(opt $nm (some $(mkIdent <| header.targetNames[0] ++ field))) + if isOptField then ``(opt $nm $(mkIdent <| header.targetNames[0] ++ field)) else ``([($nm, toJson $(mkIdent <| header.targetNames[0] ++ field))]) let cmd ← `(private def $(mkIdent ctx.auxFunNames[0]):ident $header.binders:explicitBinder* := mkObj <| List.join [$fields,*]) diff --git a/stage0/src/Lean/Server/Rpc/Deriving.lean b/stage0/src/Lean/Server/Rpc/Deriving.lean index 1df65d9294..edc87ccb88 100644 --- a/stage0/src/Lean/Server/Rpc/Deriving.lean +++ b/stage0/src/Lean/Server/Rpc/Deriving.lean @@ -85,6 +85,9 @@ def withFieldsFlattened (indVal : InductiveVal) (params : Array Expr) end +def isOptField (n : Name) : Bool := + n.toString.endsWith "?" + private def deriveStructureInstance (indVal : InductiveVal) (params : Array Expr) : TermElabM Syntax := withFields indVal params fun fields => do trace[Elab.Deriving.RpcEncoding] "for structure {indVal.name} with params {params}" @@ -97,20 +100,30 @@ private def deriveStructureInstance (indVal : InductiveVal) (params : Array Expr let mut uniqFieldEncIds : Array Syntax := #[] let mut fieldEncIds' : DiscrTree Syntax := {} for (fieldName, fieldTp) in fields do + let mut fieldTp := fieldTp + if isOptField fieldName then + if !fieldTp.isAppOf ``Option then + throwError "optional field '{fieldName}' has type{indentD m!"{fieldTp}"}\nbut is expected to have type{indentD "Option _"}" + fieldTp := fieldTp.getArg! 0 + -- postulate that the field has an encoding and remember the encoding's binder name fieldIds := fieldIds.push <| mkIdent fieldName + let mut fieldEncId := Syntax.missing match (← fieldEncIds'.getMatch fieldTp).back? with | none => - let fieldEncId ← mkIdent <$> mkFreshUserName fieldName + fieldEncId ← mkIdent <$> mkFreshUserName fieldName binders := binders.push <| ← `(Deriving.explicitBinderF| ( $fieldEncId:ident )) let stx ← PrettyPrinter.delab fieldTp binders := binders.push <| ← `(Deriving.instBinderF| [ $(mkIdent ``Lean.Server.RpcEncoding) $stx $fieldEncId:ident ]) fieldEncIds' ← fieldEncIds'.insert fieldTp fieldEncId uniqFieldEncIds := uniqFieldEncIds.push fieldEncId + | some fid => fieldEncId := fid + + if isOptField fieldName then + fieldEncIds := fieldEncIds.push <| ← ``(Option $fieldEncId:ident) + else fieldEncIds := fieldEncIds.push fieldEncId - | some fid => - fieldEncIds := fieldEncIds.push fid -- helpers for field initialization syntax let fieldInits (func : Name) := fieldIds.mapM fun fid => @@ -222,6 +235,7 @@ private def deriveInductiveInstance (indVal : InductiveVal) (params : Array Expr inductive $(mkIdent packetNm) where $[$(st.ctors):ctor]* + deriving $(mkIdent ``FromJson), $(mkIdent ``ToJson) instance : $(mkIdent ``RpcEncoding) $typeId:ident $packetAppliedId:ident where rpcEncode := fun x => match x with diff --git a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c index 5cffe4a696..da3652fe7e 100644 --- a/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c +++ b/stage0/stdlib/Lean/Elab/Deriving/FromToJson.c @@ -13,17 +13,16 @@ #ifdef __cplusplus extern "C" { #endif +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__14; lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__33; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__5; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__2___closed__6; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__28; -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__2; static lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___spec__1___closed__3; size_t lean_usize_add(size_t, size_t); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__14; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__12; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__13; @@ -46,6 +45,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___ uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__6; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__15; lean_object* l_Array_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; @@ -54,7 +54,6 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mk lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__1; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__7; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__25; static lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__3___closed__11; @@ -80,6 +79,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandl extern lean_object* l_instInhabitedNat; uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__12; static lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__1; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__6; lean_object* lean_array_push(lean_object*, lean_object*); @@ -87,7 +87,6 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mk lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__3___closed__3; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12; LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___boxed(lean_object**); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___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*); @@ -140,7 +139,6 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mk static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__4___closed__4; lean_object* l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(size_t, size_t, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__5; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__14; LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__9; @@ -156,8 +154,7 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mk static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__6; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__3; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__10; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__15; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__18; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__13; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); @@ -173,6 +170,7 @@ static lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkFro lean_object* l_Lean_Elab_Deriving_mkInstanceCmds(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___spec__2___boxed(lean_object**); lean_object* lean_nat_sub(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__31; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__2; lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getStructureFieldsFlattened(lean_object*, lean_object*, uint8_t); @@ -189,7 +187,6 @@ lean_object* l_Lean_Elab_Deriving_mkLet(lean_object*, lean_object*, lean_object* lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__20; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__3; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__17; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__7___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); @@ -210,6 +207,7 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mk static lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___spec__1___closed__2; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__9; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__18; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__16; lean_object* l_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___spec__1___boxed(lean_object**); static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__30; @@ -219,7 +217,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___la static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__4; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__4; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__16; -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039_(lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__2___closed__8; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__7; lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -252,6 +250,7 @@ LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Deriving_FromT static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__6; lean_object* l_Lean_mkSepArray(lean_object*, lean_object*); static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__1___closed__3; +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11; LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -289,6 +288,7 @@ uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); lean_object* l_Lean_Name_getString_x21(lean_object*); lean_object* l_String_intercalate(lean_object*, lean_object*); static lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__4; +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___spec__5___boxed(lean_object**); lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -338,7 +338,6 @@ static lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJ 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_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; extern lean_object* l_Lean_instInhabitedName; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___boxed(lean_object**); static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__1; @@ -359,7 +358,6 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___la static lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__3___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__11; static lean_object* l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__3___closed__17; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__5; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__9; @@ -370,7 +368,6 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___la lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Elab_Deriving_mkInductArgNames___spec__2___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_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__15; LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__7___lambda__1(lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10; static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__2; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__19; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__3; @@ -379,6 +376,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__20; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__2___closed__11; lean_object* lean_mk_syntax_ident(lean_object*); +static lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__2; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__7; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__16; extern lean_object* l_Lean_instInhabitedInductiveVal; @@ -394,7 +392,6 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___ static lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__8; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__17; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__9; -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__16; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__2; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__3; static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__6; @@ -411,6 +408,7 @@ static lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___la LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_Deriving_FromToJson_mkToJsonInstanceHandler___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*); +static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__17; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__8; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__1___closed__35; LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -2878,113 +2876,6 @@ x_1 = lean_mk_string("Json"); return x_1; } } -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("some"); -return x_1; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__11; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__14() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Option"); -return x_1; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__15() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__14; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__15; -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__16; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__17; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = lean_box(2); -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__9; -x_3 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__1; -x_4 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -3329,7 +3220,7 @@ uint8_t x_181; x_181 = !lean_is_exclusive(x_19); if (x_181 == 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_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; size_t x_249; size_t x_250; lean_object* x_251; +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; size_t x_223; size_t x_224; lean_object* x_225; x_182 = lean_ctor_get(x_19, 1); x_183 = lean_ctor_get(x_19, 0); lean_dec(x_183); @@ -3358,11 +3249,8 @@ x_194 = lean_name_mk_string(x_1, x_193); x_195 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__5; x_196 = lean_name_mk_string(x_194, x_195); x_197 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__2; -lean_inc(x_196); x_198 = lean_name_mk_string(x_196, x_197); x_199 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__8; -lean_inc(x_187); -lean_inc(x_192); x_200 = l_Lean_addMacroScope(x_192, x_199, x_187); x_201 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__9; lean_inc(x_1); @@ -3376,222 +3264,119 @@ x_206 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_206, 0, x_19); lean_ctor_set(x_206, 1, x_205); x_207 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__7; -lean_inc(x_185); x_208 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_208, 0, x_185); lean_ctor_set(x_208, 1, x_207); lean_ctor_set(x_208, 2, x_200); lean_ctor_set(x_208, 3, x_206); -x_209 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__1; -x_210 = lean_name_mk_string(x_196, x_209); -x_211 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__2; -lean_inc(x_185); -x_212 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_212, 0, x_185); -lean_ctor_set(x_212, 1, x_211); -x_213 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13; -x_214 = l_Lean_addMacroScope(x_192, x_213, x_187); -x_215 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12; -x_216 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__18; -lean_inc(x_185); -x_217 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_217, 0, x_185); -lean_ctor_set(x_217, 1, x_215); -lean_ctor_set(x_217, 2, x_214); -lean_ctor_set(x_217, 3, x_216); -x_218 = lean_ctor_get(x_3, 2); -x_219 = l_Lean_instInhabitedName; -x_220 = lean_array_get(x_219, x_218, x_17); -x_221 = l_Lean_Name_append(x_220, x_16); -lean_dec(x_220); -x_222 = lean_mk_syntax_ident(x_221); -x_223 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__10; -x_224 = lean_array_push(x_223, x_222); -x_225 = lean_box(2); -x_226 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__9; -x_227 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_227, 0, x_225); -lean_ctor_set(x_227, 1, x_226); -lean_ctor_set(x_227, 2, x_224); -x_228 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; -x_229 = lean_array_push(x_228, x_217); -x_230 = lean_array_push(x_229, x_227); -lean_inc(x_198); -x_231 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_231, 0, x_225); -lean_ctor_set(x_231, 1, x_198); -lean_ctor_set(x_231, 2, x_230); -x_232 = lean_array_push(x_228, x_231); -x_233 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; -x_234 = lean_array_push(x_232, x_233); -x_235 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_235, 0, x_225); -lean_ctor_set(x_235, 1, x_226); -lean_ctor_set(x_235, 2, x_234); -x_236 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__4; -x_237 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_237, 0, x_185); -lean_ctor_set(x_237, 1, x_236); -x_238 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__5; -x_239 = lean_array_push(x_238, x_212); -x_240 = lean_array_push(x_239, x_235); -x_241 = lean_array_push(x_240, x_237); -x_242 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_242, 0, x_225); -lean_ctor_set(x_242, 1, x_210); -lean_ctor_set(x_242, 2, x_241); -x_243 = lean_array_push(x_228, x_182); -x_244 = lean_array_push(x_243, x_242); -x_245 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_245, 0, x_225); -lean_ctor_set(x_245, 1, x_226); -lean_ctor_set(x_245, 2, x_244); -x_246 = lean_array_push(x_228, x_208); -x_247 = lean_array_push(x_246, x_245); -x_248 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_248, 0, x_225); -lean_ctor_set(x_248, 1, x_198); -lean_ctor_set(x_248, 2, x_247); -x_249 = 1; -x_250 = lean_usize_add(x_5, x_249); -x_251 = lean_array_uset(x_18, x_5, x_248); -x_5 = x_250; -x_6 = x_251; +x_209 = lean_ctor_get(x_3, 2); +x_210 = l_Lean_instInhabitedName; +x_211 = lean_array_get(x_210, x_209, x_17); +x_212 = l_Lean_Name_append(x_211, x_16); +lean_dec(x_211); +x_213 = lean_mk_syntax_ident(x_212); +x_214 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; +x_215 = lean_array_push(x_214, x_182); +x_216 = lean_array_push(x_215, x_213); +x_217 = lean_box(2); +x_218 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__9; +x_219 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set(x_219, 1, x_218); +lean_ctor_set(x_219, 2, x_216); +x_220 = lean_array_push(x_214, x_208); +x_221 = lean_array_push(x_220, x_219); +x_222 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_222, 0, x_217); +lean_ctor_set(x_222, 1, x_198); +lean_ctor_set(x_222, 2, x_221); +x_223 = 1; +x_224 = lean_usize_add(x_5, x_223); +x_225 = lean_array_uset(x_18, x_5, x_222); +x_5 = x_224; +x_6 = x_225; x_13 = x_190; goto _start; } else { -lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; size_t x_320; size_t x_321; lean_object* x_322; -x_253 = lean_ctor_get(x_19, 1); -lean_inc(x_253); +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; 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; size_t x_268; size_t x_269; lean_object* x_270; +x_227 = lean_ctor_get(x_19, 1); +lean_inc(x_227); lean_dec(x_19); lean_inc(x_11); -x_254 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_11, x_12, x_13); -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -x_257 = lean_ctor_get(x_11, 8); -lean_inc(x_257); -x_258 = lean_st_ref_get(x_12, x_256); -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -lean_dec(x_258); -x_261 = lean_ctor_get(x_259, 0); -lean_inc(x_261); -lean_dec(x_259); -x_262 = lean_environment_main_module(x_261); -x_263 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__3; +x_228 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_11, x_12, x_13); +x_229 = lean_ctor_get(x_228, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_228, 1); +lean_inc(x_230); +lean_dec(x_228); +x_231 = lean_ctor_get(x_11, 8); +lean_inc(x_231); +x_232 = lean_st_ref_get(x_12, x_230); +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); +lean_inc(x_234); +lean_dec(x_232); +x_235 = lean_ctor_get(x_233, 0); +lean_inc(x_235); +lean_dec(x_233); +x_236 = lean_environment_main_module(x_235); +x_237 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__3; lean_inc(x_1); -x_264 = lean_name_mk_string(x_1, x_263); -x_265 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__5; -x_266 = lean_name_mk_string(x_264, x_265); -x_267 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__2; -lean_inc(x_266); -x_268 = lean_name_mk_string(x_266, x_267); -x_269 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__8; -lean_inc(x_257); -lean_inc(x_262); -x_270 = l_Lean_addMacroScope(x_262, x_269, x_257); -x_271 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__9; +x_238 = lean_name_mk_string(x_1, x_237); +x_239 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__5; +x_240 = lean_name_mk_string(x_238, x_239); +x_241 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__2; +x_242 = lean_name_mk_string(x_240, x_241); +x_243 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__8; +x_244 = l_Lean_addMacroScope(x_236, x_243, x_231); +x_245 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__9; lean_inc(x_1); -x_272 = lean_name_mk_string(x_1, x_271); -x_273 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__5; -x_274 = lean_name_mk_string(x_272, x_273); -x_275 = lean_box(0); -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_274); -lean_ctor_set(x_276, 1, x_275); -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_275); -x_278 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__7; -lean_inc(x_255); -x_279 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_279, 0, x_255); -lean_ctor_set(x_279, 1, x_278); -lean_ctor_set(x_279, 2, x_270); -lean_ctor_set(x_279, 3, x_277); -x_280 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__1; -x_281 = lean_name_mk_string(x_266, x_280); -x_282 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__2; -lean_inc(x_255); -x_283 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_283, 0, x_255); -lean_ctor_set(x_283, 1, x_282); -x_284 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13; -x_285 = l_Lean_addMacroScope(x_262, x_284, x_257); -x_286 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12; -x_287 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__18; -lean_inc(x_255); -x_288 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_288, 0, x_255); -lean_ctor_set(x_288, 1, x_286); -lean_ctor_set(x_288, 2, x_285); -lean_ctor_set(x_288, 3, x_287); -x_289 = lean_ctor_get(x_3, 2); -x_290 = l_Lean_instInhabitedName; -x_291 = lean_array_get(x_290, x_289, x_17); -x_292 = l_Lean_Name_append(x_291, x_16); -lean_dec(x_291); -x_293 = lean_mk_syntax_ident(x_292); -x_294 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__10; -x_295 = lean_array_push(x_294, x_293); -x_296 = lean_box(2); -x_297 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__9; -x_298 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_298, 0, x_296); -lean_ctor_set(x_298, 1, x_297); -lean_ctor_set(x_298, 2, x_295); -x_299 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; -x_300 = lean_array_push(x_299, x_288); -x_301 = lean_array_push(x_300, x_298); -lean_inc(x_268); -x_302 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_302, 0, x_296); -lean_ctor_set(x_302, 1, x_268); -lean_ctor_set(x_302, 2, x_301); -x_303 = lean_array_push(x_299, x_302); -x_304 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; -x_305 = lean_array_push(x_303, x_304); -x_306 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_306, 0, x_296); -lean_ctor_set(x_306, 1, x_297); -lean_ctor_set(x_306, 2, x_305); -x_307 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__4; -x_308 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_308, 0, x_255); -lean_ctor_set(x_308, 1, x_307); -x_309 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__4___closed__5; -x_310 = lean_array_push(x_309, x_283); -x_311 = lean_array_push(x_310, x_306); -x_312 = lean_array_push(x_311, x_308); -x_313 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_313, 0, x_296); -lean_ctor_set(x_313, 1, x_281); -lean_ctor_set(x_313, 2, x_312); -x_314 = lean_array_push(x_299, x_253); -x_315 = lean_array_push(x_314, x_313); -x_316 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_316, 0, x_296); -lean_ctor_set(x_316, 1, x_297); -lean_ctor_set(x_316, 2, x_315); -x_317 = lean_array_push(x_299, x_279); -x_318 = lean_array_push(x_317, x_316); -x_319 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_319, 0, x_296); -lean_ctor_set(x_319, 1, x_268); -lean_ctor_set(x_319, 2, x_318); -x_320 = 1; -x_321 = lean_usize_add(x_5, x_320); -x_322 = lean_array_uset(x_18, x_5, x_319); -x_5 = x_321; -x_6 = x_322; -x_13 = x_260; +x_246 = lean_name_mk_string(x_1, x_245); +x_247 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__5; +x_248 = lean_name_mk_string(x_246, x_247); +x_249 = lean_box(0); +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_248); +lean_ctor_set(x_250, 1, x_249); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_249); +x_252 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__7; +x_253 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_253, 0, x_229); +lean_ctor_set(x_253, 1, x_252); +lean_ctor_set(x_253, 2, x_244); +lean_ctor_set(x_253, 3, x_251); +x_254 = lean_ctor_get(x_3, 2); +x_255 = l_Lean_instInhabitedName; +x_256 = lean_array_get(x_255, x_254, x_17); +x_257 = l_Lean_Name_append(x_256, x_16); +lean_dec(x_256); +x_258 = lean_mk_syntax_ident(x_257); +x_259 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; +x_260 = lean_array_push(x_259, x_227); +x_261 = lean_array_push(x_260, x_258); +x_262 = lean_box(2); +x_263 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__9; +x_264 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set(x_264, 1, x_263); +lean_ctor_set(x_264, 2, x_261); +x_265 = lean_array_push(x_259, x_253); +x_266 = lean_array_push(x_265, x_264); +x_267 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_267, 0, x_262); +lean_ctor_set(x_267, 1, x_242); +lean_ctor_set(x_267, 2, x_266); +x_268 = 1; +x_269 = lean_usize_add(x_5, x_268); +x_270 = lean_array_uset(x_18, x_5, x_267); +x_5 = x_269; +x_6 = x_270; +x_13 = x_234; goto _start; } } @@ -5813,12 +5598,26 @@ return x_3; static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = lean_box(2); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__9; +x_3 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__1; +x_4 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__6() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string("with"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__6() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__7() { _start: { lean_object* x_1; @@ -5826,17 +5625,17 @@ x_1 = lean_mk_string("matchAlts"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__7() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__6; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__6; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9() { _start: { lean_object* x_1; lean_object* x_2; @@ -5845,7 +5644,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10() { _start: { lean_object* x_1; @@ -5853,17 +5652,17 @@ x_1 = lean_mk_string("Command"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__4; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12() { _start: { lean_object* x_1; @@ -5871,17 +5670,17 @@ x_1 = lean_mk_string("declaration"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14() { _start: { lean_object* x_1; @@ -5889,17 +5688,17 @@ x_1 = lean_mk_string("declModifiers"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16() { _start: { lean_object* x_1; @@ -5907,23 +5706,13 @@ x_1 = lean_mk_string("private"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8; -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; -x_3 = lean_array_push(x_1, x_2); +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -5931,8 +5720,8 @@ static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandle _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__17; -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -5940,22 +5729,32 @@ return x_3; static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("def"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__18; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; +x_3 = lean_array_push(x_1, x_2); +return x_3; } } static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("def"); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22() { _start: { lean_object* x_1; @@ -5963,17 +5762,17 @@ x_1 = lean_mk_string("declId"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24() { _start: { lean_object* x_1; @@ -5981,17 +5780,17 @@ x_1 = lean_mk_string("optDeclSig"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26() { _start: { lean_object* x_1; @@ -5999,17 +5798,17 @@ x_1 = lean_mk_string("declValSimple"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28() { _start: { lean_object* x_1; @@ -6017,7 +5816,7 @@ x_1 = lean_mk_string(":="); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29() { _start: { lean_object* x_1; lean_object* x_2; @@ -6026,7 +5825,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30() { _start: { lean_object* x_1; @@ -6034,12 +5833,12 @@ x_1 = lean_mk_string("partial"); return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__31() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; -x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; +x_1 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -6157,7 +5956,7 @@ x_53 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_53, 0, x_51); lean_ctor_set(x_53, 1, x_52); lean_ctor_set(x_53, 2, x_50); -x_54 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; +x_54 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__6; x_55 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_55, 0, x_37); lean_ctor_set(x_55, 1, x_54); @@ -6168,14 +5967,14 @@ lean_ctor_set(x_57, 1, x_52); lean_ctor_set(x_57, 2, x_56); x_58 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__10; x_59 = lean_array_push(x_58, x_57); -x_60 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__7; +x_60 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8; x_61 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_61, 0, x_51); lean_ctor_set(x_61, 1, x_60); lean_ctor_set(x_61, 2, x_59); -x_62 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8; +x_62 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; x_63 = lean_array_push(x_62, x_42); -x_64 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; +x_64 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; x_65 = lean_array_push(x_63, x_64); x_66 = lean_array_push(x_65, x_64); x_67 = lean_array_push(x_66, x_53); @@ -6201,13 +6000,13 @@ x_76 = lean_st_ref_get(x_9, x_75); x_77 = lean_ctor_get(x_76, 1); lean_inc(x_77); lean_dec(x_76); -x_78 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; +x_78 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; lean_inc(x_74); x_79 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_79, 0, x_74); lean_ctor_set(x_79, 1, x_78); x_80 = lean_array_push(x_58, x_79); -x_81 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; +x_81 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__17; x_82 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_82, 0, x_51); lean_ctor_set(x_82, 1, x_81); @@ -6217,17 +6016,17 @@ x_84 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_84, 0, x_51); lean_ctor_set(x_84, 1, x_52); lean_ctor_set(x_84, 2, x_83); -x_85 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__18; +x_85 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; x_86 = lean_array_push(x_85, x_84); x_87 = lean_array_push(x_86, x_64); x_88 = lean_array_push(x_87, x_64); x_89 = lean_array_push(x_88, x_64); -x_90 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14; +x_90 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; x_91 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_91, 0, x_51); lean_ctor_set(x_91, 1, x_90); lean_ctor_set(x_91, 2, x_89); -x_92 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; +x_92 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; lean_inc(x_74); x_93 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_93, 0, x_74); @@ -6235,7 +6034,7 @@ lean_ctor_set(x_93, 1, x_92); x_94 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; x_95 = lean_array_push(x_94, x_19); x_96 = lean_array_push(x_95, x_64); -x_97 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22; +x_97 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; x_98 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_98, 0, x_51); lean_ctor_set(x_98, 1, x_97); @@ -6250,12 +6049,12 @@ lean_ctor_set(x_101, 1, x_52); lean_ctor_set(x_101, 2, x_100); x_102 = lean_array_push(x_94, x_101); x_103 = lean_array_push(x_102, x_64); -x_104 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24; +x_104 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25; x_105 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_105, 0, x_51); lean_ctor_set(x_105, 1, x_104); lean_ctor_set(x_105, 2, x_103); -x_106 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; +x_106 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; x_107 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_107, 0, x_74); lean_ctor_set(x_107, 1, x_106); @@ -6263,12 +6062,12 @@ x_108 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceH x_109 = lean_array_push(x_108, x_107); x_110 = lean_array_push(x_109, x_71); x_111 = lean_array_push(x_110, x_64); -x_112 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26; +x_112 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; x_113 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_113, 0, x_51); lean_ctor_set(x_113, 1, x_112); lean_ctor_set(x_113, 2, x_111); -x_114 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; +x_114 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; x_115 = lean_array_push(x_114, x_93); x_116 = lean_array_push(x_115, x_98); x_117 = lean_array_push(x_116, x_105); @@ -6276,14 +6075,14 @@ x_118 = lean_array_push(x_117, x_113); x_119 = lean_array_push(x_118, x_64); x_120 = lean_array_push(x_119, x_64); x_121 = lean_array_push(x_120, x_64); -x_122 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; +x_122 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21; x_123 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_123, 0, x_51); lean_ctor_set(x_123, 1, x_122); lean_ctor_set(x_123, 2, x_121); x_124 = lean_array_push(x_94, x_91); x_125 = lean_array_push(x_124, x_123); -x_126 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; +x_126 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; x_127 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_127, 0, x_51); lean_ctor_set(x_127, 1, x_126); @@ -6337,13 +6136,13 @@ x_140 = lean_st_ref_get(x_9, x_139); x_141 = lean_ctor_get(x_140, 1); lean_inc(x_141); lean_dec(x_140); -x_142 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; +x_142 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; lean_inc(x_138); x_143 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_143, 0, x_138); lean_ctor_set(x_143, 1, x_142); x_144 = lean_array_push(x_58, x_143); -x_145 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; +x_145 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__17; x_146 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_146, 0, x_51); lean_ctor_set(x_146, 1, x_145); @@ -6353,13 +6152,13 @@ x_148 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_148, 0, x_51); lean_ctor_set(x_148, 1, x_52); lean_ctor_set(x_148, 2, x_147); -x_149 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; +x_149 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30; lean_inc(x_138); x_150 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_150, 0, x_138); lean_ctor_set(x_150, 1, x_149); x_151 = lean_array_push(x_58, x_150); -x_152 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30; +x_152 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__31; x_153 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_153, 0, x_51); lean_ctor_set(x_153, 1, x_152); @@ -6369,17 +6168,17 @@ x_155 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_155, 0, x_51); lean_ctor_set(x_155, 1, x_52); lean_ctor_set(x_155, 2, x_154); -x_156 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__18; +x_156 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; x_157 = lean_array_push(x_156, x_148); x_158 = lean_array_push(x_157, x_64); x_159 = lean_array_push(x_158, x_64); x_160 = lean_array_push(x_159, x_155); -x_161 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14; +x_161 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; x_162 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_162, 0, x_51); lean_ctor_set(x_162, 1, x_161); lean_ctor_set(x_162, 2, x_160); -x_163 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; +x_163 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; lean_inc(x_138); x_164 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_164, 0, x_138); @@ -6387,7 +6186,7 @@ lean_ctor_set(x_164, 1, x_163); x_165 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; x_166 = lean_array_push(x_165, x_19); x_167 = lean_array_push(x_166, x_64); -x_168 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22; +x_168 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; x_169 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_169, 0, x_51); lean_ctor_set(x_169, 1, x_168); @@ -6402,12 +6201,12 @@ lean_ctor_set(x_172, 1, x_52); lean_ctor_set(x_172, 2, x_171); x_173 = lean_array_push(x_165, x_172); x_174 = lean_array_push(x_173, x_64); -x_175 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24; +x_175 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25; x_176 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_176, 0, x_51); lean_ctor_set(x_176, 1, x_175); lean_ctor_set(x_176, 2, x_174); -x_177 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; +x_177 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; x_178 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_178, 0, x_138); lean_ctor_set(x_178, 1, x_177); @@ -6415,12 +6214,12 @@ x_179 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceH x_180 = lean_array_push(x_179, x_178); x_181 = lean_array_push(x_180, x_135); x_182 = lean_array_push(x_181, x_64); -x_183 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26; +x_183 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; x_184 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_184, 0, x_51); lean_ctor_set(x_184, 1, x_183); lean_ctor_set(x_184, 2, x_182); -x_185 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; +x_185 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; x_186 = lean_array_push(x_185, x_164); x_187 = lean_array_push(x_186, x_169); x_188 = lean_array_push(x_187, x_176); @@ -6428,14 +6227,14 @@ x_189 = lean_array_push(x_188, x_184); x_190 = lean_array_push(x_189, x_64); x_191 = lean_array_push(x_190, x_64); x_192 = lean_array_push(x_191, x_64); -x_193 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; +x_193 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21; x_194 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_194, 0, x_51); lean_ctor_set(x_194, 1, x_193); lean_ctor_set(x_194, 2, x_192); x_195 = lean_array_push(x_165, x_162); x_196 = lean_array_push(x_195, x_194); -x_197 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; +x_197 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; x_198 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_198, 0, x_51); lean_ctor_set(x_198, 1, x_197); @@ -6822,7 +6621,7 @@ x_43 = lean_ctor_get(x_41, 0); lean_inc(x_43); lean_dec(x_41); x_44 = lean_environment_main_module(x_43); -x_45 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; +x_45 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; lean_inc(x_37); x_46 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_46, 0, x_37); @@ -6830,7 +6629,7 @@ lean_ctor_set(x_46, 1, x_45); x_47 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__10; x_48 = lean_array_push(x_47, x_46); x_49 = lean_box(2); -x_50 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; +x_50 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__17; x_51 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_51, 0, x_49); lean_ctor_set(x_51, 1, x_50); @@ -6841,18 +6640,18 @@ x_54 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_54, 0, x_49); lean_ctor_set(x_54, 1, x_53); lean_ctor_set(x_54, 2, x_52); -x_55 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__18; +x_55 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; x_56 = lean_array_push(x_55, x_54); -x_57 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; +x_57 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; x_58 = lean_array_push(x_56, x_57); x_59 = lean_array_push(x_58, x_57); x_60 = lean_array_push(x_59, x_57); -x_61 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14; +x_61 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; x_62 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_62, 0, x_49); lean_ctor_set(x_62, 1, x_61); lean_ctor_set(x_62, 2, x_60); -x_63 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; +x_63 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; lean_inc(x_37); x_64 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_64, 0, x_37); @@ -6866,7 +6665,7 @@ x_68 = lean_mk_syntax_ident(x_67); x_69 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; x_70 = lean_array_push(x_69, x_68); x_71 = lean_array_push(x_70, x_57); -x_72 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22; +x_72 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; x_73 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_73, 0, x_49); lean_ctor_set(x_73, 1, x_72); @@ -6882,12 +6681,12 @@ lean_ctor_set(x_77, 1, x_53); lean_ctor_set(x_77, 2, x_76); x_78 = lean_array_push(x_69, x_77); x_79 = lean_array_push(x_78, x_57); -x_80 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24; +x_80 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25; x_81 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_81, 0, x_49); lean_ctor_set(x_81, 1, x_80); lean_ctor_set(x_81, 2, x_79); -x_82 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; +x_82 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; lean_inc(x_37); x_83 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_83, 0, x_37); @@ -6968,12 +6767,12 @@ lean_ctor_set(x_120, 2, x_118); x_121 = lean_array_push(x_104, x_83); x_122 = lean_array_push(x_121, x_120); x_123 = lean_array_push(x_122, x_57); -x_124 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26; +x_124 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; x_125 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_125, 0, x_49); lean_ctor_set(x_125, 1, x_124); lean_ctor_set(x_125, 2, x_123); -x_126 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; +x_126 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; x_127 = lean_array_push(x_126, x_64); x_128 = lean_array_push(x_127, x_73); x_129 = lean_array_push(x_128, x_81); @@ -6981,14 +6780,14 @@ x_130 = lean_array_push(x_129, x_125); x_131 = lean_array_push(x_130, x_57); x_132 = lean_array_push(x_131, x_57); x_133 = lean_array_push(x_132, x_57); -x_134 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; +x_134 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21; x_135 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_135, 0, x_49); lean_ctor_set(x_135, 1, x_134); lean_ctor_set(x_135, 2, x_133); x_136 = lean_array_push(x_69, x_62); x_137 = lean_array_push(x_136, x_135); -x_138 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; +x_138 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; x_139 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_139, 0, x_49); lean_ctor_set(x_139, 1, x_138); @@ -9597,11 +9396,9 @@ return x_3; static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__6() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__15; -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("Option"); +return x_1; } } static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__7() { @@ -9610,9 +9407,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__6; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -9620,11 +9415,9 @@ static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__7; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__7; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -9633,7 +9426,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__16; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__8; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -9652,6 +9445,81 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("some"); +return x_1; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__12; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__7; +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__15; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__16; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -9726,7 +9594,7 @@ x_41 = lean_environment_main_module(x_40); x_42 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__5; x_43 = l_Lean_addMacroScope(x_41, x_42, x_36); x_44 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__4; -x_45 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__8; +x_45 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__10; x_46 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_46, 0, x_34); lean_ctor_set(x_46, 1, x_44); @@ -9764,11 +9632,11 @@ x_56 = lean_ctor_get(x_54, 0); lean_inc(x_56); lean_dec(x_54); x_57 = lean_environment_main_module(x_56); -x_58 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13; +x_58 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__14; x_59 = l_Lean_addMacroScope(x_57, x_58, x_52); x_60 = lean_box(0); -x_61 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12; -x_62 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__10; +x_61 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__13; +x_62 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__17; lean_inc(x_50); x_63 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_63, 0, x_50); @@ -11498,12 +11366,12 @@ x_180 = lean_ctor_get(x_178, 0); lean_inc(x_180); lean_dec(x_178); x_181 = lean_environment_main_module(x_180); -x_182 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; +x_182 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; x_183 = lean_name_mk_string(x_7, x_182); -x_184 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_184 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; lean_inc(x_183); x_185 = lean_name_mk_string(x_183, x_184); -x_186 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; +x_186 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14; lean_inc(x_183); x_187 = lean_name_mk_string(x_183, x_186); x_188 = lean_box(2); @@ -11513,7 +11381,7 @@ x_190 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_190, 0, x_188); lean_ctor_set(x_190, 1, x_8); lean_ctor_set(x_190, 2, x_189); -x_191 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; +x_191 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; lean_inc(x_183); x_192 = lean_name_mk_string(x_183, x_191); lean_inc(x_174); @@ -11533,7 +11401,7 @@ x_197 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_197, 0, x_188); lean_ctor_set(x_197, 1, x_8); lean_ctor_set(x_197, 2, x_196); -x_198 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8; +x_198 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; lean_inc(x_190); x_199 = lean_array_push(x_198, x_190); lean_inc(x_190); @@ -11549,14 +11417,14 @@ x_205 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_205, 0, x_188); lean_ctor_set(x_205, 1, x_187); lean_ctor_set(x_205, 2, x_204); -x_206 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; +x_206 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; lean_inc(x_183); x_207 = lean_name_mk_string(x_183, x_206); lean_inc(x_174); x_208 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_208, 0, x_174); lean_ctor_set(x_208, 1, x_206); -x_209 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21; +x_209 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22; lean_inc(x_183); x_210 = lean_name_mk_string(x_183, x_209); lean_inc(x_9); @@ -11567,7 +11435,7 @@ x_213 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_213, 0, x_188); lean_ctor_set(x_213, 1, x_210); lean_ctor_set(x_213, 2, x_212); -x_214 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; +x_214 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24; lean_inc(x_183); x_215 = lean_name_mk_string(x_183, x_214); x_216 = lean_ctor_get(x_5, 0); @@ -11728,9 +11596,9 @@ x_277 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_277, 0, x_188); lean_ctor_set(x_277, 1, x_215); lean_ctor_set(x_277, 2, x_276); -x_278 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25; +x_278 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26; x_279 = lean_name_mk_string(x_183, x_278); -x_280 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; +x_280 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; x_281 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_281, 0, x_174); lean_ctor_set(x_281, 1, x_280); @@ -11743,7 +11611,7 @@ x_286 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_286, 0, x_188); lean_ctor_set(x_286, 1, x_279); lean_ctor_set(x_286, 2, x_285); -x_287 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; +x_287 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; x_288 = lean_array_push(x_287, x_208); x_289 = lean_array_push(x_288, x_213); x_290 = lean_array_push(x_289, x_277); @@ -11814,12 +11682,12 @@ x_38 = lean_ctor_get(x_36, 0); lean_inc(x_38); lean_dec(x_36); x_39 = lean_environment_main_module(x_38); -x_40 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; +x_40 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__10; x_41 = lean_name_mk_string(x_7, x_40); -x_42 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__11; +x_42 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; lean_inc(x_41); x_43 = lean_name_mk_string(x_41, x_42); -x_44 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; +x_44 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14; lean_inc(x_41); x_45 = lean_name_mk_string(x_41, x_44); x_46 = lean_box(2); @@ -11829,7 +11697,7 @@ x_48 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_48, 0, x_46); lean_ctor_set(x_48, 1, x_8); lean_ctor_set(x_48, 2, x_47); -x_49 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; +x_49 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; lean_inc(x_41); x_50 = lean_name_mk_string(x_41, x_49); lean_inc(x_32); @@ -11849,7 +11717,7 @@ x_55 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_55, 0, x_46); lean_ctor_set(x_55, 1, x_8); lean_ctor_set(x_55, 2, x_54); -x_56 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; +x_56 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30; lean_inc(x_41); x_57 = lean_name_mk_string(x_41, x_56); lean_inc(x_32); @@ -11869,7 +11737,7 @@ x_62 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_62, 0, x_46); lean_ctor_set(x_62, 1, x_8); lean_ctor_set(x_62, 2, x_61); -x_63 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8; +x_63 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; lean_inc(x_48); x_64 = lean_array_push(x_63, x_48); lean_inc(x_48); @@ -11884,14 +11752,14 @@ x_70 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_70, 0, x_46); lean_ctor_set(x_70, 1, x_45); lean_ctor_set(x_70, 2, x_69); -x_71 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; +x_71 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; lean_inc(x_41); x_72 = lean_name_mk_string(x_41, x_71); lean_inc(x_32); x_73 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_73, 0, x_32); lean_ctor_set(x_73, 1, x_71); -x_74 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21; +x_74 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22; lean_inc(x_41); x_75 = lean_name_mk_string(x_41, x_74); lean_inc(x_9); @@ -11902,7 +11770,7 @@ x_78 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_78, 0, x_46); lean_ctor_set(x_78, 1, x_75); lean_ctor_set(x_78, 2, x_77); -x_79 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; +x_79 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24; lean_inc(x_41); x_80 = lean_name_mk_string(x_41, x_79); x_81 = lean_ctor_get(x_5, 0); @@ -12063,9 +11931,9 @@ x_142 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_142, 0, x_46); lean_ctor_set(x_142, 1, x_80); lean_ctor_set(x_142, 2, x_141); -x_143 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25; +x_143 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26; x_144 = lean_name_mk_string(x_41, x_143); -x_145 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; +x_145 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; x_146 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_146, 0, x_32); lean_ctor_set(x_146, 1, x_145); @@ -12078,7 +11946,7 @@ x_151 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_151, 0, x_46); lean_ctor_set(x_151, 1, x_144); lean_ctor_set(x_151, 2, x_150); -x_152 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; +x_152 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; x_153 = lean_array_push(x_152, x_73); x_154 = lean_array_push(x_153, x_78); x_155 = lean_array_push(x_154, x_142); @@ -12794,7 +12662,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__10; -x_2 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; +x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -12911,7 +12779,7 @@ x_44 = lean_ctor_get(x_42, 0); lean_inc(x_44); lean_dec(x_42); x_45 = lean_environment_main_module(x_44); -x_46 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; +x_46 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; lean_inc(x_38); x_47 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_47, 0, x_38); @@ -12919,7 +12787,7 @@ lean_ctor_set(x_47, 1, x_46); x_48 = l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__3___closed__10; x_49 = lean_array_push(x_48, x_47); x_50 = lean_box(2); -x_51 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__16; +x_51 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__17; x_52 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_52, 0, x_50); lean_ctor_set(x_52, 1, x_51); @@ -12930,18 +12798,18 @@ x_55 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_55, 0, x_50); lean_ctor_set(x_55, 1, x_54); lean_ctor_set(x_55, 2, x_53); -x_56 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__18; +x_56 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; x_57 = lean_array_push(x_56, x_55); -x_58 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19; +x_58 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__5; x_59 = lean_array_push(x_57, x_58); x_60 = lean_array_push(x_59, x_58); x_61 = lean_array_push(x_60, x_58); -x_62 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__14; +x_62 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__15; x_63 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_63, 0, x_50); lean_ctor_set(x_63, 1, x_62); lean_ctor_set(x_63, 2, x_61); -x_64 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__19; +x_64 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; lean_inc(x_38); x_65 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_65, 0, x_38); @@ -12955,7 +12823,7 @@ x_69 = lean_mk_syntax_ident(x_68); x_70 = l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler_mkAlts___spec__5___lambda__1___closed__7; x_71 = lean_array_push(x_70, x_69); x_72 = lean_array_push(x_71, x_58); -x_73 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__22; +x_73 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__23; x_74 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_74, 0, x_50); lean_ctor_set(x_74, 1, x_73); @@ -13083,12 +12951,12 @@ lean_ctor_set(x_130, 1, x_54); lean_ctor_set(x_130, 2, x_129); x_131 = lean_array_push(x_70, x_108); x_132 = lean_array_push(x_131, x_130); -x_133 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__24; +x_133 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__25; x_134 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_134, 0, x_50); lean_ctor_set(x_134, 1, x_133); lean_ctor_set(x_134, 2, x_132); -x_135 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; +x_135 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; lean_inc(x_38); x_136 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_136, 0, x_38); @@ -13134,7 +13002,7 @@ x_156 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___ x_157 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_157, 0, x_38); lean_ctor_set(x_157, 1, x_156); -x_158 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__8; +x_158 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__9; x_159 = lean_array_push(x_158, x_149); x_160 = lean_array_push(x_159, x_58); x_161 = lean_array_push(x_160, x_155); @@ -13188,12 +13056,12 @@ x_187 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceH x_188 = lean_array_push(x_187, x_136); x_189 = lean_array_push(x_188, x_186); x_190 = lean_array_push(x_189, x_58); -x_191 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__26; +x_191 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__27; x_192 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_192, 0, x_50); lean_ctor_set(x_192, 1, x_191); lean_ctor_set(x_192, 2, x_190); -x_193 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__28; +x_193 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29; x_194 = lean_array_push(x_193, x_65); x_195 = lean_array_push(x_194, x_74); x_196 = lean_array_push(x_195, x_134); @@ -13201,14 +13069,14 @@ x_197 = lean_array_push(x_196, x_192); x_198 = lean_array_push(x_197, x_58); x_199 = lean_array_push(x_198, x_58); x_200 = lean_array_push(x_199, x_58); -x_201 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__20; +x_201 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__21; x_202 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_202, 0, x_50); lean_ctor_set(x_202, 1, x_201); lean_ctor_set(x_202, 2, x_200); x_203 = lean_array_push(x_70, x_63); x_204 = lean_array_push(x_203, x_202); -x_205 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__12; +x_205 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__13; x_206 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_206, 0, x_50); lean_ctor_set(x_206, 1, x_205); @@ -14086,7 +13954,7 @@ lean_dec(x_2); return x_10; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__1() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__1() { _start: { lean_object* x_1; @@ -14094,7 +13962,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanc return x_1; } } -static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__2() { +static lean_object* _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__2() { _start: { lean_object* x_1; @@ -14102,12 +13970,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Deriving_FromToJson_mkFromJsonInsta return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__2; -x_3 = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__1; +x_3 = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__1; x_4 = l_Lean_Elab_registerBuiltinDerivingHandler(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -14116,7 +13984,7 @@ x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); lean_dec(x_4); x_6 = l_Array_mapIdxM_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__3___closed__8; -x_7 = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__2; +x_7 = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__2; x_8 = l_Lean_Elab_registerBuiltinDerivingHandler(x_6, x_7, x_5); return x_8; } @@ -14275,26 +14143,6 @@ l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandle lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__8); l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__9 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__9(); lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__9); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__10); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__11 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__11(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__11); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__12); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__13); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__14 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__14(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__14); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__15 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__15(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__15); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__16 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__16(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__16); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__17 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__17(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__17); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__18 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__18(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__18); -l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__6___closed__19); l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__1 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__1); l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__2 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__2(); @@ -14381,6 +14229,8 @@ l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29 lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__29); l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30(); lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__30); +l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__31 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__31(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__3___closed__31); l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__1 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__1(); lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__1); l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__2 = _init_l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__4___closed__2(); @@ -14555,6 +14405,20 @@ l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHand lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__9); l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__10 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__10(); lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__10); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__11); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__12 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__12(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__12); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__13 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__13(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__13); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__14 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__14(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__14); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__15 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__15(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__15); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__16 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__16(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__16); +l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__17 = _init_l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__17(); +lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__6___lambda__2___closed__17); l_Array_qsort_sort___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__7___closed__1 = _init_l_Array_qsort_sort___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__7___closed__1(); lean_mark_persistent(l_Array_qsort_sort___at_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___spec__7___closed__1); l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___closed__1 = _init_l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler_mkAlts___closed__1(); @@ -14669,11 +14533,11 @@ l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__ lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__19); l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__20 = _init_l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__20(); lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__3___closed__20); -l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__1 = _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__1(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__1); -l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__2 = _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__2(); -lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093____closed__2); -res = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6093_(lean_io_mk_world()); +l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__1 = _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__1(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__1); +l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__2 = _init_l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__2(); +lean_mark_persistent(l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039____closed__2); +res = l_Lean_Elab_Deriving_FromToJson_initFn____x40_Lean_Elab_Deriving_FromToJson___hyg_6039_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Server/Rpc/Deriving.c b/stage0/stdlib/Lean/Server/Rpc/Deriving.c index db4558efce..ec43ae75d4 100644 --- a/stage0/stdlib/Lean/Server/Rpc/Deriving.c +++ b/stage0/stdlib/Lean/Server/Rpc/Deriving.c @@ -31,9 +31,11 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__151; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__68; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__55; +static lean_object* l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519____closed__1; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__4; lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyM___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__27(lean_object*, lean_object*); @@ -56,7 +58,6 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__228; lean_object* l_Lean_LocalDecl_userName(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFieldsAux___spec__1___rarg___lambda__3(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); -static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecls___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__40(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFields___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -87,10 +88,12 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__10; LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_CtorState_decodes___default; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__1; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__148; static lean_object* l_panic___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__16___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__26(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__43; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__4___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Server_RpcEncoding_withFieldsAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__244; @@ -104,6 +107,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Server_RpcEncoding_withFields___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__109; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__65; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsFlattened___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFields___spec__2___rarg___lambda__1(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*); @@ -119,14 +123,17 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_ static lean_object* l_Lean_Meta_DiscrTree_insertCore___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__2___closed__4; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__206; uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__1; lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_RpcEncoding_foldWithConstructors___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__204; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__13(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsFlattened___rarg___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__156; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__10; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsAux___at_Lean_Server_RpcEncoding_withFields___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__56; @@ -153,6 +160,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__7; LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__126; +uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); static lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__1___closed__2; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__5; LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__20(lean_object*, lean_object*); @@ -168,6 +176,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod lean_object* lean_array_get_size(lean_object*); lean_object* l_Std_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__240; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__6; lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__23(lean_object*, lean_object*, size_t, size_t); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__7; @@ -199,6 +208,7 @@ LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_RpcEncoding_foldWith static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__81; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__73; lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__219; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_instInhabitedCtorState; lean_object* l_Lean_Elab_Term_instInhabitedTermElabM(lean_object*); @@ -347,6 +357,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAux___at___private_Lean_S static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__158; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__13; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__106; +lean_object* l_Lean_Name_toString(lean_object*, uint8_t); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__5___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__5(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); @@ -404,6 +415,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Server_RpcEncoding_withFields___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFields___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsAux___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_String_endsWith(lean_object*, lean_object*); static lean_object* l_Lean_Server_RpcEncoding_instInhabitedCtorState___closed__1; lean_object* l_Std_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__35___boxed(lean_object*, lean_object*, lean_object*); @@ -476,7 +488,9 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_Rpc LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__32___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__3___closed__6; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__32___closed__1; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__7; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__36; +LEAN_EXPORT uint8_t l_Lean_Server_RpcEncoding_isOptField(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsAux___at_Lean_Server_RpcEncoding_withFields___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__171; @@ -496,6 +510,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_Rpc LEAN_EXPORT lean_object* l_List_forIn_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__34(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__162; lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__3; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__239; @@ -519,6 +534,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod static lean_object* l_Lean_Meta_withLocalDecls_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__41___rarg___lambda__1___closed__1; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__226; lean_object* l_Lean_Meta_DiscrTree_mkPath(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__5; static lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__18___closed__3; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__32___closed__3; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_matchF___closed__4; @@ -534,7 +550,6 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecls_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__41___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__4(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFields___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126____closed__1; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFields___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__32___closed__5; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__213; @@ -566,6 +581,7 @@ static lean_object* l_Lean_Meta_DiscrTree_insertCore___at___private_Lean_Server_ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Lean_Meta_DiscrTree_instInhabitedKey; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; +lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__236; 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*); @@ -575,7 +591,6 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__178; extern lean_object* l_Lean_Elab_Term_instMonadTermElabM; lean_object* l_Lean_Parser_Term_matchAlt(lean_object*); -static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11; lean_object* lean_environment_main_module(lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__173; @@ -612,6 +627,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__1; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__6; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__4; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsAux___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_RpcEncoding_foldWithConstructors___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__5(lean_object*, size_t, lean_object*); @@ -624,6 +640,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__46; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__52; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__9; LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__147; @@ -639,12 +656,14 @@ static lean_object* l_Lean_Meta_withLocalDecls_loop___at___private_Lean_Server_R static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__198; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_find_x3f___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__2(lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTRAux___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_binInsertM___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__8; LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__24(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__8; LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__220; lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*); @@ -676,6 +695,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod lean_object* l_Lean_Elab_Term_evalExpr___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_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__170; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__199; +LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_isOptField___boxed(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__107; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__82; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__38; @@ -685,7 +705,9 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__59; static lean_object* l_panic___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__3___closed__1; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insert___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__7(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__209; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__5; LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_CtorState_ctors___default; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__3(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); @@ -708,11 +730,14 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__5___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__61; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__70; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_withFieldsAux___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__17; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__8; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__94; +lean_object* l_Lean_indentD(lean_object*); +static lean_object* l_Lean_Server_RpcEncoding_isOptField___closed__1; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__9; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_foldWithConstructors___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -757,6 +782,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__67; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__40; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__175; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__3; static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_insertAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__10___closed__1; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__113; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__31(lean_object*, lean_object*, size_t, size_t); @@ -768,11 +794,13 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visitMain___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__25(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelOne; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__143; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__11; LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__87; LEAN_EXPORT lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__9(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_DependsOn_dep_visit___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___spec__16(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Server_RpcEncoding_withFieldsFlattened___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__27; @@ -781,6 +809,7 @@ static lean_object* l___private_Lean_Meta_DiscrTree_0__Lean_Meta_DiscrTree_inser LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__11; lean_object* l_Array_insertAt___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__2; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__187; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__159; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__6; @@ -796,6 +825,7 @@ static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncod uint64_t l_Lean_Meta_DiscrTree_Key_hash(lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Server_RpcEncoding_foldWithConstructors___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__19; +static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__12; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__146; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__9; lean_object* l_Lean_Meta_forallTelescopeReducing___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -804,7 +834,7 @@ lean_object* l_Lean_Meta_DiscrTree_instInhabitedTrie(lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__194; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__40; static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__67; -LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519_(lean_object*); lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__4; uint8_t l_Lean_isStructure(lean_object*, lean_object*); @@ -5625,6 +5655,34 @@ x_10 = l_Lean_Server_RpcEncoding_withFieldsFlattened___rarg(x_1, x_2, x_3, x_4, return x_10; } } +static lean_object* _init_l_Lean_Server_RpcEncoding_isOptField___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("?"); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_Server_RpcEncoding_isOptField(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_2 = 1; +x_3 = l_Lean_Name_toString(x_1, x_2); +x_4 = l_Lean_Server_RpcEncoding_isOptField___closed__1; +x_5 = l_String_endsWith(x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_isOptField___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Server_RpcEncoding_isOptField(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Std_PersistentHashMap_findAtAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -7007,7 +7065,227 @@ return x_20; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Option"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__2; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4() { +_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_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___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_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__5() { +_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_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__6() { +_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_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__5; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = l_Lean_Server_RpcEncoding_isOptField(x_1); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_13); +x_17 = lean_array_push(x_5, x_4); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_2); +lean_ctor_set(x_18, 1, x_7); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_6); +lean_ctor_set(x_19, 1, x_18); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_17); +lean_ctor_set(x_20, 1, x_19); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_3); +lean_ctor_set(x_21, 1, x_20); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_15); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; +lean_inc(x_13); +x_24 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_13, x_14, x_15); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = lean_ctor_get(x_13, 8); +lean_inc(x_27); +lean_dec(x_13); +x_28 = lean_st_ref_get(x_14, x_26); +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_30 = lean_ctor_get(x_28, 0); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +lean_dec(x_30); +x_32 = lean_environment_main_module(x_31); +x_33 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4; +x_34 = l_Lean_addMacroScope(x_32, x_33, x_27); +x_35 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__3; +x_36 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__6; +x_37 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_37, 0, x_25); +lean_ctor_set(x_37, 1, x_35); +lean_ctor_set(x_37, 2, x_34); +lean_ctor_set(x_37, 3, x_36); +x_38 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; +x_39 = lean_array_push(x_38, x_4); +x_40 = lean_box(2); +x_41 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; +x_42 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +lean_ctor_set(x_42, 2, x_39); +x_43 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; +x_44 = lean_array_push(x_43, x_37); +x_45 = lean_array_push(x_44, x_42); +x_46 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; +x_47 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_47, 0, x_40); +lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 2, x_45); +x_48 = lean_array_push(x_5, x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_2); +lean_ctor_set(x_49, 1, x_7); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_6); +lean_ctor_set(x_50, 1, x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_48); +lean_ctor_set(x_51, 1, x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_28, 0, x_53); +return x_28; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_54 = lean_ctor_get(x_28, 0); +x_55 = lean_ctor_get(x_28, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_28); +x_56 = lean_ctor_get(x_54, 0); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_environment_main_module(x_56); +x_58 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4; +x_59 = l_Lean_addMacroScope(x_57, x_58, x_27); +x_60 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__3; +x_61 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__6; +x_62 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_62, 0, x_25); +lean_ctor_set(x_62, 1, x_60); +lean_ctor_set(x_62, 2, x_59); +lean_ctor_set(x_62, 3, x_61); +x_63 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; +x_64 = lean_array_push(x_63, x_4); +x_65 = lean_box(2); +x_66 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; +x_67 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set(x_67, 2, x_64); +x_68 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; +x_69 = lean_array_push(x_68, x_62); +x_70 = lean_array_push(x_69, x_67); +x_71 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; +x_72 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_72, 0, x_65); +lean_ctor_set(x_72, 1, x_71); +lean_ctor_set(x_72, 2, x_70); +x_73 = lean_array_push(x_5, x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_2); +lean_ctor_set(x_74, 1, x_7); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_6); +lean_ctor_set(x_75, 1, x_74); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_3); +lean_ctor_set(x_77, 1, x_76); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_77); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_55); +return x_79; +} +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -7016,16 +7294,436 @@ x_2 = lean_mk_syntax_ident(x_1); return x_2; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +_start: +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_9); +lean_inc(x_1); +x_17 = lean_mk_syntax_ident(x_1); +x_18 = lean_array_push(x_6, x_17); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_7); +lean_inc(x_5); +x_19 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_5, x_7, x_12, x_13, x_14, x_15, x_16); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Array_back_x3f___rarg(x_20); +lean_dec(x_20); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_inc(x_1); +x_23 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_1, x_14, x_15, x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_mk_syntax_ident(x_24); +lean_inc(x_14); +x_27 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_14, x_15, x_25); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_st_ref_get(x_15, x_29); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_32 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__80; +lean_inc(x_28); +x_33 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_33, 0, x_28); +lean_ctor_set(x_33, 1, x_32); +x_34 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; +lean_inc(x_26); +x_35 = lean_array_push(x_34, x_26); +x_36 = lean_box(2); +x_37 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; +x_38 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_38, 2, x_35); +x_39 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_37); +lean_ctor_set(x_39, 2, x_2); +x_40 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__92; +x_41 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_41, 0, x_28); +lean_ctor_set(x_41, 1, x_40); +x_42 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; +x_43 = lean_array_push(x_42, x_33); +x_44 = lean_array_push(x_43, x_38); +lean_inc(x_39); +x_45 = lean_array_push(x_44, x_39); +lean_inc(x_39); +x_46 = lean_array_push(x_45, x_39); +x_47 = lean_array_push(x_46, x_41); +x_48 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__79; +x_49 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_49, 0, x_36); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_49, 2, x_47); +x_50 = lean_array_push(x_3, x_49); +x_51 = lean_box(0); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_7); +x_52 = l_Lean_PrettyPrinter_delab(x_7, x_51, x_12, x_13, x_14, x_15, x_31); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +lean_inc(x_14); +x_55 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_14, x_15, x_54); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = lean_st_ref_get(x_15, x_57); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__59; +lean_inc(x_56); +x_61 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_61, 0, x_56); +lean_ctor_set(x_61, 1, x_60); +x_62 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; +x_63 = lean_array_push(x_62, x_53); +lean_inc(x_26); +x_64 = lean_array_push(x_63, x_26); +x_65 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_65, 0, x_36); +lean_ctor_set(x_65, 1, x_37); +lean_ctor_set(x_65, 2, x_64); +x_66 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2; +x_67 = lean_array_push(x_66, x_65); +x_68 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; +x_69 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_69, 0, x_36); +lean_ctor_set(x_69, 1, x_68); +lean_ctor_set(x_69, 2, x_67); +x_70 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__68; +x_71 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_71, 0, x_56); +lean_ctor_set(x_71, 1, x_70); +x_72 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__35; +x_73 = lean_array_push(x_72, x_61); +x_74 = lean_array_push(x_73, x_39); +x_75 = lean_array_push(x_74, x_69); +x_76 = lean_array_push(x_75, x_71); +x_77 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__58; +x_78 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_78, 0, x_36); +lean_ctor_set(x_78, 1, x_77); +lean_ctor_set(x_78, 2, x_76); +x_79 = lean_array_push(x_50, x_78); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_26); +x_80 = l_Lean_Meta_DiscrTree_insert___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__1(x_5, x_7, x_26, x_12, x_13, x_14, x_15, x_59); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +lean_inc(x_26); +x_83 = lean_array_push(x_8, x_26); +x_84 = lean_box(0); +x_85 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1(x_1, x_18, x_79, x_26, x_4, x_81, x_83, x_84, x_10, x_11, x_12, x_13, x_14, x_15, x_82); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +return x_85; +} +else +{ +uint8_t x_86; +lean_dec(x_79); +lean_dec(x_26); +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_1); +x_86 = !lean_is_exclusive(x_80); +if (x_86 == 0) +{ +return x_80; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_80, 0); +x_88 = lean_ctor_get(x_80, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_80); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +else +{ +uint8_t x_90; +lean_dec(x_50); +lean_dec(x_39); +lean_dec(x_26); +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +x_90 = !lean_is_exclusive(x_52); +if (x_90 == 0) +{ +return x_52; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_52, 0); +x_92 = lean_ctor_get(x_52, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_52); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_7); +lean_dec(x_2); +x_94 = lean_ctor_get(x_22, 0); +lean_inc(x_94); +lean_dec(x_22); +x_95 = lean_box(0); +x_96 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1(x_1, x_18, x_3, x_94, x_4, x_5, x_8, x_95, x_10, x_11, x_12, x_13, x_14, x_15, x_21); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +return x_96; +} +} +else +{ +uint8_t x_97; +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_97 = !lean_is_exclusive(x_19); +if (x_97 == 0) +{ +return x_19; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_19, 0); +x_99 = lean_ctor_get(x_19, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_19); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_16 = lean_unsigned_to_nat(0u); +x_17 = l_Lean_Expr_getAppNumArgsAux(x_7, x_16); +x_18 = lean_nat_sub(x_17, x_16); +lean_dec(x_17); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_sub(x_18, x_19); +lean_dec(x_18); +x_21 = l_Lean_Expr_getRevArg_x21(x_7, x_20); +x_22 = lean_box(0); +x_23 = lean_apply_14(x_1, x_2, x_3, x_4, x_5, x_21, x_6, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_23; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("optional field '"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' has type"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(""); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("\nbut is expected to have type"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Option _"); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__9; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__10; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__11; +x_2 = l_Lean_indentD(x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -7038,6 +7736,8 @@ 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_1); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_5); @@ -7046,1391 +7746,319 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; x_15 = lean_array_uget(x_2, x_4); -x_23 = lean_ctor_get(x_5, 1); -lean_inc(x_23); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -x_26 = lean_ctor_get(x_15, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_15, 1); -lean_inc(x_27); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); lean_dec(x_15); -x_28 = !lean_is_exclusive(x_5); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_5, 0); -x_30 = lean_ctor_get(x_5, 1); -lean_dec(x_30); -x_31 = lean_ctor_get(x_23, 0); -lean_inc(x_31); -lean_dec(x_23); -x_32 = !lean_is_exclusive(x_24); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_24, 0); -x_34 = lean_ctor_get(x_24, 1); -lean_dec(x_34); -x_35 = !lean_is_exclusive(x_25); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_36 = lean_ctor_get(x_25, 0); -x_37 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -x_38 = lean_mk_syntax_ident(x_26); -x_39 = lean_array_push(x_36, x_38); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -lean_inc(x_33); -x_40 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_33, x_27, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_43 = l_Array_back_x3f___rarg(x_41); -lean_dec(x_41); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_44 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_26, x_10, x_11, x_42); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_mk_syntax_ident(x_45); -lean_inc(x_10); -x_48 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_46); -x_49 = lean_ctor_get(x_48, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -x_51 = lean_st_ref_get(x_11, x_50); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__80; -lean_inc(x_49); -x_54 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_54, 0, x_49); -lean_ctor_set(x_54, 1, x_53); -x_55 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; -lean_inc(x_47); -x_56 = lean_array_push(x_55, x_47); -x_57 = lean_box(2); -x_58 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; -x_59 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -lean_ctor_set(x_59, 2, x_56); -lean_inc(x_1); -x_60 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_60, 0, x_57); -lean_ctor_set(x_60, 1, x_58); -lean_ctor_set(x_60, 2, x_1); -x_61 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__92; -x_62 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_62, 0, x_49); -lean_ctor_set(x_62, 1, x_61); -x_63 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; -x_64 = lean_array_push(x_63, x_54); -x_65 = lean_array_push(x_64, x_59); -lean_inc(x_60); -x_66 = lean_array_push(x_65, x_60); -lean_inc(x_60); -x_67 = lean_array_push(x_66, x_60); -x_68 = lean_array_push(x_67, x_62); -x_69 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__79; -x_70 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_70, 0, x_57); -lean_ctor_set(x_70, 1, x_69); -lean_ctor_set(x_70, 2, x_68); -x_71 = lean_array_push(x_29, x_70); -x_72 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -x_73 = l_Lean_PrettyPrinter_delab(x_27, x_72, x_8, x_9, x_10, x_11, x_52); -if (lean_obj_tag(x_73) == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -lean_inc(x_10); -x_76 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_75); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_dec(x_76); -x_79 = lean_st_ref_get(x_11, x_78); -x_80 = lean_ctor_get(x_79, 1); -lean_inc(x_80); -lean_dec(x_79); -x_81 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__59; -lean_inc(x_77); -x_82 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_82, 0, x_77); -lean_ctor_set(x_82, 1, x_81); -x_83 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; -x_84 = lean_array_push(x_83, x_74); -lean_inc(x_47); -x_85 = lean_array_push(x_84, x_47); -x_86 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_86, 0, x_57); -lean_ctor_set(x_86, 1, x_58); -lean_ctor_set(x_86, 2, x_85); -x_87 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; -x_88 = lean_array_push(x_87, x_86); -x_89 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; -x_90 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_90, 0, x_57); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_90, 2, x_88); -x_91 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__68; -x_92 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_92, 0, x_77); -lean_ctor_set(x_92, 1, x_91); -x_93 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__35; -x_94 = lean_array_push(x_93, x_82); -x_95 = lean_array_push(x_94, x_60); -x_96 = lean_array_push(x_95, x_90); -x_97 = lean_array_push(x_96, x_92); -x_98 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__58; -x_99 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_99, 0, x_57); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set(x_99, 2, x_97); -x_100 = lean_array_push(x_71, x_99); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_47); -x_101 = l_Lean_Meta_DiscrTree_insert___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__1(x_33, x_27, x_47, x_8, x_9, x_10, x_11, x_80); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -lean_inc(x_47); -x_104 = lean_array_push(x_37, x_47); -x_105 = lean_array_push(x_31, x_47); -lean_ctor_set(x_25, 1, x_104); -lean_ctor_set(x_25, 0, x_39); -lean_ctor_set(x_24, 0, x_102); -lean_ctor_set(x_5, 1, x_24); -lean_ctor_set(x_5, 0, x_105); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_100); -lean_ctor_set(x_106, 1, x_5); -x_107 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_107, 0, x_106); -x_16 = x_107; -x_17 = x_103; -goto block_22; -} -else -{ -uint8_t x_108; -lean_dec(x_100); -lean_dec(x_47); -lean_dec(x_39); -lean_free_object(x_25); -lean_dec(x_37); -lean_free_object(x_24); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_108 = !lean_is_exclusive(x_101); -if (x_108 == 0) -{ -return x_101; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_109 = lean_ctor_get(x_101, 0); -x_110 = lean_ctor_get(x_101, 1); -lean_inc(x_110); -lean_inc(x_109); -lean_dec(x_101); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -return x_111; -} -} -} -else -{ -uint8_t x_112; -lean_dec(x_71); -lean_dec(x_60); -lean_dec(x_47); -lean_dec(x_39); -lean_free_object(x_25); -lean_dec(x_37); -lean_free_object(x_24); -lean_dec(x_33); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_27); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_112 = !lean_is_exclusive(x_73); -if (x_112 == 0) -{ -return x_73; -} -else -{ -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_73, 0); -x_114 = lean_ctor_get(x_73, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_73); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; -} -} -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -lean_dec(x_27); -lean_dec(x_26); -x_116 = lean_ctor_get(x_43, 0); -lean_inc(x_116); -lean_dec(x_43); -x_117 = lean_array_push(x_31, x_116); -lean_ctor_set(x_25, 0, x_39); -lean_ctor_set(x_5, 1, x_24); -lean_ctor_set(x_5, 0, x_117); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_29); -lean_ctor_set(x_118, 1, x_5); -x_119 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_119, 0, x_118); -x_16 = x_119; -x_17 = x_42; -goto block_22; -} -} -else -{ -uint8_t x_120; -lean_dec(x_39); -lean_free_object(x_25); -lean_dec(x_37); -lean_free_object(x_24); -lean_dec(x_33); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_29); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_120 = !lean_is_exclusive(x_40); -if (x_120 == 0) -{ -return x_40; -} -else -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_121 = lean_ctor_get(x_40, 0); -x_122 = lean_ctor_get(x_40, 1); -lean_inc(x_122); -lean_inc(x_121); -lean_dec(x_40); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set(x_123, 1, x_122); -return x_123; -} -} -} -else -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_124 = lean_ctor_get(x_25, 0); -x_125 = lean_ctor_get(x_25, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_25); -lean_inc(x_26); -x_126 = lean_mk_syntax_ident(x_26); -x_127 = lean_array_push(x_124, x_126); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -lean_inc(x_33); -x_128 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_33, x_27, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_128) == 0) -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -x_131 = l_Array_back_x3f___rarg(x_129); -lean_dec(x_129); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; -x_132 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_26, x_10, x_11, x_130); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -lean_dec(x_132); -x_135 = lean_mk_syntax_ident(x_133); -lean_inc(x_10); -x_136 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_134); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -x_139 = lean_st_ref_get(x_11, x_138); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -lean_dec(x_139); -x_141 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__80; -lean_inc(x_137); -x_142 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_142, 0, x_137); -lean_ctor_set(x_142, 1, x_141); -x_143 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; -lean_inc(x_135); -x_144 = lean_array_push(x_143, x_135); -x_145 = lean_box(2); -x_146 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; -x_147 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -lean_ctor_set(x_147, 2, x_144); -lean_inc(x_1); -x_148 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_148, 0, x_145); -lean_ctor_set(x_148, 1, x_146); -lean_ctor_set(x_148, 2, x_1); -x_149 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__92; -x_150 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_150, 0, x_137); -lean_ctor_set(x_150, 1, x_149); -x_151 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; -x_152 = lean_array_push(x_151, x_142); -x_153 = lean_array_push(x_152, x_147); -lean_inc(x_148); -x_154 = lean_array_push(x_153, x_148); -lean_inc(x_148); -x_155 = lean_array_push(x_154, x_148); -x_156 = lean_array_push(x_155, x_150); -x_157 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__79; -x_158 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_158, 0, x_145); -lean_ctor_set(x_158, 1, x_157); -lean_ctor_set(x_158, 2, x_156); -x_159 = lean_array_push(x_29, x_158); -x_160 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -x_161 = l_Lean_PrettyPrinter_delab(x_27, x_160, x_8, x_9, x_10, x_11, x_140); -if (lean_obj_tag(x_161) == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -lean_inc(x_10); -x_164 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_163); -x_165 = lean_ctor_get(x_164, 0); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 1); -lean_inc(x_166); -lean_dec(x_164); -x_167 = lean_st_ref_get(x_11, x_166); -x_168 = lean_ctor_get(x_167, 1); -lean_inc(x_168); -lean_dec(x_167); -x_169 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__59; -lean_inc(x_165); -x_170 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_170, 0, x_165); -lean_ctor_set(x_170, 1, x_169); -x_171 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; -x_172 = lean_array_push(x_171, x_162); -lean_inc(x_135); -x_173 = lean_array_push(x_172, x_135); -x_174 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_174, 0, x_145); -lean_ctor_set(x_174, 1, x_146); -lean_ctor_set(x_174, 2, x_173); -x_175 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; -x_176 = lean_array_push(x_175, x_174); -x_177 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; -x_178 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_178, 0, x_145); -lean_ctor_set(x_178, 1, x_177); -lean_ctor_set(x_178, 2, x_176); -x_179 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__68; -x_180 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_180, 0, x_165); -lean_ctor_set(x_180, 1, x_179); -x_181 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__35; -x_182 = lean_array_push(x_181, x_170); -x_183 = lean_array_push(x_182, x_148); -x_184 = lean_array_push(x_183, x_178); -x_185 = lean_array_push(x_184, x_180); -x_186 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__58; -x_187 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_187, 0, x_145); -lean_ctor_set(x_187, 1, x_186); -lean_ctor_set(x_187, 2, x_185); -x_188 = lean_array_push(x_159, x_187); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_135); -x_189 = l_Lean_Meta_DiscrTree_insert___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__1(x_33, x_27, x_135, x_8, x_9, x_10, x_11, x_168); -if (lean_obj_tag(x_189) == 0) -{ -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; -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -lean_dec(x_189); -lean_inc(x_135); -x_192 = lean_array_push(x_125, x_135); -x_193 = lean_array_push(x_31, x_135); -x_194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_194, 0, x_127); -lean_ctor_set(x_194, 1, x_192); -lean_ctor_set(x_24, 1, x_194); -lean_ctor_set(x_24, 0, x_190); -lean_ctor_set(x_5, 1, x_24); -lean_ctor_set(x_5, 0, x_193); -x_195 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_195, 0, x_188); -lean_ctor_set(x_195, 1, x_5); -x_196 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_196, 0, x_195); -x_16 = x_196; -x_17 = x_191; -goto block_22; -} -else -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_188); -lean_dec(x_135); -lean_dec(x_127); -lean_dec(x_125); -lean_free_object(x_24); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_197 = lean_ctor_get(x_189, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_189, 1); -lean_inc(x_198); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_199 = x_189; -} else { - lean_dec_ref(x_189); - x_199 = lean_box(0); -} -if (lean_is_scalar(x_199)) { - x_200 = lean_alloc_ctor(1, 2, 0); -} else { - x_200 = x_199; -} -lean_ctor_set(x_200, 0, x_197); -lean_ctor_set(x_200, 1, x_198); -return x_200; -} -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; -lean_dec(x_159); -lean_dec(x_148); -lean_dec(x_135); -lean_dec(x_127); -lean_dec(x_125); -lean_free_object(x_24); -lean_dec(x_33); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_27); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_201 = lean_ctor_get(x_161, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_161, 1); -lean_inc(x_202); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_203 = x_161; -} else { - lean_dec_ref(x_161); - x_203 = lean_box(0); -} -if (lean_is_scalar(x_203)) { - x_204 = lean_alloc_ctor(1, 2, 0); -} else { - x_204 = x_203; -} -lean_ctor_set(x_204, 0, x_201); -lean_ctor_set(x_204, 1, x_202); -return x_204; -} -} -else -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; -lean_dec(x_27); -lean_dec(x_26); -x_205 = lean_ctor_get(x_131, 0); -lean_inc(x_205); -lean_dec(x_131); -x_206 = lean_array_push(x_31, x_205); -x_207 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_207, 0, x_127); -lean_ctor_set(x_207, 1, x_125); -lean_ctor_set(x_24, 1, x_207); -lean_ctor_set(x_5, 1, x_24); -lean_ctor_set(x_5, 0, x_206); -x_208 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_208, 0, x_29); -lean_ctor_set(x_208, 1, x_5); -x_209 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_209, 0, x_208); -x_16 = x_209; -x_17 = x_130; -goto block_22; -} -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -lean_dec(x_127); -lean_dec(x_125); -lean_free_object(x_24); -lean_dec(x_33); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_29); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_210 = lean_ctor_get(x_128, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_128, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_212 = x_128; -} else { - lean_dec_ref(x_128); - x_212 = lean_box(0); -} -if (lean_is_scalar(x_212)) { - x_213 = lean_alloc_ctor(1, 2, 0); -} else { - x_213 = x_212; -} -lean_ctor_set(x_213, 0, x_210); -lean_ctor_set(x_213, 1, x_211); -return x_213; -} -} -} -else -{ -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_214 = lean_ctor_get(x_24, 0); -lean_inc(x_214); -lean_dec(x_24); -x_215 = lean_ctor_get(x_25, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_25, 1); -lean_inc(x_216); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_217 = x_25; -} else { - lean_dec_ref(x_25); - x_217 = lean_box(0); -} -lean_inc(x_26); -x_218 = lean_mk_syntax_ident(x_26); -x_219 = lean_array_push(x_215, x_218); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -lean_inc(x_214); -x_220 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_214, x_27, x_8, x_9, x_10, x_11, x_12); -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); -x_223 = l_Array_back_x3f___rarg(x_221); -lean_dec(x_221); -if (lean_obj_tag(x_223) == 0) -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; -x_224 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_26, x_10, x_11, x_222); -x_225 = lean_ctor_get(x_224, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_224, 1); -lean_inc(x_226); -lean_dec(x_224); -x_227 = lean_mk_syntax_ident(x_225); -lean_inc(x_10); -x_228 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_226); -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec(x_228); -x_231 = lean_st_ref_get(x_11, x_230); -x_232 = lean_ctor_get(x_231, 1); -lean_inc(x_232); -lean_dec(x_231); -x_233 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__80; -lean_inc(x_229); -x_234 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_234, 0, x_229); -lean_ctor_set(x_234, 1, x_233); -x_235 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; -lean_inc(x_227); -x_236 = lean_array_push(x_235, x_227); -x_237 = lean_box(2); -x_238 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; -x_239 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_239, 0, x_237); -lean_ctor_set(x_239, 1, x_238); -lean_ctor_set(x_239, 2, x_236); -lean_inc(x_1); -x_240 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_240, 0, x_237); -lean_ctor_set(x_240, 1, x_238); -lean_ctor_set(x_240, 2, x_1); -x_241 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__92; -x_242 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_242, 0, x_229); -lean_ctor_set(x_242, 1, x_241); -x_243 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; -x_244 = lean_array_push(x_243, x_234); -x_245 = lean_array_push(x_244, x_239); -lean_inc(x_240); -x_246 = lean_array_push(x_245, x_240); -lean_inc(x_240); -x_247 = lean_array_push(x_246, x_240); -x_248 = lean_array_push(x_247, x_242); -x_249 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__79; -x_250 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_250, 0, x_237); -lean_ctor_set(x_250, 1, x_249); -lean_ctor_set(x_250, 2, x_248); -x_251 = lean_array_push(x_29, x_250); -x_252 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -x_253 = l_Lean_PrettyPrinter_delab(x_27, x_252, x_8, x_9, x_10, x_11, x_232); -if (lean_obj_tag(x_253) == 0) -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 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; -x_254 = lean_ctor_get(x_253, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_253, 1); -lean_inc(x_255); -lean_dec(x_253); -lean_inc(x_10); -x_256 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_255); -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -lean_dec(x_256); -x_259 = lean_st_ref_get(x_11, x_258); -x_260 = lean_ctor_get(x_259, 1); -lean_inc(x_260); -lean_dec(x_259); -x_261 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__59; -lean_inc(x_257); -x_262 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_262, 0, x_257); -lean_ctor_set(x_262, 1, x_261); -x_263 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; -x_264 = lean_array_push(x_263, x_254); -lean_inc(x_227); -x_265 = lean_array_push(x_264, x_227); -x_266 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_266, 0, x_237); -lean_ctor_set(x_266, 1, x_238); -lean_ctor_set(x_266, 2, x_265); -x_267 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; -x_268 = lean_array_push(x_267, x_266); -x_269 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; -x_270 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_270, 0, x_237); -lean_ctor_set(x_270, 1, x_269); -lean_ctor_set(x_270, 2, x_268); -x_271 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__68; -x_272 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_272, 0, x_257); -lean_ctor_set(x_272, 1, x_271); -x_273 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__35; -x_274 = lean_array_push(x_273, x_262); -x_275 = lean_array_push(x_274, x_240); -x_276 = lean_array_push(x_275, x_270); -x_277 = lean_array_push(x_276, x_272); -x_278 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__58; -x_279 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_279, 0, x_237); -lean_ctor_set(x_279, 1, x_278); -lean_ctor_set(x_279, 2, x_277); -x_280 = lean_array_push(x_251, x_279); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_227); -x_281 = l_Lean_Meta_DiscrTree_insert___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__1(x_214, x_27, x_227, x_8, x_9, x_10, x_11, x_260); -if (lean_obj_tag(x_281) == 0) -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -x_283 = lean_ctor_get(x_281, 1); -lean_inc(x_283); -lean_dec(x_281); -lean_inc(x_227); -x_284 = lean_array_push(x_216, x_227); -x_285 = lean_array_push(x_31, x_227); -if (lean_is_scalar(x_217)) { - x_286 = lean_alloc_ctor(0, 2, 0); -} else { - x_286 = x_217; -} -lean_ctor_set(x_286, 0, x_219); -lean_ctor_set(x_286, 1, x_284); -x_287 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_287, 0, x_282); -lean_ctor_set(x_287, 1, x_286); -lean_ctor_set(x_5, 1, x_287); -lean_ctor_set(x_5, 0, x_285); -x_288 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_288, 0, x_280); -lean_ctor_set(x_288, 1, x_5); -x_289 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_289, 0, x_288); -x_16 = x_289; -x_17 = x_283; -goto block_22; -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; -lean_dec(x_280); -lean_dec(x_227); -lean_dec(x_219); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_290 = lean_ctor_get(x_281, 0); -lean_inc(x_290); -x_291 = lean_ctor_get(x_281, 1); -lean_inc(x_291); -if (lean_is_exclusive(x_281)) { - lean_ctor_release(x_281, 0); - lean_ctor_release(x_281, 1); - x_292 = x_281; -} else { - lean_dec_ref(x_281); - x_292 = lean_box(0); -} -if (lean_is_scalar(x_292)) { - x_293 = lean_alloc_ctor(1, 2, 0); -} else { - x_293 = x_292; -} -lean_ctor_set(x_293, 0, x_290); -lean_ctor_set(x_293, 1, x_291); -return x_293; -} -} -else -{ -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -lean_dec(x_251); -lean_dec(x_240); -lean_dec(x_227); -lean_dec(x_219); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_214); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_27); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_294 = lean_ctor_get(x_253, 0); -lean_inc(x_294); -x_295 = lean_ctor_get(x_253, 1); -lean_inc(x_295); -if (lean_is_exclusive(x_253)) { - lean_ctor_release(x_253, 0); - lean_ctor_release(x_253, 1); - x_296 = x_253; -} else { - lean_dec_ref(x_253); - x_296 = lean_box(0); -} -if (lean_is_scalar(x_296)) { - x_297 = lean_alloc_ctor(1, 2, 0); -} else { - x_297 = x_296; -} -lean_ctor_set(x_297, 0, x_294); -lean_ctor_set(x_297, 1, x_295); -return x_297; -} -} -else -{ -lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; -lean_dec(x_27); -lean_dec(x_26); -x_298 = lean_ctor_get(x_223, 0); -lean_inc(x_298); -lean_dec(x_223); -x_299 = lean_array_push(x_31, x_298); -if (lean_is_scalar(x_217)) { - x_300 = lean_alloc_ctor(0, 2, 0); -} else { - x_300 = x_217; -} -lean_ctor_set(x_300, 0, x_219); -lean_ctor_set(x_300, 1, x_216); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_214); -lean_ctor_set(x_301, 1, x_300); -lean_ctor_set(x_5, 1, x_301); -lean_ctor_set(x_5, 0, x_299); -x_302 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_302, 0, x_29); -lean_ctor_set(x_302, 1, x_5); -x_303 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_303, 0, x_302); -x_16 = x_303; -x_17 = x_222; -goto block_22; -} -} -else -{ -lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; -lean_dec(x_219); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_214); -lean_dec(x_31); -lean_free_object(x_5); -lean_dec(x_29); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_304 = lean_ctor_get(x_220, 0); -lean_inc(x_304); -x_305 = lean_ctor_get(x_220, 1); -lean_inc(x_305); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_306 = x_220; -} else { - lean_dec_ref(x_220); - x_306 = lean_box(0); -} -if (lean_is_scalar(x_306)) { - x_307 = lean_alloc_ctor(1, 2, 0); -} else { - x_307 = x_306; -} -lean_ctor_set(x_307, 0, x_304); -lean_ctor_set(x_307, 1, x_305); -return x_307; -} -} -} -else -{ -lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; -x_308 = lean_ctor_get(x_5, 0); -lean_inc(x_308); -lean_dec(x_5); -x_309 = lean_ctor_get(x_23, 0); -lean_inc(x_309); -lean_dec(x_23); -x_310 = lean_ctor_get(x_24, 0); -lean_inc(x_310); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_311 = x_24; -} else { - lean_dec_ref(x_24); - x_311 = lean_box(0); -} -x_312 = lean_ctor_get(x_25, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_25, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_314 = x_25; -} else { - lean_dec_ref(x_25); - x_314 = lean_box(0); -} -lean_inc(x_26); -x_315 = lean_mk_syntax_ident(x_26); -x_316 = lean_array_push(x_312, x_315); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -lean_inc(x_310); -x_317 = l_Lean_Meta_DiscrTree_getMatch___rarg(x_310, x_27, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_317) == 0) -{ -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -lean_dec(x_317); -x_320 = l_Array_back_x3f___rarg(x_318); -lean_dec(x_318); -if (lean_obj_tag(x_320) == 0) -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -x_321 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_26, x_10, x_11, x_319); -x_322 = lean_ctor_get(x_321, 0); -lean_inc(x_322); -x_323 = lean_ctor_get(x_321, 1); -lean_inc(x_323); -lean_dec(x_321); -x_324 = lean_mk_syntax_ident(x_322); -lean_inc(x_10); -x_325 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_323); -x_326 = lean_ctor_get(x_325, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_325, 1); -lean_inc(x_327); -lean_dec(x_325); -x_328 = lean_st_ref_get(x_11, x_327); -x_329 = lean_ctor_get(x_328, 1); -lean_inc(x_329); -lean_dec(x_328); -x_330 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__80; -lean_inc(x_326); -x_331 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_331, 0, x_326); -lean_ctor_set(x_331, 1, x_330); -x_332 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; -lean_inc(x_324); -x_333 = lean_array_push(x_332, x_324); -x_334 = lean_box(2); -x_335 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; -x_336 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_336, 0, x_334); -lean_ctor_set(x_336, 1, x_335); -lean_ctor_set(x_336, 2, x_333); -lean_inc(x_1); -x_337 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_337, 0, x_334); -lean_ctor_set(x_337, 1, x_335); -lean_ctor_set(x_337, 2, x_1); -x_338 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__92; -x_339 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_339, 0, x_326); -lean_ctor_set(x_339, 1, x_338); -x_340 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; -x_341 = lean_array_push(x_340, x_331); -x_342 = lean_array_push(x_341, x_336); -lean_inc(x_337); -x_343 = lean_array_push(x_342, x_337); -lean_inc(x_337); -x_344 = lean_array_push(x_343, x_337); -x_345 = lean_array_push(x_344, x_339); -x_346 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__79; -x_347 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_347, 0, x_334); -lean_ctor_set(x_347, 1, x_346); -lean_ctor_set(x_347, 2, x_345); -x_348 = lean_array_push(x_308, x_347); -x_349 = lean_box(0); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_27); -x_350 = l_Lean_PrettyPrinter_delab(x_27, x_349, x_8, x_9, x_10, x_11, x_329); -if (lean_obj_tag(x_350) == 0) -{ -lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; -x_351 = lean_ctor_get(x_350, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_350, 1); -lean_inc(x_352); -lean_dec(x_350); -lean_inc(x_10); -x_353 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(x_10, x_11, x_352); -x_354 = lean_ctor_get(x_353, 0); -lean_inc(x_354); -x_355 = lean_ctor_get(x_353, 1); -lean_inc(x_355); -lean_dec(x_353); -x_356 = lean_st_ref_get(x_11, x_355); -x_357 = lean_ctor_get(x_356, 1); -lean_inc(x_357); -lean_dec(x_356); -x_358 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__59; -lean_inc(x_354); -x_359 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_359, 0, x_354); -lean_ctor_set(x_359, 1, x_358); -x_360 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; -x_361 = lean_array_push(x_360, x_351); -lean_inc(x_324); -x_362 = lean_array_push(x_361, x_324); -x_363 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_363, 0, x_334); -lean_ctor_set(x_363, 1, x_335); -lean_ctor_set(x_363, 2, x_362); -x_364 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; -x_365 = lean_array_push(x_364, x_363); -x_366 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; -x_367 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_367, 0, x_334); -lean_ctor_set(x_367, 1, x_366); -lean_ctor_set(x_367, 2, x_365); -x_368 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__68; -x_369 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_369, 0, x_354); -lean_ctor_set(x_369, 1, x_368); -x_370 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__35; -x_371 = lean_array_push(x_370, x_359); -x_372 = lean_array_push(x_371, x_337); -x_373 = lean_array_push(x_372, x_367); -x_374 = lean_array_push(x_373, x_369); -x_375 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__58; -x_376 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_376, 0, x_334); -lean_ctor_set(x_376, 1, x_375); -lean_ctor_set(x_376, 2, x_374); -x_377 = lean_array_push(x_348, x_376); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_324); -x_378 = l_Lean_Meta_DiscrTree_insert___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__1(x_310, x_27, x_324, x_8, x_9, x_10, x_11, x_357); -if (lean_obj_tag(x_378) == 0) -{ -lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; -x_379 = lean_ctor_get(x_378, 0); -lean_inc(x_379); -x_380 = lean_ctor_get(x_378, 1); -lean_inc(x_380); -lean_dec(x_378); -lean_inc(x_324); -x_381 = lean_array_push(x_313, x_324); -x_382 = lean_array_push(x_309, x_324); -if (lean_is_scalar(x_314)) { - x_383 = lean_alloc_ctor(0, 2, 0); -} else { - x_383 = x_314; -} -lean_ctor_set(x_383, 0, x_316); -lean_ctor_set(x_383, 1, x_381); -if (lean_is_scalar(x_311)) { - x_384 = lean_alloc_ctor(0, 2, 0); -} else { - x_384 = x_311; -} -lean_ctor_set(x_384, 0, x_379); -lean_ctor_set(x_384, 1, x_383); -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_386 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_386, 0, x_377); -lean_ctor_set(x_386, 1, x_385); -x_387 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_387, 0, x_386); -x_16 = x_387; -x_17 = x_380; -goto block_22; -} -else -{ -lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; -lean_dec(x_377); -lean_dec(x_324); -lean_dec(x_316); -lean_dec(x_314); -lean_dec(x_313); -lean_dec(x_311); -lean_dec(x_309); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_388 = lean_ctor_get(x_378, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_378, 1); -lean_inc(x_389); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_390 = x_378; -} else { - lean_dec_ref(x_378); - x_390 = lean_box(0); -} -if (lean_is_scalar(x_390)) { - x_391 = lean_alloc_ctor(1, 2, 0); -} else { - x_391 = x_390; -} -lean_ctor_set(x_391, 0, x_388); -lean_ctor_set(x_391, 1, x_389); -return x_391; -} -} -else -{ -lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; -lean_dec(x_348); -lean_dec(x_337); -lean_dec(x_324); -lean_dec(x_316); -lean_dec(x_314); -lean_dec(x_313); -lean_dec(x_311); -lean_dec(x_310); -lean_dec(x_309); -lean_dec(x_27); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_392 = lean_ctor_get(x_350, 0); -lean_inc(x_392); -x_393 = lean_ctor_get(x_350, 1); -lean_inc(x_393); -if (lean_is_exclusive(x_350)) { - lean_ctor_release(x_350, 0); - lean_ctor_release(x_350, 1); - x_394 = x_350; -} else { - lean_dec_ref(x_350); - x_394 = lean_box(0); -} -if (lean_is_scalar(x_394)) { - x_395 = lean_alloc_ctor(1, 2, 0); -} else { - x_395 = x_394; -} -lean_ctor_set(x_395, 0, x_392); -lean_ctor_set(x_395, 1, x_393); -return x_395; -} -} -else -{ -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_dec(x_27); -lean_dec(x_26); -x_396 = lean_ctor_get(x_320, 0); -lean_inc(x_396); -lean_dec(x_320); -x_397 = lean_array_push(x_309, x_396); -if (lean_is_scalar(x_314)) { - x_398 = lean_alloc_ctor(0, 2, 0); -} else { - x_398 = x_314; -} -lean_ctor_set(x_398, 0, x_316); -lean_ctor_set(x_398, 1, x_313); -if (lean_is_scalar(x_311)) { - x_399 = lean_alloc_ctor(0, 2, 0); -} else { - x_399 = x_311; -} -lean_ctor_set(x_399, 0, x_310); -lean_ctor_set(x_399, 1, x_398); -x_400 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_400, 0, x_397); -lean_ctor_set(x_400, 1, x_399); -x_401 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_401, 0, x_308); -lean_ctor_set(x_401, 1, x_400); -x_402 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_402, 0, x_401); -x_16 = x_402; -x_17 = x_319; -goto block_22; -} -} -else -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -lean_dec(x_316); -lean_dec(x_314); -lean_dec(x_313); -lean_dec(x_311); -lean_dec(x_310); -lean_dec(x_309); -lean_dec(x_308); -lean_dec(x_27); -lean_dec(x_26); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_1); -x_403 = lean_ctor_get(x_317, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_317, 1); -lean_inc(x_404); -if (lean_is_exclusive(x_317)) { - lean_ctor_release(x_317, 0); - lean_ctor_release(x_317, 1); - x_405 = x_317; -} else { - lean_dec_ref(x_317); - x_405 = lean_box(0); -} -if (lean_is_scalar(x_405)) { - x_406 = lean_alloc_ctor(1, 2, 0); -} else { - x_406 = x_405; -} -lean_ctor_set(x_406, 0, x_403); -lean_ctor_set(x_406, 1, x_404); -return x_406; -} -} -block_22: -{ -lean_object* x_18; size_t x_19; size_t x_20; -x_18 = lean_ctor_get(x_16, 0); +x_18 = lean_ctor_get(x_5, 0); lean_inc(x_18); -lean_dec(x_16); -x_19 = 1; -x_20 = lean_usize_add(x_4, x_19); -x_4 = x_20; -x_5 = x_18; -x_12 = x_17; +x_19 = lean_ctor_get(x_5, 1); +lean_inc(x_19); +lean_dec(x_5); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_1); +lean_inc(x_16); +x_26 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2), 16, 2); +lean_closure_set(x_26, 0, x_16); +lean_closure_set(x_26, 1, x_1); +lean_inc(x_16); +x_27 = l_Lean_Server_RpcEncoding_isOptField(x_16); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_26); +x_28 = 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_1); +x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2(x_16, x_1, x_18, x_20, x_22, x_24, x_17, x_25, x_28, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_29, 0); +lean_dec(x_32); +x_33 = lean_ctor_get(x_30, 0); +lean_inc(x_33); +lean_dec(x_30); +lean_ctor_set(x_29, 0, x_33); +return x_29; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_29, 1); +lean_inc(x_34); +lean_dec(x_29); +x_35 = lean_ctor_get(x_30, 0); +lean_inc(x_35); +lean_dec(x_30); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +return x_36; +} +} +else +{ +lean_object* x_37; lean_object* x_38; size_t x_39; size_t x_40; +x_37 = lean_ctor_get(x_29, 1); +lean_inc(x_37); +lean_dec(x_29); +x_38 = lean_ctor_get(x_30, 0); +lean_inc(x_38); +lean_dec(x_30); +x_39 = 1; +x_40 = lean_usize_add(x_4, x_39); +x_4 = x_40; +x_5 = x_38; +x_12 = x_37; goto _start; } } +else +{ +uint8_t x_42; +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_1); +x_42 = !lean_is_exclusive(x_29); +if (x_42 == 0) +{ +return x_29; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_29, 0); +x_44 = lean_ctor_get(x_29, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_29); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +else +{ +lean_object* x_46; uint8_t x_47; +x_46 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4; +x_47 = l_Lean_Expr_isAppOf(x_17, x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +lean_dec(x_26); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_1); +x_48 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_48, 0, x_16); +x_49 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; +x_50 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__4; +x_52 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_53, 0, x_17); +x_54 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6; +x_55 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_53); +x_56 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +x_57 = l_Lean_indentD(x_56); +x_58 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__8; +x_60 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__12; +x_62 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_54); +x_64 = l_Lean_throwError___at___private_Lean_Elab_Term_0__Lean_Elab_Term_applyAttributesCore___spec__1(x_63, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +return x_64; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_64, 0); +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_64); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; +lean_dec(x_16); +x_69 = 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); +x_70 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__3(x_26, x_18, x_20, x_22, x_24, x_25, x_17, x_69, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +if (lean_obj_tag(x_71) == 0) +{ +uint8_t x_72; +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_1); +x_72 = !lean_is_exclusive(x_70); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_70, 0); +lean_dec(x_73); +x_74 = lean_ctor_get(x_71, 0); +lean_inc(x_74); +lean_dec(x_71); +lean_ctor_set(x_70, 0, x_74); +return x_70; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_70, 1); +lean_inc(x_75); +lean_dec(x_70); +x_76 = lean_ctor_get(x_71, 0); +lean_inc(x_76); +lean_dec(x_71); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +} +else +{ +lean_object* x_78; lean_object* x_79; size_t x_80; size_t x_81; +x_78 = lean_ctor_get(x_70, 1); +lean_inc(x_78); +lean_dec(x_70); +x_79 = lean_ctor_get(x_71, 0); +lean_inc(x_79); +lean_dec(x_71); +x_80 = 1; +x_81 = lean_usize_add(x_4, x_80); +x_4 = x_81; +x_5 = x_79; +x_12 = x_78; +goto _start; +} +} +else +{ +uint8_t x_83; +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_1); +x_83 = !lean_is_exclusive(x_70); +if (x_83 == 0) +{ +return x_70; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_70, 0); +x_85 = lean_ctor_get(x_70, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_70); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +} +} +} } } static lean_object* _init_l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__18___closed__1() { @@ -9763,7 +9391,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__13; -x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1; +x_2 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -9980,6 +9608,8 @@ lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); x_17 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17(x_15, x_1, x_13, x_14, x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_17) == 0) { @@ -10034,6 +9664,8 @@ x_39 = lean_usize_of_nat(x_38); lean_dec(x_38); x_40 = l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__20(x_39, x_14, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_37); lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); if (lean_obj_tag(x_40) == 0) { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; @@ -10945,6 +10577,8 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); x_498 = !lean_is_exclusive(x_17); @@ -11048,23 +10682,6 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(""); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__10; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -11114,8 +10731,6 @@ if (x_12 == 0) lean_object* x_14; lean_object* x_15; x_14 = lean_box(0); x_15 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1(x_3, x_1, x_2, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); return x_15; } @@ -11146,7 +10761,7 @@ lean_dec(x_25); x_27 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_27, 0, x_22); lean_ctor_set(x_27, 1, x_26); -x_28 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11; +x_28 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6; x_29 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -11157,8 +10772,6 @@ x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); x_33 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1(x_3, x_1, x_2, x_31, x_4, x_5, x_6, x_7, x_8, x_9, x_32); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_31); lean_dec(x_3); return x_33; @@ -11280,6 +10893,29 @@ lean_dec(x_1); return x_5; } } +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +return x_16; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_8); +return x_16; +} +} LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { @@ -11289,8 +10925,6 @@ lean_dec(x_3); x_14 = lean_unbox_usize(x_4); lean_dec(x_4); x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17(x_1, x_2, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_7); -lean_dec(x_6); lean_dec(x_2); return x_15; } @@ -11402,8 +11036,6 @@ _start: { lean_object* x_12; x_12 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_6); -lean_dec(x_5); lean_dec(x_4); lean_dec(x_1); return x_12; @@ -14395,7 +14027,7 @@ x_76 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_76, 0, x_51); lean_ctor_set(x_76, 1, x_52); lean_ctor_set(x_76, 2, x_75); -x_77 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; +x_77 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2; x_78 = lean_array_push(x_77, x_76); x_79 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; x_80 = lean_alloc_ctor(1, 3, 0); @@ -14446,7 +14078,7 @@ x_101 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_101, 0, x_51); lean_ctor_set(x_101, 1, x_52); lean_ctor_set(x_101, 2, x_100); -x_102 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; +x_102 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2; x_103 = lean_array_push(x_102, x_101); x_104 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; x_105 = lean_alloc_ctor(1, 3, 0); @@ -14662,7 +14294,7 @@ x_175 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_175, 0, x_150); lean_ctor_set(x_175, 1, x_151); lean_ctor_set(x_175, 2, x_174); -x_176 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; +x_176 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2; x_177 = lean_array_push(x_176, x_175); x_178 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; x_179 = lean_alloc_ctor(1, 3, 0); @@ -14931,7 +14563,7 @@ x_256 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_256, 0, x_231); lean_ctor_set(x_256, 1, x_232); lean_ctor_set(x_256, 2, x_255); -x_257 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2; +x_257 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2; x_258 = lean_array_push(x_257, x_256); x_259 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; x_260 = lean_alloc_ctor(1, 3, 0); @@ -16594,7 +16226,7 @@ else lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_19 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_19, 0, x_5); -x_20 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11; +x_20 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6; x_21 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_19); @@ -17493,7 +17125,7 @@ lean_dec(x_12); x_56 = !lean_is_exclusive(x_55); if (x_56 == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; size_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; size_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; size_t x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; size_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; size_t x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; size_t x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; x_57 = lean_ctor_get(x_55, 0); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); @@ -17582,802 +17214,876 @@ x_96 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_96, 0, x_41); lean_ctor_set(x_96, 1, x_64); lean_ctor_set(x_96, 2, x_95); +x_97 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__30; +lean_inc(x_52); +x_98 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_98, 0, x_52); +lean_ctor_set(x_98, 1, x_97); +x_99 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__34; lean_inc(x_70); -x_97 = lean_array_push(x_88, x_70); -x_98 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__29; -lean_inc(x_97); -x_99 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_99, 0, x_41); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set(x_99, 2, x_97); -x_100 = lean_array_push(x_71, x_81); -x_101 = lean_array_push(x_100, x_45); -x_102 = lean_array_push(x_101, x_85); -x_103 = lean_array_push(x_102, x_90); -x_104 = lean_array_push(x_103, x_96); -x_105 = lean_array_push(x_104, x_99); -x_106 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__2; +x_100 = lean_array_push(x_99, x_70); +x_101 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__218; +x_102 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_102, 0, x_41); +lean_ctor_set(x_102, 1, x_101); +lean_ctor_set(x_102, 2, x_100); +x_103 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__37; +lean_inc(x_52); +x_104 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_104, 0, x_52); +lean_ctor_set(x_104, 1, x_103); +x_105 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__41; +lean_inc(x_70); +x_106 = lean_array_push(x_105, x_70); x_107 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_107, 0, x_41); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_107, 2, x_105); -x_108 = lean_array_push(x_38, x_79); -lean_inc(x_108); -x_109 = lean_array_push(x_108, x_107); -x_110 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__37; -x_111 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_111, 0, x_41); -lean_ctor_set(x_111, 1, x_110); -lean_ctor_set(x_111, 2, x_109); -x_112 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__124; -x_113 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_113, 0, x_41); -lean_ctor_set(x_113, 1, x_112); -lean_ctor_set(x_113, 2, x_97); -x_114 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__205; +lean_ctor_set(x_107, 1, x_101); +lean_ctor_set(x_107, 2, x_106); +x_108 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__33; +x_109 = lean_array_push(x_108, x_102); +x_110 = lean_array_push(x_109, x_104); +x_111 = lean_array_push(x_110, x_107); +x_112 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_112, 0, x_41); +lean_ctor_set(x_112, 1, x_64); +lean_ctor_set(x_112, 2, x_111); +x_113 = lean_array_push(x_38, x_98); +x_114 = lean_array_push(x_113, x_112); +x_115 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_115, 0, x_41); +lean_ctor_set(x_115, 1, x_64); +lean_ctor_set(x_115, 2, x_114); +x_116 = lean_array_push(x_88, x_115); +x_117 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__29; +x_118 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_118, 0, x_41); +lean_ctor_set(x_118, 1, x_117); +lean_ctor_set(x_118, 2, x_116); +x_119 = lean_array_push(x_71, x_81); +x_120 = lean_array_push(x_119, x_45); +x_121 = lean_array_push(x_120, x_85); +x_122 = lean_array_push(x_121, x_90); +x_123 = lean_array_push(x_122, x_96); +x_124 = lean_array_push(x_123, x_118); +x_125 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__2; +x_126 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_126, 0, x_41); +lean_ctor_set(x_126, 1, x_125); +lean_ctor_set(x_126, 2, x_124); +x_127 = lean_array_push(x_38, x_79); +lean_inc(x_127); +x_128 = lean_array_push(x_127, x_126); +x_129 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__37; +x_130 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_130, 0, x_41); +lean_ctor_set(x_130, 1, x_129); +lean_ctor_set(x_130, 2, x_128); +lean_inc(x_70); +x_131 = lean_array_push(x_88, x_70); +x_132 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__124; +x_133 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_133, 0, x_41); +lean_ctor_set(x_133, 1, x_132); +lean_ctor_set(x_133, 2, x_131); +x_134 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__205; lean_inc(x_52); -x_115 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_115, 0, x_52); -lean_ctor_set(x_115, 1, x_114); -x_116 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__26; +x_135 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_135, 0, x_52); +lean_ctor_set(x_135, 1, x_134); +x_136 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__26; lean_inc(x_52); -x_117 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_117, 0, x_52); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_array_push(x_38, x_44); -x_119 = lean_array_push(x_118, x_50); -x_120 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_120, 0, x_41); -lean_ctor_set(x_120, 1, x_64); -lean_ctor_set(x_120, 2, x_119); -x_121 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__48; -x_122 = lean_array_push(x_121, x_120); -x_123 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; -x_124 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_124, 0, x_41); -lean_ctor_set(x_124, 1, x_123); -lean_ctor_set(x_124, 2, x_122); -x_125 = lean_array_push(x_38, x_117); -x_126 = lean_array_push(x_125, x_124); -x_127 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__95; -x_128 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_128, 0, x_41); -lean_ctor_set(x_128, 1, x_127); -lean_ctor_set(x_128, 2, x_126); -lean_inc(x_82); -x_129 = lean_array_push(x_82, x_128); -x_130 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__143; -x_131 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_131, 0, x_41); -lean_ctor_set(x_131, 1, x_130); -lean_ctor_set(x_131, 2, x_129); -x_132 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__226; -lean_inc(x_54); -lean_inc(x_59); -x_133 = l_Lean_addMacroScope(x_59, x_132, x_54); -x_134 = lean_box(0); -x_135 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__225; -x_136 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__59; -lean_inc(x_52); -x_137 = lean_alloc_ctor(3, 4, 0); +x_137 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_137, 0, x_52); -lean_ctor_set(x_137, 1, x_135); -lean_ctor_set(x_137, 2, x_133); -lean_ctor_set(x_137, 3, x_136); -x_138 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__109; -lean_inc(x_52); -x_139 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_139, 0, x_52); -lean_ctor_set(x_139, 1, x_138); -x_140 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__3; -lean_inc(x_52); -x_141 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_141, 0, x_52); -lean_ctor_set(x_141, 1, x_140); -x_142 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__10; +lean_ctor_set(x_137, 1, x_136); +x_138 = lean_array_push(x_38, x_44); +x_139 = lean_array_push(x_138, x_50); +x_140 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_140, 0, x_41); +lean_ctor_set(x_140, 1, x_64); +lean_ctor_set(x_140, 2, x_139); +x_141 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__48; +x_142 = lean_array_push(x_141, x_140); +x_143 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; +x_144 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_144, 0, x_41); +lean_ctor_set(x_144, 1, x_143); +lean_ctor_set(x_144, 2, x_142); +x_145 = lean_array_push(x_38, x_137); +x_146 = lean_array_push(x_145, x_144); +x_147 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__95; +x_148 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_148, 0, x_41); +lean_ctor_set(x_148, 1, x_147); +lean_ctor_set(x_148, 2, x_146); +lean_inc(x_82); +x_149 = lean_array_push(x_82, x_148); +x_150 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__143; +x_151 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_151, 0, x_41); +lean_ctor_set(x_151, 1, x_150); +lean_ctor_set(x_151, 2, x_149); +x_152 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__226; lean_inc(x_54); lean_inc(x_59); -x_143 = l_Lean_addMacroScope(x_59, x_142, x_54); -x_144 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__9; +x_153 = l_Lean_addMacroScope(x_59, x_152, x_54); +x_154 = lean_box(0); +x_155 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__225; +x_156 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__59; lean_inc(x_52); -x_145 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_145, 0, x_52); -lean_ctor_set(x_145, 1, x_144); -lean_ctor_set(x_145, 2, x_143); -lean_ctor_set(x_145, 3, x_134); -lean_inc(x_145); -x_146 = lean_array_push(x_88, x_145); -x_147 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_147, 0, x_41); -lean_ctor_set(x_147, 1, x_64); -lean_ctor_set(x_147, 2, x_146); -x_148 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__3___closed__6; +x_157 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_157, 0, x_52); +lean_ctor_set(x_157, 1, x_155); +lean_ctor_set(x_157, 2, x_153); +lean_ctor_set(x_157, 3, x_156); +x_158 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__109; lean_inc(x_52); -x_149 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_149, 0, x_52); -lean_ctor_set(x_149, 1, x_148); -x_150 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__11; +x_159 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_159, 0, x_52); +lean_ctor_set(x_159, 1, x_158); +x_160 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__3; lean_inc(x_52); -x_151 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_151, 0, x_52); -lean_ctor_set(x_151, 1, x_150); -x_152 = lean_array_push(x_82, x_145); -x_153 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__14; -x_154 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_154, 0, x_41); -lean_ctor_set(x_154, 1, x_153); -lean_ctor_set(x_154, 2, x_152); -x_155 = lean_array_push(x_88, x_154); -x_156 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_156, 0, x_41); -lean_ctor_set(x_156, 1, x_64); -lean_ctor_set(x_156, 2, x_155); -x_157 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__15; +x_161 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_161, 0, x_52); +lean_ctor_set(x_161, 1, x_160); +x_162 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__10; +lean_inc(x_54); +lean_inc(x_59); +x_163 = l_Lean_addMacroScope(x_59, x_162, x_54); +x_164 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__9; lean_inc(x_52); -x_158 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_158, 0, x_52); -lean_ctor_set(x_158, 1, x_157); -x_159 = lean_ctor_get(x_21, 4); -lean_inc(x_159); -x_160 = lean_array_get_size(x_159); -x_161 = lean_usize_of_nat(x_160); -lean_dec(x_160); -x_162 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_161, x_1, x_159); -lean_inc(x_2); -x_163 = l_Array_append___rarg(x_2, x_162); -x_164 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_164, 0, x_41); -lean_ctor_set(x_164, 1, x_64); -lean_ctor_set(x_164, 2, x_163); -x_165 = lean_array_push(x_88, x_164); -x_166 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__17; +x_165 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_165, 0, x_52); +lean_ctor_set(x_165, 1, x_164); +lean_ctor_set(x_165, 2, x_163); +lean_ctor_set(x_165, 3, x_154); +lean_inc(x_165); +x_166 = lean_array_push(x_88, x_165); x_167 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_167, 0, x_41); -lean_ctor_set(x_167, 1, x_166); -lean_ctor_set(x_167, 2, x_165); -x_168 = lean_array_push(x_71, x_151); -lean_inc(x_70); -x_169 = lean_array_push(x_168, x_70); -lean_inc(x_70); -x_170 = lean_array_push(x_169, x_70); -x_171 = lean_array_push(x_170, x_156); -x_172 = lean_array_push(x_171, x_158); -lean_inc(x_172); -x_173 = lean_array_push(x_172, x_167); -x_174 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__12; -x_175 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_175, 0, x_41); -lean_ctor_set(x_175, 1, x_174); -lean_ctor_set(x_175, 2, x_173); -x_176 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__33; -x_177 = lean_array_push(x_176, x_147); -x_178 = lean_array_push(x_177, x_149); -lean_inc(x_178); -x_179 = lean_array_push(x_178, x_175); -x_180 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__6; -x_181 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_181, 0, x_41); -lean_ctor_set(x_181, 1, x_180); -lean_ctor_set(x_181, 2, x_179); -x_182 = lean_array_push(x_38, x_141); -lean_inc(x_182); -x_183 = lean_array_push(x_182, x_181); -x_184 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__4; -x_185 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_185, 0, x_41); -lean_ctor_set(x_185, 1, x_184); -lean_ctor_set(x_185, 2, x_183); -x_186 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; -x_187 = lean_array_push(x_186, x_137); -lean_inc(x_70); -x_188 = lean_array_push(x_187, x_70); +lean_ctor_set(x_167, 1, x_64); +lean_ctor_set(x_167, 2, x_166); +x_168 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__3___closed__6; +lean_inc(x_52); +x_169 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_169, 0, x_52); +lean_ctor_set(x_169, 1, x_168); +x_170 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__11; +lean_inc(x_52); +x_171 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_171, 0, x_52); +lean_ctor_set(x_171, 1, x_170); +x_172 = lean_array_push(x_82, x_165); +x_173 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__14; +x_174 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_174, 0, x_41); +lean_ctor_set(x_174, 1, x_173); +lean_ctor_set(x_174, 2, x_172); +x_175 = lean_array_push(x_88, x_174); +x_176 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_176, 0, x_41); +lean_ctor_set(x_176, 1, x_64); +lean_ctor_set(x_176, 2, x_175); +x_177 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__15; +lean_inc(x_52); +x_178 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_178, 0, x_52); +lean_ctor_set(x_178, 1, x_177); +x_179 = lean_ctor_get(x_21, 4); +lean_inc(x_179); +x_180 = lean_array_get_size(x_179); +x_181 = lean_usize_of_nat(x_180); +lean_dec(x_180); +x_182 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_181, x_1, x_179); +lean_inc(x_2); +x_183 = l_Array_append___rarg(x_2, x_182); +x_184 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_184, 0, x_41); +lean_ctor_set(x_184, 1, x_64); +lean_ctor_set(x_184, 2, x_183); +x_185 = lean_array_push(x_88, x_184); +x_186 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__17; +x_187 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_187, 0, x_41); +lean_ctor_set(x_187, 1, x_186); +lean_ctor_set(x_187, 2, x_185); +x_188 = lean_array_push(x_71, x_171); lean_inc(x_70); x_189 = lean_array_push(x_188, x_70); -lean_inc(x_139); -x_190 = lean_array_push(x_189, x_139); -x_191 = lean_array_push(x_190, x_185); -x_192 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__57; -x_193 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_193, 0, x_41); -lean_ctor_set(x_193, 1, x_192); -lean_ctor_set(x_193, 2, x_191); -x_194 = lean_array_push(x_88, x_193); -x_195 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__55; -x_196 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_196, 0, x_41); -lean_ctor_set(x_196, 1, x_195); -lean_ctor_set(x_196, 2, x_194); -x_197 = lean_array_push(x_88, x_196); -x_198 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__53; -x_199 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_199, 0, x_41); -lean_ctor_set(x_199, 1, x_198); -lean_ctor_set(x_199, 2, x_197); -x_200 = lean_array_push(x_38, x_199); lean_inc(x_70); -x_201 = lean_array_push(x_200, x_70); -x_202 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__218; -x_203 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_203, 0, x_41); -lean_ctor_set(x_203, 1, x_202); -lean_ctor_set(x_203, 2, x_201); -x_204 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__233; -x_205 = l_Lean_addMacroScope(x_59, x_204, x_54); -x_206 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__232; -x_207 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__236; -x_208 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_208, 0, x_52); -lean_ctor_set(x_208, 1, x_206); -lean_ctor_set(x_208, 2, x_205); -lean_ctor_set(x_208, 3, x_207); -x_209 = lean_ctor_get(x_21, 5); -lean_inc(x_209); -lean_dec(x_21); -x_210 = lean_array_get_size(x_209); -x_211 = lean_usize_of_nat(x_210); -lean_dec(x_210); -x_212 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_211, x_1, x_209); -x_213 = l_Array_append___rarg(x_2, x_212); -x_214 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_214, 0, x_41); -lean_ctor_set(x_214, 1, x_64); -lean_ctor_set(x_214, 2, x_213); -x_215 = lean_array_push(x_88, x_214); -x_216 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_216, 0, x_41); -lean_ctor_set(x_216, 1, x_166); -lean_ctor_set(x_216, 2, x_215); -x_217 = lean_array_push(x_172, x_216); +x_190 = lean_array_push(x_189, x_70); +x_191 = lean_array_push(x_190, x_176); +x_192 = lean_array_push(x_191, x_178); +lean_inc(x_192); +x_193 = lean_array_push(x_192, x_187); +x_194 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__12; +x_195 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_195, 0, x_41); +lean_ctor_set(x_195, 1, x_194); +lean_ctor_set(x_195, 2, x_193); +x_196 = lean_array_push(x_108, x_167); +x_197 = lean_array_push(x_196, x_169); +lean_inc(x_197); +x_198 = lean_array_push(x_197, x_195); +x_199 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__6; +x_200 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_200, 0, x_41); +lean_ctor_set(x_200, 1, x_199); +lean_ctor_set(x_200, 2, x_198); +x_201 = lean_array_push(x_38, x_161); +lean_inc(x_201); +x_202 = lean_array_push(x_201, x_200); +x_203 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__4; +x_204 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_204, 0, x_41); +lean_ctor_set(x_204, 1, x_203); +lean_ctor_set(x_204, 2, x_202); +x_205 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; +x_206 = lean_array_push(x_205, x_157); +lean_inc(x_70); +x_207 = lean_array_push(x_206, x_70); +lean_inc(x_70); +x_208 = lean_array_push(x_207, x_70); +lean_inc(x_159); +x_209 = lean_array_push(x_208, x_159); +x_210 = lean_array_push(x_209, x_204); +x_211 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__57; +x_212 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_212, 0, x_41); +lean_ctor_set(x_212, 1, x_211); +lean_ctor_set(x_212, 2, x_210); +x_213 = lean_array_push(x_88, x_212); +x_214 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__55; +x_215 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_215, 0, x_41); +lean_ctor_set(x_215, 1, x_214); +lean_ctor_set(x_215, 2, x_213); +x_216 = lean_array_push(x_88, x_215); +x_217 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__53; x_218 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_218, 0, x_41); -lean_ctor_set(x_218, 1, x_174); -lean_ctor_set(x_218, 2, x_217); -x_219 = lean_array_push(x_178, x_218); -x_220 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_220, 0, x_41); -lean_ctor_set(x_220, 1, x_180); -lean_ctor_set(x_220, 2, x_219); -x_221 = lean_array_push(x_182, x_220); -x_222 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_222, 0, x_41); -lean_ctor_set(x_222, 1, x_184); -lean_ctor_set(x_222, 2, x_221); -x_223 = lean_array_push(x_186, x_208); +lean_ctor_set(x_218, 1, x_217); +lean_ctor_set(x_218, 2, x_216); +x_219 = lean_array_push(x_38, x_218); lean_inc(x_70); -x_224 = lean_array_push(x_223, x_70); -lean_inc(x_70); -x_225 = lean_array_push(x_224, x_70); -x_226 = lean_array_push(x_225, x_139); -x_227 = lean_array_push(x_226, x_222); -x_228 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_228, 0, x_41); -lean_ctor_set(x_228, 1, x_192); -lean_ctor_set(x_228, 2, x_227); -x_229 = lean_array_push(x_88, x_228); -x_230 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_230, 0, x_41); -lean_ctor_set(x_230, 1, x_195); -lean_ctor_set(x_230, 2, x_229); -x_231 = lean_array_push(x_88, x_230); +x_220 = lean_array_push(x_219, x_70); +x_221 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_221, 0, x_41); +lean_ctor_set(x_221, 1, x_101); +lean_ctor_set(x_221, 2, x_220); +x_222 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__233; +x_223 = l_Lean_addMacroScope(x_59, x_222, x_54); +x_224 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__232; +x_225 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__236; +x_226 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_226, 0, x_52); +lean_ctor_set(x_226, 1, x_224); +lean_ctor_set(x_226, 2, x_223); +lean_ctor_set(x_226, 3, x_225); +x_227 = lean_ctor_get(x_21, 5); +lean_inc(x_227); +lean_dec(x_21); +x_228 = lean_array_get_size(x_227); +x_229 = lean_usize_of_nat(x_228); +lean_dec(x_228); +x_230 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_229, x_1, x_227); +x_231 = l_Array_append___rarg(x_2, x_230); x_232 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_232, 0, x_41); -lean_ctor_set(x_232, 1, x_198); +lean_ctor_set(x_232, 1, x_64); lean_ctor_set(x_232, 2, x_231); -x_233 = lean_array_push(x_38, x_232); -lean_inc(x_70); -x_234 = lean_array_push(x_233, x_70); -x_235 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_235, 0, x_41); -lean_ctor_set(x_235, 1, x_202); -lean_ctor_set(x_235, 2, x_234); -x_236 = lean_array_push(x_38, x_203); -x_237 = lean_array_push(x_236, x_235); +x_233 = lean_array_push(x_88, x_232); +x_234 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_234, 0, x_41); +lean_ctor_set(x_234, 1, x_186); +lean_ctor_set(x_234, 2, x_233); +x_235 = lean_array_push(x_192, x_234); +x_236 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_236, 0, x_41); +lean_ctor_set(x_236, 1, x_194); +lean_ctor_set(x_236, 2, x_235); +x_237 = lean_array_push(x_197, x_236); x_238 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_238, 0, x_41); -lean_ctor_set(x_238, 1, x_64); +lean_ctor_set(x_238, 1, x_199); lean_ctor_set(x_238, 2, x_237); -x_239 = lean_array_push(x_38, x_87); -x_240 = lean_array_push(x_239, x_238); -x_241 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__51; -x_242 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_242, 0, x_41); -lean_ctor_set(x_242, 1, x_241); -lean_ctor_set(x_242, 2, x_240); -x_243 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__240; -x_244 = lean_array_push(x_243, x_113); -x_245 = lean_array_push(x_244, x_115); +x_239 = lean_array_push(x_201, x_238); +x_240 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_240, 0, x_41); +lean_ctor_set(x_240, 1, x_203); +lean_ctor_set(x_240, 2, x_239); +x_241 = lean_array_push(x_205, x_226); lean_inc(x_70); -x_246 = lean_array_push(x_245, x_70); +x_242 = lean_array_push(x_241, x_70); lean_inc(x_70); -x_247 = lean_array_push(x_246, x_70); -x_248 = lean_array_push(x_247, x_131); -x_249 = lean_array_push(x_248, x_242); +x_243 = lean_array_push(x_242, x_70); +x_244 = lean_array_push(x_243, x_159); +x_245 = lean_array_push(x_244, x_240); +x_246 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_246, 0, x_41); +lean_ctor_set(x_246, 1, x_211); +lean_ctor_set(x_246, 2, x_245); +x_247 = lean_array_push(x_88, x_246); +x_248 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_248, 0, x_41); +lean_ctor_set(x_248, 1, x_214); +lean_ctor_set(x_248, 2, x_247); +x_249 = lean_array_push(x_88, x_248); +x_250 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_250, 0, x_41); +lean_ctor_set(x_250, 1, x_217); +lean_ctor_set(x_250, 2, x_249); +x_251 = lean_array_push(x_38, x_250); lean_inc(x_70); -x_250 = lean_array_push(x_249, x_70); -x_251 = lean_array_push(x_250, x_70); -x_252 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__206; +x_252 = lean_array_push(x_251, x_70); x_253 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_253, 0, x_41); -lean_ctor_set(x_253, 1, x_252); -lean_ctor_set(x_253, 2, x_251); -x_254 = lean_array_push(x_108, x_253); -x_255 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_255, 0, x_41); -lean_ctor_set(x_255, 1, x_110); -lean_ctor_set(x_255, 2, x_254); -x_256 = lean_array_push(x_176, x_69); -x_257 = lean_array_push(x_256, x_111); -x_258 = lean_array_push(x_257, x_255); -x_259 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_259, 0, x_41); -lean_ctor_set(x_259, 1, x_64); -lean_ctor_set(x_259, 2, x_258); -lean_ctor_set(x_55, 0, x_259); +lean_ctor_set(x_253, 1, x_101); +lean_ctor_set(x_253, 2, x_252); +x_254 = lean_array_push(x_38, x_221); +x_255 = lean_array_push(x_254, x_253); +x_256 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_256, 0, x_41); +lean_ctor_set(x_256, 1, x_64); +lean_ctor_set(x_256, 2, x_255); +x_257 = lean_array_push(x_38, x_87); +x_258 = lean_array_push(x_257, x_256); +x_259 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__51; +x_260 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_260, 0, x_41); +lean_ctor_set(x_260, 1, x_259); +lean_ctor_set(x_260, 2, x_258); +x_261 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__240; +x_262 = lean_array_push(x_261, x_133); +x_263 = lean_array_push(x_262, x_135); +lean_inc(x_70); +x_264 = lean_array_push(x_263, x_70); +lean_inc(x_70); +x_265 = lean_array_push(x_264, x_70); +x_266 = lean_array_push(x_265, x_151); +x_267 = lean_array_push(x_266, x_260); +lean_inc(x_70); +x_268 = lean_array_push(x_267, x_70); +x_269 = lean_array_push(x_268, x_70); +x_270 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__206; +x_271 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_271, 0, x_41); +lean_ctor_set(x_271, 1, x_270); +lean_ctor_set(x_271, 2, x_269); +x_272 = lean_array_push(x_127, x_271); +x_273 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_273, 0, x_41); +lean_ctor_set(x_273, 1, x_129); +lean_ctor_set(x_273, 2, x_272); +x_274 = lean_array_push(x_108, x_69); +x_275 = lean_array_push(x_274, x_130); +x_276 = lean_array_push(x_275, x_273); +x_277 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_277, 0, x_41); +lean_ctor_set(x_277, 1, x_64); +lean_ctor_set(x_277, 2, x_276); +lean_ctor_set(x_55, 0, x_277); return x_55; } else { -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; size_t x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; size_t x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; size_t 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; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; -x_260 = lean_ctor_get(x_55, 0); -x_261 = lean_ctor_get(x_55, 1); -lean_inc(x_261); -lean_inc(x_260); +lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; size_t x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; size_t x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; size_t x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; +x_278 = lean_ctor_get(x_55, 0); +x_279 = lean_ctor_get(x_55, 1); +lean_inc(x_279); +lean_inc(x_278); lean_dec(x_55); -x_262 = lean_ctor_get(x_260, 0); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_environment_main_module(x_262); -x_264 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__14; +x_280 = lean_ctor_get(x_278, 0); +lean_inc(x_280); +lean_dec(x_278); +x_281 = lean_environment_main_module(x_280); +x_282 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__14; lean_inc(x_52); -x_265 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_265, 0, x_52); -lean_ctor_set(x_265, 1, x_264); -x_266 = lean_ctor_get(x_21, 2); -lean_inc(x_266); -lean_inc(x_2); -x_267 = l_Array_append___rarg(x_2, x_266); -x_268 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; -x_269 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_269, 0, x_41); -lean_ctor_set(x_269, 1, x_268); -lean_ctor_set(x_269, 2, x_267); -x_270 = lean_array_push(x_38, x_265); -x_271 = lean_array_push(x_270, x_269); -x_272 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__15; -x_273 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_273, 0, x_41); -lean_ctor_set(x_273, 1, x_272); -lean_ctor_set(x_273, 2, x_271); -lean_inc(x_2); -x_274 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_274, 0, x_41); -lean_ctor_set(x_274, 1, x_268); -lean_ctor_set(x_274, 2, x_2); -x_275 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__42; -lean_inc(x_274); -x_276 = lean_array_push(x_275, x_274); -lean_inc(x_274); -x_277 = lean_array_push(x_276, x_274); -lean_inc(x_274); -x_278 = lean_array_push(x_277, x_274); -lean_inc(x_274); -x_279 = lean_array_push(x_278, x_274); -lean_inc(x_274); -x_280 = lean_array_push(x_279, x_274); -lean_inc(x_274); -x_281 = lean_array_push(x_280, x_274); -x_282 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__39; -x_283 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_283, 0, x_41); +x_283 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_283, 0, x_52); lean_ctor_set(x_283, 1, x_282); -lean_ctor_set(x_283, 2, x_281); -x_284 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__1; -lean_inc(x_52); -x_285 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_285, 0, x_52); -lean_ctor_set(x_285, 1, x_284); -lean_inc(x_274); -x_286 = lean_array_push(x_38, x_274); -lean_inc(x_274); -lean_inc(x_286); -x_287 = lean_array_push(x_286, x_274); -x_288 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__56; -x_289 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_289, 0, x_41); -lean_ctor_set(x_289, 1, x_288); -lean_ctor_set(x_289, 2, x_287); -x_290 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__25; -lean_inc(x_52); -x_291 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_291, 0, x_52); -lean_ctor_set(x_291, 1, x_290); -x_292 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; -lean_inc(x_291); -x_293 = lean_array_push(x_292, x_291); -x_294 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_294, 0, x_41); -lean_ctor_set(x_294, 1, x_268); -lean_ctor_set(x_294, 2, x_293); -x_295 = lean_ctor_get(x_21, 3); -lean_inc(x_295); -x_296 = lean_array_get_size(x_295); -x_297 = lean_usize_of_nat(x_296); -lean_dec(x_296); -x_298 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_297, x_1, x_295); +x_284 = lean_ctor_get(x_21, 2); +lean_inc(x_284); lean_inc(x_2); -x_299 = l_Array_append___rarg(x_2, x_298); -x_300 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_300, 0, x_41); -lean_ctor_set(x_300, 1, x_268); -lean_ctor_set(x_300, 2, x_299); -lean_inc(x_274); -x_301 = lean_array_push(x_292, x_274); -x_302 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__29; -lean_inc(x_301); -x_303 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_303, 0, x_41); +x_285 = l_Array_append___rarg(x_2, x_284); +x_286 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__2; +x_287 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_287, 0, x_41); +lean_ctor_set(x_287, 1, x_286); +lean_ctor_set(x_287, 2, x_285); +x_288 = lean_array_push(x_38, x_283); +x_289 = lean_array_push(x_288, x_287); +x_290 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__15; +x_291 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_291, 0, x_41); +lean_ctor_set(x_291, 1, x_290); +lean_ctor_set(x_291, 2, x_289); +lean_inc(x_2); +x_292 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_292, 0, x_41); +lean_ctor_set(x_292, 1, x_286); +lean_ctor_set(x_292, 2, x_2); +x_293 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__42; +lean_inc(x_292); +x_294 = lean_array_push(x_293, x_292); +lean_inc(x_292); +x_295 = lean_array_push(x_294, x_292); +lean_inc(x_292); +x_296 = lean_array_push(x_295, x_292); +lean_inc(x_292); +x_297 = lean_array_push(x_296, x_292); +lean_inc(x_292); +x_298 = lean_array_push(x_297, x_292); +lean_inc(x_292); +x_299 = lean_array_push(x_298, x_292); +x_300 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__39; +x_301 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_301, 0, x_41); +lean_ctor_set(x_301, 1, x_300); +lean_ctor_set(x_301, 2, x_299); +x_302 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__1; +lean_inc(x_52); +x_303 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_303, 0, x_52); lean_ctor_set(x_303, 1, x_302); -lean_ctor_set(x_303, 2, x_301); -x_304 = lean_array_push(x_275, x_285); -x_305 = lean_array_push(x_304, x_45); -x_306 = lean_array_push(x_305, x_289); -x_307 = lean_array_push(x_306, x_294); -x_308 = lean_array_push(x_307, x_300); -x_309 = lean_array_push(x_308, x_303); -x_310 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__2; -x_311 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_311, 0, x_41); -lean_ctor_set(x_311, 1, x_310); -lean_ctor_set(x_311, 2, x_309); -x_312 = lean_array_push(x_38, x_283); -lean_inc(x_312); -x_313 = lean_array_push(x_312, x_311); -x_314 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__37; -x_315 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_315, 0, x_41); -lean_ctor_set(x_315, 1, x_314); -lean_ctor_set(x_315, 2, x_313); -x_316 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__124; -x_317 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_317, 0, x_41); -lean_ctor_set(x_317, 1, x_316); -lean_ctor_set(x_317, 2, x_301); -x_318 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__205; +lean_inc(x_292); +x_304 = lean_array_push(x_38, x_292); +lean_inc(x_292); +lean_inc(x_304); +x_305 = lean_array_push(x_304, x_292); +x_306 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__56; +x_307 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_307, 0, x_41); +lean_ctor_set(x_307, 1, x_306); +lean_ctor_set(x_307, 2, x_305); +x_308 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__25; lean_inc(x_52); -x_319 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_319, 0, x_52); -lean_ctor_set(x_319, 1, x_318); -x_320 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__26; +x_309 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_309, 0, x_52); +lean_ctor_set(x_309, 1, x_308); +x_310 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__25; +lean_inc(x_309); +x_311 = lean_array_push(x_310, x_309); +x_312 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_312, 0, x_41); +lean_ctor_set(x_312, 1, x_286); +lean_ctor_set(x_312, 2, x_311); +x_313 = lean_ctor_get(x_21, 3); +lean_inc(x_313); +x_314 = lean_array_get_size(x_313); +x_315 = lean_usize_of_nat(x_314); +lean_dec(x_314); +x_316 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_315, x_1, x_313); +lean_inc(x_2); +x_317 = l_Array_append___rarg(x_2, x_316); +x_318 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_318, 0, x_41); +lean_ctor_set(x_318, 1, x_286); +lean_ctor_set(x_318, 2, x_317); +x_319 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__30; lean_inc(x_52); -x_321 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_321, 0, x_52); -lean_ctor_set(x_321, 1, x_320); -x_322 = lean_array_push(x_38, x_44); -x_323 = lean_array_push(x_322, x_50); +x_320 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_320, 0, x_52); +lean_ctor_set(x_320, 1, x_319); +x_321 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__34; +lean_inc(x_292); +x_322 = lean_array_push(x_321, x_292); +x_323 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__218; x_324 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_324, 0, x_41); -lean_ctor_set(x_324, 1, x_268); -lean_ctor_set(x_324, 2, x_323); -x_325 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__48; -x_326 = lean_array_push(x_325, x_324); -x_327 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; -x_328 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_328, 0, x_41); -lean_ctor_set(x_328, 1, x_327); -lean_ctor_set(x_328, 2, x_326); -x_329 = lean_array_push(x_38, x_321); -x_330 = lean_array_push(x_329, x_328); -x_331 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__95; -x_332 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_332, 0, x_41); -lean_ctor_set(x_332, 1, x_331); -lean_ctor_set(x_332, 2, x_330); -lean_inc(x_286); -x_333 = lean_array_push(x_286, x_332); -x_334 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__143; -x_335 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_335, 0, x_41); -lean_ctor_set(x_335, 1, x_334); -lean_ctor_set(x_335, 2, x_333); -x_336 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__226; -lean_inc(x_54); -lean_inc(x_263); -x_337 = l_Lean_addMacroScope(x_263, x_336, x_54); -x_338 = lean_box(0); -x_339 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__225; -x_340 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__59; +lean_ctor_set(x_324, 1, x_323); +lean_ctor_set(x_324, 2, x_322); +x_325 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__37; lean_inc(x_52); -x_341 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_341, 0, x_52); -lean_ctor_set(x_341, 1, x_339); -lean_ctor_set(x_341, 2, x_337); -lean_ctor_set(x_341, 3, x_340); -x_342 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__109; -lean_inc(x_52); -x_343 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_343, 0, x_52); -lean_ctor_set(x_343, 1, x_342); -x_344 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__3; -lean_inc(x_52); -x_345 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_345, 0, x_52); -lean_ctor_set(x_345, 1, x_344); -x_346 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__10; -lean_inc(x_54); -lean_inc(x_263); -x_347 = l_Lean_addMacroScope(x_263, x_346, x_54); -x_348 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__9; -lean_inc(x_52); -x_349 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_349, 0, x_52); -lean_ctor_set(x_349, 1, x_348); -lean_ctor_set(x_349, 2, x_347); -lean_ctor_set(x_349, 3, x_338); +x_326 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_326, 0, x_52); +lean_ctor_set(x_326, 1, x_325); +x_327 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__41; +lean_inc(x_292); +x_328 = lean_array_push(x_327, x_292); +x_329 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_329, 0, x_41); +lean_ctor_set(x_329, 1, x_323); +lean_ctor_set(x_329, 2, x_328); +x_330 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__33; +x_331 = lean_array_push(x_330, x_324); +x_332 = lean_array_push(x_331, x_326); +x_333 = lean_array_push(x_332, x_329); +x_334 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_334, 0, x_41); +lean_ctor_set(x_334, 1, x_286); +lean_ctor_set(x_334, 2, x_333); +x_335 = lean_array_push(x_38, x_320); +x_336 = lean_array_push(x_335, x_334); +x_337 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_337, 0, x_41); +lean_ctor_set(x_337, 1, x_286); +lean_ctor_set(x_337, 2, x_336); +x_338 = lean_array_push(x_310, x_337); +x_339 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__29; +x_340 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_340, 0, x_41); +lean_ctor_set(x_340, 1, x_339); +lean_ctor_set(x_340, 2, x_338); +x_341 = lean_array_push(x_293, x_303); +x_342 = lean_array_push(x_341, x_45); +x_343 = lean_array_push(x_342, x_307); +x_344 = lean_array_push(x_343, x_312); +x_345 = lean_array_push(x_344, x_318); +x_346 = lean_array_push(x_345, x_340); +x_347 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__2; +x_348 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_348, 0, x_41); +lean_ctor_set(x_348, 1, x_347); +lean_ctor_set(x_348, 2, x_346); +x_349 = lean_array_push(x_38, x_301); lean_inc(x_349); -x_350 = lean_array_push(x_292, x_349); -x_351 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_351, 0, x_41); -lean_ctor_set(x_351, 1, x_268); -lean_ctor_set(x_351, 2, x_350); -x_352 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__3___closed__6; -lean_inc(x_52); -x_353 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_353, 0, x_52); -lean_ctor_set(x_353, 1, x_352); -x_354 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__11; -lean_inc(x_52); -x_355 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_355, 0, x_52); +x_350 = lean_array_push(x_349, x_348); +x_351 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__37; +x_352 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_352, 0, x_41); +lean_ctor_set(x_352, 1, x_351); +lean_ctor_set(x_352, 2, x_350); +lean_inc(x_292); +x_353 = lean_array_push(x_310, x_292); +x_354 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__124; +x_355 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_355, 0, x_41); lean_ctor_set(x_355, 1, x_354); -x_356 = lean_array_push(x_286, x_349); -x_357 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__14; -x_358 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_358, 0, x_41); -lean_ctor_set(x_358, 1, x_357); -lean_ctor_set(x_358, 2, x_356); -x_359 = lean_array_push(x_292, x_358); -x_360 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_360, 0, x_41); -lean_ctor_set(x_360, 1, x_268); -lean_ctor_set(x_360, 2, x_359); -x_361 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__15; +lean_ctor_set(x_355, 2, x_353); +x_356 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__205; lean_inc(x_52); -x_362 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_362, 0, x_52); -lean_ctor_set(x_362, 1, x_361); -x_363 = lean_ctor_get(x_21, 4); -lean_inc(x_363); -x_364 = lean_array_get_size(x_363); -x_365 = lean_usize_of_nat(x_364); -lean_dec(x_364); -x_366 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_365, x_1, x_363); -lean_inc(x_2); -x_367 = l_Array_append___rarg(x_2, x_366); -x_368 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_368, 0, x_41); -lean_ctor_set(x_368, 1, x_268); -lean_ctor_set(x_368, 2, x_367); -x_369 = lean_array_push(x_292, x_368); -x_370 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__17; -x_371 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_371, 0, x_41); -lean_ctor_set(x_371, 1, x_370); -lean_ctor_set(x_371, 2, x_369); -x_372 = lean_array_push(x_275, x_355); -lean_inc(x_274); -x_373 = lean_array_push(x_372, x_274); -lean_inc(x_274); -x_374 = lean_array_push(x_373, x_274); -x_375 = lean_array_push(x_374, x_360); -x_376 = lean_array_push(x_375, x_362); -lean_inc(x_376); -x_377 = lean_array_push(x_376, x_371); -x_378 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__12; -x_379 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_379, 0, x_41); -lean_ctor_set(x_379, 1, x_378); -lean_ctor_set(x_379, 2, x_377); -x_380 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__33; -x_381 = lean_array_push(x_380, x_351); -x_382 = lean_array_push(x_381, x_353); -lean_inc(x_382); -x_383 = lean_array_push(x_382, x_379); -x_384 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__6; -x_385 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_385, 0, x_41); -lean_ctor_set(x_385, 1, x_384); -lean_ctor_set(x_385, 2, x_383); -x_386 = lean_array_push(x_38, x_345); -lean_inc(x_386); -x_387 = lean_array_push(x_386, x_385); -x_388 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__4; +x_357 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_357, 0, x_52); +lean_ctor_set(x_357, 1, x_356); +x_358 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__26; +lean_inc(x_52); +x_359 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_359, 0, x_52); +lean_ctor_set(x_359, 1, x_358); +x_360 = lean_array_push(x_38, x_44); +x_361 = lean_array_push(x_360, x_50); +x_362 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_362, 0, x_41); +lean_ctor_set(x_362, 1, x_286); +lean_ctor_set(x_362, 2, x_361); +x_363 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__48; +x_364 = lean_array_push(x_363, x_362); +x_365 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__61; +x_366 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_366, 0, x_41); +lean_ctor_set(x_366, 1, x_365); +lean_ctor_set(x_366, 2, x_364); +x_367 = lean_array_push(x_38, x_359); +x_368 = lean_array_push(x_367, x_366); +x_369 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__95; +x_370 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_370, 0, x_41); +lean_ctor_set(x_370, 1, x_369); +lean_ctor_set(x_370, 2, x_368); +lean_inc(x_304); +x_371 = lean_array_push(x_304, x_370); +x_372 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__143; +x_373 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_373, 0, x_41); +lean_ctor_set(x_373, 1, x_372); +lean_ctor_set(x_373, 2, x_371); +x_374 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__226; +lean_inc(x_54); +lean_inc(x_281); +x_375 = l_Lean_addMacroScope(x_281, x_374, x_54); +x_376 = lean_box(0); +x_377 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__225; +x_378 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__59; +lean_inc(x_52); +x_379 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_379, 0, x_52); +lean_ctor_set(x_379, 1, x_377); +lean_ctor_set(x_379, 2, x_375); +lean_ctor_set(x_379, 3, x_378); +x_380 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__109; +lean_inc(x_52); +x_381 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_381, 0, x_52); +lean_ctor_set(x_381, 1, x_380); +x_382 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__3; +lean_inc(x_52); +x_383 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_383, 0, x_52); +lean_ctor_set(x_383, 1, x_382); +x_384 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__10; +lean_inc(x_54); +lean_inc(x_281); +x_385 = l_Lean_addMacroScope(x_281, x_384, x_54); +x_386 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__9; +lean_inc(x_52); +x_387 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_387, 0, x_52); +lean_ctor_set(x_387, 1, x_386); +lean_ctor_set(x_387, 2, x_385); +lean_ctor_set(x_387, 3, x_376); +lean_inc(x_387); +x_388 = lean_array_push(x_310, x_387); x_389 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_389, 0, x_41); -lean_ctor_set(x_389, 1, x_388); -lean_ctor_set(x_389, 2, x_387); -x_390 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; -x_391 = lean_array_push(x_390, x_341); -lean_inc(x_274); -x_392 = lean_array_push(x_391, x_274); -lean_inc(x_274); -x_393 = lean_array_push(x_392, x_274); -lean_inc(x_343); -x_394 = lean_array_push(x_393, x_343); -x_395 = lean_array_push(x_394, x_389); -x_396 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__57; -x_397 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_397, 0, x_41); -lean_ctor_set(x_397, 1, x_396); -lean_ctor_set(x_397, 2, x_395); -x_398 = lean_array_push(x_292, x_397); -x_399 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__55; -x_400 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_400, 0, x_41); +lean_ctor_set(x_389, 1, x_286); +lean_ctor_set(x_389, 2, x_388); +x_390 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__3___closed__6; +lean_inc(x_52); +x_391 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_391, 0, x_52); +lean_ctor_set(x_391, 1, x_390); +x_392 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__11; +lean_inc(x_52); +x_393 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_393, 0, x_52); +lean_ctor_set(x_393, 1, x_392); +x_394 = lean_array_push(x_304, x_387); +x_395 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__14; +x_396 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_396, 0, x_41); +lean_ctor_set(x_396, 1, x_395); +lean_ctor_set(x_396, 2, x_394); +x_397 = lean_array_push(x_310, x_396); +x_398 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_398, 0, x_41); +lean_ctor_set(x_398, 1, x_286); +lean_ctor_set(x_398, 2, x_397); +x_399 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__15; +lean_inc(x_52); +x_400 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_400, 0, x_52); lean_ctor_set(x_400, 1, x_399); -lean_ctor_set(x_400, 2, x_398); -x_401 = lean_array_push(x_292, x_400); -x_402 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__53; -x_403 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_403, 0, x_41); -lean_ctor_set(x_403, 1, x_402); -lean_ctor_set(x_403, 2, x_401); -x_404 = lean_array_push(x_38, x_403); -lean_inc(x_274); -x_405 = lean_array_push(x_404, x_274); -x_406 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__218; -x_407 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_407, 0, x_41); -lean_ctor_set(x_407, 1, x_406); -lean_ctor_set(x_407, 2, x_405); -x_408 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__233; -x_409 = l_Lean_addMacroScope(x_263, x_408, x_54); -x_410 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__232; -x_411 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__236; -x_412 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_412, 0, x_52); -lean_ctor_set(x_412, 1, x_410); -lean_ctor_set(x_412, 2, x_409); -lean_ctor_set(x_412, 3, x_411); -x_413 = lean_ctor_get(x_21, 5); -lean_inc(x_413); -lean_dec(x_21); -x_414 = lean_array_get_size(x_413); -x_415 = lean_usize_of_nat(x_414); -lean_dec(x_414); -x_416 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_415, x_1, x_413); -x_417 = l_Array_append___rarg(x_2, x_416); -x_418 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_418, 0, x_41); -lean_ctor_set(x_418, 1, x_268); -lean_ctor_set(x_418, 2, x_417); -x_419 = lean_array_push(x_292, x_418); -x_420 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_420, 0, x_41); -lean_ctor_set(x_420, 1, x_370); -lean_ctor_set(x_420, 2, x_419); -x_421 = lean_array_push(x_376, x_420); +x_401 = lean_ctor_get(x_21, 4); +lean_inc(x_401); +x_402 = lean_array_get_size(x_401); +x_403 = lean_usize_of_nat(x_402); +lean_dec(x_402); +x_404 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_403, x_1, x_401); +lean_inc(x_2); +x_405 = l_Array_append___rarg(x_2, x_404); +x_406 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_406, 0, x_41); +lean_ctor_set(x_406, 1, x_286); +lean_ctor_set(x_406, 2, x_405); +x_407 = lean_array_push(x_310, x_406); +x_408 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__17; +x_409 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_409, 0, x_41); +lean_ctor_set(x_409, 1, x_408); +lean_ctor_set(x_409, 2, x_407); +x_410 = lean_array_push(x_293, x_393); +lean_inc(x_292); +x_411 = lean_array_push(x_410, x_292); +lean_inc(x_292); +x_412 = lean_array_push(x_411, x_292); +x_413 = lean_array_push(x_412, x_398); +x_414 = lean_array_push(x_413, x_400); +lean_inc(x_414); +x_415 = lean_array_push(x_414, x_409); +x_416 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__12; +x_417 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_417, 0, x_41); +lean_ctor_set(x_417, 1, x_416); +lean_ctor_set(x_417, 2, x_415); +x_418 = lean_array_push(x_330, x_389); +x_419 = lean_array_push(x_418, x_391); +lean_inc(x_419); +x_420 = lean_array_push(x_419, x_417); +x_421 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__6; x_422 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_422, 0, x_41); -lean_ctor_set(x_422, 1, x_378); -lean_ctor_set(x_422, 2, x_421); -x_423 = lean_array_push(x_382, x_422); -x_424 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_424, 0, x_41); -lean_ctor_set(x_424, 1, x_384); -lean_ctor_set(x_424, 2, x_423); -x_425 = lean_array_push(x_386, x_424); +lean_ctor_set(x_422, 1, x_421); +lean_ctor_set(x_422, 2, x_420); +x_423 = lean_array_push(x_38, x_383); +lean_inc(x_423); +x_424 = lean_array_push(x_423, x_422); +x_425 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInductiveInstance___lambda__4___closed__4; x_426 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_426, 0, x_41); -lean_ctor_set(x_426, 1, x_388); -lean_ctor_set(x_426, 2, x_425); -x_427 = lean_array_push(x_390, x_412); -lean_inc(x_274); -x_428 = lean_array_push(x_427, x_274); -lean_inc(x_274); -x_429 = lean_array_push(x_428, x_274); -x_430 = lean_array_push(x_429, x_343); -x_431 = lean_array_push(x_430, x_426); -x_432 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_432, 0, x_41); -lean_ctor_set(x_432, 1, x_396); -lean_ctor_set(x_432, 2, x_431); -x_433 = lean_array_push(x_292, x_432); +lean_ctor_set(x_426, 1, x_425); +lean_ctor_set(x_426, 2, x_424); +x_427 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__93; +x_428 = lean_array_push(x_427, x_379); +lean_inc(x_292); +x_429 = lean_array_push(x_428, x_292); +lean_inc(x_292); +x_430 = lean_array_push(x_429, x_292); +lean_inc(x_381); +x_431 = lean_array_push(x_430, x_381); +x_432 = lean_array_push(x_431, x_426); +x_433 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__57; x_434 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_434, 0, x_41); -lean_ctor_set(x_434, 1, x_399); -lean_ctor_set(x_434, 2, x_433); -x_435 = lean_array_push(x_292, x_434); -x_436 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_436, 0, x_41); -lean_ctor_set(x_436, 1, x_402); -lean_ctor_set(x_436, 2, x_435); -x_437 = lean_array_push(x_38, x_436); -lean_inc(x_274); -x_438 = lean_array_push(x_437, x_274); -x_439 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_439, 0, x_41); -lean_ctor_set(x_439, 1, x_406); -lean_ctor_set(x_439, 2, x_438); -x_440 = lean_array_push(x_38, x_407); -x_441 = lean_array_push(x_440, x_439); -x_442 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_442, 0, x_41); -lean_ctor_set(x_442, 1, x_268); -lean_ctor_set(x_442, 2, x_441); -x_443 = lean_array_push(x_38, x_291); -x_444 = lean_array_push(x_443, x_442); -x_445 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__51; -x_446 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_446, 0, x_41); -lean_ctor_set(x_446, 1, x_445); -lean_ctor_set(x_446, 2, x_444); -x_447 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__240; -x_448 = lean_array_push(x_447, x_317); -x_449 = lean_array_push(x_448, x_319); -lean_inc(x_274); -x_450 = lean_array_push(x_449, x_274); -lean_inc(x_274); -x_451 = lean_array_push(x_450, x_274); -x_452 = lean_array_push(x_451, x_335); -x_453 = lean_array_push(x_452, x_446); -lean_inc(x_274); -x_454 = lean_array_push(x_453, x_274); -x_455 = lean_array_push(x_454, x_274); -x_456 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__206; -x_457 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_457, 0, x_41); -lean_ctor_set(x_457, 1, x_456); -lean_ctor_set(x_457, 2, x_455); -x_458 = lean_array_push(x_312, x_457); -x_459 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_459, 0, x_41); -lean_ctor_set(x_459, 1, x_314); -lean_ctor_set(x_459, 2, x_458); -x_460 = lean_array_push(x_380, x_273); -x_461 = lean_array_push(x_460, x_315); -x_462 = lean_array_push(x_461, x_459); -x_463 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_463, 0, x_41); -lean_ctor_set(x_463, 1, x_268); -lean_ctor_set(x_463, 2, x_462); -x_464 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_464, 0, x_463); -lean_ctor_set(x_464, 1, x_261); -return x_464; +lean_ctor_set(x_434, 1, x_433); +lean_ctor_set(x_434, 2, x_432); +x_435 = lean_array_push(x_310, x_434); +x_436 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__55; +x_437 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_437, 0, x_41); +lean_ctor_set(x_437, 1, x_436); +lean_ctor_set(x_437, 2, x_435); +x_438 = lean_array_push(x_310, x_437); +x_439 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__53; +x_440 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_440, 0, x_41); +lean_ctor_set(x_440, 1, x_439); +lean_ctor_set(x_440, 2, x_438); +x_441 = lean_array_push(x_38, x_440); +lean_inc(x_292); +x_442 = lean_array_push(x_441, x_292); +x_443 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_443, 0, x_41); +lean_ctor_set(x_443, 1, x_323); +lean_ctor_set(x_443, 2, x_442); +x_444 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__233; +x_445 = l_Lean_addMacroScope(x_281, x_444, x_54); +x_446 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__232; +x_447 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__236; +x_448 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_448, 0, x_52); +lean_ctor_set(x_448, 1, x_446); +lean_ctor_set(x_448, 2, x_445); +lean_ctor_set(x_448, 3, x_447); +x_449 = lean_ctor_get(x_21, 5); +lean_inc(x_449); +lean_dec(x_21); +x_450 = lean_array_get_size(x_449); +x_451 = lean_usize_of_nat(x_450); +lean_dec(x_450); +x_452 = l_Array_mapMUnsafe_map___at___aux__Init__NotationExtra______macroRules__term_x25_x5b___x7c___x5d__1___spec__3(x_451, x_1, x_449); +x_453 = l_Array_append___rarg(x_2, x_452); +x_454 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_454, 0, x_41); +lean_ctor_set(x_454, 1, x_286); +lean_ctor_set(x_454, 2, x_453); +x_455 = lean_array_push(x_310, x_454); +x_456 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_456, 0, x_41); +lean_ctor_set(x_456, 1, x_408); +lean_ctor_set(x_456, 2, x_455); +x_457 = lean_array_push(x_414, x_456); +x_458 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_458, 0, x_41); +lean_ctor_set(x_458, 1, x_416); +lean_ctor_set(x_458, 2, x_457); +x_459 = lean_array_push(x_419, x_458); +x_460 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_460, 0, x_41); +lean_ctor_set(x_460, 1, x_421); +lean_ctor_set(x_460, 2, x_459); +x_461 = lean_array_push(x_423, x_460); +x_462 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_462, 0, x_41); +lean_ctor_set(x_462, 1, x_425); +lean_ctor_set(x_462, 2, x_461); +x_463 = lean_array_push(x_427, x_448); +lean_inc(x_292); +x_464 = lean_array_push(x_463, x_292); +lean_inc(x_292); +x_465 = lean_array_push(x_464, x_292); +x_466 = lean_array_push(x_465, x_381); +x_467 = lean_array_push(x_466, x_462); +x_468 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_468, 0, x_41); +lean_ctor_set(x_468, 1, x_433); +lean_ctor_set(x_468, 2, x_467); +x_469 = lean_array_push(x_310, x_468); +x_470 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_470, 0, x_41); +lean_ctor_set(x_470, 1, x_436); +lean_ctor_set(x_470, 2, x_469); +x_471 = lean_array_push(x_310, x_470); +x_472 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_472, 0, x_41); +lean_ctor_set(x_472, 1, x_439); +lean_ctor_set(x_472, 2, x_471); +x_473 = lean_array_push(x_38, x_472); +lean_inc(x_292); +x_474 = lean_array_push(x_473, x_292); +x_475 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_475, 0, x_41); +lean_ctor_set(x_475, 1, x_323); +lean_ctor_set(x_475, 2, x_474); +x_476 = lean_array_push(x_38, x_443); +x_477 = lean_array_push(x_476, x_475); +x_478 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_478, 0, x_41); +lean_ctor_set(x_478, 1, x_286); +lean_ctor_set(x_478, 2, x_477); +x_479 = lean_array_push(x_38, x_309); +x_480 = lean_array_push(x_479, x_478); +x_481 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__1___closed__51; +x_482 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_482, 0, x_41); +lean_ctor_set(x_482, 1, x_481); +lean_ctor_set(x_482, 2, x_480); +x_483 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__240; +x_484 = lean_array_push(x_483, x_355); +x_485 = lean_array_push(x_484, x_357); +lean_inc(x_292); +x_486 = lean_array_push(x_485, x_292); +lean_inc(x_292); +x_487 = lean_array_push(x_486, x_292); +x_488 = lean_array_push(x_487, x_373); +x_489 = lean_array_push(x_488, x_482); +lean_inc(x_292); +x_490 = lean_array_push(x_489, x_292); +x_491 = lean_array_push(x_490, x_292); +x_492 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__206; +x_493 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_493, 0, x_41); +lean_ctor_set(x_493, 1, x_492); +lean_ctor_set(x_493, 2, x_491); +x_494 = lean_array_push(x_349, x_493); +x_495 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_495, 0, x_41); +lean_ctor_set(x_495, 1, x_351); +lean_ctor_set(x_495, 2, x_494); +x_496 = lean_array_push(x_330, x_291); +x_497 = lean_array_push(x_496, x_352); +x_498 = lean_array_push(x_497, x_495); +x_499 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_499, 0, x_41); +lean_ctor_set(x_499, 1, x_286); +lean_ctor_set(x_499, 2, x_498); +x_500 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_500, 0, x_499); +lean_ctor_set(x_500, 1, x_279); +return x_500; } } else { -uint8_t x_465; +uint8_t x_501; lean_dec(x_21); lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); lean_dec(x_3); lean_dec(x_2); -x_465 = !lean_is_exclusive(x_25); -if (x_465 == 0) +x_501 = !lean_is_exclusive(x_25); +if (x_501 == 0) { return x_25; } else { -lean_object* x_466; lean_object* x_467; lean_object* x_468; -x_466 = lean_ctor_get(x_25, 0); -x_467 = lean_ctor_get(x_25, 1); -lean_inc(x_467); -lean_inc(x_466); +lean_object* x_502; lean_object* x_503; lean_object* x_504; +x_502 = lean_ctor_get(x_25, 0); +x_503 = lean_ctor_get(x_25, 1); +lean_inc(x_503); +lean_inc(x_502); lean_dec(x_25); -x_468 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_468, 0, x_466); -lean_ctor_set(x_468, 1, x_467); -return x_468; +x_504 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_504, 0, x_502); +lean_ctor_set(x_504, 1, x_503); +return x_504; } } } else { -uint8_t x_469; +uint8_t x_505; lean_dec(x_16); lean_dec(x_12); lean_dec(x_11); @@ -18388,23 +18094,23 @@ lean_dec(x_7); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_469 = !lean_is_exclusive(x_20); -if (x_469 == 0) +x_505 = !lean_is_exclusive(x_20); +if (x_505 == 0) { return x_20; } else { -lean_object* x_470; lean_object* x_471; lean_object* x_472; -x_470 = lean_ctor_get(x_20, 0); -x_471 = lean_ctor_get(x_20, 1); -lean_inc(x_471); -lean_inc(x_470); +lean_object* x_506; lean_object* x_507; lean_object* x_508; +x_506 = lean_ctor_get(x_20, 0); +x_507 = lean_ctor_get(x_20, 1); +lean_inc(x_507); +lean_inc(x_506); lean_dec(x_20); -x_472 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_472, 0, x_470); -lean_ctor_set(x_472, 1, x_471); -return x_472; +x_508 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_508, 0, x_506); +lean_ctor_set(x_508, 1, x_507); +return x_508; } } } @@ -18491,7 +18197,7 @@ x_23 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInd x_24 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -x_25 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11; +x_25 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6; x_26 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_26, 0, x_24); lean_ctor_set(x_26, 1, x_25); @@ -18716,7 +18422,7 @@ lean_dec(x_26); x_28 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_28, 0, x_23); lean_ctor_set(x_28, 1, x_27); -x_29 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11; +x_29 = l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6; x_30 = lean_alloc_ctor(10, 2, 0); lean_ctor_set(x_30, 0, x_28); lean_ctor_set(x_30, 1, x_29); @@ -19866,7 +19572,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___lambda__1___closed__4; x_2 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___lambda__1___closed__5; -x_3 = lean_unsigned_to_nat(247u); +x_3 = lean_unsigned_to_nat(261u); x_4 = lean_unsigned_to_nat(6u); x_5 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveInstance___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -20923,7 +20629,7 @@ lean_dec(x_1); return x_6; } } -static lean_object* _init_l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126____closed__1() { +static lean_object* _init_l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519____closed__1() { _start: { lean_object* x_1; @@ -20931,12 +20637,12 @@ x_1 = lean_alloc_closure((void*)(l___private_Lean_Server_Rpc_Deriving_0__Lean_Se return x_1; } } -LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveWithRefInstance___closed__211; -x_3 = l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126____closed__1; +x_3 = l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519____closed__1; x_4 = l_Lean_Elab_registerBuiltinDerivingHandlerWithArgs(x_2, x_3, x_1); if (lean_obj_tag(x_4) == 0) { @@ -21507,6 +21213,8 @@ l_Lean_Server_RpcEncoding_withFieldsAux___rarg___closed__2 = _init_l_Lean_Server lean_mark_persistent(l_Lean_Server_RpcEncoding_withFieldsAux___rarg___closed__2); l_Lean_Server_RpcEncoding_withFields___rarg___closed__1 = _init_l_Lean_Server_RpcEncoding_withFields___rarg___closed__1(); lean_mark_persistent(l_Lean_Server_RpcEncoding_withFields___rarg___closed__1); +l_Lean_Server_RpcEncoding_isOptField___closed__1 = _init_l_Lean_Server_RpcEncoding_isOptField___closed__1(); +lean_mark_persistent(l_Lean_Server_RpcEncoding_isOptField___closed__1); l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__4___closed__1 = _init_l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__4___closed__1(); l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__4___closed__2 = _init_l_Std_PersistentHashMap_findAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__4___closed__2(); l_Std_PersistentHashMap_insertAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__7___closed__1 = _init_l_Std_PersistentHashMap_insertAux___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__7___closed__1(); @@ -21527,10 +21235,46 @@ l_Lean_Meta_DiscrTree_insertCore___at___private_Lean_Server_Rpc_Deriving_0__Lean lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__2___closed__3); l_Lean_Meta_DiscrTree_insertCore___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__2___closed__4 = _init_l_Lean_Meta_DiscrTree_insertCore___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__2___closed__4(); lean_mark_persistent(l_Lean_Meta_DiscrTree_insertCore___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__2___closed__4); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__4); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__5 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__5(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__5); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__6 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__6(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__1___closed__6); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___lambda__2___closed__2); l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__1); l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__2); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__3 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__3); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__4 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__4(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__4); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__5 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__5(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__5); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__6); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__7 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__7(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__7); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__8 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__8(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__8); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__9 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__9(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__9); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__10 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__10(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__10); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__11 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__11(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__11); +l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__12 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__12(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__17___closed__12); l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__18___closed__1 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__18___closed__1(); lean_mark_persistent(l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__18___closed__1); l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__18___closed__2 = _init_l_Array_mapMUnsafe_map___at___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___spec__18___closed__2(); @@ -21701,10 +21445,6 @@ l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureI lean_mark_persistent(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__8); l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__9 = _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__9(); lean_mark_persistent(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__9); -l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__10 = _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__10(); -lean_mark_persistent(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__10); -l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11 = _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11(); -lean_mark_persistent(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_deriveStructureInstance___lambda__2___closed__11); l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_CtorState_encArgTypes___default = _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_CtorState_encArgTypes___default(); lean_mark_persistent(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_CtorState_encArgTypes___default); l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_CtorState_uniqEncArgTypes___default = _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_CtorState_uniqEncArgTypes___default(); @@ -21875,9 +21615,9 @@ l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveIn lean_mark_persistent(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__6); l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__7 = _init_l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__7(); lean_mark_persistent(l___private_Lean_Server_Rpc_Deriving_0__Lean_Server_RpcEncoding_dispatchDeriveInstanceUnsafe___lambda__3___closed__7); -l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126____closed__1 = _init_l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126____closed__1(); -lean_mark_persistent(l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126____closed__1); -res = l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8126_(lean_io_mk_world()); +l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519____closed__1 = _init_l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519____closed__1(); +lean_mark_persistent(l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519____closed__1); +res = l_Lean_Server_RpcEncoding_initFn____x40_Lean_Server_Rpc_Deriving___hyg_8519_(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));